Group actions enable, disable and failover replication can leave volume's replication status in transient states enabling, disabling and failing-over respectively.

Bug #2003804 reported by prashkre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Medium
prashkre

Bug Description

Consider a group(grp_1) has 3 volumes(vol_1, vol_2, vol_3) and initially all the volume's replication_status is 'disabled'. When a user executes below use-cases concurrently, their is a probability that volume's replication_status gets stuck in 'enabling' status.

 -- attach all volumes(vol_1, vol_2, vol_3) to some Virtual Machine.
 -- any of group enable_replication, disable_replication and failover_replication operations

Here is an example scenario that leaves replication_status of vol1 in 'enabling' status.

1. vol_1 attach operation started and completed it has put the volume in 'in-use' status.
2. vol_2 attach operation started, it has put the volume in 'attaching' status and it is still in progress.
3. group enable_replication is triggered, which puts vol_1 replication_status in 'enabling' status, vol2 status check fails at [0] and leaves vol_1 replication_status in 'enabling' status.

[0]
https://github.com/openstack/cinder/blob/master/cinder/group/api.py#L1008

Same scenario can be applicable with disable and failover replication on group with any operations on volumes in the groups.

prashkre (prashkre)
Changed in cinder:
assignee: nobody → prashkre (prashkre)
description: updated
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/+/871649

Changed in cinder:
status: New → In Progress
Changed in cinder:
importance: Undecided → Medium
tags: added: group-action replication
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.