[9.x][SWARM] Command "openstack endpoint list -f json" returns exit code 1

Bug #1645737 reported by Alisa Tselovalnikova
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Fix Released
High
Nikita Karpin

Bug Description

Detailed bug description:

 The issue was found by https://product-ci.infra.mirantis.net/job/9.x.system_test.ubuntu.command_line/141/testReport/(root)/cli_selected_nodes_deploy/

 Command 'source openrc;export OS_IDENTITY_API_VERSION=3;openstack endpoint list -f json' returns exit code 1. Traceback: http://paste.openstack.org/show/590822/

It happened, because the value of OS_DEFAULT_DOMAIN is "Default" instead "default" in openrc.

Description of the environment:

  snapshot #570 http://paste.openstack.org/show/590824/

description: updated
Changed in mos:
milestone: none → 9.2
Changed in mos:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

It looks like the issue can be related to Keystone V3 API or keystone configuration.

Changed in mos:
assignee: nobody → MOS Keystone (mos-keystone)
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Hi Keystone team, could you please take a look?

2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers [req-3a3c7eb8-1f69-429e-b58b-ba8a0da56da0 - - - - -] Could not find domain: Default
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers Traceback (most recent call last):
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/auth/controllers.py", line 187, in _lookup_domain
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers domain_ref = self.resource_api.get_domain(domain_id)
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 124, in wrapped
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers __ret_val = __f(*args, **kwargs)
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1053, in decorate
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers should_cache_fn)
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 657, in get_or_create
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers async_creator) as value:
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 158, in __enter__
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers return self._enter()
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 98, in _enter
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers generated = self._enter_create(createdtime)
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/core/dogpile.py", line 149, in _enter_create
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers created = self.creator()
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 625, in gen_value
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers created_value = creator()
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/dogpile/cache/region.py", line 1049, in creator
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers return fn(*arg, **kw)
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers File "/usr/lib/python2.7/dist-packages/keystone/resource/core.py", line 706, in get_domain
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers raise exception.DomainNotFound(domain_id=domain_id)
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers DomainNotFound: Could not find domain: Default
2016-11-29 03:47:10.274 22775 ERROR keystone.auth.controllers
2016-11-29 03:47:10.279 22775 WARNING keystone.common.wsgi [req-3a3c7eb8-1f69-429e-b58b-ba8a0da56da0 - - - - -] Authorization failed. The request you have made requires authentication. from 10.109.11.6

tags: added: area-keystone
Changed in mos:
assignee: MOS Keystone (mos-keystone) → Nikita Karpin (mkarpin)
Revision history for this message
Boris Bobrov (bbobrov) wrote :

This looks very like https://bugs.launchpad.net/mos/+bug/1643804. Are you sure your env is up to date?

Revision history for this message
Boris Bobrov (bbobrov) wrote :

Although it looks like https://bugs.launchpad.net/mos/+bug/1643804, it is not it.

The problem is that openrc contains OS_DEFAULT_DOMAIN='Default'. OS_DEFAULT_DOMAIN is expected to contain domain id. Domain id is 'default', with lowercase.

Revision history for this message
Nikita Karpin (mkarpin) wrote :
Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Thank you for the fix!

tags: added: tempest
Boris Bobrov (bbobrov)
Changed in mos:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :
tags: removed: on-verification
Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-library 11.0.0.0rc1

This issue was fixed in the openstack/fuel-library 11.0.0.0rc1 release candidate.

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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