Resource cleanup for dynamically created tenant in tempest fails

Bug #1534656 reported by Valeriy Ponomaryov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
High
Valeriy Ponomaryov

Bug Description

Tempest fails to release resources created in dynamically created tenant. Such error appeared about 21-22 hours ago.

paste: http://paste.openstack.org/show/484024/

Logs: http://logs.openstack.org/30/251930/43/check/gate-manila-tempest-dsvm-neutron/b4a4389/logs/tempest.txt.gz#_2016-01-15_11_09_51_880

bare:

2016-01-15 11:09:51.880 31770 ERROR manila_tempest_tests.tests.api.base [-] Suppressed cleanup error in Manila:
Traceback (most recent call last):
  File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 602, in clear_resources
    client.delete_share_network(res_id)
  File "/opt/stack/new/manila/manila_tempest_tests/services/share/json/shares_client.py", line 576, in delete_share_network
    resp, body = self.delete("share-networks/%s" % sn_id)
  File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 73, in delete
    body=body)
  File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 290, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 640, in request
    resp, resp_body)
  File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 683, in _error_checker
    raise exceptions.Unauthorized(resp_body, resp=resp)
Unauthorized: Unauthorized
Details: Authentication required

Tags: tempest
tags: added: tempest
Changed in manila:
importance: Undecided → High
Changed in manila:
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

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

Changed in manila:
milestone: none → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/269529
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=d29805421865a35d79a11fdeeec5a9e66d168818
Submitter: Jenkins
Branch: master

commit d29805421865a35d79a11fdeeec5a9e66d168818
Author: Valeriy Ponomaryov <email address hidden>
Date: Wed Jan 20 19:09:49 2016 +0200

    Fix release of resources created by Tempest

    Tempest fails to release created resources by Manila using dynamically
    created tenant. It is caused by changed order of deletion,
    where Tempest started execute dynamic tenant deletion prior to
    release of Manila resources within this tenant.
    So, fix it by changing order of resource release in Manila base class.

    Change-Id: I40c2324705eb11e10ca64cfe81a2a87ad6e90767
    Closes-Bug: #1534656

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/manila 2.0.0.0b2

This issue was fixed in the openstack/manila 2.0.0.0b2 development milestone.

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.