Comment 0 for bug 1582220

Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :

Detailed bug description:
test_remove_user_role_by_unauthorized_user
test_list_user_roles_by_unauthorized_user
test_remove_user_role_non_existent_tenant
test_remove_user_role_request_without_token
test_role_create_blank_name
test_role_create_duplicate
test_delete_role_request_without_token
test_list_roles_request_without_token
test_list_user_roles_request_without_token
test_remove_user_role_non_existent_role

Configuration:
Settings:
Compute - QEMU.
Network - Neutron with VLAN segmentation.
Storage Backends - LVM
Additional services - Install Ironic, Install Sahara

In tab Settings->Compute check Nova quotas
In tab Settings->OpenStack Services check enable Install Ceilometer and Aodh
In tab Networks->Other check enable Neutron DVR

Nodes: controller, compute, ironic,cinder, Telemetry - MongoDB

Steps to reproduce:
    1. Deploy ISO in configuration see (Detailed bug description)
    2. Navigate to controller node
    3. Install git (use apt-get install git)
    4. Clone script to deploy rally + tempest
       # git clone https://github.com/obutenko/mos-rally-verify.git
    5. Navigate to the https://github.com/obutenko/mos-rally-verify
    6. Execute necessary steps to deploy tempest
    7. Tun test in debug mode
        #rally --debug verify start --regex tempest.api.identity.admin.v2.test_roles_negative.RolesNegativeTestJSON.test_list_user_roles_by_unauthorized_user

Expected results:
Test is passed

Actual result:
Test is Failed
(see comments)

Reproducibility:
See attachment

Workaround:
---

Impact:
---

Description of the environment:
See (Detailed bug description)

Additional information:
Error Message

test failed

Stacktrace

Traceback (most recent call last):
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/api/identity/admin/v2/test_roles_negative.py", line 227, in test_list_user_roles_by_unauthorized_user
    (user, tenant, role) = self._get_role_params()
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/api/identity/admin/v2/test_roles_negative.py", line 25, in _get_role_params
    self.data.setup_test_user()
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/api/identity/base.py", line 254, in setup_test_user
    self.setup_test_tenant()
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/api/identity/base.py", line 261, in setup_test_tenant
    description=data_utils.rand_name('desc'))['tenant']
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/services/identity/v2/json/tenants_client.py", line 36, in create_tenant
    resp, body = self.post('tenants', post_body)
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/lib/common/rest_client.py", line 259, in post
    return self.request('POST', url, extra_headers, headers, body)
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/lib/common/rest_client.py", line 641, in request
    resp, resp_body)
  File "/home/rally/.rally/tempest/for-deployment-aac0638e-270e-44e8-bfd0-5c5bc95e1e0e/tempest/lib/common/rest_client.py", line 684, in _error_checker
    raise exceptions.Unauthorized(resp_body, resp=resp)
tempest.lib.exceptions.Unauthorized: Unauthorized
Details: {u'message': u'The request you have made requires authentication.', u'code': 401, u'title': u'Unauthorized'}