Replace 'No vPing detected' by a better understandable message 35/8035/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 26 Jan 2016 13:23:10 +0000 (14:23 +0100)
committerMorgan Richomme <morgan.richomme@orange.com>
Tue, 26 Jan 2016 13:31:38 +0000 (13:31 +0000)
Some people got confused about that message although the test succeded

Change-Id: I9bdbb5545f06e85805f29b3dfca6156da86c3ffb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit c208b3c1104fc210d73eabf6361efbd3ea62e265)

testcases/vPing/CI/libraries/vPing.py
testcases/vPing/CI/libraries/vPing2.py

index dc2d2ab..0b09b6d 100644 (file)
@@ -412,7 +412,6 @@ def main():
         name=NAME_VM_2,
         flavor=flavor,
         image=image,
-        # nics = [{"net-id": network_id, "v4-fixed-ip": IP_2}],
         nics=[{"port-id": port_id2}],
         userdata=u
     )
@@ -459,7 +458,7 @@ def main():
                             " Waiting a bit...")
                 metadata_tries += 1
             else:
-                logger.debug("No ping detected yet...")
+                logger.debug("Pinging %s. Waiting for response..." % IP_2)
         sec += 1
 
     test_status = "NOK"
index 3b374da..3582235 100644 (file)
@@ -415,7 +415,6 @@ def main():
         name=NAME_VM_2,
         flavor=flavor,
         image=image,
-        # nics = [{"net-id": network_id, "v4-fixed-ip": IP_2}],
         nics=[{"port-id": port_id2}]
     )
 
@@ -504,8 +503,8 @@ def main():
         # do the scp only once
         (stdin, stdout, stderr) = ssh.exec_command(cmd)
         output = stdout.readlines()
-        for line in output:
-            print line
+        #for line in output:
+        #    print line
 
         # print "--"+console_log
         # report if the test is failed
@@ -522,7 +521,7 @@ def main():
             logger.info("Timeout reached.")
             break
         else:
-            logger.debug("No vPing detected...")
+            logger.debug("Pinging %s. Waiting for response..." % IP_2)
         sec += 1
 
     cleanup(nova_client, neutron_client, image_id, network_dic,