Look at c-vol trace fragment. Here req-b895f42e-870c-4d30-a98a-ce0efaf837e7 correponds to delete volume operation (called via instance termination), and req-c615ee35-7e0c-4490-8e57-1339bcc8a970 correponds to delete snapshot operation (called via image deletion during test cleanup).
Even with waiting for 'active' state of the instance, the problem still reproduces. See logs on https:/ /review. openstack. org/#/c/ 410338/ 6.
Look at c-vol trace fragment. Here req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 correponds to delete volume operation (called via instance termination), and req-c615ee35- 7e0c-4490- 8e57-1339bcc8a9 70 correponds to delete snapshot operation (called via image deletion during test cleanup).
--- volume deletion started --- volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] volume has no backup snaps _delete_ backup_ snaps /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 528 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] deleting rbd volume volume- e0e726f4- f7a2-4e89- 8de5-307f02639a 18 delete_volume /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 649 volume. drivers. rbd [req-c615ee35- 7e0c-4490- 8e57-1339bcc8a9 70 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-c615ee35- 7e0c-4490- 8e57-1339bcc8a9 70 tempest- TestVolumeBootP attern- 1496098983] Image volumes/ volume- e0e726f4- f7a2-4e89- 8de5-307f02639a 18 is dependent on the snapshot snapshot- af5114b1- 1096-45df- b007-fec7558b77 79. volume. manager [req-c615ee35- 7e0c-4490- 8e57-1339bcc8a9 70 tempest- TestVolumeBootP attern- 1496098983] [snapshot- af5114b1- 1096-45df- b007-fec7558b77 79] Delete snapshot failed, due to snapshot busy. 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] Created reservations ['cc95a20b- d1a3-4663- 9776-3219673938 4b', '781df0f0- a697-40ff- 88c1-27c33a66b3 d1', '05042d6a- 15dc-42c7- b3d4-cd7004b7ca c7', 'e7616d2e- 1e5a-41a5- b796-fe964ea1c2 14'] reserve /opt/stack/ new/cinder/ cinder/ quota.py: 1025 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] Can not find volume e0e726f4- f7a2-4e89- 8de5-307f02639a 18 at notify usage _usage_from_volume /opt/stack/ new/cinder/ cinder/ volume/ utils.py: 96 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 volume. drivers. rbd [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] opening connection to ceph cluster (timeout=-1). _connect_to_rados /opt/stack/ new/cinder/ cinder/ volume/ drivers/ rbd.py: 220 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] Notifying Schedulers of capabilities ... _publish_ service_ capabilities /opt/stack/ new/cinder/ cinder/ manager. py:175 _drivers. amqpdriver [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] CAST unique_id: 66c1896ea93846e 392f02b6b7b0e7a d2 FANOUT topic 'cinder-scheduler' _send /usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ _drivers/ amqpdriver. py:431 _drivers. amqpdriver [-] received message msg_id: 4aa5d1fd6381421 9a04616049abdbc ae reply to reply_611c80901 b90436ea64b638b dde71b34 __call__ /usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ _drivers/ amqpdriver. py:194 _drivers. amqpdriver [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] CAST unique_id: 938160ea81f24ed 8964076a0205d5e 30 exchange 'openstack' topic 'cinder-scheduler' _send /usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ _drivers/ amqpdriver. py:442 volume. manager [req-b895f42e- 870c-4d30- a98a-ce0efaf837 e7 tempest- TestVolumeBootP attern- 1496098983] [volume- e0e726f4- f7a2-4e89- 8de5-307f02639a 18] Deleted volume successfully.
2016-12-14 11:40:20.931 DEBUG cinder.
2016-12-14 11:40:26.194 DEBUG cinder.
2016-12-14 11:40:26.267 DEBUG cinder.
--- snapshot deletion started ---
2016-12-14 11:40:26.275 DEBUG cinder.
2016-12-14 11:40:26.382 INFO cinder.
2016-12-14 11:40:31.177 ERROR cinder.
--- ^^^ snapshot deletion failed ---
--- volume deletion continued ---
2016-12-14 11:40:31.772 DEBUG cinder.quota [req-b895f42e-
2016-12-14 11:40:31.791 DEBUG cinder.volume.utils [req-b895f42e-
2016-12-14 11:40:31.806 DEBUG cinder.
2016-12-14 11:40:31.834 DEBUG cinder.
2016-12-14 11:40:31.866 DEBUG cinder.
2016-12-14 11:40:37.132 DEBUG cinder.
2016-12-14 11:40:37.283 DEBUG cinder.
2016-12-14 11:40:37.373 DEBUG cinder.
2016-12-14 11:40:37.565 DEBUG cinder.manager [req-b895f42e-
2016-12-14 11:40:37.566 DEBUG oslo_messaging.
2016-12-14 11:40:37.567 3244 DEBUG oslo_messaging.
2016-12-14 11:40:37.596 DEBUG oslo_messaging.
2016-12-14 11:40:37.609 INFO cinder.
--- volume deletion finished successfully ---