2025-10-22 15:00:29,825 - INFO - Reading existing Domain with UUID 8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:29,839 - INFO - Using existing domain ['admin_domain'](8c582771-8b31-4700-9720-69718950e5ce) 2025-10-22 15:00:30,071 - INFO - Project ctest-TestBasicPolicy-70042290 not found, creating it 2025-10-22 15:00:30,588 - INFO - Created Project:ctest-TestBasicPolicy-70042290, ID : e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:00:32,394 - INFO - ================================================================================ 2025-10-22 15:00:32,395 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-22 15:00:32,395 - 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 15:00:32,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2025-10-22 15:00:32,792 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:00:32,792 - INFO - 2025-10-22 15:00:33,608 - DEBUG - Response for create_network : {'network': {'id': '247938bc-6bf5-4fae-bc99-9c17e7b68a47', 'name': 'ctest-vn-92186153', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-92186153'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 15:00:33,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '1128fab0-17f3-4198-91e3-24daa61b8ce0', 'name': '', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'network_id': '247938bc-6bf5-4fae-bc99-9c17e7b68a47', 'ip_version': 4, 'cidr': '101.65.122.128/26', 'allocation_pools': [{'start': '101.65.122.130', 'end': '101.65.122.190'}], 'gateway_ip': '101.65.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T15:00:33.742767', 'updated_at': '2025-10-22T15:00:33.742767', 'dns_server_address': '101.65.122.130', 'tags': [], 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047'}} 2025-10-22 15:00:33,929 - INFO - Created VN ctest-vn-92186153 2025-10-22 15:00:33,982 - DEBUG - VN ctest-vn-92186153 UUID is 247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:34,499 - DEBUG - Response for create_network : {'network': {'id': 'cdf9940d-868e-4b48-af84-0a37ae3d07ae', 'name': 'ctest-vn-82963780', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-82963780'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 15:00:34,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '4508e2c9-d969-4095-a3d2-95bf301f351e', 'name': '', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'network_id': 'cdf9940d-868e-4b48-af84-0a37ae3d07ae', 'ip_version': 4, 'cidr': '86.0.219.128/26', 'allocation_pools': [{'start': '86.0.219.130', 'end': '86.0.219.190'}], 'gateway_ip': '86.0.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T15:00:34.620561', 'updated_at': '2025-10-22T15:00:34.620561', 'dns_server_address': '86.0.219.130', 'tags': [], 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047'}} 2025-10-22 15:00:34,797 - INFO - Created VN ctest-vn-82963780 2025-10-22 15:00:34,854 - DEBUG - VN ctest-vn-82963780 UUID is cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:35,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153, 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-70042290:ctest-vn-82963780, 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 15:00:35,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '247938bc-6bf5-4fae-bc99-9c17e7b68a47', 'name': 'ctest-vn-92186153', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1128fab0-17f3-4198-91e3-24daa61b8ce0'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-92186153'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767']], 'subnet_ipam': [{'subnet_cidr': '101.65.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T15:00:33.530385', 'updated_at': '2025-10-22T15:00:33.760119'}} 2025-10-22 15:00:35,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cdf9940d-868e-4b48-af84-0a37ae3d07ae', 'name': 'ctest-vn-82963780', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4508e2c9-d969-4095-a3d2-95bf301f351e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-82963780'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767']], 'subnet_ipam': [{'subnet_cidr': '86.0.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T15:00:34.418865', 'updated_at': '2025-10-22T15:00:34.634016'}} 2025-10-22 15:00:36,042 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:36,390 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:36,475 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:36,535 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:00:36,617 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:36,676 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:36,733 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66 2025-10-22 15:00:36,787 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66 2025-10-22 15:00:36,840 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/029baa80-599e-4855-828d-a914ac81bb4c 2025-10-22 15:00:36,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:00:36,891 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:36,948 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66 2025-10-22 15:00:37,011 - INFO - Verified VN network id 11 for VN 247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:37,012 - INFO - Verifications in API Server for VN ctest-vn-92186153 passed 2025-10-22 15:00:37,012 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:37,070 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66 2025-10-22 15:00:37,127 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66 2025-10-22 15:00:37,180 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/029baa80-599e-4855-828d-a914ac81bb4c 2025-10-22 15:00:37,279 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70042290', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2628194239463641006', 'uuid-lslong': '13590064977052863047'}, 'enable': 'true', 'created': '2025-10-22T15:00:33', 'last-modified': '2025-10-22T15:00:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.815840'} 2025-10-22 15:00:37,329 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:00:37,329 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92186153 passed 2025-10-22 15:00:37,329 - DEBUG - ====Verifying policy data for ctest-vn-92186153 in API_Server ====== 2025-10-22 15:00:37,329 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:37,383 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:37,444 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:00:37,520 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47 2025-10-22 15:00:37,576 - DEBUG - ==>Verifying data for policy with id: 68fe87db-49de-4391-a21c-15a6e787c755, fqn: ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767'] 2025-10-22 15:00:37,576 - INFO - VN ctest-vn-92186153 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 15:00:37,576 - DEBUG - Verifying the vn in opserver 2025-10-22 15:00:37,576 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153 virtual network link through opserver 10.0.0.241 2025-10-22 15:00:37,576 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 15:00:37,924 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 15:00:38,051 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153?flat'} 2025-10-22 15:00:38,051 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153 is found in opserver 2025-10-22 15:00:38,151 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 15:00:38,203 - DEBUG - VRF ids for VN ctest-vn-92186153: {} 2025-10-22 15:00:38,203 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:38,255 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:38,315 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:00:38,400 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:38,461 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:38,524 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639 2025-10-22 15:00:38,579 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639 2025-10-22 15:00:38,631 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/4f8a4154-a85f-4ef2-81f8-8e1e88c1eed0 2025-10-22 15:00:38,687 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 15:00:38,687 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:38,744 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639 2025-10-22 15:00:38,811 - INFO - Verified VN network id 12 for VN cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:38,811 - INFO - Verifications in API Server for VN ctest-vn-82963780 passed 2025-10-22 15:00:38,811 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:38,868 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639 2025-10-22 15:00:38,928 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639 2025-10-22 15:00:38,983 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/4f8a4154-a85f-4ef2-81f8-8e1e88c1eed0 2025-10-22 15:00:39,091 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70042290', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14842056832789138248', 'uuid-lslong': '12647244887825909678'}, 'enable': 'true', 'created': '2025-10-22T15:00:34', 'last-modified': '2025-10-22T15:00:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.283192'} 2025-10-22 15:00:39,169 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 15:00:39,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82963780 passed 2025-10-22 15:00:39,169 - DEBUG - ====Verifying policy data for ctest-vn-82963780 in API_Server ====== 2025-10-22 15:00:39,170 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:39,263 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:39,334 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:00:39,440 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae 2025-10-22 15:00:39,518 - DEBUG - ==>Verifying data for policy with id: 68fe87db-49de-4391-a21c-15a6e787c755, fqn: ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767'] 2025-10-22 15:00:39,518 - INFO - VN ctest-vn-82963780 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 15:00:39,518 - DEBUG - Verifying the vn in opserver 2025-10-22 15:00:39,518 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780 virtual network link through opserver 10.0.0.241 2025-10-22 15:00:39,518 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 15:00:39,579 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780?flat'} 2025-10-22 15:00:39,580 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780 is found in opserver 2025-10-22 15:00:39,691 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 15:00:39,745 - DEBUG - VRF ids for VN ctest-vn-82963780: {} 2025-10-22 15:00:39,838 - DEBUG - Services list from nova: [, , ] 2025-10-22 15:00:40,982 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-601-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-601-1) 2025-10-22 15:00:42,391 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-601-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-601-1) 2025-10-22 15:00:42,391 - INFO - Waiting for VM ctest-TestBasicPolicy-70042290-17448520 to be up.. 2025-10-22 15:00:42,541 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 15:00:47,681 - DEBUG - VM is in ACTIVE state now 2025-10-22 15:00:47,681 - INFO - VM name : ctest-TestBasicPolicy-70042290-17448520 2025-10-22 15:00:47,834 - DEBUG - VM ctest-TestBasicPolicy-70042290-17448520 ID is f938e44b-d0b7-42e6-8647-8cdd3366dd38 2025-10-22 15:00:47,882 - DEBUG - VM ctest-TestBasicPolicy-70042290-17448520 launched on Node cn-jenkins-deploy-platform-juju-os-601-1 2025-10-22 15:00:48,040 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-machine/f938e44b-d0b7-42e6-8647-8cdd3366dd38 2025-10-22 15:00:48,095 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-machine-interface/630d5268-85ee-47f1-b22a-f5e8e34022a5 2025-10-22 15:00:51,584 - 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 1012ms') 2025-10-22 15:00:51,584 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70042290-17448520 failed! 2025-10-22 15:00:51,646 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153 is 101.65.122.129 and allocation pool is NOT set 2025-10-22 15:00:53,745 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.97 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 = 2.972/5.903/8.835/2.931 ms') 2025-10-22 15:00:53,745 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70042290-17448520 passed 2025-10-22 15:00:53,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 15:00:53,906 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70042290-17448520, IP 101.65.122.131, Port 22 2025-10-22 15:00:53,997 - 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-10-22 15:00:54,147 - DEBUG - VM ctest-TestBasicPolicy-70042290-17448520 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 15:00:59,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 15:00:59,148 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70042290-17448520, IP 101.65.122.131, Port 22 2025-10-22 15:00:59,365 - DEBUG - VM ctest-TestBasicPolicy-70042290-17448520 is ready for SSH connections 2025-10-22 15:00:59,365 - INFO - Waiting for VM ctest-TestBasicPolicy-70042290-41349336 to be up.. 2025-10-22 15:00:59,512 - DEBUG - VM is in ACTIVE state now 2025-10-22 15:00:59,512 - INFO - VM name : ctest-TestBasicPolicy-70042290-41349336 2025-10-22 15:00:59,654 - DEBUG - VM ctest-TestBasicPolicy-70042290-41349336 ID is 5be23f3d-5f02-4363-8f0a-9ebfde2ef087 2025-10-22 15:00:59,655 - DEBUG - VM ctest-TestBasicPolicy-70042290-41349336 launched on Node cn-jenkins-deploy-platform-juju-os-601-1 2025-10-22 15:00:59,798 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-machine/5be23f3d-5f02-4363-8f0a-9ebfde2ef087 2025-10-22 15:00:59,855 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-machine-interface/a1a65a44-a324-4aa9-bd04-9ae0c7c59491 2025-10-22 15:01:01,318 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.420 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.420/1.691/2.963/1.271 ms') 2025-10-22 15:01:01,318 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-70042290-41349336 passed 2025-10-22 15:01:01,470 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 15:01:01,470 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70042290-41349336, IP 86.0.219.131, Port 22 2025-10-22 15:01:01,693 - DEBUG - VM ctest-TestBasicPolicy-70042290-41349336 is ready for SSH connections 2025-10-22 15:01:01,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 15:01:01,693 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.0.219.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-10-22 15:01:01,693 - DEBUG - ping -s 56 -c 3 -W 1 86.0.219.131 2025-10-22 15:01:05,827 - DEBUG - PING 86.0.219.131 (86.0.219.131): 56 data bytes 64 bytes from 86.0.219.131: seq=0 ttl=63 time=6.652 ms 64 bytes from 86.0.219.131: seq=1 ttl=63 time=0.824 ms 64 bytes from 86.0.219.131: seq=2 ttl=63 time=0.995 ms --- 86.0.219.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.824/2.823/6.652 ms 2025-10-22 15:01:05,827 - INFO - Ping to IP 86.0.219.131 from VM ctest-TestBasicPolicy-70042290-17448520 passed 2025-10-22 15:01:06,014 - DEBUG - Policy Update Response {"network-policy": {"uuid": "68fe87db-49de-4391-a21c-15a6e787c755", "href": "https://10.0.0.241:8082/network-policy/68fe87db-49de-4391-a21c-15a6e787c755"}} 2025-10-22 15:01:06,014 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 15:01:06,014 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.0.219.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-10-22 15:01:06,014 - DEBUG - ping -s 56 -c 3 -W 1 86.0.219.131 2025-10-22 15:01:09,228 - DEBUG - PING 86.0.219.131 (86.0.219.131): 56 data bytes --- 86.0.219.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-22 15:01:09,228 - WARNING - Ping to IP 86.0.219.131 from VM ctest-TestBasicPolicy-70042290-17448520 failed 2025-10-22 15:01:09,228 - INFO - Deleting VM ctest-TestBasicPolicy-70042290-41349336 2025-10-22 15:01:09,394 - INFO - Deleting VM ctest-TestBasicPolicy-70042290-17448520 2025-10-22 15:01:10,176 - INFO - Deleted policy ctest-policy-allow-all-33379767 2025-10-22 15:01:10,177 - INFO - Deleting VN ctest-vn-82963780 2025-10-22 15:01:10,318 - DEBUG - VN cdf9940d-868e-4b48-af84-0a37ae3d07ae still in use: Unable to complete operation on network cdf9940d-868e-4b48-af84-0a37ae3d07ae. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-25aa1626-bb23-4a44-93b2-0f950ec4a8ef'] 2025-10-22 15:01:10,318 - WARNING - Deleting VN ctest-vn-82963780 failed..Will retry 2025-10-22 15:01:12,496 - DEBUG - Response for deleting network () 2025-10-22 15:01:12,496 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639 2025-10-22 15:01:12,554 - DEBUG - Response Code: 404 2025-10-22 15:01:12,555 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:01:12,607 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:01:12,663 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:01:12,751 - INFO - Validated that VN ctest-vn-82963780 is not found in API Server 2025-10-22 15:01:12,847 - DEBUG - VN ctest-vn-82963780 is not present in Agent 10.0.0.241 2025-10-22 15:01:12,847 - INFO - Validated that VN ctest-vn-82963780 is not in any agent 2025-10-22 15:01:12,995 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82963780 info 2025-10-22 15:01:12,996 - INFO - Deleting VN ctest-vn-92186153 2025-10-22 15:01:13,175 - DEBUG - Response for deleting network () 2025-10-22 15:01:13,175 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66 2025-10-22 15:01:13,230 - DEBUG - Response Code: 404 2025-10-22 15:01:13,230 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:01:13,283 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:01:13,340 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047 2025-10-22 15:01:13,420 - INFO - Validated that VN ctest-vn-92186153 is not found in API Server 2025-10-22 15:01:13,519 - DEBUG - VN ctest-vn-92186153 is not present in Agent 10.0.0.241 2025-10-22 15:01:13,519 - INFO - Validated that VN ctest-vn-92186153 is not in any agent 2025-10-22 15:01:13,667 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92186153 info 2025-10-22 15:01:14,048 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 15:01:14,048 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42]
2025-10-22 15:01:14,048 - INFO - -------------------------------------------------------------------------------- 2025-10-22 15:01:14,830 - INFO - Deleted project: ctest-TestBasicPolicy-70042290, ID : e3ff9a0e-77b6-46d8-a8b2-705bd4511047