2025-10-09 10:33:30,039 - INFO - Reading existing Domain with UUID dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:30,050 - INFO - Using existing domain ['admin_domain'](dfa458d1-aaf5-4c71-9ede-e49be62ab991) 2025-10-09 10:33:30,267 - INFO - Project ctest-TestBasicPolicy-64599488 not found, creating it 2025-10-09 10:33:30,745 - INFO - Created Project:ctest-TestBasicPolicy-64599488, ID : 8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:33:32,463 - INFO - ================================================================================ 2025-10-09 10:33:32,464 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-09 10:33:32,464 - 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-09 10:33:32,861 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2025-10-09 10:33:32,861 - INFO - Initial checks done. Running the testcase now 2025-10-09 10:33:32,861 - INFO - 2025-10-09 10:33:33,680 - DEBUG - Response for create_network : {'network': {'id': '74ae0c86-782e-42db-b0a9-c84c1db05623', 'name': 'ctest-vn-10803880', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-10803880'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-09 10:33:33,940 - DEBUG - Response for create_subnet : {'subnet': {'id': '63d09f82-3519-4241-9503-ebc91ef6819c', 'name': '', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'network_id': '74ae0c86-782e-42db-b0a9-c84c1db05623', 'ip_version': 4, 'cidr': '64.134.232.128/26', 'allocation_pools': [{'start': '64.134.232.130', 'end': '64.134.232.190'}], 'gateway_ip': '64.134.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T10:33:33.841584', 'updated_at': '2025-10-09T10:33:33.841584', 'dns_server_address': '64.134.232.130', 'tags': [], 'project_id': '8052a03d135e41e98e90d99115908fa5'}} 2025-10-09 10:33:34,005 - INFO - Created VN ctest-vn-10803880 2025-10-09 10:33:34,063 - DEBUG - VN ctest-vn-10803880 UUID is 74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:34,543 - DEBUG - Response for create_network : {'network': {'id': 'be27253b-7fc9-449f-85b2-baaff3546293', 'name': 'ctest-vn-92527430', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-92527430'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-09 10:33:34,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '14a72c6e-30f3-4fb9-b661-d9e28a6b1de1', 'name': '', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'network_id': 'be27253b-7fc9-449f-85b2-baaff3546293', 'ip_version': 4, 'cidr': '68.131.2.0/26', 'allocation_pools': [{'start': '68.131.2.2', 'end': '68.131.2.62'}], 'gateway_ip': '68.131.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T10:33:34.649609', 'updated_at': '2025-10-09T10:33:34.649609', 'dns_server_address': '68.131.2.2', 'tags': [], 'project_id': '8052a03d135e41e98e90d99115908fa5'}} 2025-10-09 10:33:34,814 - INFO - Created VN ctest-vn-92527430 2025-10-09 10:33:34,867 - DEBUG - VN ctest-vn-92527430 UUID is be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:35,082 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880, 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-64599488:ctest-vn-92527430, 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-09 10:33:35,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74ae0c86-782e-42db-b0a9-c84c1db05623', 'name': 'ctest-vn-10803880', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63d09f82-3519-4241-9503-ebc91ef6819c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-10803880'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189']], 'subnet_ipam': [{'subnet_cidr': '64.134.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T10:33:33.593528', 'updated_at': '2025-10-09T10:33:33.856739'}} 2025-10-09 10:33:35,810 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be27253b-7fc9-449f-85b2-baaff3546293', 'name': 'ctest-vn-92527430', 'tenant_id': '8052a03d135e41e98e90d99115908fa5', 'project_id': '8052a03d135e41e98e90d99115908fa5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14a72c6e-30f3-4fb9-b661-d9e28a6b1de1'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-vn-92527430'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189']], 'subnet_ipam': [{'subnet_cidr': '68.131.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T10:33:34.471329', 'updated_at': '2025-10-09T10:33:34.663025'}} 2025-10-09 10:33:35,983 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:36,329 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:36,419 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:36,480 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:33:36,568 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:36,625 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:36,680 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc 2025-10-09 10:33:36,736 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc 2025-10-09 10:33:36,788 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/7cfd91c3-01e8-4deb-96ac-293f25fcd3e2 2025-10-09 10:33:36,840 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 10:33:36,840 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:36,897 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc 2025-10-09 10:33:36,964 - INFO - Verified VN network id 11 for VN 74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:36,964 - INFO - Verifications in API Server for VN ctest-vn-10803880 passed 2025-10-09 10:33:36,964 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:37,017 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc 2025-10-09 10:33:37,076 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc 2025-10-09 10:33:37,136 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/7cfd91c3-01e8-4deb-96ac-293f25fcd3e2 2025-10-09 10:33:37,240 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64599488', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8407671326028743387', 'uuid-lslong': '12729926050980582947'}, 'enable': 'true', 'created': '2025-10-09T10:33:33', 'last-modified': '2025-10-09T10:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.790911'} 2025-10-09 10:33:37,293 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 10:33:37,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10803880 passed 2025-10-09 10:33:37,293 - DEBUG - ====Verifying policy data for ctest-vn-10803880 in API_Server ====== 2025-10-09 10:33:37,293 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:37,344 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:37,400 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:33:37,480 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/74ae0c86-782e-42db-b0a9-c84c1db05623 2025-10-09 10:33:37,537 - DEBUG - ==>Verifying data for policy with id: b42c6f92-d836-43e9-9996-36cdcbd12915, fqn: ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189'] 2025-10-09 10:33:37,537 - INFO - VN ctest-vn-10803880 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 10:33:37,537 - DEBUG - Verifying the vn in opserver 2025-10-09 10:33:37,537 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880 virtual network link through opserver 10.0.0.33 2025-10-09 10:33:37,537 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 10:33:37,880 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 10:33:37,999 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880?flat'} 2025-10-09 10:33:37,999 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880 is found in opserver 2025-10-09 10:33:38,103 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 10:33:38,151 - DEBUG - VRF ids for VN ctest-vn-10803880: {} 2025-10-09 10:33:38,151 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:38,203 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:38,260 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:33:38,344 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:38,401 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:38,456 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6 2025-10-09 10:33:38,508 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6 2025-10-09 10:33:38,564 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/832b7f16-ad08-4dda-afe6-9adbe28a068e 2025-10-09 10:33:38,616 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 10:33:38,616 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:38,673 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6 2025-10-09 10:33:38,736 - INFO - Verified VN network id 12 for VN be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:38,736 - INFO - Verifications in API Server for VN ctest-vn-92527430 passed 2025-10-09 10:33:38,736 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:38,792 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6 2025-10-09 10:33:38,848 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6 2025-10-09 10:33:38,910 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/832b7f16-ad08-4dda-afe6-9adbe28a068e 2025-10-09 10:33:39,017 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64599488', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13701961328775218335', 'uuid-lslong': '9633967817763349139'}, 'enable': 'true', 'created': '2025-10-09T10:33:34', 'last-modified': '2025-10-09T10:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.225380'} 2025-10-09 10:33:39,072 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 10:33:39,073 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92527430 passed 2025-10-09 10:33:39,073 - DEBUG - ====Verifying policy data for ctest-vn-92527430 in API_Server ====== 2025-10-09 10:33:39,073 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:39,127 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:39,184 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:33:39,260 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/be27253b-7fc9-449f-85b2-baaff3546293 2025-10-09 10:33:39,317 - DEBUG - ==>Verifying data for policy with id: b42c6f92-d836-43e9-9996-36cdcbd12915, fqn: ['admin_domain', 'ctest-TestBasicPolicy-64599488', 'ctest-policy-allow-all-06588189'] 2025-10-09 10:33:39,317 - INFO - VN ctest-vn-92527430 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 10:33:39,317 - DEBUG - Verifying the vn in opserver 2025-10-09 10:33:39,317 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430 virtual network link through opserver 10.0.0.33 2025-10-09 10:33:39,317 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 10:33:39,375 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430?flat'} 2025-10-09 10:33:39,375 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-92527430 is found in opserver 2025-10-09 10:33:39,479 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 10:33:39,531 - DEBUG - VRF ids for VN ctest-vn-92527430: {} 2025-10-09 10:33:39,600 - DEBUG - Services list from nova: [, , ] 2025-10-09 10:33:40,708 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-587-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-587-1) 2025-10-09 10:33:42,001 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-587-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-587-1) 2025-10-09 10:33:42,001 - INFO - Waiting for VM ctest-TestBasicPolicy-64599488-62289999 to be up.. 2025-10-09 10:33:42,160 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 10:33:47,305 - DEBUG - VM is in ACTIVE state now 2025-10-09 10:33:47,305 - INFO - VM name : ctest-TestBasicPolicy-64599488-62289999 2025-10-09 10:33:47,443 - DEBUG - VM ctest-TestBasicPolicy-64599488-62289999 ID is 6f23488e-6ede-4d5c-82f0-086200465177 2025-10-09 10:33:47,477 - DEBUG - VM ctest-TestBasicPolicy-64599488-62289999 launched on Node cn-jenkins-deploy-platform-juju-os-587-1 2025-10-09 10:33:47,609 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/6f23488e-6ede-4d5c-82f0-086200465177 2025-10-09 10:33:47,663 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/41aecbeb-0493-4ddd-854e-26c2f0e39f95 2025-10-09 10:33:51,129 - 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-10-09 10:33:51,129 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64599488-62289999 failed! 2025-10-09 10:33:51,183 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-64599488:ctest-vn-10803880 is 64.134.232.129 and allocation pool is NOT set 2025-10-09 10:33:53,265 - 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.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.571 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 = 0.571/2.386/4.201/1.815 ms') 2025-10-09 10:33:53,265 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64599488-62289999 passed 2025-10-09 10:33:53,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 10:33:53,431 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64599488-62289999, IP 64.134.232.131, Port 22 2025-10-09 10:33:53,653 - DEBUG - VM ctest-TestBasicPolicy-64599488-62289999 is ready for SSH connections 2025-10-09 10:33:53,653 - INFO - Waiting for VM ctest-TestBasicPolicy-64599488-19872442 to be up.. 2025-10-09 10:33:53,805 - DEBUG - VM is in ACTIVE state now 2025-10-09 10:33:53,805 - INFO - VM name : ctest-TestBasicPolicy-64599488-19872442 2025-10-09 10:33:53,942 - DEBUG - VM ctest-TestBasicPolicy-64599488-19872442 ID is c04bc622-d439-418c-a954-b9b75d135f6d 2025-10-09 10:33:53,942 - DEBUG - VM ctest-TestBasicPolicy-64599488-19872442 launched on Node cn-jenkins-deploy-platform-juju-os-587-1 2025-10-09 10:33:54,083 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/c04bc622-d439-418c-a954-b9b75d135f6d 2025-10-09 10:33:54,141 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/30327621-9ad5-41da-97aa-6681539a1c16 2025-10-09 10:33:55,605 - 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.38 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.912 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 = 0.912/2.647/4.383/1.735 ms') 2025-10-09 10:33:55,605 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64599488-19872442 passed 2025-10-09 10:33:55,759 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 10:33:55,759 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64599488-19872442, IP 68.131.2.3, Port 22 2025-10-09 10:33:55,846 - 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-09 10:33:55,992 - DEBUG - VM ctest-TestBasicPolicy-64599488-19872442 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 10:34:00,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 10:34:00,992 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64599488-19872442, IP 68.131.2.3, Port 22 2025-10-09 10:34:01,209 - DEBUG - VM ctest-TestBasicPolicy-64599488-19872442 is ready for SSH connections 2025-10-09 10:34:01,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 10:34:01,209 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.131.2.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-09 10:34:01,209 - DEBUG - ping -s 56 -c 3 -W 1 68.131.2.3 2025-10-09 10:34:05,311 - DEBUG - PING 68.131.2.3 (68.131.2.3): 56 data bytes 64 bytes from 68.131.2.3: seq=0 ttl=63 time=4.656 ms 64 bytes from 68.131.2.3: seq=1 ttl=63 time=0.917 ms 64 bytes from 68.131.2.3: seq=2 ttl=63 time=1.105 ms --- 68.131.2.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.917/2.226/4.656 ms 2025-10-09 10:34:05,311 - INFO - Ping to IP 68.131.2.3 from VM ctest-TestBasicPolicy-64599488-62289999 passed 2025-10-09 10:34:05,494 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b42c6f92-d836-43e9-9996-36cdcbd12915", "href": "https://10.0.0.33:8082/network-policy/b42c6f92-d836-43e9-9996-36cdcbd12915"}} 2025-10-09 10:34:05,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 10:34:05,495 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.131.2.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-09 10:34:05,495 - DEBUG - ping -s 56 -c 3 -W 1 68.131.2.3 2025-10-09 10:34:08,705 - DEBUG - PING 68.131.2.3 (68.131.2.3): 56 data bytes 64 bytes from 68.131.2.3: seq=0 ttl=63 time=1.770 ms --- 68.131.2.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.770/1.770/1.770 ms 2025-10-09 10:34:08,705 - WARNING - Ping to IP 68.131.2.3 from VM ctest-TestBasicPolicy-64599488-62289999 failed 2025-10-09 10:34:08,705 - INFO - Deleting VM ctest-TestBasicPolicy-64599488-19872442 2025-10-09 10:34:08,830 - INFO - Deleting VM ctest-TestBasicPolicy-64599488-62289999 2025-10-09 10:34:09,593 - INFO - Deleted policy ctest-policy-allow-all-06588189 2025-10-09 10:34:09,593 - INFO - Deleting VN ctest-vn-92527430 2025-10-09 10:34:09,731 - DEBUG - VN be27253b-7fc9-449f-85b2-baaff3546293 still in use: Unable to complete operation on network be27253b-7fc9-449f-85b2-baaff3546293. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b4833672-8d5c-4e6c-aa86-ce49757af3b6'] 2025-10-09 10:34:09,732 - WARNING - Deleting VN ctest-vn-92527430 failed..Will retry 2025-10-09 10:34:12,040 - DEBUG - Response for deleting network () 2025-10-09 10:34:12,040 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/971feb4c-bec6-45e3-9d9c-439c713b3ed6 2025-10-09 10:34:12,099 - DEBUG - Response Code: 404 2025-10-09 10:34:12,121 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:34:12,179 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:34:12,240 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:34:12,356 - INFO - Validated that VN ctest-vn-92527430 is not found in API Server 2025-10-09 10:34:12,459 - DEBUG - VN ctest-vn-92527430 is not present in Agent 10.0.0.33 2025-10-09 10:34:12,460 - INFO - Validated that VN ctest-vn-92527430 is not in any agent 2025-10-09 10:34:12,612 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92527430 info 2025-10-09 10:34:12,612 - INFO - Deleting VN ctest-vn-10803880 2025-10-09 10:34:12,798 - DEBUG - Response for deleting network () 2025-10-09 10:34:12,798 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/d3db9275-f435-488b-b7e7-e9f503c0b2bc 2025-10-09 10:34:12,867 - DEBUG - Response Code: 404 2025-10-09 10:34:12,867 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:34:12,919 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:34:12,980 - DEBUG - Requesting: https://10.0.0.33:8082/project/8052a03d-135e-41e9-8e90-d99115908fa5 2025-10-09 10:34:13,068 - INFO - Validated that VN ctest-vn-10803880 is not found in API Server 2025-10-09 10:34:13,171 - DEBUG - VN ctest-vn-10803880 is not present in Agent 10.0.0.33 2025-10-09 10:34:13,171 - INFO - Validated that VN ctest-vn-10803880 is not in any agent 2025-10-09 10:34:13,323 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10803880 info 2025-10-09 10:34:13,712 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 10:34:13,712 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41]
2025-10-09 10:34:13,712 - INFO - -------------------------------------------------------------------------------- 2025-10-09 10:34:14,474 - INFO - Deleted project: ctest-TestBasicPolicy-64599488, ID : 8052a03d-135e-41e9-8e90-d99115908fa5