Add create_share_from_snapshot_support in Dell EMC drivers

Bug #1652911 reported by Peter Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Peter Wang

Bug Description

This fixes following issue in Dell EMC CIs:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/opt/stack/new/manila/manila_tempest_tests/tests/api/test_shares.py", line 157, in test_create_share_from_snapshot
        self.protocol, snapshot_id=snap["id"], cleanup_in_class=False)
      File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 453, in create_share
        result = cls.create_shares([{"args": args, "kwargs": kwargs}])
      File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 495, in create_shares
        *local_d["args"], **local_d["kwargs"])
      File "/opt/stack/new/manila/manila_tempest_tests/tests/api/base.py", line 410, in _create_share
        share = client.create_share(**kwargs)
      File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 228, in create_share
        resp, body = self.post("shares", body, version=version)
      File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 62, in post
        return super(SharesV2Client, self).post(url, body, headers=headers)
      File "tempest/lib/common/rest_client.py", line 276, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "tempest/lib/common/rest_client.py", line 665, in request
        resp, resp_body)
      File "tempest/lib/common/rest_client.py", line 768, in _error_checker
        raise exceptions.BadRequest(resp_body, resp=resp)
    tempest.lib.exceptions.BadRequest: Bad request
    Details: {u'code': 400, u'message': u"Share cannot be created from snapshot 'ac756400-40c8-478a-8f9b-8866d0269ad1', because share back end does not support it."}

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/415414

Changed in manila:
assignee: nobody → Peter Wang (peter.wang)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

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

commit c341e52b5e34930dd64af43249504fb7b8413aae
Author: Peter Wang <email address hidden>
Date: Thu Dec 29 00:46:37 2016 +0800

    Report create_share_from_snapshot_support

    Set create_share_from_snapshot_support as True in order to
    be able to create share from snapshot.

    This fixes all Dell EMC drivers issue like below:
      Share cannot be created from snapshot

    Change-Id: If43d9b15b21a2ae74c6872726e9e537501697405
    Closes-Bug: #1652911

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 4.0.0.0b3

This issue was fixed in the openstack/manila 4.0.0.0b3 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.