2025-10-22 16:16:48,124 - INFO - Reading existing Domain with UUID 46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:48,136 - INFO - Using existing domain ['admin_domain'](46535b60-2514-4548-ad8b-3c79fd57b8eb) 2025-10-22 16:16:48,330 - INFO - Project ctest-TestBasicPolicy-66728683 not found, creating it 2025-10-22 16:16:48,840 - INFO - Created Project:ctest-TestBasicPolicy-66728683, ID : 0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:16:50,517 - INFO - ================================================================================ 2025-10-22 16:16:50,517 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-22 16:16:50,517 - 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-10-22 16:16:50,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with 2025-10-22 16:16:50,906 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:16:50,907 - INFO - 2025-10-22 16:16:51,706 - DEBUG - Response for create_network : {'network': {'id': 'e1e3397f-13d3-4eb8-b692-e523d26792a0', 'name': 'ctest-vn-79085875', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-79085875'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 16:16:51,954 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1a489c9-306b-4ea4-9532-9787c6b5d6ac', 'name': '', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'network_id': 'e1e3397f-13d3-4eb8-b692-e523d26792a0', 'ip_version': 4, 'cidr': '205.1.155.64/26', 'allocation_pools': [{'start': '205.1.155.66', 'end': '205.1.155.126'}], 'gateway_ip': '205.1.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:16:51.846051', 'updated_at': '2025-10-22T16:16:51.846051', 'dns_server_address': '205.1.155.66', 'tags': [], 'project_id': '0aafd8f2159f466aa49c141e63e78599'}} 2025-10-22 16:16:52,019 - INFO - Created VN ctest-vn-79085875 2025-10-22 16:16:52,073 - DEBUG - VN ctest-vn-79085875 UUID is e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:52,579 - DEBUG - Response for create_network : {'network': {'id': '67865f55-36e4-4917-9942-3b79702080b4', 'name': 'ctest-vn-47630703', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-47630703'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 16:16:52,830 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e53c59b-f7b1-45ff-88fd-c236004e3e70', 'name': '', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'network_id': '67865f55-36e4-4917-9942-3b79702080b4', 'ip_version': 4, 'cidr': '106.32.186.128/26', 'allocation_pools': [{'start': '106.32.186.130', 'end': '106.32.186.190'}], 'gateway_ip': '106.32.186.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:16:52.727959', 'updated_at': '2025-10-22T16:16:52.727959', 'dns_server_address': '106.32.186.130', 'tags': [], 'project_id': '0aafd8f2159f466aa49c141e63e78599'}} 2025-10-22 16:16:52,895 - INFO - Created VN ctest-vn-47630703 2025-10-22 16:16:52,949 - DEBUG - VN ctest-vn-47630703 UUID is 67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:53,165 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703, 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-10-22 16:16:53,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1e3397f-13d3-4eb8-b692-e523d26792a0', 'name': 'ctest-vn-79085875', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1a489c9-306b-4ea4-9532-9787c6b5d6ac'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-79085875'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227']], 'subnet_ipam': [{'subnet_cidr': '205.1.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T16:16:51.624975', 'updated_at': '2025-10-22T16:16:51.861027'}} 2025-10-22 16:16:53,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67865f55-36e4-4917-9942-3b79702080b4', 'name': 'ctest-vn-47630703', 'tenant_id': '0aafd8f2159f466aa49c141e63e78599', 'project_id': '0aafd8f2159f466aa49c141e63e78599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e53c59b-f7b1-45ff-88fd-c236004e3e70'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-vn-47630703'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227']], 'subnet_ipam': [{'subnet_cidr': '106.32.186.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T16:16:52.505112', 'updated_at': '2025-10-22T16:16:52.742706'}} 2025-10-22 16:16:54,137 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:54,483 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:54,561 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:54,618 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:16:54,694 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:54,750 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:54,806 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f 2025-10-22 16:16:54,862 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f 2025-10-22 16:16:54,914 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/03795834-2185-4860-87e9-febda68153f6 2025-10-22 16:16:54,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 16:16:54,966 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:55,022 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f 2025-10-22 16:16:55,089 - INFO - Verified VN network id 11 for VN e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:55,090 - INFO - Verifications in API Server for VN ctest-vn-79085875 passed 2025-10-22 16:16:55,090 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:55,146 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f 2025-10-22 16:16:55,202 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f 2025-10-22 16:16:55,254 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/03795834-2185-4860-87e9-febda68153f6 2025-10-22 16:16:55,354 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66728683', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16276916696203349688', 'uuid-lslong': '13155829403519259296'}, 'enable': 'true', 'created': '2025-10-22T16:16:51', 'last-modified': '2025-10-22T16:16:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.813539'} 2025-10-22 16:16:55,407 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 16:16:55,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79085875 passed 2025-10-22 16:16:55,407 - DEBUG - ====Verifying policy data for ctest-vn-79085875 in API_Server ====== 2025-10-22 16:16:55,407 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:55,461 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:55,518 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:16:55,590 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/e1e3397f-13d3-4eb8-b692-e523d26792a0 2025-10-22 16:16:55,646 - DEBUG - ==>Verifying data for policy with id: 73c257fa-b6a4-4061-b168-226d91dd8be6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227'] 2025-10-22 16:16:55,646 - INFO - VN ctest-vn-79085875 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 16:16:55,647 - DEBUG - Verifying the vn in opserver 2025-10-22 16:16:55,647 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875 virtual network link through opserver 10.0.0.242 2025-10-22 16:16:55,647 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 16:16:55,989 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 16:16:56,102 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875?flat'} 2025-10-22 16:16:56,102 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875 is found in opserver 2025-10-22 16:16:56,201 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 16:16:56,253 - DEBUG - VRF ids for VN ctest-vn-79085875: {} 2025-10-22 16:16:56,253 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:56,305 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:56,362 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:16:56,442 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:56,498 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:56,558 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0 2025-10-22 16:16:56,614 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0 2025-10-22 16:16:56,666 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/91e9268b-5140-4458-bc87-b6f15a1ebae8 2025-10-22 16:16:56,717 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 16:16:56,718 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:56,771 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0 2025-10-22 16:16:56,835 - INFO - Verified VN network id 12 for VN 67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:56,835 - INFO - Verifications in API Server for VN ctest-vn-47630703 passed 2025-10-22 16:16:56,835 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:56,894 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0 2025-10-22 16:16:56,946 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0 2025-10-22 16:16:57,006 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/91e9268b-5140-4458-bc87-b6f15a1ebae8 2025-10-22 16:16:57,110 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66728683', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7459754652383594775', 'uuid-lslong': '11043454629024137396'}, 'enable': 'true', 'created': '2025-10-22T16:16:52', 'last-modified': '2025-10-22T16:16:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.215391'} 2025-10-22 16:16:57,158 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 16:16:57,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47630703 passed 2025-10-22 16:16:57,159 - DEBUG - ====Verifying policy data for ctest-vn-47630703 in API_Server ====== 2025-10-22 16:16:57,159 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:57,213 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:57,274 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:16:57,350 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/67865f55-36e4-4917-9942-3b79702080b4 2025-10-22 16:16:57,410 - DEBUG - ==>Verifying data for policy with id: 73c257fa-b6a4-4061-b168-226d91dd8be6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66728683', 'ctest-policy-allow-all-98271227'] 2025-10-22 16:16:57,410 - INFO - VN ctest-vn-47630703 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 16:16:57,410 - DEBUG - Verifying the vn in opserver 2025-10-22 16:16:57,411 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703 virtual network link through opserver 10.0.0.242 2025-10-22 16:16:57,411 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 16:16:57,465 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703?flat'} 2025-10-22 16:16:57,465 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-47630703 is found in opserver 2025-10-22 16:16:57,569 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 16:16:57,617 - DEBUG - VRF ids for VN ctest-vn-47630703: {} 2025-10-22 16:16:57,685 - DEBUG - Services list from nova: [, , ] 2025-10-22 16:16:58,744 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-602-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-602-1) 2025-10-22 16:17:00,149 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-602-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-602-1) 2025-10-22 16:17:00,149 - INFO - Waiting for VM ctest-TestBasicPolicy-66728683-30156895 to be up.. 2025-10-22 16:17:00,300 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 16:17:05,443 - DEBUG - VM is in ACTIVE state now 2025-10-22 16:17:05,443 - INFO - VM name : ctest-TestBasicPolicy-66728683-30156895 2025-10-22 16:17:05,579 - DEBUG - VM ctest-TestBasicPolicy-66728683-30156895 ID is b4490479-f65c-4d1a-97af-6fa7979fde22 2025-10-22 16:17:05,605 - DEBUG - VM ctest-TestBasicPolicy-66728683-30156895 launched on Node cn-jenkins-deploy-platform-juju-os-602-1 2025-10-22 16:17:05,740 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine/b4490479-f65c-4d1a-97af-6fa7979fde22 2025-10-22 16:17:05,794 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine-interface/d07434ce-e7ff-412b-bca3-83476dd4d836 2025-10-22 16:17:09,281 - 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 1035ms') 2025-10-22 16:17:09,281 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66728683-30156895 failed! 2025-10-22 16:17:09,337 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-66728683:ctest-vn-79085875 is 205.1.155.65 and allocation pool is NOT set 2025-10-22 16:17:11,415 - 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=4.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.437 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.437/2.395/4.354/1.958 ms') 2025-10-22 16:17:11,416 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66728683-30156895 passed 2025-10-22 16:17:11,565 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:17:11,565 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66728683-30156895, IP 205.1.155.67, Port 22 2025-10-22 16:17:11,779 - DEBUG - VM ctest-TestBasicPolicy-66728683-30156895 is ready for SSH connections 2025-10-22 16:17:11,779 - INFO - Waiting for VM ctest-TestBasicPolicy-66728683-80403289 to be up.. 2025-10-22 16:17:11,911 - DEBUG - VM is in ACTIVE state now 2025-10-22 16:17:11,911 - INFO - VM name : ctest-TestBasicPolicy-66728683-80403289 2025-10-22 16:17:12,043 - DEBUG - VM ctest-TestBasicPolicy-66728683-80403289 ID is 969bf43a-8e30-400f-8fbe-f0df3ad039b7 2025-10-22 16:17:12,043 - DEBUG - VM ctest-TestBasicPolicy-66728683-80403289 launched on Node cn-jenkins-deploy-platform-juju-os-602-1 2025-10-22 16:17:12,169 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine/969bf43a-8e30-400f-8fbe-f0df3ad039b7 2025-10-22 16:17:12,226 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine-interface/91ebad59-502a-4f6f-8e58-94cd1e00154f 2025-10-22 16:17:13,675 - 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=6.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.73 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 = 1.734/4.123/6.512/2.389 ms') 2025-10-22 16:17:13,675 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-66728683-80403289 passed 2025-10-22 16:17:13,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:17:13,833 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66728683-80403289, IP 106.32.186.131, Port 22 2025-10-22 16:17:13,919 - 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-10-22 16:17:14,055 - DEBUG - VM ctest-TestBasicPolicy-66728683-80403289 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 16:17:19,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:17:19,056 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66728683-80403289, IP 106.32.186.131, Port 22 2025-10-22 16:17:19,271 - DEBUG - VM ctest-TestBasicPolicy-66728683-80403289 is ready for SSH connections 2025-10-22 16:17:19,272 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:17:19,272 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.32.186.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-22 16:17:19,272 - DEBUG - ping -s 56 -c 3 -W 1 106.32.186.131 2025-10-22 16:17:23,468 - DEBUG - PING 106.32.186.131 (106.32.186.131): 56 data bytes 64 bytes from 106.32.186.131: seq=0 ttl=63 time=3.717 ms 64 bytes from 106.32.186.131: seq=1 ttl=63 time=0.769 ms 64 bytes from 106.32.186.131: seq=2 ttl=63 time=0.978 ms --- 106.32.186.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.769/1.821/3.717 ms 2025-10-22 16:17:23,469 - INFO - Ping to IP 106.32.186.131 from VM ctest-TestBasicPolicy-66728683-30156895 passed 2025-10-22 16:17:23,653 - DEBUG - Policy Update Response {"network-policy": {"uuid": "73c257fa-b6a4-4061-b168-226d91dd8be6", "href": "https://10.0.0.242:8082/network-policy/73c257fa-b6a4-4061-b168-226d91dd8be6"}} 2025-10-22 16:17:23,653 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:17:23,653 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.32.186.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-22 16:17:23,653 - DEBUG - ping -s 56 -c 3 -W 1 106.32.186.131 2025-10-22 16:17:26,868 - DEBUG - PING 106.32.186.131 (106.32.186.131): 56 data bytes 64 bytes from 106.32.186.131: seq=0 ttl=63 time=1.596 ms --- 106.32.186.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.596/1.596/1.596 ms 2025-10-22 16:17:26,868 - WARNING - Ping to IP 106.32.186.131 from VM ctest-TestBasicPolicy-66728683-30156895 failed 2025-10-22 16:17:26,868 - INFO - Deleting VM ctest-TestBasicPolicy-66728683-80403289 2025-10-22 16:17:26,985 - INFO - Deleting VM ctest-TestBasicPolicy-66728683-30156895 2025-10-22 16:17:27,745 - INFO - Deleted policy ctest-policy-allow-all-98271227 2025-10-22 16:17:27,745 - INFO - Deleting VN ctest-vn-47630703 2025-10-22 16:17:27,880 - DEBUG - VN 67865f55-36e4-4917-9942-3b79702080b4 still in use: Unable to complete operation on network 67865f55-36e4-4917-9942-3b79702080b4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bdbb6e29-1b16-42a0-9ce2-784bf2e52391'] 2025-10-22 16:17:27,880 - WARNING - Deleting VN ctest-vn-47630703 failed..Will retry 2025-10-22 16:17:30,065 - DEBUG - Response for deleting network () 2025-10-22 16:17:30,065 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/0c04baf2-a1ac-4791-8dcd-d4bb15141ee0 2025-10-22 16:17:30,125 - DEBUG - Response Code: 404 2025-10-22 16:17:30,125 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:17:30,177 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:17:30,238 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:17:30,310 - INFO - Validated that VN ctest-vn-47630703 is not found in API Server 2025-10-22 16:17:30,409 - DEBUG - VN ctest-vn-47630703 is not present in Agent 10.0.0.242 2025-10-22 16:17:30,409 - INFO - Validated that VN ctest-vn-47630703 is not in any agent 2025-10-22 16:17:30,554 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47630703 info 2025-10-22 16:17:30,554 - INFO - Deleting VN ctest-vn-79085875 2025-10-22 16:17:30,707 - DEBUG - Response for deleting network () 2025-10-22 16:17:30,707 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/cc4beba7-f34c-4d64-960c-72d8bdbfd77f 2025-10-22 16:17:30,757 - DEBUG - Response Code: 404 2025-10-22 16:17:30,757 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:17:30,809 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:17:30,870 - DEBUG - Requesting: https://10.0.0.242:8082/project/0aafd8f2-159f-466a-a49c-141e63e78599 2025-10-22 16:17:30,958 - INFO - Validated that VN ctest-vn-79085875 is not found in API Server 2025-10-22 16:17:31,053 - DEBUG - VN ctest-vn-79085875 is not present in Agent 10.0.0.242 2025-10-22 16:17:31,053 - INFO - Validated that VN ctest-vn-79085875 is not in any agent 2025-10-22 16:17:31,206 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79085875 info 2025-10-22 16:17:31,606 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 16:17:31,606 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2025-10-22 16:17:31,606 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:17:32,336 - INFO - Deleted project: ctest-TestBasicPolicy-66728683, ID : 0aafd8f2-159f-466a-a49c-141e63e78599