diff --git a/fuel_health/nmanager.py b/fuel_health/nmanager.py index d4d86c3a..bbe73d0e 100644 --- a/fuel_health/nmanager.py +++ b/fuel_health/nmanager.py @@ -540,7 +540,8 @@ class NovaNetworkScenarioTest(OfficialClientTest): def _ping_ip_address(self, ip_address, timeout, retries): def ping(): - cmd = "ping -q -c3 -w10 %s" % ip_address + cmd = "ping -q -c3 -w3 %s | grep 'received' |" \ + " grep -v '0 packets received'" % ip_address if self.host: try: @@ -581,7 +582,8 @@ class NovaNetworkScenarioTest(OfficialClientTest): except Exception as exc: LOG.debug(traceback.format_exc()) - command = "ping -q -c3 -w10 8.8.8.8" + command = "ping -q -c3 -w3 8.8.8.8 | grep 'received' |" \ + " grep -v '0 packets received'" return self.retry_command(retries[0], retries[1], ssh.exec_command_on_vm, diff --git a/fuel_health/tests/sanity/test_sanity_infrastructure.py b/fuel_health/tests/sanity/test_sanity_infrastructure.py index 917d6aaf..3859a41d 100644 --- a/fuel_health/tests/sanity/test_sanity_infrastructure.py +++ b/fuel_health/tests/sanity/test_sanity_infrastructure.py @@ -92,7 +92,8 @@ class SanityInfrastructureTest(nmanager.SanityChecksTest): if not self.computes: self.fail('There are no compute nodes') - cmd = "ping -q -c3 -w10 8.8.8.8" + cmd = "ping -q -c3 -w3 8.8.8.8 | grep 'received' |" \ + " grep -v '0 received'" ssh_client = SSHClient(self.computes[0], self.usr, diff --git a/fuel_health/tests/smoke/test_nova_create_instance_with_connectivity.py b/fuel_health/tests/smoke/test_nova_create_instance_with_connectivity.py index de7dd757..67787849 100644 --- a/fuel_health/tests/smoke/test_nova_create_instance_with_connectivity.py +++ b/fuel_health/tests/smoke/test_nova_create_instance_with_connectivity.py @@ -224,16 +224,16 @@ class TestNovaNetwork(nmanager.NovaNetworkScenarioTest): LOG.info('is address is {0}'.format(ip_address)) LOG.debug(ip_address) - self.verify(400, self._check_vm_connectivity, 5, + self.verify(250, self._check_vm_connectivity, 5, "VM connectivity doesn`t function properly.", 'VM connectivity checking', ip_address, - 30, (6, 60)) + 30, (6, 30)) - self.verify(400, self._check_connectivity_from_vm, + self.verify(250, self._check_connectivity_from_vm, 6, ("Connectivity to 8.8.8.8 from the VM doesn`t " "function properly."), 'public connectivity checking from VM', ip_address, - 30, (6, 60)) + 30, (6, 30)) self.verify(10, self.compute_client.servers.remove_floating_ip, 7, "Floating IP cannot be removed.",