I did some digging in Tempest this morning and there is a volume snapshots compute API test:
https://github.com/openstack/tempest/blob/master/tempest/api/compute/volumes/test_volume_snapshots.py#L42 However, that's simply testing the nova API proxy to the cinder API to snapshot a volume, it's not actually attached to a server instance. And it's redundant with another Tempest test, so probably needs to be removed or rewritten to include a server. There is the test_stamp_pattern scenario test which snapshots a volume- backed server, but it's currently being skipped (I'm working on unskipping it). So I think we basically need to cleanup https://github.com/openstack/tempest/blob/master/tempest/api/compute/volumes/test_volume_snapshots.py#L42 or add another set of tests in there which do the following: 1. snapshot a volume-backed server that is active (default case) 2. snapshot a volume-backed server that is shutdown 3. snapshot a volume-backed server that is paused 4. snapshot a volume-backed server that is suspended I could see most of that test code being common code in the module, with individual tests calling it and passing in or handling the pre-condition for the server state. ** Also affects: tempest Importance: Undecided Status: New ** Changed in: tempest Importance: Undecided => Wishlist -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1564596 Title: backup operation of volume backed instances cannot be done in pause and suspend state Status in OpenStack Compute (nova): In Progress Status in tempest: New Bug description: This is a corner case of bug https://bugs.launchpad.net/nova/+bug/1361487 While bug 1361487 was fixed in Kilo in https://review.openstack.org/#/c/116789/ the problem is still present when the instance is volume backed. You will get this exception in the logs upstart/nova-api.log:2016-03-22 08:49:53.925 3557 INFO nova.api.openstack.wsgi [req-6e6982b6-917f-4039-bef4-2da25e859011 dea08a1751064e5180cdd3d5701047d8 453670a92914454dae57f61e417a428f - - -] HTTP exception thrown: Cannot 'createImage' instance 0cbc3c3a-065f- 4d2e-a1c2-b0e274553a70 while it is in vm_state paused To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1564596/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

