diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py b/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py index 2370282..ee1569f 100644 --- a/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py +++ b/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py @@ -206,7 +206,7 @@ class BaseSecGroupLoggingTest( if start_track: # tracks A value, before test traffic sent to be logged _track_value = int(hypervisor_ssh.exec_command( - "sudo grep acl_log {} | tail -n1 | cut -d '|' -f 2" + "sudo grep ovn_pinctrl0 {} | tail -n1 | cut -d '|' -f 2" .format(self.SG_LOG_FILE), timeout=120)) self._hypervisors_counts[hypervisor_ssh.host]['A'] = _track_value LOG.debug("Start log count value A on '%s' is %d", @@ -215,7 +215,7 @@ class BaseSecGroupLoggingTest( # tracks B value, after test traffic sent to be logged # (extracts logs from file right away, to avoid race conditions). cmd_outputs = hypervisor_ssh.exec_command( - "sudo grep acl_log {0}".format(self.SG_LOG_FILE), + "sudo grep ovn_pinctrl0 {0}".format(self.SG_LOG_FILE), timeout=120).splitlines() b = self._hypervisors_counts[hypervisor_ssh.host]['B'] = int( cmd_outputs[-1].split("|")[1]) @@ -674,6 +674,7 @@ class BaseSecGroupLoggingTest( ping_amount = 10 self.check_remote_connectivity( vm_a['ssh_client'], vm_b_internal_ip, ping_count=ping_amount) + time.sleep(5) self.retrieve_tracked_log(vm_a['hv_ssh_client']) if not same_compute: self.retrieve_tracked_log(vm_b['hv_ssh_client'])