Wait for server activations for the updated servers
In test_list_servers_by_changes_since, Tempest tries to get a server
list with changes-since parameter. The test expects we can get all
servers with the parameter, but sometimes we could not get it and the
gate tests failed.
On "create a server" API Nova creates a DB record of the server as
the first step, then updates the record by each step(scheduling,
networking, etc.) during the server creation. If the test runs just
after the DB record creation, the record is not updated and "get a
server list" API with changes-since parameter does not contain the
server. As the result, the test fails.
This patch makes the test wait for server activations to avoid the
non-updated servers.
Reviewed: https:/ /review. openstack. org/97496 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=3c7481f7072 63073ee72d84b17 b0d1e407382116
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3c7481f70726307 3ee72d84b17b0d1 e407382116
Author: Ken'ichi Ohmichi <email address hidden>
Date: Tue Jun 3 22:19:02 2014 +0900
Wait for server activations for the updated servers
In test_list_ servers_ by_changes_ since, Tempest tries to get a server
list with changes-since parameter. The test expects we can get all
servers with the parameter, but sometimes we could not get it and the
gate tests failed.
On "create a server" API Nova creates a DB record of the server as
the first step, then updates the record by each step(scheduling,
networking, etc.) during the server creation. If the test runs just
after the DB record creation, the record is not updated and "get a
server list" API with changes-since parameter does not contain the
server. As the result, the test fails.
This patch makes the test wait for server activations to avoid the
non-updated servers.
Change-Id: I380ae2030da794 c4f8fcfd6347f9c be7f75b5c28
Closes-Bug: #1254238