cinder create volume failure when source volume 'in-use'

Bug #1214235 reported by Alan Jiang on 2013-08-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alan Jiang

Bug Description introduced a volume state checking during create volume.

When trying to clone a volume by using create volume from source volume function, the create failed
since the source volume is in the 'in-use' state. The original create_volume by source volume function
from cinder.volume.manager doesn't have such state check.

Our use case requires the source volume to stay attached to Nova instance while doing the clone. The operating
system running will ensure the consistency of the volume that is cloned from. This will be a typical use case
for the FibreChannel attached storage environment.

I would like to get the original error only state checking behavior back before we introduce a new
state to handle this case.

Alan Jiang (ajiang) on 2013-08-20
Changed in cinder:
assignee: nobody → Alan Jiang (ajiang)
Changed in cinder:
status: New → Confirmed
importance: Undecided → High

Fix proposed to branch: master

Changed in cinder:
status: Confirmed → In Progress

Submitter: Jenkins
Branch: master

commit ab29496714296161ce60b3cd59b85289c3f8889e
Author: Alan Jiang <email address hidden>
Date: Tue Aug 20 00:22:44 2013 -0500

    Allow volume create from source unless in error status

    This patch restores the source volume status checking behavior
    to allow create_volume function to proceed unless it is in
    error status. In FibreChannel attached environment, it is typical
    to have a volume attached before the volume clone starts. The
    operating system owns the volume will ensure the consistency.

    Fixes: bug #1214235
    Change-Id: Ie639f2f36e2939399303ca0658c169124801e86b

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2013-09-05
Changed in cinder:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in cinder:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers