Description of problem: User can create multiple domains. Create domain always return SUCCESS. Version-Release number of selected component (if applicable): rhc-common-0.76.1-1.el6_2.noarch rhc-server-common-0.87.1-1.el6_2.noarch rhc-broker-0.89.4-1.el6_2.noarch rhc-0.89.7-1.el6_2.noarch How reproducible: Always Steps to Reproduce: 1.Create domain $ rhc domain create -n <domain_one> 2.Create a different domain $ rhc domain create -n <domain_two> 3.Check domain info $ rhc domain show 4.Destroy <domain_one> $ rhc domain destroy -n <domain_one> 5.Check domain info $ rhc domain show Actual results: 2.Creation succeeds. Get "Command return success", "You may now create an application." 3.<domain_one> is shown in domain info. 4.<domain_one> is destroyed successfully. 5.<domain_two> is shown in domain info. Expected results: User shouldn't be able to create multiple domains. Additional info:
Multiple domains will happen soon but may not be delivered in this sprint (US1876). If its not being delivered then a simple, easy to remove block should go in place preventing it till the next sprint when there's time to finish the client tools.
rhc client tools need to be updated to enable user to pass a domain id
We're not going to be able to get to the client tools anytime soon. The old API needs to continue to work.
All old API code needs to assume the first domain ID, just like the site. If the API code can't do that, the broker must restrict creating more than one domain until the client tools and UI can react (which won't be until late May at the earliest). Spoke with Mike this morning, he agreed we should put the limit in place.
*** Bug 811423 has been marked as a duplicate of this bug. ***
Raising severity on this bug to medium as we're seeing issues in the field: https://www.redhat.com/openshift/community/forums/openshift/app-missing-from-console#comment-20095
Above reported issue was due to multiple account and not domains. The rest api now prevents multiple domains from being created.
Tested it on devenv_1738, now with CLI, only 1 domain could be created, if try to create another domain, it will output error: RESULT: User already has a domain associated. Update the domain to modify.