Merge "[NetApp] Fix driver to honor standard extra specs" into stable/rocky

This commit is contained in:
Zuul 2020-05-02 16:09:11 +00:00 committed by Gerrit Code Review
commit b20e5236f5
2 changed files with 7 additions and 0 deletions

View File

@ -1049,6 +1049,7 @@ class NetAppCmodeFileStorageLibrary(object):
# Validate extra specs # Validate extra specs
extra_specs = share_types.get_extra_specs_from_share(share) extra_specs = share_types.get_extra_specs_from_share(share)
extra_specs = self._remap_standard_boolean_extra_specs(extra_specs)
try: try:
self._check_extra_specs_validity(share, extra_specs) self._check_extra_specs_validity(share, extra_specs)
self._check_aggregate_extra_specs_validity(aggregate_name, self._check_aggregate_extra_specs_validity(aggregate_name,
@ -2236,6 +2237,8 @@ class NetAppCmodeFileStorageLibrary(object):
# Modify volume properties per share type extra-specs # Modify volume properties per share type extra-specs
extra_specs = share_types.get_extra_specs_from_share( extra_specs = share_types.get_extra_specs_from_share(
destination_share) destination_share)
extra_specs = self._remap_standard_boolean_extra_specs(extra_specs)
self._check_extra_specs_validity(destination_share, extra_specs)
provisioning_options = self._get_provisioning_options(extra_specs) provisioning_options = self._get_provisioning_options(extra_specs)
qos_policy_group_name = self._modify_or_create_qos_for_existing_share( qos_policy_group_name = self._modify_or_create_qos_for_existing_share(
destination_share, extra_specs, vserver, vserver_client) destination_share, extra_specs, vserver, vserver_client)

View File

@ -0,0 +1,4 @@
---
fixes:
- The NetApp cDOT driver is now fixed to honour the
standard extra_specs during migration and manage/unmanage.