Actually attach a volume to an instance before taking snapshot
In the test test_snapshot_create_with_volume_in_use, the test calls Cinder
"os-attach" for attaching a volume. The "os-attach" to tell Cinder the
volume is attached, but the API doesn't actually attach the volume to an
instance.(Only update volume status in DB)
This is not right test case for taking a snapshot with in-use volume.
In this test, Nova "os-volume_attachment" should be called for volume
attachment.
Also, some Cinder drivers fails assisted snapshot due to this problem.
In order to perform the snapshot properly, this fix is needed.
Reviewed: https:/ /review. openstack. org/140873 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=ab667960ef3 37538cf777bb0f3 25cb5d0e865d76
Committed: https:/
Submitter: Jenkins
Branch: master
commit ab667960ef33753 8cf777bb0f325cb 5d0e865d76
Author: Mitsuhiro Tanino <email address hidden>
Date: Wed Dec 10 15:52:08 2014 -0500
Actually attach a volume to an instance before taking snapshot
In the test test_snapshot_ create_ with_volume_ in_use, the test calls Cinder
"os-attach" for attaching a volume. The "os-attach" to tell Cinder the
volume is attached, but the API doesn't actually attach the volume to an
instance.(Only update volume status in DB)
This is not right test case for taking a snapshot with in-use volume. attachment" should be called for volume
In this test, Nova "os-volume_
attachment.
Also, some Cinder drivers fails assisted snapshot due to this problem.
In order to perform the snapshot properly, this fix is needed.
Closes-Bug #1401110 7824241cf142c21 3eae287483f
Change-Id: Ib31e351fe7c3d2