2025-04-03 16:47:49,180 - INFO - Domain Default found not creating 2025-04-03 16:47:49,365 - INFO - Project ctest-TestBasicPolicy-32151179 not found, creating it 2025-04-03 16:47:49,876 - INFO - Created Project:ctest-TestBasicPolicy-32151179, ID : ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:47:51,568 - INFO - ================================================================================ 2025-04-03 16:47:51,568 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-03 16:47:51,568 - 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-03 16:47:51,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.33': '0'}} with 2025-04-03 16:47:51,832 - INFO - Initial checks done. Running the testcase now 2025-04-03 16:47:51,833 - INFO - 2025-04-03 16:47:52,491 - DEBUG - Response for create_network : {'network': {'id': '6e3fbc7c-1298-4881-a6d3-2c3f22d437ae', 'name': 'ctest-vn-44155904', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-44155904'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:47:52,736 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6a4c920-224f-4450-aa2b-c34250402e6a', 'name': '', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'network_id': '6e3fbc7c-1298-4881-a6d3-2c3f22d437ae', 'ip_version': 4, 'cidr': '109.230.114.192/26', 'allocation_pools': [{'start': '109.230.114.194', 'end': '109.230.114.254'}], 'gateway_ip': '109.230.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.230.114.194', 'tags': [], 'project_id': 'ea714e7e84444d8e8b921917d15fb222'}} 2025-04-03 16:47:52,756 - INFO - Created VN ctest-vn-44155904 2025-04-03 16:47:52,812 - DEBUG - VN ctest-vn-44155904 UUID is 6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:53,146 - DEBUG - Response for create_network : {'network': {'id': '9141f65a-993b-4303-8fd6-66a853cf690b', 'name': 'ctest-vn-16355336', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-16355336'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:47:53,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a709f083-7180-4db9-90bd-3d77ca3294f5', 'name': '', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'network_id': '9141f65a-993b-4303-8fd6-66a853cf690b', 'ip_version': 4, 'cidr': '75.123.15.128/26', 'allocation_pools': [{'start': '75.123.15.130', 'end': '75.123.15.190'}], 'gateway_ip': '75.123.15.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.123.15.130', 'tags': [], 'project_id': 'ea714e7e84444d8e8b921917d15fb222'}} 2025-04-03 16:47:53,343 - INFO - Created VN ctest-vn-16355336 2025-04-03 16:47:53,404 - DEBUG - VN ctest-vn-16355336 UUID is 9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:53,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904, 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-32151179:ctest-vn-16355336, 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-03 16:47:53,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e3fbc7c-1298-4881-a6d3-2c3f22d437ae', 'name': 'ctest-vn-44155904', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6a4c920-224f-4450-aa2b-c34250402e6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-44155904'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797']], 'subnet_ipam': [{'subnet_cidr': '109.230.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:47:54,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9141f65a-993b-4303-8fd6-66a853cf690b', 'name': 'ctest-vn-16355336', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a709f083-7180-4db9-90bd-3d77ca3294f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-16355336'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797']], 'subnet_ipam': [{'subnet_cidr': '75.123.15.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 16:47:54,300 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:47:54,646 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:47:54,695 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8 2025-04-03 16:47:54,721 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:47:54,808 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:54,822 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:54,834 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0 2025-04-03 16:47:54,843 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0 2025-04-03 16:47:54,853 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/21866f4a-a3c3-41ff-88d7-580f507c10e9 2025-04-03 16:47:54,863 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 16:47:54,863 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:54,875 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0 2025-04-03 16:47:54,894 - INFO - Verified VN network id 8 for VN 6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:54,894 - INFO - Verifications in API Server for VN ctest-vn-44155904 passed 2025-04-03 16:47:54,894 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:54,906 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0 2025-04-03 16:47:54,916 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0 2025-04-03 16:47:54,926 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/21866f4a-a3c3-41ff-88d7-580f507c10e9 2025-04-03 16:47:54,945 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32151179', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7944275508778780801', 'uuid-lslong': '12021000480060880814'}, 'enable': 'true', 'created': '2025-04-03T16:47:52', 'last-modified': '2025-04-03T16:47:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110727'} 2025-04-03 16:47:54,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 16:47:54,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44155904 passed 2025-04-03 16:47:54,954 - DEBUG - ====Verifying policy data for ctest-vn-44155904 in API_Server ====== 2025-04-03 16:47:54,954 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:47:54,961 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8 2025-04-03 16:47:54,978 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:47:55,057 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae 2025-04-03 16:47:55,071 - DEBUG - ==>Verifying data for policy with id: 3e1c23bd-0d9a-4e11-807e-30d89a6a1de8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797'] 2025-04-03 16:47:55,071 - INFO - VN ctest-vn-44155904 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 16:47:55,071 - DEBUG - Verifying the vn in opserver 2025-04-03 16:47:55,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904 virtual network link through opserver 10.0.0.27 2025-04-03 16:47:55,071 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-04-03 16:47:55,420 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-04-03 16:47:55,499 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904?flat'} 2025-04-03 16:47:55,499 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904 is found in opserver 2025-04-03 16:47:55,514 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 16:47:55,521 - DEBUG - VRF ids for VN ctest-vn-44155904: {} 2025-04-03 16:47:55,521 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:47:55,529 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8 2025-04-03 16:47:55,545 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:47:55,641 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:55,657 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:55,672 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0 2025-04-03 16:47:55,684 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0 2025-04-03 16:47:55,692 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/11acf5ff-1b47-4a6c-860e-2ece9d4a2a66 2025-04-03 16:47:55,702 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 16:47:55,702 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:55,715 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0 2025-04-03 16:47:55,733 - INFO - Verified VN network id 9 for VN 9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:55,733 - INFO - Verifications in API Server for VN ctest-vn-16355336 passed 2025-04-03 16:47:55,733 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:55,746 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0 2025-04-03 16:47:55,757 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0 2025-04-03 16:47:55,767 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/11acf5ff-1b47-4a6c-860e-2ece9d4a2a66 2025-04-03 16:47:55,784 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32151179', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10466917877964030723', 'uuid-lslong': '10364584465586415883'}, 'enable': 'true', 'created': '2025-04-03T16:47:53', 'last-modified': '2025-04-03T16:47:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.687483'} 2025-04-03 16:47:55,794 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 16:47:55,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16355336 passed 2025-04-03 16:47:55,794 - DEBUG - ====Verifying policy data for ctest-vn-16355336 in API_Server ====== 2025-04-03 16:47:55,794 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:47:55,803 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8 2025-04-03 16:47:55,819 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:47:55,906 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b 2025-04-03 16:47:55,919 - DEBUG - ==>Verifying data for policy with id: 3e1c23bd-0d9a-4e11-807e-30d89a6a1de8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797'] 2025-04-03 16:47:55,919 - INFO - VN ctest-vn-16355336 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 16:47:55,919 - DEBUG - Verifying the vn in opserver 2025-04-03 16:47:55,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336 virtual network link through opserver 10.0.0.27 2025-04-03 16:47:55,919 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-04-03 16:47:55,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336?flat'} 2025-04-03 16:47:55,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336 is found in opserver 2025-04-03 16:47:55,947 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 16:47:55,955 - DEBUG - VRF ids for VN ctest-vn-16355336: {} 2025-04-03 16:47:56,026 - DEBUG - Services list from nova: [, , ] 2025-04-03 16:47:57,201 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3030-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3030-1) 2025-04-03 16:47:58,641 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3030-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3030-1) 2025-04-03 16:47:58,641 - INFO - Waiting for VM ctest-TestBasicPolicy-32151179-82651437 to be up.. 2025-04-03 16:47:58,745 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-03 16:48:03,849 - DEBUG - VM is in ACTIVE state now 2025-04-03 16:48:03,850 - INFO - VM name : ctest-TestBasicPolicy-32151179-82651437 2025-04-03 16:48:03,958 - DEBUG - VM ctest-TestBasicPolicy-32151179-82651437 ID is f1c31ca3-a853-4208-b9f6-686d99b96a42 2025-04-03 16:48:03,991 - DEBUG - VM ctest-TestBasicPolicy-32151179-82651437 launched on Node cn-jenkins-deploy-platform-ansible-os-3030-1 2025-04-03 16:48:04,098 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/f1c31ca3-a853-4208-b9f6-686d99b96a42 2025-04-03 16:48:04,111 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/ed7a4348-4392-42e5-b788-741b0a8d0a31 2025-04-03 16:48:07,411 - 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 1027ms') 2025-04-03 16:48:07,411 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32151179-82651437 failed! 2025-04-03 16:48:07,468 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904 is 109.230.114.193 and allocation pool is NOT set 2025-04-03 16:48:09,538 - 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.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.393 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.393/2.638/4.883/2.245 ms') 2025-04-03 16:48:09,538 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32151179-82651437 passed 2025-04-03 16:48:09,708 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:48:09,708 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32151179-82651437, IP 109.230.114.195, Port 22 2025-04-03 16:48:09,874 - DEBUG - VM ctest-TestBasicPolicy-32151179-82651437 is ready for SSH connections 2025-04-03 16:48:09,874 - INFO - Waiting for VM ctest-TestBasicPolicy-32151179-24408390 to be up.. 2025-04-03 16:48:09,989 - DEBUG - VM is in ACTIVE state now 2025-04-03 16:48:09,989 - INFO - VM name : ctest-TestBasicPolicy-32151179-24408390 2025-04-03 16:48:10,091 - DEBUG - VM ctest-TestBasicPolicy-32151179-24408390 ID is 3f46b84e-3bf1-4645-a06e-8670c0acc7f9 2025-04-03 16:48:10,091 - DEBUG - VM ctest-TestBasicPolicy-32151179-24408390 launched on Node cn-jenkins-deploy-platform-ansible-os-3030-1 2025-04-03 16:48:10,189 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/3f46b84e-3bf1-4645-a06e-8670c0acc7f9 2025-04-03 16:48:10,201 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/4d56e5cf-633d-405e-9f15-c34529ccaff0 2025-04-03 16:48:11,464 - 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.02 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.506 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.506/2.261/4.017/1.755 ms') 2025-04-03 16:48:11,464 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-32151179-24408390 passed 2025-04-03 16:48:11,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:48:11,624 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32151179-24408390, IP 75.123.15.131, Port 22 2025-04-03 16:48:11,791 - DEBUG - VM ctest-TestBasicPolicy-32151179-24408390 is ready for SSH connections 2025-04-03 16:48:11,791 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:48:11,791 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 75.123.15.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-04-03 16:48:11,791 - DEBUG - ping -s 56 -c 3 -W 1 75.123.15.131 2025-04-03 16:48:16,186 - DEBUG - PING 75.123.15.131 (75.123.15.131): 56 data bytes 64 bytes from 75.123.15.131: seq=0 ttl=63 time=3.841 ms 64 bytes from 75.123.15.131: seq=1 ttl=63 time=0.967 ms 64 bytes from 75.123.15.131: seq=2 ttl=63 time=1.022 ms --- 75.123.15.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.967/1.943/3.841 ms 2025-04-03 16:48:16,186 - INFO - Ping to IP 75.123.15.131 from VM ctest-TestBasicPolicy-32151179-82651437 passed 2025-04-03 16:48:16,380 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3e1c23bd-0d9a-4e11-807e-30d89a6a1de8", "href": "http://10.0.0.27:8082/network-policy/3e1c23bd-0d9a-4e11-807e-30d89a6a1de8"}} 2025-04-03 16:48:16,380 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 16:48:16,380 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 75.123.15.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-04-03 16:48:16,380 - DEBUG - ping -s 56 -c 3 -W 1 75.123.15.131 2025-04-03 16:48:19,616 - DEBUG - PING 75.123.15.131 (75.123.15.131): 56 data bytes 64 bytes from 75.123.15.131: seq=0 ttl=63 time=1.736 ms --- 75.123.15.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.736/1.736/1.736 ms 2025-04-03 16:48:19,616 - WARNING - Ping to IP 75.123.15.131 from VM ctest-TestBasicPolicy-32151179-82651437 failed 2025-04-03 16:48:19,616 - INFO - Deleting VM ctest-TestBasicPolicy-32151179-24408390 2025-04-03 16:48:19,708 - INFO - Deleting VM ctest-TestBasicPolicy-32151179-82651437 2025-04-03 16:48:20,203 - INFO - Deleted policy ctest-policy-allow-all-79475797 2025-04-03 16:48:20,204 - INFO - Deleting VN ctest-vn-16355336 2025-04-03 16:48:20,246 - DEBUG - VN 9141f65a-993b-4303-8fd6-66a853cf690b still in use: Unable to complete operation on network 9141f65a-993b-4303-8fd6-66a853cf690b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-18fc2edb-5cd6-4977-b2bd-610a1c470e55'] 2025-04-03 16:48:20,246 - WARNING - Deleting VN ctest-vn-16355336 failed..Will retry 2025-04-03 16:48:22,391 - DEBUG - Response for deleting network () 2025-04-03 16:48:22,391 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0 2025-04-03 16:48:22,397 - DEBUG - Response Code: 404 2025-04-03 16:48:22,397 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:48:22,407 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8 2025-04-03 16:48:22,466 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:48:22,543 - INFO - Validated that VN ctest-vn-16355336 is not found in API Server 2025-04-03 16:48:22,557 - DEBUG - VN ctest-vn-16355336 is not present in Agent 10.0.0.27 2025-04-03 16:48:22,557 - INFO - Validated that VN ctest-vn-16355336 is not in any agent 2025-04-03 16:48:22,576 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16355336 info 2025-04-03 16:48:22,576 - INFO - Deleting VN ctest-vn-44155904 2025-04-03 16:48:22,710 - DEBUG - Response for deleting network () 2025-04-03 16:48:22,710 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0 2025-04-03 16:48:22,718 - DEBUG - Response Code: 404 2025-04-03 16:48:22,719 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-04-03 16:48:22,727 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8 2025-04-03 16:48:22,786 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222 2025-04-03 16:48:22,873 - INFO - Validated that VN ctest-vn-44155904 is not found in API Server 2025-04-03 16:48:22,887 - DEBUG - VN ctest-vn-44155904 is not present in Agent 10.0.0.27 2025-04-03 16:48:22,888 - INFO - Validated that VN ctest-vn-44155904 is not in any agent 2025-04-03 16:48:22,910 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44155904 info 2025-04-03 16:48:23,187 - DEBUG - No XMPP flaps were noticed during the test 2025-04-03 16:48:23,187 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32] 2025-04-03 16:48:23,187 - INFO - -------------------------------------------------------------------------------- 2025-04-03 16:48:23,993 - INFO - Deleted project: ctest-TestBasicPolicy-32151179, ID : ea714e7e-8444-4d8e-8b92-1917d15fb222