[System Tests] Test deploy_reset_on_ready failed on verify services step after reset withUnauthorized: User 65ff66cc4c8f48a7bf509bfdf941fca7 is unauthorized for tenant f290f96849bf4a28b6813eeee49ac7f3

Bug #1388902 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Andrey Sledzinskiy

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/helpers/decorators.py", line 53, in wrapper
    return func(*args, **kwagrs)
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/tests/test_environment_action.py", line 197, in deploy_reset_on_ready
    os_conn, smiles_count=6, networks_count=8, timeout=300)
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/__init__.py", line 48, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/models/fuel_web_client.py", line 114, in assert_cluster_ready
    timeout=timeout)
  File "/home/jenkins/venv-nailgun-tests/local/lib/python2.7/site-packages/devops/helpers/helpers.py", line 112, in _wait
    return raising_predicate()
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/models/fuel_web_client.py", line 113, in <lambda>
    networks_count=networks_count),
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/__init__.py", line 48, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/models/fuel_web_client.py", line 72, in get_cluster_status
    checkers.verify_service_list_api(os_conn, service_count=smiles_count)
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/__init__.py", line 48, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/helpers/checkers.py", line 178, in verify_service_list_api
    _verify()
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/helpers/checkers.py", line 163, in _verify
    ret = os_conn.get_nova_service_list()
  File "/home/jenkins/workspace/6.0_fuelmain.system_test.ubuntu.thread_2/fuelweb_test/helpers/os_actions.py", line 297, in get_nova_service_list
    return self.nova.services.list()
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/services.py", line 49, in list
    return self._list(url, "services")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 64, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 283, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 249, in _cs_request
    self.authenticate()
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 382, in authenticate
    auth_url = self._v2_auth(auth_url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 469, in _v2_auth
    return self._authenticate(url, body)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 482, in _authenticate
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in request
    raise exceptions.from_response(resp, body, url, method)
Unauthorized: User 65ff66cc4c8f48a7bf509bfdf941fca7 is unauthorized for tenant f290f96849bf4a28b6813eeee49ac7f3 (Disable debug mode to suppress these details.) (HTTP 401)

test_environment_action.py - line 196
may be we need to get os_conn connection again after reset and re-deploy - it can be done by adding
os_conn = os_actions.OpenStackActions(
            self.fuel_web.get_nailgun_node_by_name('slave-01')['ip'])
after re-deploy

Tags: system-tests
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Andrey Sledzinskiy (asledzinskiy)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/132643
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=71bc1c08b01dc4bac3dcd6abd4c0e2f76f7beac0
Submitter: Jenkins
Branch: master

commit 71bc1c08b01dc4bac3dcd6abd4c0e2f76f7beac0
Author: asledzinskiy <email address hidden>
Date: Tue Nov 4 11:33:32 2014 +0200

    Add os_conn initialization after reset and
    re-deploy environment

    Change-Id: I0719c3991c22ce662619b4a63066298dfcb14f27
    Closes-Bug: #1388902

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
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.