modify-limits returning success on error

This time I tried harder to make sure I am not missing something obvious, but this does look like a bug...

modify-limits is returning success (JSON) or Exit status: 0 (text mode) when the command actually failed:

{ "status" : "success", "output" : "Setting memory limit on Xen system 3rdtimelucky.ams2-cloudmin.anu.net to 4 GB ..\n.. this would exceed the host's free memory of 2.03 GB\n\nSetting virtual CPUs on Xen system 3rdtimelucky.ams2-cloudmin.anu.net ..\n.. done\n\nShutting down system 3rdtimelucky.ams2-cloudmin.anu.net to apply limits ..\n.. done\nStarting up system 3rdtimelucky.ams2-cloudmin.anu.net with new limits ..\n.. done\n\n", "command" : "modify-limits" } $ curl -k --user root:mypass "https://ams2-cloudmin.anu.net:10000/server-manager/remote.cgi?program=modify-limits&host=3rdtimelucky.ams2-cloudmin.anu.net&memory=4096"
Setting memory limit on Xen system 3rdtimelucky.ams2-cloudmin.anu.net to 4 GB ..
.. this would exceed the host's free memory of 2.03 GB


Exit status: 0
$ curl -k --user root:mypass "https://ams2-cloudmin.anu.net:10000/server-manager/remote.cgi?program=modify-limits&host=3rdtimelucky.ams2-cloudmin.anu.net&memory=1500"
Setting memory limit on Xen system 3rdtimelucky.ams2-cloudmin.anu.net to 1.46 GB ..
.. done


Exit status: 0
Status: 
Closed (fixed)

Comments

Thanks for pointing this out - this is indeed a bug, which will be fixed in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.