commit | 51c56f219e47662ec5fc2346779a1c68d8e23052 | [log] [tgz] |
---|---|---|
author | Dan Smith <dansmith@redhat.com> | Thu Apr 27 15:49:10 2023 -0700 |
committer | Dan Smith <dansmith@redhat.com> | Fri May 05 06:46:16 2023 -0700 |
tree | a282e58dbc755536a86985a57f09ad17f247594f | |
parent | 9f1f4b88e1505bfd44a4346e0fd831da29ff914f [diff] [blame] |
Wait for servers to be SSHABLE This is necessary to make sure we don't miss an attach or detach event in the instance. Depends-On: https://review.opendev.org/c/openstack/tempest/+/882342 Change-Id: I4cb8af79d6d474b28e96d7b2c385ed8e5ba9c1d7
diff --git a/cinder_tempest_plugin/api/volume/base.py b/cinder_tempest_plugin/api/volume/base.py index f948a93..ea6bd2e 100644 --- a/cinder_tempest_plugin/api/volume/base.py +++ b/cinder_tempest_plugin/api/volume/base.py
@@ -138,6 +138,11 @@ 'name', data_utils.rand_name(self.__class__.__name__ + '-instance')) + if wait_until == 'SSHABLE' and not kwargs.get('validation_resources'): + kwargs['validation_resources'] = ( + self.get_test_validation_resources(self.os_primary)) + kwargs['validatable'] = True + tenant_network = self.get_tenant_network() body, _ = compute.create_test_server( self.os_primary,