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
)
" 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"
name=NAME_VM_2,
flavor=flavor,
image=image,
- # nics = [{"net-id": network_id, "v4-fixed-ip": IP_2}],
nics=[{"port-id": port_id2}]
)
# 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
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,