openstack project list can not list the project which is domain.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Henry Nash | ||
python-openstackclient |
Confirmed
|
Undecided
|
Henry Nash |
Bug Description
version:mitaka
question:
In project table of keystone database, there are following projects:
+------
| id | name | extra | description | enabled | domain_id | parent_id | is_domain |
+------
| 1e424dd1844b4a7
| 388ba5efe7c24cd
| 4d6e4e79ea1f4ec
| 749e9ebce1d24c4
| 9314197e00bc43e
| <<keystone.
| b79ace176019477
| cf443a4f9b9749c
| d076df0e55d2488
| d90353b38727497
| default | Default | {} | The default domain | 1 | <<keystone.
+------
But when I execute openstack project list, I got following result:
+------
| ID | Name |
+------
| 4d6e4e79ea1f4ec
| 749e9ebce1d24c4
| 9314197e00bc43e
| b79ace176019477
| cf443a4f9b9749c
| d076df0e55d2488
| d90353b38727497
+------
The project which is domain can not list, such as heat, magnum, <<keystone.
Changed in keystone: | |
importance: | Undecided → Low |
Changed in keystone: | |
status: | In Progress → Fix Released |
Changed in keystone: | |
milestone: | none → newton-1 |
milestone: | newton-1 → newton-2 |
Ah, looks to me that the documentation update for how to do this. The project list API can be specified with "is_domain" as a query parameter, e.g.:
GET /projects?is_domain
...which should list the project acting as the root domain. We chose to enforce having to explicitly specify this so as not to surprise people with extra entries in their listing when they upgraded to Mitaka. [As an aside, the parent_id of the project acting as a domain will be reported in the above listing as "null", not "<<keystone. domain. root>>" - which is an internal-only value to keystone to allow us to use sql referential integrity for our tables].
Let me know if this works for.
I'll fix the documentation for this.