2025-05-19 02:00:39,885 - INFO - Reading existing Domain with UUID 4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:00:39,899 - INFO - Using existing domain ['admin_domain'](4533365a-478b-4553-a889-03e442e66f00) 2025-05-19 02:00:40,101 - INFO - Project ctest-TestBasicPolicy-04564437 not found, creating it 2025-05-19 02:00:40,610 - INFO - Created Project:ctest-TestBasicPolicy-04564437, ID : fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:00:42,352 - INFO - ================================================================================ 2025-05-19 02:00:42,352 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-19 02:00:42,353 - 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-05-19 02:00:42,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.0.0.56': '0'}} with 2025-05-19 02:00:42,742 - INFO - Initial checks done. Running the testcase now 2025-05-19 02:00:42,742 - INFO - 2025-05-19 02:00:43,513 - DEBUG - Response for create_network : {'network': {'id': '0a1ff77a-b22d-4881-9683-79c88938da37', 'name': 'ctest-vn-65143227', 'tenant_id': 'fa240043bf6446a591a161dbf295de7a', 'project_id': 'fa240043bf6446a591a161dbf295de7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-vn-65143227'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-05-19 02:00:43,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '3470b896-ba96-499c-abbf-2336499bfcd9', 'name': '', 'tenant_id': 'fa240043bf6446a591a161dbf295de7a', 'network_id': '0a1ff77a-b22d-4881-9683-79c88938da37', 'ip_version': 4, 'cidr': '199.219.231.0/26', 'allocation_pools': [{'start': '199.219.231.2', 'end': '199.219.231.62'}], 'gateway_ip': '199.219.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-05-19T02:00:43.645374', 'updated_at': '2025-05-19T02:00:43.645374', 'dns_server_address': '199.219.231.2', 'tags': [], 'project_id': 'fa240043bf6446a591a161dbf295de7a'}} 2025-05-19 02:00:43,815 - INFO - Created VN ctest-vn-65143227 2025-05-19 02:00:43,868 - DEBUG - VN ctest-vn-65143227 UUID is 0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:44,377 - DEBUG - Response for create_network : {'network': {'id': '6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a', 'name': 'ctest-vn-53360735', 'tenant_id': 'fa240043bf6446a591a161dbf295de7a', 'project_id': 'fa240043bf6446a591a161dbf295de7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-vn-53360735'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-05-19 02:00:44,665 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fa2df33-7f35-46c6-9f93-29c6ee286ed9', 'name': '', 'tenant_id': 'fa240043bf6446a591a161dbf295de7a', 'network_id': '6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a', 'ip_version': 4, 'cidr': '159.180.250.192/26', 'allocation_pools': [{'start': '159.180.250.194', 'end': '159.180.250.254'}], 'gateway_ip': '159.180.250.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-05-19T02:00:44.560945', 'updated_at': '2025-05-19T02:00:44.560945', 'dns_server_address': '159.180.250.194', 'tags': [], 'project_id': 'fa240043bf6446a591a161dbf295de7a'}} 2025-05-19 02:00:44,730 - INFO - Created VN ctest-vn-53360735 2025-05-19 02:00:44,788 - DEBUG - VN ctest-vn-53360735 UUID is 6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:45,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227, 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-04564437:ctest-vn-53360735, 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-05-19 02:00:45,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a1ff77a-b22d-4881-9683-79c88938da37', 'name': 'ctest-vn-65143227', 'tenant_id': 'fa240043bf6446a591a161dbf295de7a', 'project_id': 'fa240043bf6446a591a161dbf295de7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3470b896-ba96-499c-abbf-2336499bfcd9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-vn-65143227'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-policy-allow-all-68451317']], 'subnet_ipam': [{'subnet_cidr': '199.219.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-05-19T02:00:43.434462', 'updated_at': '2025-05-19T02:00:43.664440'}} 2025-05-19 02:00:45,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a', 'name': 'ctest-vn-53360735', 'tenant_id': 'fa240043bf6446a591a161dbf295de7a', 'project_id': 'fa240043bf6446a591a161dbf295de7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6fa2df33-7f35-46c6-9f93-29c6ee286ed9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-vn-53360735'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-policy-allow-all-68451317']], 'subnet_ipam': [{'subnet_cidr': '159.180.250.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-05-19T02:00:44.299534', 'updated_at': '2025-05-19T02:00:44.574564'}} 2025-05-19 02:00:45,964 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:00:46,312 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:00:46,417 - DEBUG - Requesting: https://10.0.0.56:8082/domain/4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:00:46,597 - DEBUG - Requesting: https://10.0.0.56:8082/project/fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:00:46,714 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:46,786 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:46,867 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9041e833-9547-421d-a95e-11a5f8c8c48a 2025-05-19 02:00:46,937 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9041e833-9547-421d-a95e-11a5f8c8c48a 2025-05-19 02:00:46,999 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/60ebd177-ce28-431f-a3d1-b08d3e6fa883 2025-05-19 02:00:47,089 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-19 02:00:47,089 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:47,163 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9041e833-9547-421d-a95e-11a5f8c8c48a 2025-05-19 02:00:47,230 - INFO - Verified VN network id 8 for VN 0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:47,230 - INFO - Verifications in API Server for VN ctest-vn-65143227 passed 2025-05-19 02:00:47,231 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:47,286 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9041e833-9547-421d-a95e-11a5f8c8c48a 2025-05-19 02:00:47,341 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9041e833-9547-421d-a95e-11a5f8c8c48a 2025-05-19 02:00:47,397 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/60ebd177-ce28-431f-a3d1-b08d3e6fa883 2025-05-19 02:00:47,509 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04564437', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '729573771004692609', 'uuid-lslong': '10845646229840910903'}, 'enable': 'true', 'created': '2025-05-19T02:00:43', 'last-modified': '2025-05-19T02:00:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.100596'} 2025-05-19 02:00:47,562 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-19 02:00:47,562 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65143227 passed 2025-05-19 02:00:47,562 - DEBUG - ====Verifying policy data for ctest-vn-65143227 in API_Server ====== 2025-05-19 02:00:47,562 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:00:47,617 - DEBUG - Requesting: https://10.0.0.56:8082/domain/4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:00:47,677 - DEBUG - Requesting: https://10.0.0.56:8082/project/fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:00:47,766 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/0a1ff77a-b22d-4881-9683-79c88938da37 2025-05-19 02:00:47,827 - DEBUG - ==>Verifying data for policy with id: ee2f9ea7-c5da-4710-9e17-4ed2132e8b4a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-policy-allow-all-68451317'] 2025-05-19 02:00:47,828 - INFO - VN ctest-vn-65143227 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-19 02:00:47,828 - DEBUG - Verifying the vn in opserver 2025-05-19 02:00:47,828 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227 virtual network link through opserver 10.0.0.56 2025-05-19 02:00:47,828 - DEBUG - Requesting: https://10.0.0.56:8081/analytics/uves/virtual-networks 2025-05-19 02:00:48,179 - DEBUG - Requesting: https://10.0.0.56:8081/analytics/uves/virtual-networks 2025-05-19 02:00:48,305 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227', 'href': 'https://10.0.0.56:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227?flat'} 2025-05-19 02:00:48,305 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227 is found in opserver 2025-05-19 02:00:48,401 - DEBUG - Do not have enough data to verify VN in agent 2025-05-19 02:00:48,449 - DEBUG - VRF ids for VN ctest-vn-65143227: {} 2025-05-19 02:00:48,449 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:00:48,500 - DEBUG - Requesting: https://10.0.0.56:8082/domain/4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:00:48,557 - DEBUG - Requesting: https://10.0.0.56:8082/project/fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:00:48,646 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:48,702 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:48,762 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/92aa9edb-b6a4-48dd-8eef-a362195c01ad 2025-05-19 02:00:48,822 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/92aa9edb-b6a4-48dd-8eef-a362195c01ad 2025-05-19 02:00:48,877 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/427d760e-90b1-43d0-b593-95b07a7ec95b 2025-05-19 02:00:48,929 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-19 02:00:48,930 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:48,986 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/92aa9edb-b6a4-48dd-8eef-a362195c01ad 2025-05-19 02:00:49,050 - INFO - Verified VN network id 9 for VN 6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:49,050 - INFO - Verifications in API Server for VN ctest-vn-53360735 passed 2025-05-19 02:00:49,050 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:49,107 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/92aa9edb-b6a4-48dd-8eef-a362195c01ad 2025-05-19 02:00:49,161 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/92aa9edb-b6a4-48dd-8eef-a362195c01ad 2025-05-19 02:00:49,218 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/427d760e-90b1-43d0-b593-95b07a7ec95b 2025-05-19 02:00:49,326 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-53360735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04564437', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7649095376200944462', 'uuid-lslong': '13253560580171062330'}, 'enable': 'true', 'created': '2025-05-19T02:00:44', 'last-modified': '2025-05-19T02:00:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.566673'} 2025-05-19 02:00:49,378 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-19 02:00:49,378 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53360735 passed 2025-05-19 02:00:49,378 - DEBUG - ====Verifying policy data for ctest-vn-53360735 in API_Server ====== 2025-05-19 02:00:49,378 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:00:49,437 - DEBUG - Requesting: https://10.0.0.56:8082/domain/4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:00:49,497 - DEBUG - Requesting: https://10.0.0.56:8082/project/fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:00:49,582 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a 2025-05-19 02:00:49,639 - DEBUG - ==>Verifying data for policy with id: ee2f9ea7-c5da-4710-9e17-4ed2132e8b4a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-04564437', 'ctest-policy-allow-all-68451317'] 2025-05-19 02:00:49,639 - INFO - VN ctest-vn-53360735 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-19 02:00:49,639 - DEBUG - Verifying the vn in opserver 2025-05-19 02:00:49,639 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-53360735 virtual network link through opserver 10.0.0.56 2025-05-19 02:00:49,639 - DEBUG - Requesting: https://10.0.0.56:8081/analytics/uves/virtual-networks 2025-05-19 02:00:49,697 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-53360735', 'href': 'https://10.0.0.56:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-53360735?flat'} 2025-05-19 02:00:49,697 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-53360735 is found in opserver 2025-05-19 02:00:49,793 - DEBUG - Do not have enough data to verify VN in agent 2025-05-19 02:00:49,841 - DEBUG - VRF ids for VN ctest-vn-53360735: {} 2025-05-19 02:00:49,914 - DEBUG - Services list from nova: [, , ] 2025-05-19 02:00:51,007 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-538-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-538-1) 2025-05-19 02:00:52,287 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-538-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-538-1) 2025-05-19 02:00:52,287 - INFO - Waiting for VM ctest-TestBasicPolicy-04564437-26397121 to be up.. 2025-05-19 02:00:52,436 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-19 02:00:57,579 - DEBUG - VM is in ACTIVE state now 2025-05-19 02:00:57,579 - INFO - VM name : ctest-TestBasicPolicy-04564437-26397121 2025-05-19 02:00:57,717 - DEBUG - VM ctest-TestBasicPolicy-04564437-26397121 ID is fec97226-d56f-4b6d-913d-13b65455b2cf 2025-05-19 02:00:57,863 - DEBUG - VM ctest-TestBasicPolicy-04564437-26397121 launched on Node cn-jenkins-deploy-platform-juju-os-538-1 2025-05-19 02:00:58,006 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-machine/fec97226-d56f-4b6d-913d-13b65455b2cf 2025-05-19 02:00:58,061 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-machine-interface/e313240a-7d16-46dc-9892-f56f39c9df69 2025-05-19 02:01:01,525 - 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 1015ms') 2025-05-19 02:01:01,525 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04564437-26397121 failed! 2025-05-19 02:01:01,584 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-04564437:ctest-vn-65143227 is 199.219.231.1 and allocation pool is NOT set 2025-05-19 02:01:03,666 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.705 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.705/4.790/8.876/4.085 ms') 2025-05-19 02:01:03,667 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04564437-26397121 passed 2025-05-19 02:01:03,824 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:01:03,824 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04564437-26397121, IP 199.219.231.3, Port 22 2025-05-19 02:01:03,914 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-05-19 02:01:04,051 - DEBUG - VM ctest-TestBasicPolicy-04564437-26397121 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-19 02:01:09,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:01:09,052 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04564437-26397121, IP 199.219.231.3, Port 22 2025-05-19 02:01:09,276 - DEBUG - VM ctest-TestBasicPolicy-04564437-26397121 is ready for SSH connections 2025-05-19 02:01:09,277 - INFO - Waiting for VM ctest-TestBasicPolicy-04564437-55110111 to be up.. 2025-05-19 02:01:09,549 - DEBUG - VM is in ACTIVE state now 2025-05-19 02:01:09,549 - INFO - VM name : ctest-TestBasicPolicy-04564437-55110111 2025-05-19 02:01:09,690 - DEBUG - VM ctest-TestBasicPolicy-04564437-55110111 ID is fc391632-8823-4e7b-87a6-bdfaaf7479c9 2025-05-19 02:01:09,690 - DEBUG - VM ctest-TestBasicPolicy-04564437-55110111 launched on Node cn-jenkins-deploy-platform-juju-os-538-1 2025-05-19 02:01:09,827 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-machine/fc391632-8823-4e7b-87a6-bdfaaf7479c9 2025-05-19 02:01:09,889 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-machine-interface/65ed98d6-d3bd-42fc-8a55-0cae8d29fecd 2025-05-19 02:01:11,339 - 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.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.349 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.349/1.701/3.053/1.352 ms') 2025-05-19 02:01:11,339 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04564437-55110111 passed 2025-05-19 02:01:11,500 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:01:11,500 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04564437-55110111, IP 159.180.250.195, Port 22 2025-05-19 02:01:11,725 - DEBUG - VM ctest-TestBasicPolicy-04564437-55110111 is ready for SSH connections 2025-05-19 02:01:11,725 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:01:11,725 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.180.250.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-05-19 02:01:11,725 - DEBUG - ping -s 56 -c 3 -W 1 159.180.250.195 2025-05-19 02:01:15,456 - DEBUG - PING 159.180.250.195 (159.180.250.195): 56 data bytes 64 bytes from 159.180.250.195: seq=0 ttl=63 time=3.559 ms 64 bytes from 159.180.250.195: seq=1 ttl=63 time=0.861 ms 64 bytes from 159.180.250.195: seq=2 ttl=63 time=0.849 ms --- 159.180.250.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.849/1.756/3.559 ms 2025-05-19 02:01:15,456 - INFO - Ping to IP 159.180.250.195 from VM ctest-TestBasicPolicy-04564437-26397121 passed 2025-05-19 02:01:15,644 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ee2f9ea7-c5da-4710-9e17-4ed2132e8b4a", "href": "https://10.0.0.56:8082/network-policy/ee2f9ea7-c5da-4710-9e17-4ed2132e8b4a"}} 2025-05-19 02:01:15,644 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:01:15,644 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.180.250.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-05-19 02:01:15,645 - DEBUG - ping -s 56 -c 3 -W 1 159.180.250.195 2025-05-19 02:01:18,879 - DEBUG - PING 159.180.250.195 (159.180.250.195): 56 data bytes --- 159.180.250.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-19 02:01:18,879 - WARNING - Ping to IP 159.180.250.195 from VM ctest-TestBasicPolicy-04564437-26397121 failed 2025-05-19 02:01:18,879 - INFO - Deleting VM ctest-TestBasicPolicy-04564437-55110111 2025-05-19 02:01:19,098 - INFO - Deleting VM ctest-TestBasicPolicy-04564437-26397121 2025-05-19 02:01:19,875 - INFO - Deleted policy ctest-policy-allow-all-68451317 2025-05-19 02:01:19,875 - INFO - Deleting VN ctest-vn-53360735 2025-05-19 02:01:20,015 - DEBUG - VN 6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a still in use: Unable to complete operation on network 6a270bb7-cf8a-4b4e-b7ee-1b2096375c3a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9726f708-3e6e-4d8c-a229-e461e9d2d728'] 2025-05-19 02:01:20,015 - WARNING - Deleting VN ctest-vn-53360735 failed..Will retry 2025-05-19 02:01:22,188 - DEBUG - Response for deleting network () 2025-05-19 02:01:22,188 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/92aa9edb-b6a4-48dd-8eef-a362195c01ad 2025-05-19 02:01:22,245 - DEBUG - Response Code: 404 2025-05-19 02:01:22,246 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:01:22,301 - DEBUG - Requesting: https://10.0.0.56:8082/domain/4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:01:22,361 - DEBUG - Requesting: https://10.0.0.56:8082/project/fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:01:22,437 - INFO - Validated that VN ctest-vn-53360735 is not found in API Server 2025-05-19 02:01:22,540 - DEBUG - VN ctest-vn-53360735 is not present in Agent 10.0.0.56 2025-05-19 02:01:22,541 - INFO - Validated that VN ctest-vn-53360735 is not in any agent 2025-05-19 02:01:22,685 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53360735 info 2025-05-19 02:01:22,685 - INFO - Deleting VN ctest-vn-65143227 2025-05-19 02:01:22,869 - DEBUG - Response for deleting network () 2025-05-19 02:01:22,869 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9041e833-9547-421d-a95e-11a5f8c8c48a 2025-05-19 02:01:22,920 - DEBUG - Response Code: 404 2025-05-19 02:01:22,920 - DEBUG - Requesting: https://10.0.0.56:8082/domains 2025-05-19 02:01:22,972 - DEBUG - Requesting: https://10.0.0.56:8082/domain/4533365a-478b-4553-a889-03e442e66f00 2025-05-19 02:01:23,029 - DEBUG - Requesting: https://10.0.0.56:8082/project/fa240043-bf64-46a5-91a1-61dbf295de7a 2025-05-19 02:01:23,106 - INFO - Validated that VN ctest-vn-65143227 is not found in API Server 2025-05-19 02:01:23,205 - DEBUG - VN ctest-vn-65143227 is not present in Agent 10.0.0.56 2025-05-19 02:01:23,205 - INFO - Validated that VN ctest-vn-65143227 is not in any agent 2025-05-19 02:01:23,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65143227 info 2025-05-19 02:01:23,741 - DEBUG - No XMPP flaps were noticed during the test 2025-05-19 02:01:23,741 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2025-05-19 02:01:23,741 - INFO - -------------------------------------------------------------------------------- 2025-05-19 02:01:24,473 - INFO - Deleted project: ctest-TestBasicPolicy-04564437, ID : fa240043-bf64-46a5-91a1-61dbf295de7a