SVC _update_replication_properties for empty values

Bug #1935670 reported by nikeshkm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Unassigned

Bug Description

Currently, inside method _update_replication_properties in cinder/volume/drivers/ibm/storwize_svc/storwize_svc_common.py

        # Update model for replication
        if not rel_info:
            for key in rep_properties:
                if key in model_update['metadata']:
                    del model_update['metadata'][key]
        else:
            for key, value in rep_properties.items():
                if rel_info.get(value):
                    model_update['metadata'][key] = rel_info[value]

If, rel_info.get(value) is empty, then model_update['metadata'][key] will not be assigned empty value.

Example:
rel_info.get('sync') is '' , then model_update['metadata']['Sync'] will not be assigned ''.

tags: added: replication storwize svc volume
Changed in cinder:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/801617

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/801617
Committed: https://opendev.org/openstack/cinder/commit/da172417fffdf1d162319319fa34a73f2a597de1
Submitter: "Zuul (22348)"
Branch: master

commit da172417fffdf1d162319319fa34a73f2a597de1
Author: gksk <email address hidden>
Date: Wed Aug 18 17:02:28 2021 +0000

    [SVF] Fixed update_rep_properties for empty values

    [Spectrum Virtualize Family] During
    _update_replication_properties, some empty value
    volume relationship attributes of mirror volumes
    are not updated in volume metadata.

    Fixed the above issue by removing the check that filters
    only non-empty values of volume relationship properties.

    Closes-Bug: #1935670
    Change-Id: Ief710f5f337671c4aaf21899c69e3ccd62743d9e

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

This issue was fixed in the openstack/cinder 19.0.0.0rc1 release candidate.

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.