Skip wait_for_guest_os_ready during check-resources

Some tests from some CI jobs fail during check-resources test steps
because the console output is empty and the wait_for_guest_os_ready
method fails due to that.

Change-Id: Id0150f10cdf008fd7501bbedeff3209b3aa90cd0
This commit is contained in:
Eduardo Olivares 2023-09-20 08:55:01 +02:00
parent 2fc1b3b171
commit 1c1fb2d8e3

View File

@ -438,7 +438,14 @@ class CloudInitServerStackFixture(ServerStackFixture, ABC):
external=True, lock_path=tobiko.LOCK_DIR)
def setup_fixture(self):
super(CloudInitServerStackFixture, self).setup_fixture()
self.wait_for_guest_os_ready()
if config.get_bool_env('TOBIKO_PREVENT_CREATE'):
LOG.debug("skip wait_for_guest_os_ready during check-resources "
"steps because the console output may be empty in some "
"cases, such as hypervisor reboot")
else:
self.wait_for_guest_os_ready()
if self.has_floating_ip:
self.assert_is_reachable()
self.wait_for_cloud_init_done()