Comment 11 for bug 1699109

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (driverfixes/newton)

Reviewed: https://review.openstack.org/490263
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=903f4c8c7ba62b34fca29e767c3463d4db74bfca
Submitter: Jenkins
Branch: driverfixes/newton

commit 903f4c8c7ba62b34fca29e767c3463d4db74bfca
Author: zengyingzhe <email address hidden>
Date: Tue Jun 20 20:41:29 2017 +0800

    Change Huawei driver's private data storing place

    This patch is to fix issues at two circumstances:
    1. Create volume from image by non-admin user, this operation
    will fail because Huawei driver tries to record LUN WWN at admin
    metadata, however non-admin user doesn't have the admin metadata
    access right, so exception is raised.
    2. Restore volume backup to 3rd volume, this operation will also
    restore backup volume's metadata to the 3rd volume, but the data
    recorded in metadata is strong correlative to the corresponding
    LUN at backend storage, so this will break the one-to-one
    relationship between the restored volume and the LUN at storage.

    To fix the issues above, we moved all LUN private data to
    provider_location, stored as a dict string, not use admin
    metadata or metadata to store LUN private data.

    Change-Id: Id18622935ecaa1715491b4ede48c7b627e43d3fa
    Closes-Bug: #1699109
    (cherry picked from commit 2d6ac671f2a47ed06d8eb288b86760ffccfd1e52)
    (cherry picked from commit 10032adc6b6d2571a61af6e64985b892de8f06cd)