Description of problem: Scale-up/down app via haproxy_ctld in rhcsh, will not return any exception if the operation failed. Version-Release number of selected component (if applicable): devenv_4257 How reproducible: always Steps to Reproduce: 1.Create scalable app 2.Set the scale_to and scale_from to same value, eg, 2 $ rhc cartridge-scale python -a py33s --min 2 --max 2 3.Try to scale-up/down the app in rhcsh Actual results: [py33s-bmengdev.dev.rhcloud.com 52df8bca380ea23b4c000108]\> haproxy_ctld -d [py33s-bmengdev.dev.rhcloud.com 52df8bca380ea23b4c000108]\> echo $? 0 [py33s-bmengdev.dev.rhcloud.com 52df8bca380ea23b4c000108]\> haproxy_ctld -u [py33s-bmengdev.dev.rhcloud.com 52df8bca380ea23b4c000108]\> echo $? 0 Expected results: Should return the error message about the scale-up/down failed due to the gear number limits. Additional info:
https://github.com/openshift/origin-server/pull/4553
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/8dd6002c5578930efce2d19a0fe486f8d309940a Bug 1056483 - Better error messaging with direct usage of haproxy_ctld
It's fixed, verified on devenv_4261, please refer to the following results: 1.Create scalable app rhc app create ceap6s jbosseap-6 -s --no-git 2.Set the scale_to and scale_from to same value, eg, 2 $ rhc cartridge-scale jbosseap-6 -a ceap6s --min 2 --max 2 3.Try to scale-up/down the app in rhcsh Results: [ceap6s-cdm.dev.rhcloud.com 52e08575cd9bea0aa7000055]\> haproxy_ctld -u Cannot add gear because max limit '2' reached. [ceap6s-cdm.dev.rhcloud.com 52e08575cd9bea0aa7000055]\> echo $? 1 [ceap6s-cdm.dev.rhcloud.com 52e08575cd9bea0aa7000055]\> haproxy_ctld -d Cannot remove gear because min limit '2' reached. [ceap6s-cdm.dev.rhcloud.com 52e08575cd9bea0aa7000055]\> echo $? 1