Looking at some of the other compute and image API tests in tempest related to creating images from a server instance, they use a helper method in the base class here:
That waits for not only the instance to be active but also the image. When creating backups of a server instance, we're just creating snapshot images and deleting older snapshots (via the rotation parameter to the API). So the test_create_backup test for the compute API should probably also be waiting for the snapshot images to be ACTIVE before continuing.
Looking at some of the other compute and image API tests in tempest related to creating images from a server instance, they use a helper method in the base class here:
https:/ /github. com/openstack/ tempest/ blob/master/ tempest/ api/compute/ base.py# L165
That waits for not only the instance to be active but also the image. When creating backups of a server instance, we're just creating snapshot images and deleting older snapshots (via the rotation parameter to the API). So the test_create_backup test for the compute API should probably also be waiting for the snapshot images to be ACTIVE before continuing.