Running without keystone v3 requires bogus uri_v3

Bug #1295132 reported by Andrea Frittoli
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Low
Ajaya Agrawal

Bug Description

Setting:

[identity-feature-enabled]
api_v3 = false

is not enough to disable keystone v3 tests, as it causes all other test to fail with the following stack trace:

======================================================================
FAIL: setUpClass (tempest.api.network.test_floating_ips.FloatingIPTestJSON)
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/api/network/test_floating_ips.py", line 48, in setUpClass
    super(FloatingIPTestJSON, cls).setUpClass()
  File "/opt/stack/tempest/tempest/api/network/base.py", line 65, in setUpClass
    os = cls.get_client_manager()
  File "/opt/stack/tempest/tempest/test.py", line 302, in get_client_manager
    cls.__name__, network_resources=cls.network_resources)
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 43, in __init__
    self._get_admin_clients())
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 71, in _get_admin_clients
    os = clients.AdminManager(interface=self.interface)
  File "/opt/stack/tempest/tempest/clients.py", line 413, in __init__
    service=service)
  File "/opt/stack/tempest/tempest/clients.py", line 353, in __init__
    self.token_v3_client = V3TokenClientJSON()
  File "/opt/stack/tempest/tempest/services/identity/v3/json/identity_client.py", line 451, in __init__
    if 'auth/tokens' not in auth_url:
TypeError: argument of type 'NoneType' is not iterable

Workaround is to set uri_v3 to a non-None value - it doesn't have to be valid.

Changed in tempest:
status: New → Confirmed
importance: Undecided → Low
Changed in tempest:
assignee: nobody → Swapnil Kulkarni (coolsvap)
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/93382

Changed in tempest:
status: Confirmed → In Progress
Revision history for this message
Terry Yao (yaohaif) wrote :

I also hit this issue

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in tempest:
assignee: Swapnil Kulkarni (coolsvap) → Ajaya Agrawal (ajayaa)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by Swapnil Kulkarni (<email address hidden>) on branch: master
Review: https://review.openstack.org/93382

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

Reviewed: https://review.openstack.org/105706
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=1fdc78a277d1aa11cda851a6bf31f500d27a6d78
Submitter: Jenkins
Branch: master

commit 1fdc78a277d1aa11cda851a6bf31f500d27a6d78
Author: ajayaa <email address hidden>
Date: Wed Jul 9 16:51:13 2014 +0530

    Running without keystone v3 doesn't require uri_v3

    uri_v3 is not required if api_v3 is false.

    Change-Id: I5d63ca38b9f07ea07383472fb7fa82b369c72216
    Closes-bug: #1295132

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
Anna Babich (ababich) wrote :

api_v3 = false, but uri_v3 is required:

# nosetests -svx test_keypairs.py
ERROR

======================================================================
ERROR: test suite for <class 'tempest.api.compute.keypairs.test_keypairs.KeyPairsV2TestJSON'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.6/site-packages/nose/util.py", line 469, in try_run
    return func()
  File "/root/tempest/tempest/api/compute/keypairs/test_keypairs.py", line 27, in setUpClass
    super(KeyPairsV3Test, cls).setUpClass()
  File "/root/tempest/tempest/api/compute/base.py", line 43, in setUpClass
    os = cls.get_client_manager()
  File "/root/tempest/tempest/test.py", line 307, in get_client_manager
    cls.__name__, network_resources=cls.network_resources)
  File "/root/tempest/tempest/common/isolated_creds.py", line 41, in __init__
    self._get_admin_clients())
  File "/root/tempest/tempest/common/isolated_creds.py", line 51, in _get_admin_clients
    os = clients.AdminManager(interface=self.interface)
  File "/root/tempest/tempest/clients.py", line 418, in __init__
    service=service)
  File "/root/tempest/tempest/clients.py", line 357, in __init__
    self.token_v3_client = V3TokenClientJSON()
  File "/root/tempest/tempest/services/identity/v3/json/identity_client.py", line 460, in __init__
    raise exceptions.InvalidConfiguration('you must specify a v3 uri '
InvalidConfiguration: Invalid Configuration
Details: you must specify a v3 uri if using the v3 identity api

----------------------------------------------------------------------
Ran 0 tests in 0.097s

FAILED (errors=1)

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.