2025-09-15 07:49:42,178 - INFO - Domain Default found not creating 2025-09-15 07:49:42,337 - INFO - Project ctest-TestBasicPolicy-31311498 not found, creating it 2025-09-15 07:49:42,812 - INFO - Created Project:ctest-TestBasicPolicy-31311498, ID : f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:49:44,433 - INFO - ================================================================================ 2025-09-15 07:49:44,433 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-15 07:49:44,434 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-09-15 07:49:44,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-15 07:49:44,697 - INFO - Initial checks done. Running the testcase now 2025-09-15 07:49:44,698 - INFO - 2025-09-15 07:49:45,298 - DEBUG - Response for create_network : {'network': {'id': '60afb075-904d-42fe-87f9-9d9bff24c004', 'name': 'ctest-vn-41667589', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-41667589'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 07:49:45,478 - DEBUG - Response for create_subnet : {'subnet': {'id': '5268630b-da13-46cc-8b8b-af768707a2be', 'name': '', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'network_id': '60afb075-904d-42fe-87f9-9d9bff24c004', 'ip_version': 4, 'cidr': '75.104.83.64/26', 'allocation_pools': [{'start': '75.104.83.66', 'end': '75.104.83.126'}], 'gateway_ip': '75.104.83.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.104.83.66', 'tags': [], 'project_id': 'f4c5de8358354a87b89a2db821d03b5c'}} 2025-09-15 07:49:45,498 - INFO - Created VN ctest-vn-41667589 2025-09-15 07:49:45,551 - DEBUG - VN ctest-vn-41667589 UUID is 60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:45,842 - DEBUG - Response for create_network : {'network': {'id': 'ef500f9f-a558-44c0-9b66-03466c440437', 'name': 'ctest-vn-91812921', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-91812921'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 07:49:46,003 - DEBUG - Response for create_subnet : {'subnet': {'id': '42cda8d4-ed0e-42c3-9b0f-eae3173cb84a', 'name': '', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'network_id': 'ef500f9f-a558-44c0-9b66-03466c440437', 'ip_version': 4, 'cidr': '204.234.242.64/26', 'allocation_pools': [{'start': '204.234.242.66', 'end': '204.234.242.126'}], 'gateway_ip': '204.234.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.234.242.66', 'tags': [], 'project_id': 'f4c5de8358354a87b89a2db821d03b5c'}} 2025-09-15 07:49:46,022 - INFO - Created VN ctest-vn-91812921 2025-09-15 07:49:46,075 - DEBUG - VN ctest-vn-91812921 UUID is ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:46,197 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-09-15 07:49:46,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60afb075-904d-42fe-87f9-9d9bff24c004', 'name': 'ctest-vn-41667589', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5268630b-da13-46cc-8b8b-af768707a2be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-41667589'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822']], 'subnet_ipam': [{'subnet_cidr': '75.104.83.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 07:49:46,770 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef500f9f-a558-44c0-9b66-03466c440437', 'name': 'ctest-vn-91812921', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42cda8d4-ed0e-42c3-9b0f-eae3173cb84a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-91812921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822']], 'subnet_ipam': [{'subnet_cidr': '204.234.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 07:49:46,923 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:47,261 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:47,290 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:47,304 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:49:47,375 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:47,386 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:47,395 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49 2025-09-15 07:49:47,402 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49 2025-09-15 07:49:47,409 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d894f965-7e67-4e14-aa8a-e31859e7f08e 2025-09-15 07:49:47,415 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 07:49:47,415 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:47,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49 2025-09-15 07:49:47,438 - INFO - Verified VN network id 11 for VN 60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:47,438 - INFO - Verifications in API Server for VN ctest-vn-41667589 passed 2025-09-15 07:49:47,438 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:47,447 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49 2025-09-15 07:49:47,455 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49 2025-09-15 07:49:47,462 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d894f965-7e67-4e14-aa8a-e31859e7f08e 2025-09-15 07:49:47,475 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31311498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6966981167544091390', 'uuid-lslong': '9798035757647314948'}, 'enable': 'true', 'created': '2025-09-15T07:49:45', 'last-modified': '2025-09-15T07:49:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000698'} 2025-09-15 07:49:47,482 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 07:49:47,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41667589 passed 2025-09-15 07:49:47,482 - DEBUG - ====Verifying policy data for ctest-vn-41667589 in API_Server ====== 2025-09-15 07:49:47,482 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:47,487 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:47,498 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:49:47,568 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004 2025-09-15 07:49:47,577 - DEBUG - ==>Verifying data for policy with id: 92df0ad0-fca9-4100-b5e7-f5cca453c343, fqn: ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822'] 2025-09-15 07:49:47,577 - INFO - VN ctest-vn-41667589 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 07:49:47,577 - DEBUG - Verifying the vn in opserver 2025-09-15 07:49:47,578 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589 virtual network link through opserver 10.0.0.22 2025-09-15 07:49:47,578 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-15 07:49:47,915 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-15 07:49:47,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589?flat'} 2025-09-15 07:49:47,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589 is found in opserver 2025-09-15 07:49:47,985 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 07:49:47,990 - DEBUG - VRF ids for VN ctest-vn-41667589: {} 2025-09-15 07:49:47,990 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:47,996 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:48,010 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:49:48,078 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:48,090 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:48,099 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72 2025-09-15 07:49:48,107 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72 2025-09-15 07:49:48,114 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd2db3d2-97de-426f-8be9-b12631f9c099 2025-09-15 07:49:48,120 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 07:49:48,120 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:48,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72 2025-09-15 07:49:48,144 - INFO - Verified VN network id 12 for VN ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:48,144 - INFO - Verifications in API Server for VN ctest-vn-91812921 passed 2025-09-15 07:49:48,144 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:48,153 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72 2025-09-15 07:49:48,159 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72 2025-09-15 07:49:48,166 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd2db3d2-97de-426f-8be9-b12631f9c099 2025-09-15 07:49:48,178 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31311498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17244300151549871296', 'uuid-lslong': '11197641124502307895'}, 'enable': 'true', 'created': '2025-09-15T07:49:45', 'last-modified': '2025-09-15T07:49:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474694'} 2025-09-15 07:49:48,184 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 07:49:48,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91812921 passed 2025-09-15 07:49:48,185 - DEBUG - ====Verifying policy data for ctest-vn-91812921 in API_Server ====== 2025-09-15 07:49:48,185 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:48,190 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:48,203 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:49:48,273 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437 2025-09-15 07:49:48,284 - DEBUG - ==>Verifying data for policy with id: 92df0ad0-fca9-4100-b5e7-f5cca453c343, fqn: ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822'] 2025-09-15 07:49:48,284 - INFO - VN ctest-vn-91812921 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 07:49:48,284 - DEBUG - Verifying the vn in opserver 2025-09-15 07:49:48,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921 virtual network link through opserver 10.0.0.22 2025-09-15 07:49:48,284 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-15 07:49:48,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921?flat'} 2025-09-15 07:49:48,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921 is found in opserver 2025-09-15 07:49:48,305 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 07:49:48,309 - DEBUG - VRF ids for VN ctest-vn-91812921: {} 2025-09-15 07:49:48,366 - DEBUG - Services list from nova: [, , ] 2025-09-15 07:49:49,475 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4111-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4111-1) 2025-09-15 07:49:50,705 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4111-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4111-1) 2025-09-15 07:49:50,705 - INFO - Waiting for VM ctest-TestBasicPolicy-31311498-52553529 to be up.. 2025-09-15 07:49:50,793 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-15 07:49:55,878 - DEBUG - VM is in ACTIVE state now 2025-09-15 07:49:55,878 - INFO - VM name : ctest-TestBasicPolicy-31311498-52553529 2025-09-15 07:49:55,961 - DEBUG - VM ctest-TestBasicPolicy-31311498-52553529 ID is ad73ab3b-e300-4d12-983c-be276c5a0b0f 2025-09-15 07:49:55,983 - DEBUG - VM ctest-TestBasicPolicy-31311498-52553529 launched on Node cn-jenkins-deploy-platform-ansible-os-4111-1 2025-09-15 07:49:56,065 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/ad73ab3b-e300-4d12-983c-be276c5a0b0f 2025-09-15 07:49:56,074 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/1fb08f91-802e-480c-83e7-10d646169245 2025-09-15 07:49:59,345 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1030ms') 2025-09-15 07:49:59,345 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31311498-52553529 failed! 2025-09-15 07:49:59,403 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589 is 75.104.83.65 and allocation pool is NOT set 2025-09-15 07:50:01,463 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.407 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.407/4.601/8.796/4.194 ms') 2025-09-15 07:50:01,464 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31311498-52553529 passed 2025-09-15 07:50:01,619 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 07:50:01,619 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31311498-52553529, IP 75.104.83.67, Port 22 2025-09-15 07:50:01,789 - DEBUG - VM ctest-TestBasicPolicy-31311498-52553529 is ready for SSH connections 2025-09-15 07:50:01,790 - INFO - Waiting for VM ctest-TestBasicPolicy-31311498-41038524 to be up.. 2025-09-15 07:50:01,876 - DEBUG - VM is in ACTIVE state now 2025-09-15 07:50:01,876 - INFO - VM name : ctest-TestBasicPolicy-31311498-41038524 2025-09-15 07:50:01,957 - DEBUG - VM ctest-TestBasicPolicy-31311498-41038524 ID is 4626aa68-9de5-4559-ba8a-86ec54b0dff6 2025-09-15 07:50:01,957 - DEBUG - VM ctest-TestBasicPolicy-31311498-41038524 launched on Node cn-jenkins-deploy-platform-ansible-os-4111-1 2025-09-15 07:50:02,036 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4626aa68-9de5-4559-ba8a-86ec54b0dff6 2025-09-15 07:50:02,050 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/e705e160-6f20-42d0-a98d-4f1261e94da6 2025-09-15 07:50:03,299 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.68 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.684/3.279/4.874/1.595 ms') 2025-09-15 07:50:03,299 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31311498-41038524 passed 2025-09-15 07:50:03,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 07:50:03,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31311498-41038524, IP 204.234.242.67, Port 22 2025-09-15 07:50:03,513 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-09-15 07:50:03,592 - DEBUG - VM ctest-TestBasicPolicy-31311498-41038524 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 07:50:08,593 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 07:50:08,593 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31311498-41038524, IP 204.234.242.67, Port 22 2025-09-15 07:50:08,765 - DEBUG - VM ctest-TestBasicPolicy-31311498-41038524 is ready for SSH connections 2025-09-15 07:50:08,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 07:50:08,765 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.234.242.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-15 07:50:08,765 - DEBUG - ping -s 56 -c 3 -W 1 204.234.242.67 2025-09-15 07:50:12,902 - DEBUG - PING 204.234.242.67 (204.234.242.67): 56 data bytes 64 bytes from 204.234.242.67: seq=0 ttl=63 time=4.451 ms 64 bytes from 204.234.242.67: seq=1 ttl=63 time=1.237 ms 64 bytes from 204.234.242.67: seq=2 ttl=63 time=1.053 ms --- 204.234.242.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.053/2.247/4.451 ms 2025-09-15 07:50:12,902 - INFO - Ping to IP 204.234.242.67 from VM ctest-TestBasicPolicy-31311498-52553529 passed 2025-09-15 07:50:13,082 - DEBUG - Policy Update Response {"network-policy": {"uuid": "92df0ad0-fca9-4100-b5e7-f5cca453c343", "href": "http://10.0.0.22:8082/network-policy/92df0ad0-fca9-4100-b5e7-f5cca453c343"}} 2025-09-15 07:50:13,083 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 07:50:13,083 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.234.242.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-15 07:50:13,083 - DEBUG - ping -s 56 -c 3 -W 1 204.234.242.67 2025-09-15 07:50:16,329 - DEBUG - PING 204.234.242.67 (204.234.242.67): 56 data bytes --- 204.234.242.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-15 07:50:16,329 - WARNING - Ping to IP 204.234.242.67 from VM ctest-TestBasicPolicy-31311498-52553529 failed 2025-09-15 07:50:16,329 - INFO - Deleting VM ctest-TestBasicPolicy-31311498-41038524 2025-09-15 07:50:16,405 - INFO - Deleting VM ctest-TestBasicPolicy-31311498-52553529 2025-09-15 07:50:16,810 - INFO - Deleted policy ctest-policy-allow-all-96141822 2025-09-15 07:50:16,811 - INFO - Deleting VN ctest-vn-91812921 2025-09-15 07:50:16,854 - DEBUG - VN ef500f9f-a558-44c0-9b66-03466c440437 still in use: Unable to complete operation on network ef500f9f-a558-44c0-9b66-03466c440437. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f251ff83-ac28-45da-b36d-244940e18c2b'] 2025-09-15 07:50:16,854 - WARNING - Deleting VN ctest-vn-91812921 failed..Will retry 2025-09-15 07:50:18,975 - DEBUG - Response for deleting network () 2025-09-15 07:50:18,975 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72 2025-09-15 07:50:18,983 - DEBUG - Response Code: 404 2025-09-15 07:50:18,983 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:50:18,989 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:50:19,046 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:50:19,121 - INFO - Validated that VN ctest-vn-91812921 is not found in API Server 2025-09-15 07:50:19,132 - DEBUG - VN ctest-vn-91812921 is not present in Agent 10.0.0.22 2025-09-15 07:50:19,132 - INFO - Validated that VN ctest-vn-91812921 is not in any agent 2025-09-15 07:50:19,147 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91812921 info 2025-09-15 07:50:19,147 - INFO - Deleting VN ctest-vn-41667589 2025-09-15 07:50:19,272 - DEBUG - Response for deleting network () 2025-09-15 07:50:19,272 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49 2025-09-15 07:50:19,278 - DEBUG - Response Code: 404 2025-09-15 07:50:19,279 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:50:19,285 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:50:19,340 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c 2025-09-15 07:50:19,416 - INFO - Validated that VN ctest-vn-41667589 is not found in API Server 2025-09-15 07:50:19,429 - DEBUG - VN ctest-vn-41667589 is not present in Agent 10.0.0.22 2025-09-15 07:50:19,429 - INFO - Validated that VN ctest-vn-41667589 is not in any agent 2025-09-15 07:50:19,445 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41667589 info 2025-09-15 07:50:19,701 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 07:50:19,701 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-09-15 07:50:19,701 - INFO - -------------------------------------------------------------------------------- 2025-09-15 07:50:20,416 - INFO - Deleted project: ctest-TestBasicPolicy-31311498, ID : f4c5de83-5835-4a87-b89a-2db821d03b5c