[integration tests] [Cinder] Creating multiple snapshots

Bug #1585580 reported by Tatyana Kuterina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
MOS QA Team

Bug Description

https://mirantis.testrail.com/index.php?/tests/view/6319368

Trace:

http://cz7776.bud.mirantis.net:8080/jenkins/job/9.0_vlan_based_cinder/20/testReport/mos_tests.cinder.cinder_test/CinderIntegrationTests/test_creating_multiple_snapshots__543176__/

self = <mos_tests.cinder.cinder_test.CinderIntegrationTests testMethod=test_creating_multiple_snapshots[(543176)]>

    def tearDown(self):
        try:
            for snapshot in self.snapshot_list:
                common_functions.delete_volume_snapshot(self.cinder, snapshot)
            self.snapshot_list = []
            for volume in self.volume_list:
> common_functions.delete_volume(self.cinder, volume)

mos_tests/cinder/cinder_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
mos_tests/functions/common.py:457: in delete_volume
    cinder_client.volumes.delete(volume)
tests/local/lib/python2.7/site-packages/cinderclient/v3/volumes.py:298: in delete
    return self._delete(loc)
tests/local/lib/python2.7/site-packages/cinderclient/base.py:321: in _delete
    resp, body = self.api.client.delete(url)
tests/local/lib/python2.7/site-packages/cinderclient/client.py:129: in delete
    return self._cs_request(url, 'DELETE', **kwargs)
tests/local/lib/python2.7/site-packages/cinderclient/client.py:117: in _cs_request
    return self.request(url, method, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cinderclient.client.SessionClient object at 0x7fa572773fd0>
args = ('/volumes/6a12146d-6ee9-42da-8eea-7b49a35a2f60', 'DELETE')
kwargs = {'authenticated': True, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-cinderclient', 'X-Auth-Token':...NQNPEDbWrSWXV1kuG-AEtS5Pr1iNACIE747qDyDDc4B2B1rf7tGUyp6rqEhp4W4hfFn-1Z1i8ip4fzH-cYWGxsFqya-27vib21HV1mUHZ_Jpe12K2Bv4'}}
raise_exc = True, resp = <Response [400]>
body = {'badRequest': {'code': 400, 'message': 'Invalid volume: Volume status must be available or error or error_restoring or error_extending and must not be migrating, attached, belong to a consistency group or have snapshots.'}}

    def request(self, *args, **kwargs):
        kwargs.setdefault('headers', kwargs.get('headers', {}))
        api_versions.update_headers(kwargs["headers"], self.api_version)
        kwargs.setdefault('authenticated', False)
        # Note(tpatil): The standard call raises errors from
        # keystoneclient, here we need to raise the cinderclient errors.
        raise_exc = kwargs.pop('raise_exc', True)
        resp, body = super(SessionClient, self).request(*args,
                                                        raise_exc=False,
                                                        **kwargs)
        if raise_exc and resp.status_code >= 400:
> raise exceptions.from_response(resp, body)
E BadRequest: Invalid volume: Volume status must be available or error or error_restoring or error_extending and must not be migrating, attached, belong to a consistency group or have snapshots. (HTTP 400) (Request-ID: req-b632dcd0-e288-4f93-ada2-a5cf60eba3a4)

tests/local/lib/python2.7/site-packages/cinderclient/client.py:110: BadRequest

Tags: area-qa
Dina Belova (dbelova)
Changed in mos:
assignee: nobody → MOS QA Team (mos-qa)
tags: added: area-qa
Changed in mos:
status: New → Confirmed
status: Confirmed → New
Revision history for this message
Alexander Koryagin (akoryagin) wrote :
Changed in mos:
status: New → Fix Committed
status: Fix Committed → New
Revision history for this message
Tatyana Kuterina (tkuterina) wrote :
Revision history for this message
Anastasia Kuznetsova (akuznetsova) wrote :

Seems that both fixes were merged, thus status of the bug finally can be changed to "Fix Committed".

Changed in mos:
status: New → Fix Committed
importance: Undecided → High
milestone: none → 9.0
Changed in mos:
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.