2025-03-27 16:18:50,036 - INFO - Domain Default found not creating 2025-03-27 16:18:50,208 - INFO - Project ctest-TestBasicPolicy-63335955 not found, creating it 2025-03-27 16:18:50,753 - INFO - Created Project:ctest-TestBasicPolicy-63335955, ID : 25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:18:52,464 - INFO - ================================================================================ 2025-03-27 16:18:52,464 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 16:18:52,464 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-03-27 16:18:52,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.20': '0'}} with 2025-03-27 16:18:52,720 - INFO - Initial checks done. Running the testcase now 2025-03-27 16:18:52,720 - INFO - 2025-03-27 16:18:53,352 - DEBUG - Response for create_network : {'network': {'id': '1359e347-accb-40c0-883f-41223d327d75', 'name': 'ctest-vn-05323343', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-05323343'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:18:53,569 - DEBUG - Response for create_subnet : {'subnet': {'id': '1207d3c2-cc52-43d2-bafe-f84406e6ed3f', 'name': '', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'network_id': '1359e347-accb-40c0-883f-41223d327d75', 'ip_version': 4, 'cidr': '190.102.27.0/26', 'allocation_pools': [{'start': '190.102.27.2', 'end': '190.102.27.62'}], 'gateway_ip': '190.102.27.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.102.27.2', 'tags': [], 'project_id': '25c9937fe86e4e59ac70466918829a2d'}} 2025-03-27 16:18:53,591 - INFO - Created VN ctest-vn-05323343 2025-03-27 16:18:53,644 - DEBUG - VN ctest-vn-05323343 UUID is 1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:54,016 - DEBUG - Response for create_network : {'network': {'id': 'db8581cb-5f29-4b85-a96f-7cffd3ec3f0a', 'name': 'ctest-vn-90729512', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-90729512'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:18:54,227 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e79052c6-a085-49e0-8d44-0349a19da822', 'name': '', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'network_id': 'db8581cb-5f29-4b85-a96f-7cffd3ec3f0a', 'ip_version': 4, 'cidr': '81.43.55.192/26', 'allocation_pools': [{'start': '81.43.55.194', 'end': '81.43.55.254'}], 'gateway_ip': '81.43.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.43.55.194', 'tags': [], 'project_id': '25c9937fe86e4e59ac70466918829a2d'}} 2025-03-27 16:18:54,251 - INFO - Created VN ctest-vn-90729512 2025-03-27 16:18:54,308 - DEBUG - VN ctest-vn-90729512 UUID is db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:54,430 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343, 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-63335955:ctest-vn-90729512, 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-03-27 16:18:54,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1359e347-accb-40c0-883f-41223d327d75', 'name': 'ctest-vn-05323343', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1207d3c2-cc52-43d2-bafe-f84406e6ed3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-05323343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661']], 'subnet_ipam': [{'subnet_cidr': '190.102.27.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:18:55,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db8581cb-5f29-4b85-a96f-7cffd3ec3f0a', 'name': 'ctest-vn-90729512', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e79052c6-a085-49e0-8d44-0349a19da822'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-90729512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661']], 'subnet_ipam': [{'subnet_cidr': '81.43.55.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:18:55,152 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:18:55,506 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:18:55,863 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf 2025-03-27 16:18:55,881 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:18:55,975 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:55,993 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:56,007 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741 2025-03-27 16:18:56,018 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741 2025-03-27 16:18:56,029 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3c839e3f-a0a3-4cab-839f-e205c74e9381 2025-03-27 16:18:56,038 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 16:18:56,038 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:56,053 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741 2025-03-27 16:18:56,076 - INFO - Verified VN network id 8 for VN 1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:56,076 - INFO - Verifications in API Server for VN ctest-vn-05323343 passed 2025-03-27 16:18:56,076 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:56,089 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741 2025-03-27 16:18:56,099 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741 2025-03-27 16:18:56,107 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3c839e3f-a0a3-4cab-839f-e205c74e9381 2025-03-27 16:18:56,122 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63335955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1394395456629063872', 'uuid-lslong': '9817637328002383221'}, 'enable': 'true', 'created': '2025-03-27T16:18:53', 'last-modified': '2025-03-27T16:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405981'} 2025-03-27 16:18:56,129 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 16:18:56,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05323343 passed 2025-03-27 16:18:56,130 - DEBUG - ====Verifying policy data for ctest-vn-05323343 in API_Server ====== 2025-03-27 16:18:56,130 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:18:56,136 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf 2025-03-27 16:18:56,150 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:18:56,231 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75 2025-03-27 16:18:56,246 - DEBUG - ==>Verifying data for policy with id: aa85891f-ffa8-4ce1-879f-51698b58aa58, fqn: ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661'] 2025-03-27 16:18:56,246 - INFO - VN ctest-vn-05323343 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 16:18:56,246 - DEBUG - Verifying the vn in opserver 2025-03-27 16:18:56,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343 virtual network link through opserver 10.0.0.17 2025-03-27 16:18:56,246 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-03-27 16:18:56,588 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-03-27 16:18:56,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343?flat'} 2025-03-27 16:18:56,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343 is found in opserver 2025-03-27 16:18:56,673 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 16:18:56,681 - DEBUG - VRF ids for VN ctest-vn-05323343: {} 2025-03-27 16:18:56,681 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:18:56,688 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf 2025-03-27 16:18:56,701 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:18:56,777 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:56,791 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:56,804 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a 2025-03-27 16:18:56,813 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a 2025-03-27 16:18:56,822 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/541ce08d-464e-4706-9021-3c3d30db6de0 2025-03-27 16:18:56,831 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 16:18:56,831 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:56,843 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a 2025-03-27 16:18:56,862 - INFO - Verified VN network id 9 for VN db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:56,862 - INFO - Verifications in API Server for VN ctest-vn-90729512 passed 2025-03-27 16:18:56,862 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:56,876 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a 2025-03-27 16:18:56,887 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a 2025-03-27 16:18:56,896 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/541ce08d-464e-4706-9021-3c3d30db6de0 2025-03-27 16:18:56,913 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63335955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15818191976683621253', 'uuid-lslong': '12209114553038683914'}, 'enable': 'true', 'created': '2025-03-27T16:18:53', 'last-modified': '2025-03-27T16:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.937942'} 2025-03-27 16:18:56,921 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 16:18:56,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90729512 passed 2025-03-27 16:18:56,921 - DEBUG - ====Verifying policy data for ctest-vn-90729512 in API_Server ====== 2025-03-27 16:18:56,921 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:18:56,929 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf 2025-03-27 16:18:56,960 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:18:57,046 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a 2025-03-27 16:18:57,061 - DEBUG - ==>Verifying data for policy with id: aa85891f-ffa8-4ce1-879f-51698b58aa58, fqn: ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661'] 2025-03-27 16:18:57,061 - INFO - VN ctest-vn-90729512 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 16:18:57,061 - DEBUG - Verifying the vn in opserver 2025-03-27 16:18:57,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512 virtual network link through opserver 10.0.0.17 2025-03-27 16:18:57,061 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-03-27 16:18:57,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512?flat'} 2025-03-27 16:18:57,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512 is found in opserver 2025-03-27 16:18:57,089 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 16:18:57,095 - DEBUG - VRF ids for VN ctest-vn-90729512: {} 2025-03-27 16:18:57,163 - DEBUG - Services list from nova: [, , ] 2025-03-27 16:18:58,322 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2977-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2977-1) 2025-03-27 16:18:59,757 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2977-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2977-1) 2025-03-27 16:18:59,757 - INFO - Waiting for VM ctest-TestBasicPolicy-63335955-89026164 to be up.. 2025-03-27 16:18:59,877 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 16:19:04,968 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:19:04,969 - INFO - VM name : ctest-TestBasicPolicy-63335955-89026164 2025-03-27 16:19:05,067 - DEBUG - VM ctest-TestBasicPolicy-63335955-89026164 ID is c6b01621-658a-4dac-aa66-a35a283e3ae7 2025-03-27 16:19:05,093 - DEBUG - VM ctest-TestBasicPolicy-63335955-89026164 launched on Node cn-jenkins-deploy-platform-ansible-os-2977-1 2025-03-27 16:19:05,186 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/c6b01621-658a-4dac-aa66-a35a283e3ae7 2025-03-27 16:19:05,198 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/24d829ad-6503-42f6-abe4-471b1290b494 2025-03-27 16:19:08,449 - 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 1002ms') 2025-03-27 16:19:08,449 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63335955-89026164 failed! 2025-03-27 16:19:08,508 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343 is 190.102.27.1 and allocation pool is NOT set 2025-03-27 16:19:10,569 - 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=6.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.19 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.189/5.029/6.870/1.840 ms') 2025-03-27 16:19:10,569 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63335955-89026164 passed 2025-03-27 16:19:10,740 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:19:10,740 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63335955-89026164, IP 190.102.27.3, Port 22 2025-03-27 16:19:10,906 - DEBUG - VM ctest-TestBasicPolicy-63335955-89026164 is ready for SSH connections 2025-03-27 16:19:10,906 - INFO - Waiting for VM ctest-TestBasicPolicy-63335955-40841265 to be up.. 2025-03-27 16:19:11,018 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:19:11,019 - INFO - VM name : ctest-TestBasicPolicy-63335955-40841265 2025-03-27 16:19:11,114 - DEBUG - VM ctest-TestBasicPolicy-63335955-40841265 ID is 4f4ab219-c1f5-46c3-8760-c418ec25bc19 2025-03-27 16:19:11,114 - DEBUG - VM ctest-TestBasicPolicy-63335955-40841265 launched on Node cn-jenkins-deploy-platform-ansible-os-2977-1 2025-03-27 16:19:11,222 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/4f4ab219-c1f5-46c3-8760-c418ec25bc19 2025-03-27 16:19:11,233 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/813cc8bd-394c-4cbe-a4c6-c658f1da7fbe 2025-03-27 16:19:12,493 - 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.18 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.484 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.484/2.330/4.176/1.846 ms') 2025-03-27 16:19:12,494 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-63335955-40841265 passed 2025-03-27 16:19:12,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:19:12,648 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63335955-40841265, IP 81.43.55.195, Port 22 2025-03-27 16:19:12,804 - DEBUG - VM ctest-TestBasicPolicy-63335955-40841265 is ready for SSH connections 2025-03-27 16:19:12,804 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:19:12,804 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.43.55.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-03-27 16:19:12,804 - DEBUG - ping -s 56 -c 3 -W 1 81.43.55.195 2025-03-27 16:19:16,966 - DEBUG - PING 81.43.55.195 (81.43.55.195): 56 data bytes 64 bytes from 81.43.55.195: seq=0 ttl=63 time=3.592 ms 64 bytes from 81.43.55.195: seq=1 ttl=63 time=0.942 ms 64 bytes from 81.43.55.195: seq=2 ttl=63 time=0.870 ms --- 81.43.55.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.870/1.801/3.592 ms 2025-03-27 16:19:16,966 - INFO - Ping to IP 81.43.55.195 from VM ctest-TestBasicPolicy-63335955-89026164 passed 2025-03-27 16:19:17,156 - DEBUG - Policy Update Response {"network-policy": {"uuid": "aa85891f-ffa8-4ce1-879f-51698b58aa58", "href": "http://10.0.0.17:8082/network-policy/aa85891f-ffa8-4ce1-879f-51698b58aa58"}} 2025-03-27 16:19:17,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:19:17,156 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.43.55.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-03-27 16:19:17,156 - DEBUG - ping -s 56 -c 3 -W 1 81.43.55.195 2025-03-27 16:19:20,393 - DEBUG - PING 81.43.55.195 (81.43.55.195): 56 data bytes 64 bytes from 81.43.55.195: seq=0 ttl=63 time=1.465 ms --- 81.43.55.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.465/1.465/1.465 ms 2025-03-27 16:19:20,393 - WARNING - Ping to IP 81.43.55.195 from VM ctest-TestBasicPolicy-63335955-89026164 failed 2025-03-27 16:19:20,393 - INFO - Deleting VM ctest-TestBasicPolicy-63335955-40841265 2025-03-27 16:19:20,474 - INFO - Deleting VM ctest-TestBasicPolicy-63335955-89026164 2025-03-27 16:19:20,919 - INFO - Deleted policy ctest-policy-allow-all-23063661 2025-03-27 16:19:20,919 - INFO - Deleting VN ctest-vn-90729512 2025-03-27 16:19:20,963 - DEBUG - VN db8581cb-5f29-4b85-a96f-7cffd3ec3f0a still in use: Unable to complete operation on network db8581cb-5f29-4b85-a96f-7cffd3ec3f0a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0038e69c-b5e4-4e9e-801a-4196ed73b59e'] 2025-03-27 16:19:20,964 - WARNING - Deleting VN ctest-vn-90729512 failed..Will retry 2025-03-27 16:19:23,108 - DEBUG - Response for deleting network () 2025-03-27 16:19:23,108 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a 2025-03-27 16:19:23,120 - DEBUG - Response Code: 404 2025-03-27 16:19:23,121 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:19:23,128 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf 2025-03-27 16:19:23,182 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:19:23,267 - INFO - Validated that VN ctest-vn-90729512 is not found in API Server 2025-03-27 16:19:23,283 - DEBUG - VN ctest-vn-90729512 is not present in Agent 10.0.0.17 2025-03-27 16:19:23,284 - INFO - Validated that VN ctest-vn-90729512 is not in any agent 2025-03-27 16:19:23,305 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-90729512 info 2025-03-27 16:19:23,305 - INFO - Deleting VN ctest-vn-05323343 2025-03-27 16:19:23,492 - DEBUG - Response for deleting network () 2025-03-27 16:19:23,492 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741 2025-03-27 16:19:23,505 - DEBUG - Response Code: 404 2025-03-27 16:19:23,505 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-03-27 16:19:23,512 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf 2025-03-27 16:19:23,570 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d 2025-03-27 16:19:23,660 - INFO - Validated that VN ctest-vn-05323343 is not found in API Server 2025-03-27 16:19:23,672 - DEBUG - VN ctest-vn-05323343 is not present in Agent 10.0.0.17 2025-03-27 16:19:23,672 - INFO - Validated that VN ctest-vn-05323343 is not in any agent 2025-03-27 16:19:23,697 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05323343 info 2025-03-27 16:19:23,963 - DEBUG - No XMPP flaps were noticed during the test
2025-03-27 16:19:23,964 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-03-27 16:19:23,964 - INFO - -------------------------------------------------------------------------------- 2025-03-27 16:19:24,719 - INFO - Deleted project: ctest-TestBasicPolicy-63335955, ID : 25c9937f-e86e-4e59-ac70-466918829a2d