commit b069c027ab3d4e0b105231f5255fcd65b4edfd90
Author: xing-yang <email address hidden>
Date: Sat Dec 3 14:06:44 2016 -0500
Remove cgsnapshot_id before snapshot.save
There are a few more places where information is missing for
consistencygroup or cgsnapshot due to the CG migration changes.
This patch tries to fix them.
cgsnapshot_id should be removed from the snapshot object before
snapshot.save is called in the exception block because cgsnapshot
does not exist in the db.
cgsnapshot object is added to the snapshot object when snapshots
are passed to the driver in create/delete cgsnapshot.
Change-Id: I253a98b8a2058a00c2c577927c0b701c2f88c81b
Closes-Bug: #1662684
(cherry picked from commit 702868fd00e6b99d7ae5bda64d3410b2e5f9ddc5)
Reviewed: https:/ /review. openstack. org/433185 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=b069c027ab3 d4e0b105231f525 5fcd65b4edfd90
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit b069c027ab3d4e0 b105231f5255fcd 65b4edfd90
Author: xing-yang <email address hidden>
Date: Sat Dec 3 14:06:44 2016 -0500
Remove cgsnapshot_id before snapshot.save
There are a few more places where information is missing for group or cgsnapshot due to the CG migration changes.
consistency
This patch tries to fix them.
cgsnapshot_id should be removed from the snapshot object before
snapshot.save is called in the exception block because cgsnapshot
does not exist in the db.
cgsnapshot object is added to the snapshot object when snapshots
are passed to the driver in create/delete cgsnapshot.
Change-Id: I253a98b8a2058a 00c2c577927c0b7 01c2f88c81b d7ae5bda64d3410 b2e5f9ddc5)
Closes-Bug: #1662684
(cherry picked from commit 702868fd00e6b99