incorrect status comparison when doing non-disruptive volume backup for attached volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Lin Yang |
Bug Description
Hi
when do backup for an attached volume, it's status should be 'in-use' instead of 'in_use'
see debug output
=======
754 # then clean up the temp volume; if 'available', just backup the
755 # volume.
756 previous_status = volume.
757 temp_vol_ref = None
758 import pdb;pdb.set_trace()
759 -> if previous_status == "in_use": ----->(Peter) here should be "in-user"
760 temp_vol_ref = self._create_
761 context, volume)
762 backup.
763 backup.save()
764 volume = temp_vol_ref
(Pdb) print previous_status
in-use
so when doing backup, cloned volume will not be created, and driver tries to attach original volume to Cinder node.
this bug is introduced by https:/
Thanks
Peter
Changed in cinder: | |
assignee: | nobody → Lin Yang (lin-a-yang) |
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → liberty-3 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | liberty-3 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/208356
Review: https:/