+++ This bug was initially created as a clone of Bug #1004709 +++ Description of problem: Try to create domain/:id/view, domain/:id/edit, domain/:id/admin scope,but could not get domain id via `rhc domain show` or `rhc domain list`,only could get domain id via mongodb.But user could not login instance to search domain id via mongodb.So should show domain id via `rhc domain show` or `rhc domain list` Version-Release number of selected component (if applicable): rhc 1.14.1 devenv_3745 How reproducible: Always Steps to Reproduce: 1.rhc domain show 2.rhc domain list 3.Check domain via rest Actual results: Could not get domain id . 1.[wsun@dhcp-8-229 ~]$ rhc domain show -n wsundomain3745 Domain wsundomain3745 (owned by wsun+domain) ------------------------------------------------------- Created: 2:40 PM Allowed Gear Sizes: small, medium 2.[wsun@dhcp-8-229 ~]$ rhc domain list Domain wsundomain3745 (owned by wsun+domain) ------------------------------------------------------- Created: 2:40 PM Allowed Gear Sizes: small, medium You have access to 1 domain. 3.[wsun@dhcp-8-229 ~]$ curl -k -H 'Accept: application/xml' -u wsun+domain:change https://ec2-107-22-136-17.compute-1.amazonaws.com/broker/rest/domains/wsundomain3745 <?xml version="1.0" encoding="UTF-8"?> <response> <status>ok</status> <type>domain</type> <data> <domain> <name>wsundomain3745</name> <suffix>dev.rhcloud.com</suffix> <creation-time>2013-09-05T06:40:52Z</creation-time> Expected results: 1.Could get domain id via `rhc domain show` or `rhc domain list` 2.Or could add scope via domain name,like :domain/$domainname/view, domain/$domainname/edit, domain/$domainname/admin Additional info: --- Additional comment from Clayton Coleman on 2013-09-06 10:54:59 EDT --- Need to figure out a good solution for this. We don't want to use name in scope, because names can change. --- Additional comment from Wei Sun on 2013-12-18 00:20:52 EST --- --- Additional comment from Liang Xia on 2013-12-18 01:28:13 EST --- We can get domain id via REST API now, on devenv_4148. # curl -k -u lxia https://ec2-54-226-88-9.compute-1.amazonaws.com/broker/rest/domains -d nolinks=true -X GET Enter host password for user 'lxia': {"api_version":1.6,"data":[{"allowed_gear_sizes":["small","medium","large"],"creation_time":"2013-12-18T05:21:10Z","id":"52b130c649d56d4711000051","members":[{"explicit_role":null,"from":[{"type":"owner","role":"admin"}],"id":"52b1168b49d56d4711000001","login":"lxia","owner":true,"role":"admin","type":"user"},{"explicit_role":"view","id":"52b1306c49d56d4711000049","login":"lxia","owner":false,"role":"view","type":"user"}],"name":"lxia","suffix":"dev.rhcloud.com"}],"messages":[],"status":"ok","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":"domains","version":"1.6"} --- Additional comment from Jordan Liggitt on 2013-12-18 09:34:03 EST --- Added in https://github.com/openshift/rhc/pull/526 --- Additional comment from Wei Sun on 2013-12-18 22:04:12 EST --- Verified in devenv_4154 with rhc-1.19.2 Now could show domain id via `rhc domain show` and `rhc domain list` Result: [wsun@dhcp-8-229 test]$ rhc domain show -n wsundev4154 Domain wsundev4154 (owned by wsun) --------------------------------------------- Created: 10:57 AM ID: 52b260a8bb50a3796800000c Allowed Gear Sizes: small The domain wsundev4154 exists but has no applications. You can use 'rhc create-app' to create a new application. [wsun@dhcp-8-229 test]$ rhc domain list Domain wsundev4154 (owned by wsun) --------------------------------------------- Created: 10:57 AM ID: 52b260a8bb50a3796800000c Allowed Gear Sizes: small You have access to 1 domain.
OPENSHIFT ENTERPRISE: 2.0.z/2014-02-12.1 the issue is reproduced in ose, and restapi could check the domain id but rhc command not. [root@broker ~]# rhc domain show -n nwei2domain -l nwei2 Domain nwei2domain (owned by nwei2) ----------------------------------- Created: 12:22 AM Allowed Gear Sizes: small [root@broker ~]# rhc domain list Domain nwei1d (owned by nwei) ----------------------------- Created: Feb 17 3:37 AM Allowed Gear Sizes: small