Tempest test test_delete_role_request_without_token failed

Bug #1582223 reported by Sofiia Andriichenko
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Confirmed
High
MOS Keystone

Bug Description

Detailed bug description:
tempest.api.identity.admin.v2.test_roles_negative.RolesNegativeTestJSON.test_delete_role_request_without_token

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_delete_role_request_without_token

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 109, in test_delete_role_request_without_token
    role_id)
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 480, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 493, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <bound method RolesClient.delete_role of <tempest.services.identity.v2.json.roles_client.RolesClient object at 0x7f5f26c1e610>> returned ({'status': '204', 'content-length': '0', 'content-location': 'http://10.109.1.9:35357/v2.0/OS-KSADM/roles/c89cb9d4c0534681bdbb3aa4690caa39', 'vary': 'X-Auth-Token', 'server': 'Apache', 'connection': 'close', 'date': 'Sun, 15 May 2016 23:42:01 GMT', 'x-openstack-request-id': 'req-4badece7-2f14-49b6-9f32-5eeae8cf9eff'}, '')

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

Sophia, please either attach a diagnostic snapshot or take the environment where this is reproduced to the MOS Keystone team for a live debugging session.

As always, this works for me:

rally --debug verify start --regex tempest.api.identity.admin.v2.test_roles_negative.RolesNegativeTestJSON.test_delete_role_request_without_token

...

======
Totals
======
Ran: 1 tests in 25.0000 sec.
 - Passed: 1
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 0.4100 sec.

Changed in mos:
status: New → Incomplete
assignee: nobody → Sofiia Andriichenko (sandriichenko)
Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :

Can't reproduce on CI and our environment

Changed in mos:
status: Incomplete → Invalid
Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :

Reproduce on CI 9.1 snapshot #51 :
Tests:
test_list_roles_request_without_token
test_create_user_request_without_a_token

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
In tab Settings->Security check enable TLS for OpenStack public endpoints, HTTPS for Horizon

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

Changed in mos:
assignee: Sofiia Andriichenko (sandriichenko) → nobody
status: Invalid → Confirmed
milestone: none → 9.1
Revision history for this message
Alexander Petrov (apetrov-n) wrote :
Changed in mos:
importance: Undecided → High
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

MOS Keystone team, could you please take a look at the issue?

Changed in mos:
assignee: nobody → MOS Keystone (mos-keystone)
milestone: 9.1 → 9.2
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.