2025-07-17 11:36:51,278 - INFO - Domain Default found not creating 2025-07-17 11:36:51,457 - INFO - Project ctest-TestBasicPolicy-39367093 not found, creating it 2025-07-17 11:36:51,978 - INFO - Created Project:ctest-TestBasicPolicy-39367093, ID : d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:36:53,559 - INFO - ================================================================================ 2025-07-17 11:36:53,560 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-17 11:36:53,560 - 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-07-17 11:36:53,827 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with 2025-07-17 11:36:53,827 - INFO - Initial checks done. Running the testcase now 2025-07-17 11:36:53,827 - INFO - 2025-07-17 11:36:54,423 - DEBUG - Response for create_network : {'network': {'id': 'd8e30d82-c90e-45fd-9049-784afee98a94', 'name': 'ctest-vn-60842628', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-60842628'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 11:36:54,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd84f7e34-6fb0-41af-979a-15e7666dd507', 'name': '', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'network_id': 'd8e30d82-c90e-45fd-9049-784afee98a94', 'ip_version': 4, 'cidr': '216.38.76.0/26', 'allocation_pools': [{'start': '216.38.76.2', 'end': '216.38.76.62'}], 'gateway_ip': '216.38.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.38.76.2', 'tags': [], 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3'}} 2025-07-17 11:36:54,652 - INFO - Created VN ctest-vn-60842628 2025-07-17 11:36:54,704 - DEBUG - VN ctest-vn-60842628 UUID is d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:55,015 - DEBUG - Response for create_network : {'network': {'id': '0c29a07b-1f59-4622-a7be-b5c462d065f3', 'name': 'ctest-vn-75614471', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-75614471'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 11:36:55,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '3931b73a-7fe6-4430-a440-c85369e61c86', 'name': '', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'network_id': '0c29a07b-1f59-4622-a7be-b5c462d065f3', 'ip_version': 4, 'cidr': '188.242.232.192/26', 'allocation_pools': [{'start': '188.242.232.194', 'end': '188.242.232.254'}], 'gateway_ip': '188.242.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.242.232.194', 'tags': [], 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3'}} 2025-07-17 11:36:55,232 - INFO - Created VN ctest-vn-75614471 2025-07-17 11:36:55,288 - DEBUG - VN ctest-vn-75614471 UUID is 0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:55,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628, 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-39367093:ctest-vn-75614471, 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-07-17 11:36:55,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8e30d82-c90e-45fd-9049-784afee98a94', 'name': 'ctest-vn-60842628', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d84f7e34-6fb0-41af-979a-15e7666dd507'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-60842628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976']], 'subnet_ipam': [{'subnet_cidr': '216.38.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-17 11:36:55,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c29a07b-1f59-4622-a7be-b5c462d065f3', 'name': 'ctest-vn-75614471', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3931b73a-7fe6-4430-a440-c85369e61c86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-75614471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976']], 'subnet_ipam': [{'subnet_cidr': '188.242.232.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-17 11:36:56,152 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:36:56,464 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:36:56,501 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368 2025-07-17 11:36:56,518 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:36:56,599 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:56,612 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:56,624 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9 2025-07-17 11:36:56,634 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9 2025-07-17 11:36:56,643 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/322a008a-b0fc-41f9-9338-62bb06c3276c 2025-07-17 11:36:56,654 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-17 11:36:56,654 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:56,666 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9 2025-07-17 11:36:56,687 - INFO - Verified VN network id 9 for VN d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:56,687 - INFO - Verifications in API Server for VN ctest-vn-60842628 passed 2025-07-17 11:36:56,687 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:56,701 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9 2025-07-17 11:36:56,711 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9 2025-07-17 11:36:56,724 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/322a008a-b0fc-41f9-9338-62bb06c3276c 2025-07-17 11:36:56,745 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39367093', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15628349987275818493', 'uuid-lslong': '10396973478261131924'}, 'enable': 'true', 'created': '2025-07-17T11:36:54', 'last-modified': '2025-07-17T11:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040496'} 2025-07-17 11:36:56,753 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-17 11:36:56,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60842628 passed 2025-07-17 11:36:56,754 - DEBUG - ====Verifying policy data for ctest-vn-60842628 in API_Server ====== 2025-07-17 11:36:56,754 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:36:56,762 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368 2025-07-17 11:36:56,780 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:36:56,859 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94 2025-07-17 11:36:56,873 - DEBUG - ==>Verifying data for policy with id: 67c4d29f-a934-48d6-b7fc-7a4414133384, fqn: ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976'] 2025-07-17 11:36:56,873 - INFO - VN ctest-vn-60842628 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-17 11:36:56,873 - DEBUG - Verifying the vn in opserver 2025-07-17 11:36:56,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628 virtual network link through opserver 10.0.0.137 2025-07-17 11:36:56,873 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-07-17 11:36:57,170 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-07-17 11:36:57,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628?flat'} 2025-07-17 11:36:57,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628 is found in opserver 2025-07-17 11:36:57,258 - DEBUG - Do not have enough data to verify VN in agent 2025-07-17 11:36:57,265 - DEBUG - VRF ids for VN ctest-vn-60842628: {} 2025-07-17 11:36:57,265 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:36:57,275 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368 2025-07-17 11:36:57,293 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:36:57,372 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:57,386 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:57,397 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12 2025-07-17 11:36:57,406 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12 2025-07-17 11:36:57,415 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4849e537-263a-4e83-b12c-862c11ab1c39 2025-07-17 11:36:57,423 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-17 11:36:57,423 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:57,436 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12 2025-07-17 11:36:57,454 - INFO - Verified VN network id 10 for VN 0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:57,454 - INFO - Verifications in API Server for VN ctest-vn-75614471 passed 2025-07-17 11:36:57,454 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:57,465 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12 2025-07-17 11:36:57,474 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12 2025-07-17 11:36:57,483 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4849e537-263a-4e83-b12c-862c11ab1c39 2025-07-17 11:36:57,499 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39367093', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '876408053167638050', 'uuid-lslong': '12087298304985032179'}, 'enable': 'true', 'created': '2025-07-17T11:36:54', 'last-modified': '2025-07-17T11:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.532830'} 2025-07-17 11:36:57,507 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-17 11:36:57,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75614471 passed 2025-07-17 11:36:57,507 - DEBUG - ====Verifying policy data for ctest-vn-75614471 in API_Server ====== 2025-07-17 11:36:57,507 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:36:57,514 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368 2025-07-17 11:36:57,528 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:36:57,610 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3 2025-07-17 11:36:57,621 - DEBUG - ==>Verifying data for policy with id: 67c4d29f-a934-48d6-b7fc-7a4414133384, fqn: ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976'] 2025-07-17 11:36:57,621 - INFO - VN ctest-vn-75614471 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-17 11:36:57,621 - DEBUG - Verifying the vn in opserver 2025-07-17 11:36:57,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471 virtual network link through opserver 10.0.0.137 2025-07-17 11:36:57,621 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-07-17 11:36:57,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471?flat'} 2025-07-17 11:36:57,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471 is found in opserver 2025-07-17 11:36:57,647 - DEBUG - Do not have enough data to verify VN in agent 2025-07-17 11:36:57,653 - DEBUG - VRF ids for VN ctest-vn-75614471: {} 2025-07-17 11:36:57,729 - DEBUG - Services list from nova: [, , ] 2025-07-17 11:36:58,960 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3654-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3654-1) 2025-07-17 11:37:00,188 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3654-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3654-1) 2025-07-17 11:37:00,188 - INFO - Waiting for VM ctest-TestBasicPolicy-39367093-28411207 to be up.. 2025-07-17 11:37:00,276 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-17 11:37:05,394 - DEBUG - VM is in ACTIVE state now 2025-07-17 11:37:05,394 - INFO - VM name : ctest-TestBasicPolicy-39367093-28411207 2025-07-17 11:37:05,482 - DEBUG - VM ctest-TestBasicPolicy-39367093-28411207 ID is a4c245b3-2650-4eb2-8284-a03290a7959d 2025-07-17 11:37:05,509 - DEBUG - VM ctest-TestBasicPolicy-39367093-28411207 launched on Node cn-jenkins-deploy-platform-ansible-os-3654-1 2025-07-17 11:37:05,610 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/a4c245b3-2650-4eb2-8284-a03290a7959d 2025-07-17 11:37:05,627 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/04178aeb-bd42-4ffd-852c-30651cd9831b 2025-07-17 11:37:08,875 - 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 1000ms') 2025-07-17 11:37:08,875 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39367093-28411207 failed! 2025-07-17 11:37:08,933 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628 is 216.38.76.1 and allocation pool is NOT set 2025-07-17 11:37:10,997 - 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=7.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.07 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.068/4.315/7.562/3.247 ms') 2025-07-17 11:37:10,997 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39367093-28411207 passed 2025-07-17 11:37:11,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 11:37:11,157 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39367093-28411207, IP 216.38.76.3, Port 22 2025-07-17 11:37:11,322 - DEBUG - VM ctest-TestBasicPolicy-39367093-28411207 is ready for SSH connections 2025-07-17 11:37:11,323 - INFO - Waiting for VM ctest-TestBasicPolicy-39367093-23386933 to be up.. 2025-07-17 11:37:11,406 - DEBUG - VM is in ACTIVE state now 2025-07-17 11:37:11,406 - INFO - VM name : ctest-TestBasicPolicy-39367093-23386933 2025-07-17 11:37:11,495 - DEBUG - VM ctest-TestBasicPolicy-39367093-23386933 ID is 64a4ce99-e6d8-4261-9c1e-21ba769debef 2025-07-17 11:37:11,496 - DEBUG - VM ctest-TestBasicPolicy-39367093-23386933 launched on Node cn-jenkins-deploy-platform-ansible-os-3654-1 2025-07-17 11:37:11,586 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/64a4ce99-e6d8-4261-9c1e-21ba769debef 2025-07-17 11:37:11,596 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/daee0e5a-bcbe-494c-bf5c-d71368f42466 2025-07-17 11:37:12,855 - 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=3.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.09 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.094/2.108/3.123/1.014 ms') 2025-07-17 11:37:12,856 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-39367093-23386933 passed 2025-07-17 11:37:13,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 11:37:13,029 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39367093-23386933, IP 188.242.232.195, Port 22 2025-07-17 11:37:13,095 - 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-07-17 11:37:13,202 - DEBUG - VM ctest-TestBasicPolicy-39367093-23386933 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-17 11:37:18,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 11:37:18,203 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39367093-23386933, IP 188.242.232.195, Port 22 2025-07-17 11:37:18,375 - DEBUG - VM ctest-TestBasicPolicy-39367093-23386933 is ready for SSH connections 2025-07-17 11:37:18,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 11:37:18,375 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.242.232.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-07-17 11:37:18,375 - DEBUG - ping -s 56 -c 3 -W 1 188.242.232.195 2025-07-17 11:37:22,107 - DEBUG - PING 188.242.232.195 (188.242.232.195): 56 data bytes 64 bytes from 188.242.232.195: seq=0 ttl=63 time=4.620 ms 64 bytes from 188.242.232.195: seq=1 ttl=63 time=1.098 ms 64 bytes from 188.242.232.195: seq=2 ttl=63 time=1.338 ms --- 188.242.232.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.098/2.352/4.620 ms 2025-07-17 11:37:22,107 - INFO - Ping to IP 188.242.232.195 from VM ctest-TestBasicPolicy-39367093-28411207 passed 2025-07-17 11:37:22,316 - DEBUG - Policy Update Response {"network-policy": {"uuid": "67c4d29f-a934-48d6-b7fc-7a4414133384", "href": "http://10.0.0.137:8082/network-policy/67c4d29f-a934-48d6-b7fc-7a4414133384"}} 2025-07-17 11:37:22,316 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 11:37:22,317 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.242.232.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-07-17 11:37:22,317 - DEBUG - ping -s 56 -c 3 -W 1 188.242.232.195 2025-07-17 11:37:25,535 - DEBUG - PING 188.242.232.195 (188.242.232.195): 56 data bytes 64 bytes from 188.242.232.195: seq=0 ttl=63 time=2.034 ms --- 188.242.232.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.034/2.034/2.034 ms 2025-07-17 11:37:25,536 - WARNING - Ping to IP 188.242.232.195 from VM ctest-TestBasicPolicy-39367093-28411207 failed 2025-07-17 11:37:25,536 - INFO - Deleting VM ctest-TestBasicPolicy-39367093-23386933 2025-07-17 11:37:25,611 - INFO - Deleting VM ctest-TestBasicPolicy-39367093-28411207 2025-07-17 11:37:26,052 - INFO - Deleted policy ctest-policy-allow-all-01069976 2025-07-17 11:37:26,052 - INFO - Deleting VN ctest-vn-75614471 2025-07-17 11:37:26,092 - DEBUG - VN 0c29a07b-1f59-4622-a7be-b5c462d065f3 still in use: Unable to complete operation on network 0c29a07b-1f59-4622-a7be-b5c462d065f3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-01c819b9-05af-4d50-b12a-d47a75625079'] 2025-07-17 11:37:26,092 - WARNING - Deleting VN ctest-vn-75614471 failed..Will retry 2025-07-17 11:37:28,239 - DEBUG - Response for deleting network () 2025-07-17 11:37:28,239 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12 2025-07-17 11:37:28,245 - DEBUG - Response Code: 404 2025-07-17 11:37:28,245 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:37:28,256 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368 2025-07-17 11:37:28,311 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:37:28,414 - INFO - Validated that VN ctest-vn-75614471 is not found in API Server 2025-07-17 11:37:28,426 - DEBUG - VN ctest-vn-75614471 is not present in Agent 10.0.0.137 2025-07-17 11:37:28,426 - INFO - Validated that VN ctest-vn-75614471 is not in any agent 2025-07-17 11:37:28,444 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75614471 info 2025-07-17 11:37:28,444 - INFO - Deleting VN ctest-vn-60842628 2025-07-17 11:37:28,571 - DEBUG - Response for deleting network () 2025-07-17 11:37:28,571 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9 2025-07-17 11:37:28,581 - DEBUG - Response Code: 404 2025-07-17 11:37:28,581 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-17 11:37:28,588 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368 2025-07-17 11:37:28,644 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3 2025-07-17 11:37:28,721 - INFO - Validated that VN ctest-vn-60842628 is not found in API Server 2025-07-17 11:37:28,736 - DEBUG - VN ctest-vn-60842628 is not present in Agent 10.0.0.137 2025-07-17 11:37:28,736 - INFO - Validated that VN ctest-vn-60842628 is not in any agent 2025-07-17 11:37:28,758 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60842628 info 2025-07-17 11:37:29,027 - DEBUG - No XMPP flaps were noticed during the test
2025-07-17 11:37:29,028 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-07-17 11:37:29,028 - INFO - -------------------------------------------------------------------------------- 2025-07-17 11:37:29,740 - INFO - Deleted project: ctest-TestBasicPolicy-39367093, ID : d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3