openstack project create cannot find default domain

Bug #1599857 reported by Shutimano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Undecided
Unassigned
python-openstackclient
Incomplete
Undecided
Unassigned

Bug Description

$ openstack project create TEST
Could not find domain: default (HTTP 400) (Request-ID: req-f193e015-2cab-4763-814e-b374cc403793)

Optional argument is mandatory.

$ openstack project create --domain default TEST
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | |
| domain_id | 4e92621013eb4945a36ba2b57611dbb8 |
| enabled | True |
| id | c00bfe7d586a4d8ba449b799295d9d98 |
| is_domain | False |
| name | TEST |
| parent_id | 4e92621013eb4945a36ba2b57611dbb8 |
+-------------+----------------------------------+

Revision history for this message
Raildo Mascena de Sousa Filho (raildo) wrote :

Can you add another print for this command?

openstack domain show 4e92621013eb4945a36ba2b57611dbb8

Revision history for this message
Shutimano (andras-palasthy-24) wrote :

$ openstack domain show 4e92621013eb4945a36ba2b57611dbb8
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | Default Domain |
| enabled | True |
| id | 4e92621013eb4945a36ba2b57611dbb8 |
| name | default |
+-------------+----------------------------------+

Revision history for this message
Steve Martinelli (stevemar) wrote :

This may be related to the fix for bug 1594284.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Can you add --debug to: openstack project create TEST

Revision history for this message
Raildo Mascena de Sousa Filho (raildo) wrote :

Since this domain have a name: default, and there is another domain default with name: Default, and id:default and in the openstack client you can pass name or id in the domain flag, this might be a conflict in this two options?

tags: removed: keystone openstack project-create
tags: added: support
Revision history for this message
Guang Yee (guang-yee) wrote :

Could also be related to https://bugs.launchpad.net/keystone/+bug/1596869 where we seem to have this dichotomy of default domain provisioning.

Revision history for this message
Eric Lajoie (elajoie) wrote :

Hit the same issue with fresh devstack build:

[root@ubuntu ~(keystone_fulladmin)]$ openstack project create --description 'name' Software
Could not find domain: default (HTTP 400) (Request-ID: req-3ccd0e8e-0760-4b21-bd72-36eb1aa27c29)

[root@ubuntu ~(keystone_fulladmin)]$ openstack project create --description 'name' --domain default newone
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | name |
| domain_id | a5ae99a20c3e4a67a11aee1c99ac6236 |
| enabled | True |
| id | 4a0630028cbf4756a68ff38a97c0a5b3 |
| is_domain | False |
| name | newone |
| parent_id | a5ae99a20c3e4a67a11aee1c99ac6236 |
+-------------+----------------------------------+

[root@ubuntu ~(keystone_fulladmin)]$ openstack domain list
+----------------------------------+---------+---------+--------------------------+
| ID | Name | Enabled | Description |
+----------------------------------+---------+---------+--------------------------+
| a5ae99a20c3e4a67a11aee1c99ac6236 | default | True | Default Domain |
| ffedbd8935a44d11acf753cca487b507 | heat | True | Stack projects and users |
+----------------------------------+---------+---------+--------------------------+

Revision history for this message
Steve Martinelli (stevemar) wrote :

Unable to reproduce

stevemar@ubuntu:/opt/stack/keystone$ env | grep OS
OS_REGION_NAME=RegionOne
OS_USER_DOMAIN_NAME=Default
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=openstack
OS_AUTH_URL=http://172.16.240.199:5000/v3
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_VOLUME_API_VERSION=2
OS_NO_CACHE=1
LESSCLOSE=/usr/bin/lesspipe %s %s
OS_PROJECT_DOMAIN_NAME=Default
stevemar@ubuntu:/opt/stack/keystone$ openstack project create tempo --domain default
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | |
| domain_id | default |
| enabled | True |
| id | 6cf61760909c4d27b1981a4dd820bbff |
| is_domain | False |
| name | tempo |
| parent_id | default |
+-------------+----------------------------------+
stevemar@ubuntu:/opt/stack/keystone$ unset OS_USER_DOMAIN_NAME OS_PROJECT_DOMAIN_NAME
stevemar@ubuntu:/opt/stack/keystone$ export OS_IDENTITY_API_VERSION='2.0'
stevemar@ubuntu:/opt/stack/keystone$ export OS_AUTH_URL='http://172.16.240.199:5000/v2.0'
stevemar@ubuntu:/opt/stack/keystone$ openstack project create tempo_v2
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | None |
| enabled | True |
| id | c364d1d948a049cda209f0b108537eb2 |
| name | tempo_v2 |
+-------------+----------------------------------+

Changed in keystone:
status: New → Invalid
Changed in python-openstackclient:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers