Wait for Openstack Query 11/90311/2
authorBrian Freeman <bf1936@att.com>
Fri, 21 Jun 2019 14:14:26 +0000 (09:14 -0500)
committerGary Wu <gary.wu@futurewei.com>
Fri, 21 Jun 2019 21:04:22 +0000 (21:04 +0000)
Issue-ID: INT-1116
Change-Id: I91eb1f560907b1a9e0beffeae525310e32897d7b
Signed-off-by: Brian Freeman <bf1936@att.com>
(cherry picked from commit f27f0043257aec0bf6ea2836b5a617fe029f1381)

robot/resources/test_templates/vnf_orchestration_test_template.robot

index 6b84a42..1467386 100644 (file)
@@ -282,7 +282,8 @@ Get Stack Keypairs
     [Documentation]  Get keypairs from openstack
     [Arguments]   ${stack}
     Run Openstack Auth Request    auth
-    ${stack_info}=    Get Stack Details    auth    ${stack}
+    # Openstack can be delayed in making stack available to API
+    ${stack_info}=    Wait Until Keyword Succeeds    300s    15s   Get Stack Details    auth    ${stack}
     Log    ${stack_info}
     ${stack_id}=    Get From Dictionary    ${stack_info}    id
     ${key_pair_status}   ${keypair_name}=   Run Keyword And Ignore Error   Get From Dictionary    ${stack_info}    key_name