_check_vdisk_fc_mappings does not handle snapshot mapping cleanup associated with volumes

Bug #1890594 reported by Chhavi Agarwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Committed
Undecided
Girish_IBM

Bug Description

If the volume has multiple fcmapping for snapshot and clones the check_vdisk_fcmapping fails fcmap cleanup

seCases:
1. Create 1 source volume, using source volume create 2 snapshots and 2 clone volumes.
    a. Delete the source volume when clone is in progress(fc state is copying).
    b. Delete the source volume when clone is 100% completed and fcmap is auto deleted.
    c. Delete the source volume when clone is 100% completed and fcmap is not deleted.(state is copying and progress is 100%)
    d. Delete the source volume when clone volumes fcmap state is in prepared,idle_or_copied.
    e. Repeat a,b,c,d for deleting the clone volume
2. create 1 source volume, using source volume create 2 snapshots.
    a. Delete the source volume for snapshots when fcmap state is in copying.
    b. Delete the source volume for snapshots when fcmap state is in idle_or_copied.
    c. Delete the source volume for snapshots when fcmap state is in prepared.
    d. Repeat a,b,c for deleting the snapshot volume.
3. Create 1 source volume, using source volume create 2 snapshots and using snapshots create 2 clone volumes.
    a. Delete the snap volume when clone is in progress(fc state is copying).
    b. Delete the snap volume when clone is 100% completed and fcmap is auto deleted.
    c. Delete the snap volume when clone is 100% completed and fcmap is not deleted.(state is copying and progress is 100%)
    d. Delete the snap volume when clone volumes fcmap state is in prepared,idle_or_copied.
    e. Repeat a,b,c,d for deleting the clone volume and source volume.

Eric Harney (eharney)
tags: added: drivers storwize
Revision history for this message
Girish_IBM (girishibm) wrote :

Review link for check_vdisk_fc_maping clean up.
link: https://review.opendev.org/#/c/744664/

Revision history for this message
Girish_IBM (girishibm) wrote :

created defect for clean up of fcmaps in check_vdisk_fcmappings, below is the defect details.
https://bugs.launchpad.net/cinder/+bug/1890254

Changed in cinder:
assignee: nobody → Girish Chilukuri (girishchilukuri)
status: New → Fix Committed
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.