IPv6: don't check access to metadata for IPv6 VM 77/56977/4
authorValentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
Fri, 12 May 2017 16:14:57 +0000 (18:14 +0200)
committerJamo Luhrsen <jluhrsen@redhat.com>
Fri, 12 May 2017 23:12:25 +0000 (23:12 +0000)
If VM has only IPv6 address, don't check its access to neutron-metadata
service, because actually there is no any IPv6 support, see [0] for any
details.

[0] https://review.openstack.org/#/c/315604/

Change-Id: I4c69d71994179f8ded91fba141659cc86d279b62
Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
csit/libraries/OpenStackOperations.robot

index 8005a9331a102d290c56a865bcd9ba8dfe410647..d97744686eb4e54f71e64d3ffb75821f0e83c201 100644 (file)
@@ -504,7 +504,8 @@ Test Operations From Vm Instance
     \    ${string_empty}=    Run Keyword And Return Status    Should Be Empty    ${dest_ip}
     \    Run Keyword If    ${string_empty}    Continue For Loop
     \    Run Keyword If    ${rcode}    Check Ping    ${dest_ip}    ttl=${ttl}
-    Run Keyword If    ${rcode}    Check Metadata Access
+    ${ethertype}=    Get Regexp Matches    ${src_ip}    ${IP_REGEX}
+    Run Keyword If    ${rcode} and ${ethertype}    Check Metadata Access
     [Teardown]    Exit From Vm Console
 
 Test Netcat Operations From Vm Instance