Hide Forgot
Description of problem: exit code after running haproxy_ctld --help is 255, should be 0 Version-Release number of selected component (if applicable): current How reproducible: always. Steps to Reproduce: 1. create a scaleable app (php) 2. ssh into the gear and type haproxy_ctld --help 3. type 'echo $?' Actual results: 255 Expected results: 0 or 1 Additional info:
If this behavior is desired, then we should update all the OpenShift scripts. Currently it is a mix of 0 and non-0 return codes.
https://github.com/openshift/origin-server/pull/4081
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/e69dadafc61ec6c796632430fb2e0caf5c8d0b1e Exit 0 for --help in haproxy_ctld Bug 1023594
It's fixed, verified on devenv_3998, please refer to the following results: [cphps-cdm.dev.rhcloud.com 527afb8c5aa2091acd000024]\> haproxy_ctld --help Usage: /var/lib/openshift/527afb8c5aa2091acd000024/haproxy/usr/bin/haproxy_ctld.rb Control scaling features for this application. Has two operating modes, auto and manual. Manual scaling options will run requested action and exit, auto scaling options will stay running in the foreground. -h|--help Display this help menu Manual scaling options: -u|--up Trigger a gear_up event and add an additional gear -d|--down Trigger a gear_remove event and remove a gear --debug Puts logger into debug mode Auto scaling options: -a|--auto Enable auto-scale --debug Puts logger into debug mode Notes: 1. To start/stop auto scaling in daemon mode run: haproxy_ctld_daemon (start|stop|restart|run|) [cphps-cdm.dev.rhcloud.com 527afb8c5aa2091acd000024]\> echo $? 0