Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
411327e2
Commit
411327e2
authored
Aug 14, 2017
by
Leigh B Stoller
Browse files
Watch for over quota returned from CreateSliver() and say something useful.
parent
8640cca2
Changes
3
Hide whitespace changes
Inline
Side-by-side
apt/create_instance.in
View file @
411327e2
...
...
@@ -979,6 +979,7 @@ else {
$rval
==
GENIRESPONSE_INSUFFICIENT_NODES
||
$rval
==
GENIRESPONSE_INSUFFICIENT_MEMORY
||
$rval
==
GENIRESPONSE_INSUFFICIENT_BANDWIDTH
||
$rval
==
GENIRESPONSE_NOSPACE
||
$rval
==
GENIRESPONSE_NO_MAPPING
)
{
AuditAbort
()
if
(
!
$debug
);
...
...
protogeni/lib/GeniCM.pm.in
View file @
411327e2
...
...
@@ -7061,6 +7061,10 @@ sub GeniExperiment($;$)
GeniUtil::FlipToGeniUser();
if ($saved_exitcode) {
if ($saved_exitcode >> 8 == ENOSPC) {
return GeniResponse->Create(GENIRESPONSE_NOSPACE, undef,
"Over disk quota, please clean up");
}
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Error creating container experiment");
}
...
...
www/aptui/status.ajax
View file @
411327e2
...
...
@@ -168,6 +168,15 @@ function Do_GetInstanceStatus()
$blob
[
"reason"
]
=
"Your topology source contains invalid "
.
"values.
\n\n
"
;
}
elseif
(
$webtask
->
exitcode
()
==
GENIRESPONSE_NOSPACE
)
{
#
# Over Quota.
#
$blob
[
"reason"
]
=
"You are over your disk quota at the target "
.
"cluster, probably because of too many saved disk images. "
.
"Please click on the 'Storage->My Disk Images' above and delete "
.
"images you no longer need."
;
}
elseif
(
$webtask
->
exitcode
()
==
GENIRESPONSE_STITCHER_ERROR
)
{
#
# This is GENIRESPONSE_STITCHER_ERROR which is a catch all.
...
...
Leigh Stoller
@stoller
mentioned in commit
a8e70a92
·
Aug 15, 2017
mentioned in commit
a8e70a92
mentioned in commit a8e70a9204af024f928c7b7e01be35ef5255fa06
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment