ServerCfnInitTestJSON wait for stack complete before ssh
ssh connection has a default timeout of 300 seconds but
boot times of ~250 seconds have been observed so this is
failing for a proportion of runs.
This change waits for the entire stack to be in CREATE_COMPLETE
instead of just the server resource. This means the ssh daemon
will definitely be running when ssh is attempted.
Change-Id: Iab1c797b456c6bd46283a7348896a79ebc41d7e1
Closes-Bug: #1288993
diff --git a/tempest/api/orchestration/stacks/test_server_cfn_init.py b/tempest/api/orchestration/stacks/test_server_cfn_init.py
index 5130f87..7e8bc2d 100644
--- a/tempest/api/orchestration/stacks/test_server_cfn_init.py
+++ b/tempest/api/orchestration/stacks/test_server_cfn_init.py
@@ -154,8 +154,8 @@
sid = self.stack_identifier
rid = 'SmokeServer'
- # wait for server resource create to complete.
- self.client.wait_for_resource_status(sid, rid, 'CREATE_COMPLETE')
+ # wait for create to complete.
+ self.client.wait_for_stack_status(sid, 'CREATE_COMPLETE')
resp, body = self.client.get_resource(sid, rid)
self.assertEqual('CREATE_COMPLETE', body['resource_status'])