'tempest verify-config' show me a 404 with no default domain

Bug #1711891 reported by hai shi
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
tempest
In Progress
Undecided
hai shi

Bug Description

  File "/usr/local/lib/python2.7/dist-packages/tempest/cmd/verify_tempest_config.py", line 422, in take_action
    main(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/tempest/cmd/verify_tempest_config.py", line 388, in main
    os = clients.Manager(icreds.get_primary_creds().credentials)
  File "/usr/local/lib/python2.7/dist-packages/tempest/common/dynamic_creds.py", line 331, in get_primary_creds
    return self.get_credentials('primary')
  File "/usr/local/lib/python2.7/dist-packages/tempest/common/dynamic_creds.py", line 314, in get_credentials
    credentials = self._create_creds(admin=is_admin)
  File "/usr/local/lib/python2.7/dist-packages/tempest/common/dynamic_creds.py", line 167, in _create_creds
    username, user_password, project, email)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/cred_client.py", line 47, in create_user
    user = self.users_client.create_user(**params)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/services/identity/v3/users_client.py", line 32, in create_user
    resp, body = self.post('users', post_body)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/rest_client.py", line 270, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/rest_client.py", line 659, in request
    self._error_checker(resp, resp_body)
  File "/usr/local/lib/python2.7/dist-packages/tempest/lib/common/rest_client.py", line 765, in _error_checker
    raise exceptions.NotFound(resp_body, resp=resp)
NotFound: Object not found
Details: {u'message': u'Could not find domain: default', u'code': 404, u'title': u'Not Found'}
2017-08-20 15:02:48.555 18161 ERROR tempest [-] Object not found
Details: {u'message': u'Could not find domain: default', u'code': 404, u'title': u'Not Found'}: NotFound: Object not found
Details: {u'message': u'Could not find domain: default', u'code': 404, u'title': u'Not Found'}

In fact, I have the domain of default.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/495569

Changed in tempest:
assignee: nobody → hai shi (haishi)
status: New → In Progress
Revision history for this message
Daniel 'f0o' Preussker (dpreussker) wrote :

The proposed fix errors with:

Running config verification...
Traceback (most recent call last):
  File "/root/kolla/.tox/genconfig/lib/python2.7/site-packages/tempest/cmd/verify_tempest_config.py", line 484, in take_action
    main(parsed_args)
  File "/root/kolla/.tox/genconfig/lib/python2.7/site-packages/tempest/cmd/verify_tempest_config.py", line 450, in main
    os = clients.Manager(icreds.get_primary_creds().credentials)
  File "/root/kolla/.tox/genconfig/lib/python2.7/site-packages/tempest/lib/common/dynamic_creds.py", line 357, in get_primary_creds
    return self.get_credentials('primary')
  File "/root/kolla/.tox/genconfig/lib/python2.7/site-packages/tempest/lib/common/dynamic_creds.py", line 340, in get_credentials
    credentials = self._create_creds(admin=is_admin)
  File "/root/kolla/.tox/genconfig/lib/python2.7/site-packages/tempest/lib/common/dynamic_creds.py", line 181, in _create_creds
    domain_id=CONF.identity.default_domain_id)
TypeError: create_project() got an unexpected keyword argument 'domain_id'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.