2025-06-09 16:38:01,789 - INFO - Domain Default found not creating 2025-06-09 16:38:01,963 - INFO - Project ctest-TestBasicPolicy-04545253 not found, creating it 2025-06-09 16:38:02,464 - INFO - Created Project:ctest-TestBasicPolicy-04545253, ID : ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:04,176 - INFO - ================================================================================ 2025-06-09 16:38:04,177 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-09 16:38:04,177 - 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-06-09 16:38:04,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-06-09 16:38:04,437 - INFO - Initial checks done. Running the testcase now 2025-06-09 16:38:04,437 - INFO - 2025-06-09 16:38:05,058 - DEBUG - Response for create_network : {'network': {'id': '97fe9806-03d5-43b4-8a23-3efcea28f6ec', 'name': 'ctest-vn-28503963', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-28503963'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 16:38:05,255 - DEBUG - Response for create_subnet : {'subnet': {'id': '3422bbb7-5cce-4f8b-865d-8f4b5b92bb09', 'name': '', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'network_id': '97fe9806-03d5-43b4-8a23-3efcea28f6ec', 'ip_version': 4, 'cidr': '14.199.235.0/26', 'allocation_pools': [{'start': '14.199.235.2', 'end': '14.199.235.62'}], 'gateway_ip': '14.199.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.199.235.2', 'tags': [], 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a'}} 2025-06-09 16:38:05,275 - INFO - Created VN ctest-vn-28503963 2025-06-09 16:38:05,327 - DEBUG - VN ctest-vn-28503963 UUID is 97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:05,656 - DEBUG - Response for create_network : {'network': {'id': 'a4035604-3f24-4609-b562-5ae9a3d10a86', 'name': 'ctest-vn-22044875', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-22044875'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 16:38:05,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2b30c64-adf5-4515-99d3-dac294862f40', 'name': '', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'network_id': 'a4035604-3f24-4609-b562-5ae9a3d10a86', 'ip_version': 4, 'cidr': '223.147.189.0/26', 'allocation_pools': [{'start': '223.147.189.2', 'end': '223.147.189.62'}], 'gateway_ip': '223.147.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.147.189.2', 'tags': [], 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a'}} 2025-06-09 16:38:05,932 - INFO - Created VN ctest-vn-22044875 2025-06-09 16:38:05,987 - DEBUG - VN ctest-vn-22044875 UUID is a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:06,116 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963, 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-04545253:ctest-vn-22044875, 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-06-09 16:38:06,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97fe9806-03d5-43b4-8a23-3efcea28f6ec', 'name': 'ctest-vn-28503963', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3422bbb7-5cce-4f8b-865d-8f4b5b92bb09'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-28503963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225']], 'subnet_ipam': [{'subnet_cidr': '14.199.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-09 16:38:06,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4035604-3f24-4609-b562-5ae9a3d10a86', 'name': 'ctest-vn-22044875', 'tenant_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'project_id': 'ae260c9afb0b4fa59dd6fe838240d79a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2b30c64-adf5-4515-99d3-dac294862f40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-vn-22044875'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225']], 'subnet_ipam': [{'subnet_cidr': '223.147.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-09 16:38:06,887 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:07,225 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:07,260 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018 2025-06-09 16:38:07,283 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:07,369 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:07,382 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:07,392 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e 2025-06-09 16:38:07,401 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e 2025-06-09 16:38:07,409 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/437e354a-f3be-4d75-9457-995ac6bc9d96 2025-06-09 16:38:07,417 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-09 16:38:07,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:07,428 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e 2025-06-09 16:38:07,446 - INFO - Verified VN network id 8 for VN 97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:07,446 - INFO - Verifications in API Server for VN ctest-vn-28503963 passed 2025-06-09 16:38:07,446 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:07,457 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e 2025-06-09 16:38:07,467 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e 2025-06-09 16:38:07,478 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/437e354a-f3be-4d75-9457-995ac6bc9d96 2025-06-09 16:38:07,501 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04545253', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10952358495413158836', 'uuid-lslong': '9953868857400162028'}, 'enable': 'true', 'created': '2025-06-09T16:38:05', 'last-modified': '2025-06-09T16:38:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092742'} 2025-06-09 16:38:07,509 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-09 16:38:07,509 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28503963 passed 2025-06-09 16:38:07,509 - DEBUG - ====Verifying policy data for ctest-vn-28503963 in API_Server ====== 2025-06-09 16:38:07,509 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:07,516 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018 2025-06-09 16:38:07,533 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:07,615 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/97fe9806-03d5-43b4-8a23-3efcea28f6ec 2025-06-09 16:38:07,630 - DEBUG - ==>Verifying data for policy with id: 20ad5cdc-6444-4c75-8dd6-671e2857ecb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225'] 2025-06-09 16:38:07,630 - INFO - VN ctest-vn-28503963 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-09 16:38:07,630 - DEBUG - Verifying the vn in opserver 2025-06-09 16:38:07,630 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963 virtual network link through opserver 10.0.0.27 2025-06-09 16:38:07,630 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-06-09 16:38:07,972 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-06-09 16:38:08,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963?flat'} 2025-06-09 16:38:08,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963 is found in opserver 2025-06-09 16:38:08,046 - DEBUG - Do not have enough data to verify VN in agent 2025-06-09 16:38:08,051 - DEBUG - VRF ids for VN ctest-vn-28503963: {} 2025-06-09 16:38:08,051 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:08,059 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018 2025-06-09 16:38:08,073 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:08,149 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:08,163 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:08,174 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b 2025-06-09 16:38:08,186 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b 2025-06-09 16:38:08,195 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7b21dfe5-f4c1-4347-8d7c-30e8395ecb5b 2025-06-09 16:38:08,203 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-09 16:38:08,203 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:08,214 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b 2025-06-09 16:38:08,230 - INFO - Verified VN network id 9 for VN a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:08,231 - INFO - Verifications in API Server for VN ctest-vn-22044875 passed 2025-06-09 16:38:08,231 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:08,241 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b 2025-06-09 16:38:08,250 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b 2025-06-09 16:38:08,258 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7b21dfe5-f4c1-4347-8d7c-30e8395ecb5b 2025-06-09 16:38:08,272 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04545253', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11818384423389513225', 'uuid-lslong': '13070109028104866438'}, 'enable': 'true', 'created': '2025-06-09T16:38:05', 'last-modified': '2025-06-09T16:38:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598836'} 2025-06-09 16:38:08,280 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-09 16:38:08,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22044875 passed 2025-06-09 16:38:08,280 - DEBUG - ====Verifying policy data for ctest-vn-22044875 in API_Server ====== 2025-06-09 16:38:08,280 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:08,287 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018 2025-06-09 16:38:08,303 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:08,384 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a4035604-3f24-4609-b562-5ae9a3d10a86 2025-06-09 16:38:08,396 - DEBUG - ==>Verifying data for policy with id: 20ad5cdc-6444-4c75-8dd6-671e2857ecb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-04545253', 'ctest-policy-allow-all-86542225'] 2025-06-09 16:38:08,396 - INFO - VN ctest-vn-22044875 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-09 16:38:08,396 - DEBUG - Verifying the vn in opserver 2025-06-09 16:38:08,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875 virtual network link through opserver 10.0.0.27 2025-06-09 16:38:08,396 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-06-09 16:38:08,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875?flat'} 2025-06-09 16:38:08,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-22044875 is found in opserver 2025-06-09 16:38:08,419 - DEBUG - Do not have enough data to verify VN in agent 2025-06-09 16:38:08,426 - DEBUG - VRF ids for VN ctest-vn-22044875: {} 2025-06-09 16:38:08,501 - DEBUG - Services list from nova: [, , ] 2025-06-09 16:38:09,676 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3426-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3426-1) 2025-06-09 16:38:11,127 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3426-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3426-1) 2025-06-09 16:38:11,127 - INFO - Waiting for VM ctest-TestBasicPolicy-04545253-73695880 to be up.. 2025-06-09 16:38:11,216 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-09 16:38:16,310 - DEBUG - VM is in ACTIVE state now 2025-06-09 16:38:16,310 - INFO - VM name : ctest-TestBasicPolicy-04545253-73695880 2025-06-09 16:38:16,391 - DEBUG - VM ctest-TestBasicPolicy-04545253-73695880 ID is a18bae5f-f2b1-45a6-8eb5-4d6b7834ae41 2025-06-09 16:38:16,412 - DEBUG - VM ctest-TestBasicPolicy-04545253-73695880 launched on Node cn-jenkins-deploy-platform-ansible-os-3426-1 2025-06-09 16:38:16,507 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a18bae5f-f2b1-45a6-8eb5-4d6b7834ae41 2025-06-09 16:38:16,517 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/00d768c0-5030-4a1c-b567-90959ee4c3c1 2025-06-09 16:38:19,773 - 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-06-09 16:38:19,773 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04545253-73695880 failed! 2025-06-09 16:38:19,831 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04545253:ctest-vn-28503963 is 14.199.235.1 and allocation pool is NOT set 2025-06-09 16:38:21,888 - 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=13.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.647 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.647/7.130/13.613/6.483 ms') 2025-06-09 16:38:21,888 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04545253-73695880 passed 2025-06-09 16:38:22,047 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:38:22,047 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04545253-73695880, IP 14.199.235.3, Port 22 2025-06-09 16:38:22,113 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-09 16:38:22,203 - DEBUG - VM ctest-TestBasicPolicy-04545253-73695880 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-09 16:38:27,203 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:38:27,203 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04545253-73695880, IP 14.199.235.3, Port 22 2025-06-09 16:38:27,362 - DEBUG - VM ctest-TestBasicPolicy-04545253-73695880 is ready for SSH connections 2025-06-09 16:38:27,362 - INFO - Waiting for VM ctest-TestBasicPolicy-04545253-12669756 to be up.. 2025-06-09 16:38:27,442 - DEBUG - VM is in ACTIVE state now 2025-06-09 16:38:27,442 - INFO - VM name : ctest-TestBasicPolicy-04545253-12669756 2025-06-09 16:38:27,520 - DEBUG - VM ctest-TestBasicPolicy-04545253-12669756 ID is c4493504-1d8a-4b3a-a63f-4bc96cd16612 2025-06-09 16:38:27,520 - DEBUG - VM ctest-TestBasicPolicy-04545253-12669756 launched on Node cn-jenkins-deploy-platform-ansible-os-3426-1 2025-06-09 16:38:27,598 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/c4493504-1d8a-4b3a-a63f-4bc96cd16612 2025-06-09 16:38:27,609 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/7f7d487b-87bb-4e69-9f66-ed813bf52b47 2025-06-09 16:38:28,857 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.357 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.357/1.728/3.099/1.371 ms') 2025-06-09 16:38:28,857 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04545253-12669756 passed 2025-06-09 16:38:29,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:38:29,015 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04545253-12669756, IP 223.147.189.3, Port 22 2025-06-09 16:38:29,171 - DEBUG - VM ctest-TestBasicPolicy-04545253-12669756 is ready for SSH connections 2025-06-09 16:38:29,171 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:38:29,171 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 223.147.189.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-06-09 16:38:29,171 - DEBUG - ping -s 56 -c 3 -W 1 223.147.189.3 2025-06-09 16:38:33,289 - DEBUG - PING 223.147.189.3 (223.147.189.3): 56 data bytes 64 bytes from 223.147.189.3: seq=0 ttl=63 time=3.671 ms 64 bytes from 223.147.189.3: seq=1 ttl=63 time=1.044 ms 64 bytes from 223.147.189.3: seq=2 ttl=63 time=0.805 ms --- 223.147.189.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.805/1.840/3.671 ms 2025-06-09 16:38:33,289 - INFO - Ping to IP 223.147.189.3 from VM ctest-TestBasicPolicy-04545253-73695880 passed 2025-06-09 16:38:33,475 - DEBUG - Policy Update Response {"network-policy": {"uuid": "20ad5cdc-6444-4c75-8dd6-671e2857ecb0", "href": "http://10.0.0.27:8082/network-policy/20ad5cdc-6444-4c75-8dd6-671e2857ecb0"}} 2025-06-09 16:38:33,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:38:33,475 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 223.147.189.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-06-09 16:38:33,475 - DEBUG - ping -s 56 -c 3 -W 1 223.147.189.3 2025-06-09 16:38:36,720 - DEBUG - PING 223.147.189.3 (223.147.189.3): 56 data bytes 64 bytes from 223.147.189.3: seq=0 ttl=63 time=1.731 ms --- 223.147.189.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.731/1.731/1.731 ms 2025-06-09 16:38:36,721 - WARNING - Ping to IP 223.147.189.3 from VM ctest-TestBasicPolicy-04545253-73695880 failed 2025-06-09 16:38:36,721 - INFO - Deleting VM ctest-TestBasicPolicy-04545253-12669756 2025-06-09 16:38:36,799 - INFO - Deleting VM ctest-TestBasicPolicy-04545253-73695880 2025-06-09 16:38:37,260 - INFO - Deleted policy ctest-policy-allow-all-86542225 2025-06-09 16:38:37,260 - INFO - Deleting VN ctest-vn-22044875 2025-06-09 16:38:37,308 - DEBUG - VN a4035604-3f24-4609-b562-5ae9a3d10a86 still in use: Unable to complete operation on network a4035604-3f24-4609-b562-5ae9a3d10a86. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9135fd97-1cfd-444c-9b0f-b3902b81468d'] 2025-06-09 16:38:37,308 - WARNING - Deleting VN ctest-vn-22044875 failed..Will retry 2025-06-09 16:38:39,440 - DEBUG - Response for deleting network () 2025-06-09 16:38:39,440 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b59e739e-fa17-46c6-b634-bdeaeb4ee70b 2025-06-09 16:38:39,453 - DEBUG - Response Code: 404 2025-06-09 16:38:39,453 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:39,461 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018 2025-06-09 16:38:39,518 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:39,597 - INFO - Validated that VN ctest-vn-22044875 is not found in API Server 2025-06-09 16:38:39,613 - DEBUG - VN ctest-vn-22044875 is not present in Agent 10.0.0.27 2025-06-09 16:38:39,613 - INFO - Validated that VN ctest-vn-22044875 is not in any agent 2025-06-09 16:38:39,636 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22044875 info 2025-06-09 16:38:39,636 - INFO - Deleting VN ctest-vn-28503963 2025-06-09 16:38:39,754 - DEBUG - Response for deleting network () 2025-06-09 16:38:39,755 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4e08650e-a5c3-4356-92e6-63431392fb3e 2025-06-09 16:38:39,761 - DEBUG - Response Code: 404 2025-06-09 16:38:39,762 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-06-09 16:38:39,774 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0a252378-2fe3-4975-9406-f9da0efc1018 2025-06-09 16:38:39,828 - DEBUG - Requesting: http://10.0.0.27:8082/project/ae260c9a-fb0b-4fa5-9dd6-fe838240d79a 2025-06-09 16:38:39,904 - INFO - Validated that VN ctest-vn-28503963 is not found in API Server 2025-06-09 16:38:39,917 - DEBUG - VN ctest-vn-28503963 is not present in Agent 10.0.0.27 2025-06-09 16:38:39,917 - INFO - Validated that VN ctest-vn-28503963 is not in any agent 2025-06-09 16:38:39,937 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28503963 info 2025-06-09 16:38:40,197 - DEBUG - No XMPP flaps were noticed during the test
2025-06-09 16:38:40,197 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-09 16:38:40,197 - INFO - -------------------------------------------------------------------------------- 2025-06-09 16:38:40,937 - INFO - Deleted project: ctest-TestBasicPolicy-04545253, ID : ae260c9a-fb0b-4fa5-9dd6-fe838240d79a