2025-04-16 11:08:02,936 - INFO - Reading existing Domain with UUID b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:02,953 - INFO - Using existing domain ['admin_domain'](b01b56ed-3042-44ba-b42d-383118ee132c) 2025-04-16 11:08:03,247 - INFO - Project ctest-TestBasicPolicy-53613612 not found, creating it 2025-04-16 11:08:04,258 - INFO - Created Project:ctest-TestBasicPolicy-53613612, ID : 5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:06,356 - INFO - ================================================================================ 2025-04-16 11:08:06,357 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-16 11:08:06,357 - 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-04-16 11:08:06,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.0.0.19': '0'}} with 2025-04-16 11:08:06,742 - INFO - Initial checks done. Running the testcase now 2025-04-16 11:08:06,742 - INFO - 2025-04-16 11:08:07,602 - DEBUG - Response for create_network : {'network': {'id': '845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6', 'name': 'ctest-vn-50374656', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-50374656'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-16 11:08:08,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '33e4f20f-66b6-43c1-bf44-409b72a5e5d6', 'name': '', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'network_id': '845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6', 'ip_version': 4, 'cidr': '116.46.76.0/26', 'allocation_pools': [{'start': '116.46.76.2', 'end': '116.46.76.62'}], 'gateway_ip': '116.46.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T11:08:07.893517', 'updated_at': '2025-04-16T11:08:07.893517', 'dns_server_address': '116.46.76.2', 'tags': [], 'project_id': '5dfb287851954804b955d3f916ce50a0'}} 2025-04-16 11:08:08,208 - INFO - Created VN ctest-vn-50374656 2025-04-16 11:08:08,285 - DEBUG - VN ctest-vn-50374656 UUID is 845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:08,898 - DEBUG - Response for create_network : {'network': {'id': 'd768a585-88f9-4440-829f-b2b130d129e0', 'name': 'ctest-vn-12578034', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-12578034'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-16 11:08:09,142 - DEBUG - Response for create_subnet : {'subnet': {'id': '2aa0c542-ba1a-4aad-9968-fa2ac1d26fbe', 'name': '', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'network_id': 'd768a585-88f9-4440-829f-b2b130d129e0', 'ip_version': 4, 'cidr': '59.211.88.0/26', 'allocation_pools': [{'start': '59.211.88.2', 'end': '59.211.88.62'}], 'gateway_ip': '59.211.88.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T11:08:09.017851', 'updated_at': '2025-04-16T11:08:09.017851', 'dns_server_address': '59.211.88.2', 'tags': [], 'project_id': '5dfb287851954804b955d3f916ce50a0'}} 2025-04-16 11:08:09,215 - INFO - Created VN ctest-vn-12578034 2025-04-16 11:08:09,276 - DEBUG - VN ctest-vn-12578034 UUID is d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:09,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656, 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-53613612:ctest-vn-12578034, 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-04-16 11:08:10,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6', 'name': 'ctest-vn-50374656', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33e4f20f-66b6-43c1-bf44-409b72a5e5d6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-50374656'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757']], 'subnet_ipam': [{'subnet_cidr': '116.46.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T11:08:07.512225', 'updated_at': '2025-04-16T11:08:07.955524'}} 2025-04-16 11:08:10,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd768a585-88f9-4440-829f-b2b130d129e0', 'name': 'ctest-vn-12578034', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2aa0c542-ba1a-4aad-9968-fa2ac1d26fbe'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-12578034'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757']], 'subnet_ipam': [{'subnet_cidr': '59.211.88.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T11:08:08.819102', 'updated_at': '2025-04-16T11:08:09.039595'}} 2025-04-16 11:08:10,620 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:10,983 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:11,073 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:11,134 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:11,231 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:11,291 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:11,347 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89 2025-04-16 11:08:11,402 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89 2025-04-16 11:08:11,463 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/90333213-9865-4023-b08e-f8021340781a 2025-04-16 11:08:11,518 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 11:08:11,518 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:11,579 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89 2025-04-16 11:08:11,643 - INFO - Verified VN network id 8 for VN 845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:11,643 - INFO - Verifications in API Server for VN ctest-vn-50374656 passed 2025-04-16 11:08:11,644 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:11,701 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89 2025-04-16 11:08:11,758 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89 2025-04-16 11:08:11,814 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/90333213-9865-4023-b08e-f8021340781a 2025-04-16 11:08:11,926 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53613612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9538333713522248982', 'uuid-lslong': '10646458582015433926'}, 'enable': 'true', 'created': '2025-04-16T11:08:07', 'last-modified': '2025-04-16T11:08:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.926866'} 2025-04-16 11:08:11,983 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 11:08:11,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50374656 passed 2025-04-16 11:08:11,983 - DEBUG - ====Verifying policy data for ctest-vn-50374656 in API_Server ====== 2025-04-16 11:08:11,983 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:12,041 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:12,102 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:12,194 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6 2025-04-16 11:08:12,251 - DEBUG - ==>Verifying data for policy with id: 06f3aae7-85ca-401a-8dc9-43e8a3fb5be0, fqn: ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757'] 2025-04-16 11:08:12,251 - INFO - VN ctest-vn-50374656 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 11:08:12,251 - DEBUG - Verifying the vn in opserver 2025-04-16 11:08:12,251 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656 virtual network link through opserver 10.0.0.19 2025-04-16 11:08:12,251 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks 2025-04-16 11:08:12,612 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks 2025-04-16 11:08:12,753 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656', 'href': 'https://10.0.0.19:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656?flat'} 2025-04-16 11:08:12,754 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656 is found in opserver 2025-04-16 11:08:12,862 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 11:08:12,913 - DEBUG - VRF ids for VN ctest-vn-50374656: {} 2025-04-16 11:08:12,914 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:12,969 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:13,030 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:13,110 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:13,171 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:13,228 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b 2025-04-16 11:08:13,282 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b 2025-04-16 11:08:13,338 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/029845f3-ef85-477d-b980-60139b3d54a0 2025-04-16 11:08:13,393 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 11:08:13,393 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:13,455 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b 2025-04-16 11:08:13,524 - INFO - Verified VN network id 9 for VN d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:13,524 - INFO - Verifications in API Server for VN ctest-vn-12578034 passed 2025-04-16 11:08:13,524 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:13,583 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b 2025-04-16 11:08:13,638 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b 2025-04-16 11:08:13,698 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/029845f3-ef85-477d-b980-60139b3d54a0 2025-04-16 11:08:13,810 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53613612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15521838108679685184', 'uuid-lslong': '9412438220325595616'}, 'enable': 'true', 'created': '2025-04-16T11:08:08', 'last-modified': '2025-04-16T11:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.393009'} 2025-04-16 11:08:13,863 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 11:08:13,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12578034 passed 2025-04-16 11:08:13,864 - DEBUG - ====Verifying policy data for ctest-vn-12578034 in API_Server ====== 2025-04-16 11:08:13,864 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:13,917 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:13,978 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:14,067 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0 2025-04-16 11:08:14,127 - DEBUG - ==>Verifying data for policy with id: 06f3aae7-85ca-401a-8dc9-43e8a3fb5be0, fqn: ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757'] 2025-04-16 11:08:14,128 - INFO - VN ctest-vn-12578034 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 11:08:14,128 - DEBUG - Verifying the vn in opserver 2025-04-16 11:08:14,128 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034 virtual network link through opserver 10.0.0.19 2025-04-16 11:08:14,128 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks 2025-04-16 11:08:14,189 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034', 'href': 'https://10.0.0.19:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034?flat'} 2025-04-16 11:08:14,189 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034 is found in opserver 2025-04-16 11:08:14,294 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 11:08:14,345 - DEBUG - VRF ids for VN ctest-vn-12578034: {} 2025-04-16 11:08:14,423 - DEBUG - Services list from nova: [, , ] 2025-04-16 11:08:15,855 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-514-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-514-1) 2025-04-16 11:08:17,349 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-514-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-514-1) 2025-04-16 11:08:17,350 - INFO - Waiting for VM ctest-TestBasicPolicy-53613612-02015591 to be up.. 2025-04-16 11:08:17,559 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 11:08:22,727 - DEBUG - VM is in ACTIVE state now 2025-04-16 11:08:22,728 - INFO - VM name : ctest-TestBasicPolicy-53613612-02015591 2025-04-16 11:08:22,899 - DEBUG - VM ctest-TestBasicPolicy-53613612-02015591 ID is 3f44b8e4-3bf4-4002-bf56-4cab9f249fcf 2025-04-16 11:08:22,933 - DEBUG - VM ctest-TestBasicPolicy-53613612-02015591 launched on Node cn-jenkins-deploy-platform-juju-os-514-1 2025-04-16 11:08:23,103 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine/3f44b8e4-3bf4-4002-bf56-4cab9f249fcf 2025-04-16 11:08:23,172 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine-interface/d22d4964-6f3e-4d44-a60c-5f74daba05fa 2025-04-16 11:08:26,682 - 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 1009ms') 2025-04-16 11:08:26,683 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53613612-02015591 failed! 2025-04-16 11:08:26,745 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656 is 116.46.76.1 and allocation pool is NOT set 2025-04-16 11:08:30,851 - 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 1014ms') 2025-04-16 11:08:30,851 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53613612-02015591 failed! 2025-04-16 11:08:30,912 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656 is 116.46.76.1 and allocation pool is NOT set 2025-04-16 11:08:33,009 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.684 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.684/2.546/4.409/1.862 ms') 2025-04-16 11:08:33,009 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53613612-02015591 passed 2025-04-16 11:08:33,172 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:08:33,173 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53613612-02015591, IP 116.46.76.3, Port 22 2025-04-16 11:08:33,389 - DEBUG - VM ctest-TestBasicPolicy-53613612-02015591 is ready for SSH connections 2025-04-16 11:08:33,389 - INFO - Waiting for VM ctest-TestBasicPolicy-53613612-03655956 to be up.. 2025-04-16 11:08:33,552 - DEBUG - VM is in ACTIVE state now 2025-04-16 11:08:33,553 - INFO - VM name : ctest-TestBasicPolicy-53613612-03655956 2025-04-16 11:08:33,717 - DEBUG - VM ctest-TestBasicPolicy-53613612-03655956 ID is 88af3c97-c63e-4bc1-b73b-36042d317076 2025-04-16 11:08:33,718 - DEBUG - VM ctest-TestBasicPolicy-53613612-03655956 launched on Node cn-jenkins-deploy-platform-juju-os-514-1 2025-04-16 11:08:33,883 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine/88af3c97-c63e-4bc1-b73b-36042d317076 2025-04-16 11:08:33,946 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine-interface/ab67e253-babf-4b2e-af53-af26b15d5116 2025-04-16 11:08:35,417 - 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.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.582 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.582/2.209/3.837/1.627 ms') 2025-04-16 11:08:35,418 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-53613612-03655956 passed 2025-04-16 11:08:35,580 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:08:35,683 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53613612-03655956, IP 59.211.88.3, Port 22 2025-04-16 11:08:35,897 - DEBUG - VM ctest-TestBasicPolicy-53613612-03655956 is ready for SSH connections 2025-04-16 11:08:35,898 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:08:35,898 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.211.88.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-04-16 11:08:35,898 - DEBUG - ping -s 56 -c 3 -W 1 59.211.88.3 2025-04-16 11:08:40,062 - DEBUG - PING 59.211.88.3 (59.211.88.3): 56 data bytes 64 bytes from 59.211.88.3: seq=0 ttl=63 time=4.377 ms 64 bytes from 59.211.88.3: seq=1 ttl=63 time=0.991 ms 64 bytes from 59.211.88.3: seq=2 ttl=63 time=1.368 ms --- 59.211.88.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.991/2.245/4.377 ms 2025-04-16 11:08:40,062 - INFO - Ping to IP 59.211.88.3 from VM ctest-TestBasicPolicy-53613612-02015591 passed 2025-04-16 11:08:40,284 - DEBUG - Policy Update Response {"network-policy": {"uuid": "06f3aae7-85ca-401a-8dc9-43e8a3fb5be0", "href": "https://10.0.0.19:8082/network-policy/06f3aae7-85ca-401a-8dc9-43e8a3fb5be0"}} 2025-04-16 11:08:40,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:08:40,284 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.211.88.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-04-16 11:08:40,285 - DEBUG - ping -s 56 -c 3 -W 1 59.211.88.3 2025-04-16 11:08:43,502 - DEBUG - PING 59.211.88.3 (59.211.88.3): 56 data bytes --- 59.211.88.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-16 11:08:43,503 - WARNING - Ping to IP 59.211.88.3 from VM ctest-TestBasicPolicy-53613612-02015591 failed 2025-04-16 11:08:43,503 - INFO - Deleting VM ctest-TestBasicPolicy-53613612-03655956 2025-04-16 11:08:43,612 - INFO - Deleting VM ctest-TestBasicPolicy-53613612-02015591 2025-04-16 11:08:44,432 - INFO - Deleted policy ctest-policy-allow-all-03334757 2025-04-16 11:08:44,432 - INFO - Deleting VN ctest-vn-12578034 2025-04-16 11:08:44,593 - DEBUG - VN d768a585-88f9-4440-829f-b2b130d129e0 still in use: Unable to complete operation on network d768a585-88f9-4440-829f-b2b130d129e0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d96f546e-75ec-4e1d-b48f-c9c95af7a0c3'] 2025-04-16 11:08:44,593 - WARNING - Deleting VN ctest-vn-12578034 failed..Will retry 2025-04-16 11:08:46,792 - DEBUG - Response for deleting network () 2025-04-16 11:08:46,792 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b 2025-04-16 11:08:46,845 - DEBUG - Response Code: 404 2025-04-16 11:08:46,845 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:46,898 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:46,966 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:47,050 - INFO - Validated that VN ctest-vn-12578034 is not found in API Server 2025-04-16 11:08:47,153 - DEBUG - VN ctest-vn-12578034 is not present in Agent 10.0.0.19 2025-04-16 11:08:47,153 - INFO - Validated that VN ctest-vn-12578034 is not in any agent 2025-04-16 11:08:47,309 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12578034 info 2025-04-16 11:08:47,310 - INFO - Deleting VN ctest-vn-50374656 2025-04-16 11:08:47,506 - DEBUG - Response for deleting network () 2025-04-16 11:08:47,506 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89 2025-04-16 11:08:47,560 - DEBUG - Response Code: 404 2025-04-16 11:08:47,561 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2025-04-16 11:08:47,613 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:08:47,678 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0 2025-04-16 11:08:47,758 - INFO - Validated that VN ctest-vn-50374656 is not found in API Server 2025-04-16 11:08:47,861 - DEBUG - VN ctest-vn-50374656 is not present in Agent 10.0.0.19 2025-04-16 11:08:47,861 - INFO - Validated that VN ctest-vn-50374656 is not in any agent 2025-04-16 11:08:48,017 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50374656 info 2025-04-16 11:08:48,412 - DEBUG - No XMPP flaps were noticed during the test
2025-04-16 11:08:48,412 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42]
2025-04-16 11:08:48,412 - INFO - -------------------------------------------------------------------------------- 2025-04-16 11:08:49,191 - INFO - Deleted project: ctest-TestBasicPolicy-53613612, ID : 5dfb2878-5195-4804-b955-d3f916ce50a0