Comment 5 for bug 1613819

Revision history for this message
Dmitry Kudyukin (gmorfy) wrote : Re: v3 identity client has bad default domain id

Default domain id is not default for me:
openstack domain list
+----------------------------------+---------+---------+--------------------------+
| ID | Name | Enabled | Description |
+----------------------------------+---------+---------+--------------------------+
| 8cb83861ae81409a8f88300e3a3ef237 | default | True | Default Domain |
| c95f6e6234b9483b8311c4b7ecc728b5 | heat | True | Stack projects and users |
+----------------------------------+---------+---------+--------------------------+

I use such configuration option in conf file:
[DEFAULT]
debug = True
log_file = tempest.log
use_stderr = False
default_credentials_domain_name = default
[auth]
use_dynamic_credentials = True
admin_username = admin
admin_password = ***
admin_project_name = admin
admin_domain_name = default
default_credentials_domain_name = default
[identity]
region = RegionOne
auth_version = v3
uri = http://192.168.1.200:55357/v2.0
uri_v3 = http://192.168.1.200:55357/v3
disable_ssl_certificate_validation = True
ca_certificates_file =
default_domain_id = 8cb83861ae81409a8f88300e3a3ef237

The problem is still persist.

I think it because in _create_creds function from dynamic_creds.py the body request to keystone didnt depend any domain feature. From trace:

      File "tempest/common/dynamic_creds.py", line 303, in get_primary_creds
        return self.get_credentials('primary')
      File "tempest/common/dynamic_creds.py", line 284, in get_credentials
        credentials = self._create_creds(admin=is_admin)
      File "tempest/common/dynamic_creds.py", line 138, in _create_creds
        username, user_password, project, email)
      File "tempest/common/cred_client.py", line 47, in create_user
        user = self.users_client.create_user(**params)