3par attach fails for volume created from snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Critical
|
Kurt Martin |
Bug Description
When you create a snapshot of a volume using 3par backend. Then create a volume from that snapshot. Then try to attach that new volume, it fails.
2013-08-02 15:12:53.441 ERROR cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
2013-08-02 15:12:53.441 TRACE cinder.
The problem is due to the fact that the volume information doesn't contain a CPG if it was created from a snapshot. The volume metadata only contains snapCPG.
The driver needs to trap for this exception and then use the snapCPG if the userCPG doesn't exist.
Changed in cinder: | |
assignee: | Viraj Hardikar (viraj-hardikar-n) → Kurt Martin (kurt-f-martin) |
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
status: | Confirmed → In Progress |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-3 → 2013.2 |
Seems with MU 2 createvvcopy has -online option
createvvcopy -p <parent_volume> -online [-snp_cpg <snap_cpg>] [-tpvv] <destination cpg>
<destination volume>
-online
Specifies that the copy is to be performed online. This means that the
destination can be immediately exported and is automatically created by
this command, meaning that it cannot exist prior to executing this
command. This option requires the specification of a CPG for the
destination volume and allows for the -snp_cpg and -tpvv optional
options. Finally, -online requires the -p option and is incompatible
with the -r, -halt, -s, -b, and -pri options.
Not sure if -online is default behavior asking Howard Hui