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)
Reviewed: https:/ /review. openstack. org/490263 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=903f4c8c7ba 62b34fca29e767c 3463d4db74bfca
Committed: https:/
Submitter: Jenkins
Branch: driverfixes/newton
commit 903f4c8c7ba62b3 4fca29e767c3463 d4db74bfca
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 location, stored as a dict string, not use admin
provider_
metadata or metadata to store LUN private data.
Change-Id: Id18622935ecaa1 715491b4ede48c7 b627e43d3fa 06d8eb288b86760 ffccfd1e52) 1a61af6e64985b8 92de8f06cd)
Closes-Bug: #1699109
(cherry picked from commit 2d6ac671f2a47ed
(cherry picked from commit 10032adc6b6d257