2025-04-08 11:43:47,552 - INFO - Domain Default found not creating 2025-04-08 11:43:47,739 - INFO - Project ctest-TestBasicPolicy-11106537 not found, creating it 2025-04-08 11:43:48,248 - INFO - Created Project:ctest-TestBasicPolicy-11106537, ID : edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:43:49,903 - INFO - ================================================================================ 2025-04-08 11:43:49,904 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-08 11:43:49,904 - 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-08 11:43:50,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with 2025-04-08 11:43:50,174 - INFO - Initial checks done. Running the testcase now 2025-04-08 11:43:50,174 - INFO - 2025-04-08 11:43:50,837 - DEBUG - Response for create_network : {'network': {'id': '0e07b8db-9b64-461e-be28-6081c8a62d4f', 'name': 'ctest-vn-18635877', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-18635877'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 11:43:51,053 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a92fe70-6d6f-4fa5-9c63-2deede0245a3', 'name': '', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'network_id': '0e07b8db-9b64-461e-be28-6081c8a62d4f', 'ip_version': 4, 'cidr': '14.170.57.128/26', 'allocation_pools': [{'start': '14.170.57.130', 'end': '14.170.57.190'}], 'gateway_ip': '14.170.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.170.57.130', 'tags': [], 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851'}} 2025-04-08 11:43:51,080 - INFO - Created VN ctest-vn-18635877 2025-04-08 11:43:51,138 - DEBUG - VN ctest-vn-18635877 UUID is 0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:51,513 - DEBUG - Response for create_network : {'network': {'id': '2c0966cf-bfee-439c-b88a-2571cdd9e89e', 'name': 'ctest-vn-65569641', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-65569641'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 11:43:51,717 - DEBUG - Response for create_subnet : {'subnet': {'id': '7529a7f2-c768-41b7-aed3-b63dc1bf4e0c', 'name': '', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'network_id': '2c0966cf-bfee-439c-b88a-2571cdd9e89e', 'ip_version': 4, 'cidr': '199.242.251.128/26', 'allocation_pools': [{'start': '199.242.251.130', 'end': '199.242.251.190'}], 'gateway_ip': '199.242.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.242.251.130', 'tags': [], 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851'}} 2025-04-08 11:43:51,745 - INFO - Created VN ctest-vn-65569641 2025-04-08 11:43:51,802 - DEBUG - VN ctest-vn-65569641 UUID is 2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:51,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641, 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-08 11:43:52,303 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e07b8db-9b64-461e-be28-6081c8a62d4f', 'name': 'ctest-vn-18635877', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a92fe70-6d6f-4fa5-9c63-2deede0245a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-18635877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508']], 'subnet_ipam': [{'subnet_cidr': '14.170.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 11:43:52,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c0966cf-bfee-439c-b88a-2571cdd9e89e', 'name': 'ctest-vn-65569641', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7529a7f2-c768-41b7-aed3-b63dc1bf4e0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-65569641'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508']], 'subnet_ipam': [{'subnet_cidr': '199.242.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 11:43:52,738 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:43:53,049 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:43:53,086 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916 2025-04-08 11:43:53,104 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:43:53,199 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:53,213 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:53,226 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432 2025-04-08 11:43:53,237 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432 2025-04-08 11:43:53,246 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f48f6e68-0ccf-4ea8-a8db-2da69517a813 2025-04-08 11:43:53,257 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-08 11:43:53,257 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:53,270 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432 2025-04-08 11:43:53,291 - INFO - Verified VN network id 9 for VN 0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:53,291 - INFO - Verifications in API Server for VN ctest-vn-18635877 passed 2025-04-08 11:43:53,291 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:53,304 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432 2025-04-08 11:43:53,315 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432 2025-04-08 11:43:53,325 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f48f6e68-0ccf-4ea8-a8db-2da69517a813 2025-04-08 11:43:53,343 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11106537', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1010979894712354334', 'uuid-lslong': '13702307976808115535'}, 'enable': 'true', 'created': '2025-04-08T11:43:50', 'last-modified': '2025-04-08T11:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068337'} 2025-04-08 11:43:53,353 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-08 11:43:53,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18635877 passed 2025-04-08 11:43:53,353 - DEBUG - ====Verifying policy data for ctest-vn-18635877 in API_Server ====== 2025-04-08 11:43:53,353 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:43:53,362 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916 2025-04-08 11:43:53,378 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:43:53,466 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f 2025-04-08 11:43:53,477 - DEBUG - ==>Verifying data for policy with id: 2ae17f9c-f00f-4ed3-8783-2b2c38f10726, fqn: ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508'] 2025-04-08 11:43:53,478 - INFO - VN ctest-vn-18635877 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 11:43:53,478 - DEBUG - Verifying the vn in opserver 2025-04-08 11:43:53,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877 virtual network link through opserver 10.0.0.31 2025-04-08 11:43:53,478 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-04-08 11:43:53,788 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-04-08 11:43:53,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877?flat'} 2025-04-08 11:43:53,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877 is found in opserver 2025-04-08 11:43:53,891 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 11:43:53,898 - DEBUG - VRF ids for VN ctest-vn-18635877: {} 2025-04-08 11:43:53,898 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:43:53,904 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916 2025-04-08 11:43:53,921 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:43:54,003 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:54,020 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:54,033 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16 2025-04-08 11:43:54,044 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16 2025-04-08 11:43:54,054 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/27a3f8f7-b64c-437a-80c0-dd29acb404b6 2025-04-08 11:43:54,063 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 11:43:54,064 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:54,078 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16 2025-04-08 11:43:54,098 - INFO - Verified VN network id 10 for VN 2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:54,098 - INFO - Verifications in API Server for VN ctest-vn-65569641 passed 2025-04-08 11:43:54,098 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:54,112 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16 2025-04-08 11:43:54,125 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16 2025-04-08 11:43:54,136 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/27a3f8f7-b64c-437a-80c0-dd29acb404b6 2025-04-08 11:43:54,153 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11106537', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3173180454923551644', 'uuid-lslong': '13297482020479953054'}, 'enable': 'true', 'created': '2025-04-08T11:43:51', 'last-modified': '2025-04-08T11:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.613768'} 2025-04-08 11:43:54,161 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 11:43:54,161 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65569641 passed 2025-04-08 11:43:54,161 - DEBUG - ====Verifying policy data for ctest-vn-65569641 in API_Server ====== 2025-04-08 11:43:54,161 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:43:54,169 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916 2025-04-08 11:43:54,186 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:43:54,271 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e 2025-04-08 11:43:54,288 - DEBUG - ==>Verifying data for policy with id: 2ae17f9c-f00f-4ed3-8783-2b2c38f10726, fqn: ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508'] 2025-04-08 11:43:54,288 - INFO - VN ctest-vn-65569641 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 11:43:54,288 - DEBUG - Verifying the vn in opserver 2025-04-08 11:43:54,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641 virtual network link through opserver 10.0.0.31 2025-04-08 11:43:54,288 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-04-08 11:43:54,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641?flat'} 2025-04-08 11:43:54,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641 is found in opserver 2025-04-08 11:43:54,317 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 11:43:54,325 - DEBUG - VRF ids for VN ctest-vn-65569641: {} 2025-04-08 11:43:54,402 - DEBUG - Services list from nova: [, , ] 2025-04-08 11:43:55,530 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3049-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3049-1) 2025-04-08 11:43:56,854 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3049-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3049-1) 2025-04-08 11:43:56,854 - INFO - Waiting for VM ctest-TestBasicPolicy-11106537-84824467 to be up.. 2025-04-08 11:43:56,974 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 11:44:02,070 - DEBUG - VM is in ACTIVE state now 2025-04-08 11:44:02,070 - INFO - VM name : ctest-TestBasicPolicy-11106537-84824467 2025-04-08 11:44:02,167 - DEBUG - VM ctest-TestBasicPolicy-11106537-84824467 ID is ce61f7de-5e99-4685-bdee-b22f072f3e2c 2025-04-08 11:44:02,189 - DEBUG - VM ctest-TestBasicPolicy-11106537-84824467 launched on Node cn-jenkins-deploy-platform-ansible-os-3049-1 2025-04-08 11:44:02,276 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/ce61f7de-5e99-4685-bdee-b22f072f3e2c 2025-04-08 11:44:02,287 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/08eeee41-3ce3-4b9d-bd5c-ba88a48d0572 2025-04-08 11:44:05,563 - 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 1022ms') 2025-04-08 11:44:05,563 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11106537-84824467 failed! 2025-04-08 11:44:05,622 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877 is 14.170.57.129 and allocation pool is NOT set 2025-04-08 11:44:07,685 - 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=7.53 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.07 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 = 3.069/5.298/7.527/2.229 ms') 2025-04-08 11:44:07,685 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11106537-84824467 passed 2025-04-08 11:44:07,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 11:44:07,842 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11106537-84824467, IP 14.170.57.131, Port 22 2025-04-08 11:44:08,002 - DEBUG - VM ctest-TestBasicPolicy-11106537-84824467 is ready for SSH connections 2025-04-08 11:44:08,002 - INFO - Waiting for VM ctest-TestBasicPolicy-11106537-89632283 to be up.. 2025-04-08 11:44:08,089 - DEBUG - VM is in ACTIVE state now 2025-04-08 11:44:08,089 - INFO - VM name : ctest-TestBasicPolicy-11106537-89632283 2025-04-08 11:44:08,185 - DEBUG - VM ctest-TestBasicPolicy-11106537-89632283 ID is 9c6db3af-2f89-4a4b-a3e7-265f4ff29aee 2025-04-08 11:44:08,185 - DEBUG - VM ctest-TestBasicPolicy-11106537-89632283 launched on Node cn-jenkins-deploy-platform-ansible-os-3049-1 2025-04-08 11:44:08,274 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/9c6db3af-2f89-4a4b-a3e7-265f4ff29aee 2025-04-08 11:44:08,284 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/93531ded-eab9-42b1-9e60-a9c29d84fdbf 2025-04-08 11:44:09,541 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.03 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.029/2.926/4.823/1.897 ms') 2025-04-08 11:44:09,541 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11106537-89632283 passed 2025-04-08 11:44:09,694 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 11:44:09,694 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11106537-89632283, IP 199.242.251.131, Port 22 2025-04-08 11:44:09,854 - DEBUG - VM ctest-TestBasicPolicy-11106537-89632283 is ready for SSH connections 2025-04-08 11:44:09,854 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 11:44:09,855 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.242.251.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-04-08 11:44:09,855 - DEBUG - ping -s 56 -c 3 -W 1 199.242.251.131 2025-04-08 11:44:13,952 - DEBUG - PING 199.242.251.131 (199.242.251.131): 56 data bytes 64 bytes from 199.242.251.131: seq=0 ttl=63 time=3.748 ms 64 bytes from 199.242.251.131: seq=1 ttl=63 time=0.862 ms 64 bytes from 199.242.251.131: seq=2 ttl=63 time=0.889 ms --- 199.242.251.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/1.833/3.748 ms 2025-04-08 11:44:13,953 - INFO - Ping to IP 199.242.251.131 from VM ctest-TestBasicPolicy-11106537-84824467 passed 2025-04-08 11:44:14,138 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2ae17f9c-f00f-4ed3-8783-2b2c38f10726", "href": "http://10.0.0.31:8082/network-policy/2ae17f9c-f00f-4ed3-8783-2b2c38f10726"}} 2025-04-08 11:44:14,138 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 11:44:14,138 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.242.251.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-04-08 11:44:14,138 - DEBUG - ping -s 56 -c 3 -W 1 199.242.251.131 2025-04-08 11:44:17,368 - DEBUG - PING 199.242.251.131 (199.242.251.131): 56 data bytes 64 bytes from 199.242.251.131: seq=0 ttl=63 time=1.373 ms --- 199.242.251.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.373/1.373/1.373 ms 2025-04-08 11:44:17,368 - WARNING - Ping to IP 199.242.251.131 from VM ctest-TestBasicPolicy-11106537-84824467 failed 2025-04-08 11:44:17,369 - INFO - Deleting VM ctest-TestBasicPolicy-11106537-89632283 2025-04-08 11:44:17,448 - INFO - Deleting VM ctest-TestBasicPolicy-11106537-84824467 2025-04-08 11:44:17,897 - INFO - Deleted policy ctest-policy-allow-all-49023508 2025-04-08 11:44:17,898 - INFO - Deleting VN ctest-vn-65569641 2025-04-08 11:44:17,946 - DEBUG - VN 2c0966cf-bfee-439c-b88a-2571cdd9e89e still in use: Unable to complete operation on network 2c0966cf-bfee-439c-b88a-2571cdd9e89e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-18203bc9-872a-44b5-9c17-0292487d121a'] 2025-04-08 11:44:17,946 - WARNING - Deleting VN ctest-vn-65569641 failed..Will retry 2025-04-08 11:44:20,080 - DEBUG - Response for deleting network () 2025-04-08 11:44:20,080 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16 2025-04-08 11:44:20,093 - DEBUG - Response Code: 404 2025-04-08 11:44:20,093 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:44:20,101 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916 2025-04-08 11:44:20,164 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:44:20,244 - INFO - Validated that VN ctest-vn-65569641 is not found in API Server 2025-04-08 11:44:20,257 - DEBUG - VN ctest-vn-65569641 is not present in Agent 10.0.0.31 2025-04-08 11:44:20,257 - INFO - Validated that VN ctest-vn-65569641 is not in any agent 2025-04-08 11:44:20,278 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65569641 info 2025-04-08 11:44:20,278 - INFO - Deleting VN ctest-vn-18635877 2025-04-08 11:44:20,407 - DEBUG - Response for deleting network () 2025-04-08 11:44:20,407 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432 2025-04-08 11:44:20,414 - DEBUG - Response Code: 404 2025-04-08 11:44:20,414 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-04-08 11:44:20,427 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916 2025-04-08 11:44:20,484 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851 2025-04-08 11:44:20,567 - INFO - Validated that VN ctest-vn-18635877 is not found in API Server 2025-04-08 11:44:20,580 - DEBUG - VN ctest-vn-18635877 is not present in Agent 10.0.0.31 2025-04-08 11:44:20,580 - INFO - Validated that VN ctest-vn-18635877 is not in any agent 2025-04-08 11:44:20,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18635877 info 2025-04-08 11:44:20,857 - DEBUG - No XMPP flaps were noticed during the test
2025-04-08 11:44:20,857 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-04-08 11:44:20,857 - INFO - -------------------------------------------------------------------------------- 2025-04-08 11:44:21,569 - INFO - Deleted project: ctest-TestBasicPolicy-11106537, ID : edecb9b9-f840-4e47-abfd-c1fa6c227851