2025-08-10 15:56:43,374 - INFO - Domain Default found not creating 2025-08-10 15:56:43,490 - INFO - Project ctest-TestBasicPolicy-43218948 not found, creating it 2025-08-10 15:56:43,987 - INFO - Created Project:ctest-TestBasicPolicy-43218948, ID : 9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:56:45,271 - INFO - ================================================================================ 2025-08-10 15:56:45,271 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-10 15:56:45,271 - 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-08-10 15:56:45,525 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-08-10 15:56:45,525 - INFO - Initial checks done. Running the testcase now 2025-08-10 15:56:45,525 - INFO - 2025-08-10 15:56:46,042 - DEBUG - Response for create_network : {'network': {'id': '1b49dd28-05b9-46d7-be71-0381d73a43f9', 'name': 'ctest-vn-92248806', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-92248806'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 15:56:46,246 - DEBUG - Response for create_subnet : {'subnet': {'id': '4678ce81-fe3d-4586-99ea-2861dd73b854', 'name': '', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'network_id': '1b49dd28-05b9-46d7-be71-0381d73a43f9', 'ip_version': 4, 'cidr': '173.116.209.128/26', 'allocation_pools': [{'start': '173.116.209.130', 'end': '173.116.209.190'}], 'gateway_ip': '173.116.209.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.116.209.130', 'tags': [], 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96'}} 2025-08-10 15:56:46,262 - INFO - Created VN ctest-vn-92248806 2025-08-10 15:56:46,311 - DEBUG - VN ctest-vn-92248806 UUID is 1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:46,605 - DEBUG - Response for create_network : {'network': {'id': 'eb5a35ec-ad23-4eca-a283-cadc1a81d5b0', 'name': 'ctest-vn-45326885', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-45326885'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 15:56:46,769 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff468d48-df31-4a29-a5a8-6239114aef2a', 'name': '', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'network_id': 'eb5a35ec-ad23-4eca-a283-cadc1a81d5b0', 'ip_version': 4, 'cidr': '221.147.39.128/26', 'allocation_pools': [{'start': '221.147.39.130', 'end': '221.147.39.190'}], 'gateway_ip': '221.147.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.147.39.130', 'tags': [], 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96'}} 2025-08-10 15:56:46,783 - INFO - Created VN ctest-vn-45326885 2025-08-10 15:56:46,835 - DEBUG - VN ctest-vn-45326885 UUID is eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:46,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806, 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-43218948:ctest-vn-45326885, 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-08-10 15:56:47,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b49dd28-05b9-46d7-be71-0381d73a43f9', 'name': 'ctest-vn-92248806', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4678ce81-fe3d-4586-99ea-2861dd73b854'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-92248806'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311']], 'subnet_ipam': [{'subnet_cidr': '173.116.209.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 15:56:47,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb5a35ec-ad23-4eca-a283-cadc1a81d5b0', 'name': 'ctest-vn-45326885', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff468d48-df31-4a29-a5a8-6239114aef2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-45326885'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311']], 'subnet_ipam': [{'subnet_cidr': '221.147.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 15:56:47,691 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:56:47,985 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:56:48,009 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3 2025-08-10 15:56:48,020 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:56:48,088 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:48,106 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:48,115 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6 2025-08-10 15:56:48,121 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6 2025-08-10 15:56:48,127 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/33a24cfd-8b33-45b7-87ba-375c49b4bc75 2025-08-10 15:56:48,132 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 15:56:48,132 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:48,141 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6 2025-08-10 15:56:48,152 - INFO - Verified VN network id 11 for VN 1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:48,152 - INFO - Verifications in API Server for VN ctest-vn-92248806 passed 2025-08-10 15:56:48,153 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:48,161 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6 2025-08-10 15:56:48,167 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6 2025-08-10 15:56:48,172 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/33a24cfd-8b33-45b7-87ba-375c49b4bc75 2025-08-10 15:56:48,183 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43218948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1966345876288390871', 'uuid-lslong': '13722753395771196409'}, 'enable': 'true', 'created': '2025-08-10T15:56:46', 'last-modified': '2025-08-10T15:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942215'} 2025-08-10 15:56:48,189 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 15:56:48,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92248806 passed 2025-08-10 15:56:48,189 - DEBUG - ====Verifying policy data for ctest-vn-92248806 in API_Server ====== 2025-08-10 15:56:48,189 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:56:48,194 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3 2025-08-10 15:56:48,206 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:56:48,280 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9 2025-08-10 15:56:48,288 - DEBUG - ==>Verifying data for policy with id: 00416b36-660c-465b-a033-33b65a0a1cde, fqn: ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311'] 2025-08-10 15:56:48,288 - INFO - VN ctest-vn-92248806 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 15:56:48,288 - DEBUG - Verifying the vn in opserver 2025-08-10 15:56:48,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806 virtual network link through opserver 10.0.0.57 2025-08-10 15:56:48,289 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 15:56:48,575 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 15:56:48,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806?flat'} 2025-08-10 15:56:48,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806 is found in opserver 2025-08-10 15:56:48,631 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 15:56:48,636 - DEBUG - VRF ids for VN ctest-vn-92248806: {} 2025-08-10 15:56:48,636 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:56:48,641 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3 2025-08-10 15:56:48,650 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:56:48,721 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:48,732 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:48,741 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8 2025-08-10 15:56:48,747 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8 2025-08-10 15:56:48,753 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a3b55d1b-e087-4ed1-8d7f-797755392ab5 2025-08-10 15:56:48,759 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 15:56:48,759 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:48,767 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8 2025-08-10 15:56:48,779 - INFO - Verified VN network id 12 for VN eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:48,779 - INFO - Verifications in API Server for VN ctest-vn-45326885 passed 2025-08-10 15:56:48,779 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:48,789 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8 2025-08-10 15:56:48,795 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8 2025-08-10 15:56:48,801 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a3b55d1b-e087-4ed1-8d7f-797755392ab5 2025-08-10 15:56:48,813 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43218948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16958926637450350282', 'uuid-lslong': '11710426502779753904'}, 'enable': 'true', 'created': '2025-08-10T15:56:46', 'last-modified': '2025-08-10T15:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350094'} 2025-08-10 15:56:48,819 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 15:56:48,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45326885 passed 2025-08-10 15:56:48,820 - DEBUG - ====Verifying policy data for ctest-vn-45326885 in API_Server ====== 2025-08-10 15:56:48,820 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:56:48,825 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3 2025-08-10 15:56:48,837 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:56:48,910 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 2025-08-10 15:56:48,919 - DEBUG - ==>Verifying data for policy with id: 00416b36-660c-465b-a033-33b65a0a1cde, fqn: ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311'] 2025-08-10 15:56:48,919 - INFO - VN ctest-vn-45326885 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 15:56:48,919 - DEBUG - Verifying the vn in opserver 2025-08-10 15:56:48,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885 virtual network link through opserver 10.0.0.57 2025-08-10 15:56:48,919 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 15:56:48,928 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885?flat'} 2025-08-10 15:56:48,928 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885 is found in opserver 2025-08-10 15:56:48,938 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 15:56:48,942 - DEBUG - VRF ids for VN ctest-vn-45326885: {} 2025-08-10 15:56:48,990 - DEBUG - Services list from nova: [, , ] 2025-08-10 15:56:49,937 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3788-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3788-1) 2025-08-10 15:56:51,043 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3788-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3788-1) 2025-08-10 15:56:51,043 - INFO - Waiting for VM ctest-TestBasicPolicy-43218948-15751707 to be up.. 2025-08-10 15:56:51,126 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-10 15:56:56,191 - DEBUG - VM is in ACTIVE state now 2025-08-10 15:56:56,191 - INFO - VM name : ctest-TestBasicPolicy-43218948-15751707 2025-08-10 15:56:56,252 - DEBUG - VM ctest-TestBasicPolicy-43218948-15751707 ID is 11b69e37-baef-484a-9396-b716bd76578c 2025-08-10 15:56:56,268 - DEBUG - VM ctest-TestBasicPolicy-43218948-15751707 launched on Node cn-jenkins-deploy-platform-ansible-os-3788-1 2025-08-10 15:56:56,326 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/11b69e37-baef-484a-9396-b716bd76578c 2025-08-10 15:56:56,334 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/eaa439f8-f9c0-4946-b43f-6725b40ef7d2 2025-08-10 15:56:59,582 - 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 1016ms') 2025-08-10 15:56:59,583 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43218948-15751707 failed! 2025-08-10 15:56:59,635 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806 is 173.116.209.129 and allocation pool is NOT set 2025-08-10 15:57:01,691 - 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.54 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.66 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 = 1.655/3.096/4.537/1.441 ms') 2025-08-10 15:57:01,691 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43218948-15751707 passed 2025-08-10 15:57:01,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 15:57:01,839 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43218948-15751707, IP 173.116.209.131, Port 22 2025-08-10 15:57:01,991 - DEBUG - VM ctest-TestBasicPolicy-43218948-15751707 is ready for SSH connections 2025-08-10 15:57:01,991 - INFO - Waiting for VM ctest-TestBasicPolicy-43218948-45161295 to be up.. 2025-08-10 15:57:02,054 - DEBUG - VM is in ACTIVE state now 2025-08-10 15:57:02,054 - INFO - VM name : ctest-TestBasicPolicy-43218948-45161295 2025-08-10 15:57:02,114 - DEBUG - VM ctest-TestBasicPolicy-43218948-45161295 ID is 10606eed-673a-4c5d-bd3c-fd86c0cb9d13 2025-08-10 15:57:02,114 - DEBUG - VM ctest-TestBasicPolicy-43218948-45161295 launched on Node cn-jenkins-deploy-platform-ansible-os-3788-1 2025-08-10 15:57:02,179 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/10606eed-673a-4c5d-bd3c-fd86c0cb9d13 2025-08-10 15:57:02,187 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/67a97f58-8390-4673-9a77-ac31f516aafa 2025-08-10 15:57:03,423 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.286 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.286/1.635/2.984/1.349 ms') 2025-08-10 15:57:03,423 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43218948-45161295 passed 2025-08-10 15:57:03,575 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 15:57:03,575 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43218948-45161295, IP 221.147.39.131, Port 22 2025-08-10 15:57:03,726 - DEBUG - VM ctest-TestBasicPolicy-43218948-45161295 is ready for SSH connections 2025-08-10 15:57:03,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 15:57:03,727 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.147.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-08-10 15:57:03,727 - DEBUG - ping -s 56 -c 3 -W 1 221.147.39.131 2025-08-10 15:57:07,374 - DEBUG - PING 221.147.39.131 (221.147.39.131): 56 data bytes 64 bytes from 221.147.39.131: seq=0 ttl=63 time=3.065 ms 64 bytes from 221.147.39.131: seq=1 ttl=63 time=0.748 ms 64 bytes from 221.147.39.131: seq=2 ttl=63 time=0.769 ms --- 221.147.39.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.748/1.527/3.065 ms 2025-08-10 15:57:07,375 - INFO - Ping to IP 221.147.39.131 from VM ctest-TestBasicPolicy-43218948-15751707 passed 2025-08-10 15:57:07,555 - DEBUG - Policy Update Response {"network-policy": {"uuid": "00416b36-660c-465b-a033-33b65a0a1cde", "href": "http://10.0.0.57:8082/network-policy/00416b36-660c-465b-a033-33b65a0a1cde"}} 2025-08-10 15:57:07,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 15:57:07,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.147.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-08-10 15:57:07,555 - DEBUG - ping -s 56 -c 3 -W 1 221.147.39.131 2025-08-10 15:57:10,752 - DEBUG - PING 221.147.39.131 (221.147.39.131): 56 data bytes --- 221.147.39.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-10 15:57:10,752 - WARNING - Ping to IP 221.147.39.131 from VM ctest-TestBasicPolicy-43218948-15751707 failed 2025-08-10 15:57:10,752 - INFO - Deleting VM ctest-TestBasicPolicy-43218948-45161295 2025-08-10 15:57:10,815 - INFO - Deleting VM ctest-TestBasicPolicy-43218948-15751707 2025-08-10 15:57:11,140 - INFO - Deleted policy ctest-policy-allow-all-39862311 2025-08-10 15:57:11,140 - INFO - Deleting VN ctest-vn-45326885 2025-08-10 15:57:11,174 - DEBUG - VN eb5a35ec-ad23-4eca-a283-cadc1a81d5b0 still in use: Unable to complete operation on network eb5a35ec-ad23-4eca-a283-cadc1a81d5b0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d5b0961c-72ba-43b1-adaf-0bdf5fd6ece0'] 2025-08-10 15:57:11,175 - WARNING - Deleting VN ctest-vn-45326885 failed..Will retry 2025-08-10 15:57:13,261 - DEBUG - Response for deleting network () 2025-08-10 15:57:13,261 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8 2025-08-10 15:57:13,266 - DEBUG - Response Code: 404 2025-08-10 15:57:13,266 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:57:13,271 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3 2025-08-10 15:57:13,325 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:57:13,396 - INFO - Validated that VN ctest-vn-45326885 is not found in API Server 2025-08-10 15:57:13,405 - DEBUG - VN ctest-vn-45326885 is not present in Agent 10.0.0.57 2025-08-10 15:57:13,405 - INFO - Validated that VN ctest-vn-45326885 is not in any agent 2025-08-10 15:57:13,419 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45326885 info 2025-08-10 15:57:13,419 - INFO - Deleting VN ctest-vn-92248806 2025-08-10 15:57:13,502 - DEBUG - Response for deleting network () 2025-08-10 15:57:13,502 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6 2025-08-10 15:57:13,509 - DEBUG - Response Code: 404 2025-08-10 15:57:13,509 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 15:57:13,514 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3 2025-08-10 15:57:13,564 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96 2025-08-10 15:57:13,630 - INFO - Validated that VN ctest-vn-92248806 is not found in API Server 2025-08-10 15:57:13,640 - DEBUG - VN ctest-vn-92248806 is not present in Agent 10.0.0.57 2025-08-10 15:57:13,640 - INFO - Validated that VN ctest-vn-92248806 is not in any agent 2025-08-10 15:57:13,653 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92248806 info 2025-08-10 15:57:13,912 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 15:57:13,912 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:28]
2025-08-10 15:57:13,912 - INFO - -------------------------------------------------------------------------------- 2025-08-10 15:57:14,548 - INFO - Deleted project: ctest-TestBasicPolicy-43218948, ID : 9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96