Bug 1029412
Summary: | Met exception when creating domain without any nodes. | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Liang Xia <lxia> |
Component: | Pod | Assignee: | Abhishek Gupta <abhgupta> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-24 03:29:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Liang Xia
2013-11-12 11:11:35 UTC
This is expected. The REST call to create the domain returns the domain and associated links. One of the link is for "ADD_APPLICATION". This link lists the cartridges that can be specified to create the application. To fetch the cartridges, a call is made to the node (any one node). Since there are no nodes, this call fails and hence the exception. The domain is created at this point, its just that the response encountered this exception. If this is indeed a valid use-case, then to avoid this exception and still be able to create a domain without having any nodes, you have two options: 1. Create the domain using the REST API and specify the "nolinks" parameter as true. 2. Create the domain using the oo-admin-ctl-domain admin tool. Note to QE: I believe this has always been the case. If you agree with the explanation in comment #1, please remove the regression tag as well. Tried the two options in comment #1, the two options works. # oo-admin-ctl-domain -c create -l d -n d Successfully created domain. # curl -s -k -H "Accept:application/xml" -u ee:a https://localhost/broker/rest/domains -d name=ee -d nolinks=true -X POST <?xml version="1.0" encoding="UTF-8"?> <status>created</status> <type>domain</type> <messages> <message> <severity>info</severity> <text>Created domain with name ee</text> <exit-code>0</exit-code> <field nil="true"></field> <index nil="true"></index> </message> </messages> <version>1.6</version> # curl -s -k -H "Accept:application/xml" -u ff:a https://localhost/broker/rest/domains -d name=ff -d nolinks=false -X POST <?xml version="1.0" encoding="UTF-8"?> <status>service_unavailable</status> <type nil="true"></type> <messages> <message> <severity>error</severity> <text>Unable to complete the requested operation due to: No nodes available. If the problem persists please contact Red Hat support. Reference ID: 80b8ba72fd3d65607b53f3a1e6ff4699</text> <exit-code>140</exit-code> <field nil="true"></field> <index nil="true"></index> </message> </messages> <version>1.6</version> <api-version>1.6</api-version> |