Description of problem: In addition to Bug #1116124 we should consider the following upstream pull requests: https://github.com/openshift/origin-server/pull/5614 https://github.com/openshift/origin-server/pull/5618
Upstream commits: commit 9c3dfc6570ef4953c21e61a7b4adf8516352b8bb Author: Abhishek Gupta <abhgupta> Date: Thu Jul 17 13:53:50 2014 -0700 Logging error if region is specified but no districted nodes available [bleanhar@harbin enterprise-server]$ git show c20937b commit c20937b2db82e88ba8bed0580a103af7b93c7e73 Author: Lili Nader <lnader> Date: Thu Jul 17 20:31:32 2014 -0700 Added LIST_REGIONS
Verify and pass in puddle-2-1-2014-07-18 For #5614 Before fix: set DEFAULT_REGION_NAME="usa", set DISTRICTS_REQUIRE_FOR_APP_CREATE=false. don't specify region in district, create app, success. After fix: create app as pre above. Watch /var/log/production.log. warning message are shown. 2014-07-21 04:07:24.603 [WARN ] Specified region will be ignored since there are no districted nodes available (pid:2367) 2014-07-21 04:07:31.773 [INFO ] Completed 201 Created in 13019ms (Views: 11.9ms) (pid:2367) For #5618, After fix, the region list by REST API, and the url can are correct. [root@broker ~]# curl -s -k -H 'Accept: application/xml,version=1.5' https://broker.ose21z-manual.com.cn/broker/rest/api -u 'hanli1:redhat'|grep -A 6 "List all regions" <rel>List all regions</rel> <method>GET</method> <href>https://broker.ose21z-manual.com.cn/broker/rest/regions</href> <required-params/> <optional-params/> </link> <link> [root@broker ~]# curl -s -k -H 'Accept: application/xml,version=1.5' https://broker.ose21z-manual.com.cn/broker/rest/regions -X GET -u 'hanli1:redhat'|grep -A 3 '<region>' <region> <id>53cca024db26c83e70000001</id> <name>USA</name> <zones/> -- <region> <id>53cca225db26c8be89000001</id> <name>CN</name> <zones/> -- <region> <id>53cca233db26c85974000001</id> <name>FR</name> <zones>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0999.html