Red Hat Bugzilla – Bug 807574
User can create multiple domains
Last modified: 2015-05-14 21:49:45 EDT
Description of problem:
User can create multiple domains. Create domain always return SUCCESS.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ rhc domain create -n <domain_one>
2.Create a different domain
$ rhc domain create -n <domain_two>
3.Check domain info
$ rhc domain show
$ rhc domain destroy -n <domain_one>
5.Check domain info
$ rhc domain show
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.
User shouldn't be able to create multiple domains.
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:
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:
User already has a domain associated. Update the domain to modify.