2025-08-12 17:19:59,548 - INFO - Domain Default found not creating 2025-08-12 17:19:59,664 - INFO - Project ctest-TestBasicPolicy-15391595 not found, creating it 2025-08-12 17:20:00,175 - INFO - Created Project:ctest-TestBasicPolicy-15391595, ID : 01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:01,561 - INFO - ================================================================================ 2025-08-12 17:20:01,561 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-12 17:20:01,561 - 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-08-12 17:20:01,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-12 17:20:01,816 - INFO - Initial checks done. Running the testcase now 2025-08-12 17:20:01,817 - INFO - 2025-08-12 17:20:02,326 - DEBUG - Response for create_network : {'network': {'id': 'dd60b941-f3f7-4547-9776-e0eee462ea35', 'name': 'ctest-vn-46608786', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-46608786'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 17:20:02,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '2579a178-c2d0-4bab-8c14-0ba0cdc2b075', 'name': '', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'network_id': 'dd60b941-f3f7-4547-9776-e0eee462ea35', 'ip_version': 4, 'cidr': '165.247.74.64/26', 'allocation_pools': [{'start': '165.247.74.66', 'end': '165.247.74.126'}], 'gateway_ip': '165.247.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.247.74.66', 'tags': [], 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe'}} 2025-08-12 17:20:02,493 - INFO - Created VN ctest-vn-46608786 2025-08-12 17:20:02,542 - DEBUG - VN ctest-vn-46608786 UUID is dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:02,855 - DEBUG - Response for create_network : {'network': {'id': '03c6556b-8e46-48df-86d3-2bc5fb1c8025', 'name': 'ctest-vn-68401306', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-68401306'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 17:20:03,064 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe592acb-994d-41ba-b5de-37d19a05a398', 'name': '', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'network_id': '03c6556b-8e46-48df-86d3-2bc5fb1c8025', 'ip_version': 4, 'cidr': '152.210.208.64/26', 'allocation_pools': [{'start': '152.210.208.66', 'end': '152.210.208.126'}], 'gateway_ip': '152.210.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.210.208.66', 'tags': [], 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe'}} 2025-08-12 17:20:03,080 - INFO - Created VN ctest-vn-68401306 2025-08-12 17:20:03,130 - DEBUG - VN ctest-vn-68401306 UUID is 03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:03,274 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786, 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-15391595:ctest-vn-68401306, 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-08-12 17:20:03,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd60b941-f3f7-4547-9776-e0eee462ea35', 'name': 'ctest-vn-46608786', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2579a178-c2d0-4bab-8c14-0ba0cdc2b075'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-46608786'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318']], 'subnet_ipam': [{'subnet_cidr': '165.247.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 17:20:03,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03c6556b-8e46-48df-86d3-2bc5fb1c8025', 'name': 'ctest-vn-68401306', 'tenant_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'project_id': '01896d7418b348df9ed2a23c4b8cd2fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe592acb-994d-41ba-b5de-37d19a05a398'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-vn-68401306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318']], 'subnet_ipam': [{'subnet_cidr': '152.210.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 17:20:03,935 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:04,225 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:04,250 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:20:04,264 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:04,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:04,347 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:04,355 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2 2025-08-12 17:20:04,361 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2 2025-08-12 17:20:04,366 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/627c7221-96f0-4454-9e5e-af0d0b231e7f 2025-08-12 17:20:04,372 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 17:20:04,372 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:04,379 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2 2025-08-12 17:20:04,391 - INFO - Verified VN network id 11 for VN dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:04,391 - INFO - Verifications in API Server for VN ctest-vn-46608786 passed 2025-08-12 17:20:04,391 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:04,399 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2 2025-08-12 17:20:04,405 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2 2025-08-12 17:20:04,411 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/627c7221-96f0-4454-9e5e-af0d0b231e7f 2025-08-12 17:20:04,421 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15391595', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15951953573063378247', 'uuid-lslong': '10914158063617501749'}, 'enable': 'true', 'created': '2025-08-12T17:20:02', 'last-modified': '2025-08-12T17:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886755'} 2025-08-12 17:20:04,427 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 17:20:04,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46608786 passed 2025-08-12 17:20:04,427 - DEBUG - ====Verifying policy data for ctest-vn-46608786 in API_Server ====== 2025-08-12 17:20:04,427 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:04,432 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:20:04,442 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:04,509 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd60b941-f3f7-4547-9776-e0eee462ea35 2025-08-12 17:20:04,518 - DEBUG - ==>Verifying data for policy with id: 525c1d27-c7a5-42bd-a310-a300c4852491, fqn: ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318'] 2025-08-12 17:20:04,518 - INFO - VN ctest-vn-46608786 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 17:20:04,518 - DEBUG - Verifying the vn in opserver 2025-08-12 17:20:04,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786 virtual network link through opserver 10.0.0.254 2025-08-12 17:20:04,518 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 17:20:04,804 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 17:20:04,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786?flat'} 2025-08-12 17:20:04,850 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786 is found in opserver 2025-08-12 17:20:04,861 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 17:20:04,865 - DEBUG - VRF ids for VN ctest-vn-46608786: {} 2025-08-12 17:20:04,865 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:04,870 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:20:04,880 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:04,952 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:04,963 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:04,972 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a 2025-08-12 17:20:04,978 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a 2025-08-12 17:20:04,984 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5004a877-c7bf-44d4-a52a-9e3fa0e60cee 2025-08-12 17:20:04,989 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-12 17:20:04,989 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:04,997 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a 2025-08-12 17:20:05,009 - INFO - Verified VN network id 12 for VN 03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:05,009 - INFO - Verifications in API Server for VN ctest-vn-68401306 passed 2025-08-12 17:20:05,009 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:05,018 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a 2025-08-12 17:20:05,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a 2025-08-12 17:20:05,030 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5004a877-c7bf-44d4-a52a-9e3fa0e60cee 2025-08-12 17:20:05,041 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15391595', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '271998747939326175', 'uuid-lslong': '9715156950489792549'}, 'enable': 'true', 'created': '2025-08-12T17:20:02', 'last-modified': '2025-08-12T17:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289299'} 2025-08-12 17:20:05,046 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-12 17:20:05,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68401306 passed 2025-08-12 17:20:05,047 - DEBUG - ====Verifying policy data for ctest-vn-68401306 in API_Server ====== 2025-08-12 17:20:05,047 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:05,053 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:20:05,063 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:05,134 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/03c6556b-8e46-48df-86d3-2bc5fb1c8025 2025-08-12 17:20:05,145 - DEBUG - ==>Verifying data for policy with id: 525c1d27-c7a5-42bd-a310-a300c4852491, fqn: ['default-domain', 'ctest-TestBasicPolicy-15391595', 'ctest-policy-allow-all-16770318'] 2025-08-12 17:20:05,146 - INFO - VN ctest-vn-68401306 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 17:20:05,146 - DEBUG - Verifying the vn in opserver 2025-08-12 17:20:05,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306 virtual network link through opserver 10.0.0.254 2025-08-12 17:20:05,146 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 17:20:05,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306?flat'} 2025-08-12 17:20:05,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-68401306 is found in opserver 2025-08-12 17:20:05,166 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 17:20:05,171 - DEBUG - VRF ids for VN ctest-vn-68401306: {} 2025-08-12 17:20:05,219 - DEBUG - Services list from nova: [, , ] 2025-08-12 17:20:06,187 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3836-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3836-1) 2025-08-12 17:20:07,267 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3836-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3836-1) 2025-08-12 17:20:07,267 - INFO - Waiting for VM ctest-TestBasicPolicy-15391595-69068473 to be up.. 2025-08-12 17:20:07,342 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-12 17:20:12,407 - DEBUG - VM is in ACTIVE state now 2025-08-12 17:20:12,407 - INFO - VM name : ctest-TestBasicPolicy-15391595-69068473 2025-08-12 17:20:12,466 - DEBUG - VM ctest-TestBasicPolicy-15391595-69068473 ID is 1acba247-3ea0-4fa4-ac77-8461cdf09a88 2025-08-12 17:20:12,484 - DEBUG - VM ctest-TestBasicPolicy-15391595-69068473 launched on Node cn-jenkins-deploy-platform-ansible-os-3836-1 2025-08-12 17:20:12,546 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/1acba247-3ea0-4fa4-ac77-8461cdf09a88 2025-08-12 17:20:12,554 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/07c73fde-549d-4aa5-9040-4b7056a01ee7 2025-08-12 17:20:15,800 - 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 1013ms') 2025-08-12 17:20:15,800 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15391595-69068473 failed! 2025-08-12 17:20:15,855 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15391595:ctest-vn-46608786 is 165.247.74.65 and allocation pool is NOT set 2025-08-12 17:20:17,910 - 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=2.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.353 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.353/1.541/2.729/1.188 ms') 2025-08-12 17:20:17,910 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15391595-69068473 passed 2025-08-12 17:20:18,059 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-12 17:20:18,059 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15391595-69068473, IP 165.247.74.67, Port 22 2025-08-12 17:20:18,210 - DEBUG - VM ctest-TestBasicPolicy-15391595-69068473 is ready for SSH connections 2025-08-12 17:20:18,210 - INFO - Waiting for VM ctest-TestBasicPolicy-15391595-18158863 to be up.. 2025-08-12 17:20:18,273 - DEBUG - VM is in ACTIVE state now 2025-08-12 17:20:18,273 - INFO - VM name : ctest-TestBasicPolicy-15391595-18158863 2025-08-12 17:20:18,334 - DEBUG - VM ctest-TestBasicPolicy-15391595-18158863 ID is 2b48e48e-41de-47db-82a4-fa89b3c7e091 2025-08-12 17:20:18,334 - DEBUG - VM ctest-TestBasicPolicy-15391595-18158863 launched on Node cn-jenkins-deploy-platform-ansible-os-3836-1 2025-08-12 17:20:18,392 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/2b48e48e-41de-47db-82a4-fa89b3c7e091 2025-08-12 17:20:18,399 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ba2e24f1-ba95-4d3b-a94d-d0444b451d54 2025-08-12 17:20:19,624 - 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=2.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.346 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.346/1.451/2.556/1.105 ms') 2025-08-12 17:20:19,624 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15391595-18158863 passed 2025-08-12 17:20:19,770 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-12 17:20:19,771 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15391595-18158863, IP 152.210.208.67, Port 22 2025-08-12 17:20:19,922 - DEBUG - VM ctest-TestBasicPolicy-15391595-18158863 is ready for SSH connections 2025-08-12 17:20:19,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-12 17:20:19,923 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 152.210.208.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-12 17:20:19,923 - DEBUG - ping -s 56 -c 3 -W 1 152.210.208.67 2025-08-12 17:20:23,967 - DEBUG - PING 152.210.208.67 (152.210.208.67): 56 data bytes 64 bytes from 152.210.208.67: seq=0 ttl=63 time=3.174 ms 64 bytes from 152.210.208.67: seq=1 ttl=63 time=0.798 ms 64 bytes from 152.210.208.67: seq=2 ttl=63 time=0.664 ms --- 152.210.208.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.664/1.545/3.174 ms 2025-08-12 17:20:23,967 - INFO - Ping to IP 152.210.208.67 from VM ctest-TestBasicPolicy-15391595-69068473 passed 2025-08-12 17:20:24,138 - DEBUG - Policy Update Response {"network-policy": {"uuid": "525c1d27-c7a5-42bd-a310-a300c4852491", "href": "http://10.0.0.254:8082/network-policy/525c1d27-c7a5-42bd-a310-a300c4852491"}} 2025-08-12 17:20:24,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-12 17:20:24,139 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 152.210.208.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-12 17:20:24,139 - DEBUG - ping -s 56 -c 3 -W 1 152.210.208.67 2025-08-12 17:20:27,331 - DEBUG - PING 152.210.208.67 (152.210.208.67): 56 data bytes 64 bytes from 152.210.208.67: seq=0 ttl=63 time=1.118 ms --- 152.210.208.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.118/1.118/1.118 ms 2025-08-12 17:20:27,331 - WARNING - Ping to IP 152.210.208.67 from VM ctest-TestBasicPolicy-15391595-69068473 failed 2025-08-12 17:20:27,331 - INFO - Deleting VM ctest-TestBasicPolicy-15391595-18158863 2025-08-12 17:20:27,391 - INFO - Deleting VM ctest-TestBasicPolicy-15391595-69068473 2025-08-12 17:20:27,740 - INFO - Deleted policy ctest-policy-allow-all-16770318 2025-08-12 17:20:27,740 - INFO - Deleting VN ctest-vn-68401306 2025-08-12 17:20:27,769 - DEBUG - VN 03c6556b-8e46-48df-86d3-2bc5fb1c8025 still in use: Unable to complete operation on network 03c6556b-8e46-48df-86d3-2bc5fb1c8025. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ce09c1eb-a0fd-45c1-804b-e375cde1cb86'] 2025-08-12 17:20:27,769 - WARNING - Deleting VN ctest-vn-68401306 failed..Will retry 2025-08-12 17:20:29,856 - DEBUG - Response for deleting network () 2025-08-12 17:20:29,857 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11784b51-d7fa-42aa-80fc-d36f1d83412a 2025-08-12 17:20:29,861 - DEBUG - Response Code: 404 2025-08-12 17:20:29,861 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:29,869 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:20:29,924 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:29,992 - INFO - Validated that VN ctest-vn-68401306 is not found in API Server 2025-08-12 17:20:30,001 - DEBUG - VN ctest-vn-68401306 is not present in Agent 10.0.0.254 2025-08-12 17:20:30,001 - INFO - Validated that VN ctest-vn-68401306 is not in any agent 2025-08-12 17:20:30,015 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68401306 info 2025-08-12 17:20:30,015 - INFO - Deleting VN ctest-vn-46608786 2025-08-12 17:20:30,114 - DEBUG - Response for deleting network () 2025-08-12 17:20:30,114 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46a2b2b0-d90f-4e32-aa58-4b9fa2b6a1e2 2025-08-12 17:20:30,120 - DEBUG - Response Code: 404 2025-08-12 17:20:30,120 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:20:30,125 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:20:30,185 - DEBUG - Requesting: http://10.0.0.254:8082/project/01896d74-18b3-48df-9ed2-a23c4b8cd2fe 2025-08-12 17:20:30,259 - INFO - Validated that VN ctest-vn-46608786 is not found in API Server 2025-08-12 17:20:30,270 - DEBUG - VN ctest-vn-46608786 is not present in Agent 10.0.0.254 2025-08-12 17:20:30,270 - INFO - Validated that VN ctest-vn-46608786 is not in any agent 2025-08-12 17:20:30,287 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46608786 info 2025-08-12 17:20:30,544 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 17:20:30,544 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-08-12 17:20:30,544 - INFO - -------------------------------------------------------------------------------- 2025-08-12 17:20:31,181 - INFO - Deleted project: ctest-TestBasicPolicy-15391595, ID : 01896d74-18b3-48df-9ed2-a23c4b8cd2fe