Description of problem: Enable the ha in broker-dev.conf and add the ability to the user. Create a scalable app. Try to find the way to make-ha via rest api. There is no reference for this operation. [root@ip-10-151-25-153 ~]# curl -s -k -H 'Accept: application/xml' --user bmeng:123123 https://localhost/broker/rest/application/5268ec69b07b1074170000ee/|grep -i make [root@ip-10-151-25-153 ~]# But the event can be triggered from the api directly. # curl -s -k -H 'Accept: application/xml' --user bmeng:123123 https://localhost/broker/rest/application/5268ec69b07b1074170000ee/events -d event=make-ha <----> <messages> <message> <severity>info</severity> <text>Application perl1s is now ha</text> <exit-code>0</exit-code> <field nil="true"></field> <index nil="true"></index> </message> </messages> Version-Release number of selected component (if applicable): devenv_3939 How reproducible: always Steps to Reproduce: 1. Enable ha for the broker ALLOW_HA_APPLICATIONS="true" 2. Add the ability to user # oo-admin-ctl-user -lbmeng --allowha true 3. Create scalable app and try to find the method to make-ha Actual results: No reference for this operation. Expected results: Should show the method in the result like start, stop events. Additional info:
Fixed with https://github.com/openshift/origin-server/pull/3998
Checked on devenv_3953, the method has been added, but the option name is incorrect. (Which should be "maka-ha") <link> <rel>Make the application Highly Available (HA)</rel> <method>POST</method> <href>https://localhost/broker/rest/application/526e03f9582052d266000006/events</href> <required-params> <param> <name>event</name> <type>string</type> <description>event</description> <valid-options> <valid-option>make_ha</valid-option> </valid-options> <invalid-options/> </param> </required-params> <optional-params/> </link> # curl -k -H 'Accept: application/xml' --user bmeng:123123 https://localhost/broker/rest/domains/bmengdev/applications/php1s/events -XPOST -d event=make_ha <?xml version="1.0" encoding="UTF-8"?> <response> <status>unprocessable_entity</status> <type nil="true"></type> <data> <datum nil="true"></datum> </data> <messages> <message> <severity>error</severity> <text>Event can only contain lowercase a-z and '-' characters</text> <exit-code>126</exit-code> <field>event</field> <index nil="true"></index> </message>
Haa, sorry for the typo, the correct one should be "make-ha".
Fixed with --> https://github.com/openshift/origin-server/pull/4012
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/c1e33bb9a11331651b5d98d4bd6b13988022b631 Fix for bug 1022948
Checked on devenv_3958, issue fixed. <link> <rel>Make the application Highly Available (HA)</rel> <method>POST</method> <href>https://localhost/broker/rest/application/526f2ae9f15afcf39b000024/events</href> <required-params> <param> <name>event</name> <type>string</type> <description>event</description> <valid-options> <valid-option>make-ha</valid-option> </valid-options> <invalid-options/> </param> </required-params> <optional-params/> </link> Move bug to verified.