2025-06-16 20:53:04,764 - INFO - Domain Default found not creating 2025-06-16 20:53:04,926 - INFO - Project ctest-TestBasicPolicy-57025915 not found, creating it 2025-06-16 20:53:05,438 - INFO - Created Project:ctest-TestBasicPolicy-57025915, ID : c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:07,081 - INFO - ================================================================================ 2025-06-16 20:53:07,082 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-16 20:53:07,082 - 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-16 20:53:07,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-06-16 20:53:07,342 - INFO - Initial checks done. Running the testcase now 2025-06-16 20:53:07,342 - INFO - 2025-06-16 20:53:07,963 - DEBUG - Response for create_network : {'network': {'id': 'c03c384c-d629-4829-b006-4bb14034adef', 'name': 'ctest-vn-57682148', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-57682148'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 20:53:08,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '98e80629-f6fd-4f49-bf10-4f13f2506906', 'name': '', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'network_id': 'c03c384c-d629-4829-b006-4bb14034adef', 'ip_version': 4, 'cidr': '55.226.225.64/26', 'allocation_pools': [{'start': '55.226.225.66', 'end': '55.226.225.126'}], 'gateway_ip': '55.226.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.226.225.66', 'tags': [], 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103'}} 2025-06-16 20:53:08,159 - INFO - Created VN ctest-vn-57682148 2025-06-16 20:53:08,215 - DEBUG - VN ctest-vn-57682148 UUID is c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:08,569 - DEBUG - Response for create_network : {'network': {'id': '4a7ae742-d013-4918-9322-06848db5692d', 'name': 'ctest-vn-80081620', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-80081620'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 20:53:08,734 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e9b7dfc-0d3e-4b85-a791-31616c46cae5', 'name': '', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'network_id': '4a7ae742-d013-4918-9322-06848db5692d', 'ip_version': 4, 'cidr': '25.225.159.128/26', 'allocation_pools': [{'start': '25.225.159.130', 'end': '25.225.159.190'}], 'gateway_ip': '25.225.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.225.159.130', 'tags': [], 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103'}} 2025-06-16 20:53:08,755 - INFO - Created VN ctest-vn-80081620 2025-06-16 20:53:08,811 - DEBUG - VN ctest-vn-80081620 UUID is 4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:08,933 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148, 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-57025915:ctest-vn-80081620, 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-16 20:53:09,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c03c384c-d629-4829-b006-4bb14034adef', 'name': 'ctest-vn-57682148', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98e80629-f6fd-4f49-bf10-4f13f2506906'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-57682148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357']], 'subnet_ipam': [{'subnet_cidr': '55.226.225.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-16 20:53:09,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a7ae742-d013-4918-9322-06848db5692d', 'name': 'ctest-vn-80081620', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e9b7dfc-0d3e-4b85-a791-31616c46cae5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-80081620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357']], 'subnet_ipam': [{'subnet_cidr': '25.225.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-16 20:53:09,631 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:09,970 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:10,008 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4 2025-06-16 20:53:10,027 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:10,107 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:10,122 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:10,134 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f 2025-06-16 20:53:10,143 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f 2025-06-16 20:53:10,151 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e3190c6f-a2dc-4d82-951b-ce66547bbb88 2025-06-16 20:53:10,160 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-16 20:53:10,160 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:10,171 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f 2025-06-16 20:53:10,198 - INFO - Verified VN network id 9 for VN c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:10,198 - INFO - Verifications in API Server for VN ctest-vn-57682148 passed 2025-06-16 20:53:10,198 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:10,210 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f 2025-06-16 20:53:10,220 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f 2025-06-16 20:53:10,231 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e3190c6f-a2dc-4d82-951b-ce66547bbb88 2025-06-16 20:53:10,249 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57025915', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13852008456546502697', 'uuid-lslong': '12683908625194069487'}, 'enable': 'true', 'created': '2025-06-16T20:53:07', 'last-modified': '2025-06-16T20:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027403'} 2025-06-16 20:53:10,257 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-16 20:53:10,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57682148 passed 2025-06-16 20:53:10,257 - DEBUG - ====Verifying policy data for ctest-vn-57682148 in API_Server ====== 2025-06-16 20:53:10,257 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:10,264 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4 2025-06-16 20:53:10,283 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:10,366 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef 2025-06-16 20:53:10,378 - DEBUG - ==>Verifying data for policy with id: f3788043-fd39-42e4-af4e-0188d2e69e45, fqn: ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357'] 2025-06-16 20:53:10,378 - INFO - VN ctest-vn-57682148 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-16 20:53:10,378 - DEBUG - Verifying the vn in opserver 2025-06-16 20:53:10,378 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148 virtual network link through opserver 10.0.0.57 2025-06-16 20:53:10,378 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-16 20:53:10,720 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-16 20:53:10,794 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148?flat'} 2025-06-16 20:53:10,794 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148 is found in opserver 2025-06-16 20:53:10,807 - DEBUG - Do not have enough data to verify VN in agent 2025-06-16 20:53:10,816 - DEBUG - VRF ids for VN ctest-vn-57682148: {} 2025-06-16 20:53:10,816 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:10,823 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4 2025-06-16 20:53:10,837 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:10,917 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:10,931 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:10,942 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee 2025-06-16 20:53:10,950 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee 2025-06-16 20:53:10,959 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ab1748d8-09fe-4d54-a6ba-ef0034c5db7b 2025-06-16 20:53:10,967 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-16 20:53:10,967 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:10,980 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee 2025-06-16 20:53:10,999 - INFO - Verified VN network id 10 for VN 4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:10,999 - INFO - Verifications in API Server for VN ctest-vn-80081620 passed 2025-06-16 20:53:10,999 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:11,013 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee 2025-06-16 20:53:11,024 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee 2025-06-16 20:53:11,035 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ab1748d8-09fe-4d54-a6ba-ef0034c5db7b 2025-06-16 20:53:11,052 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57025915', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5366856180110149912', 'uuid-lslong': '10602043639166495021'}, 'enable': 'true', 'created': '2025-06-16T20:53:08', 'last-modified': '2025-06-16T20:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624970'} 2025-06-16 20:53:11,060 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-16 20:53:11,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80081620 passed 2025-06-16 20:53:11,060 - DEBUG - ====Verifying policy data for ctest-vn-80081620 in API_Server ====== 2025-06-16 20:53:11,060 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:11,066 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4 2025-06-16 20:53:11,079 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:11,161 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d 2025-06-16 20:53:11,172 - DEBUG - ==>Verifying data for policy with id: f3788043-fd39-42e4-af4e-0188d2e69e45, fqn: ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357'] 2025-06-16 20:53:11,172 - INFO - VN ctest-vn-80081620 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-16 20:53:11,172 - DEBUG - Verifying the vn in opserver 2025-06-16 20:53:11,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620 virtual network link through opserver 10.0.0.57 2025-06-16 20:53:11,172 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-16 20:53:11,183 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620?flat'} 2025-06-16 20:53:11,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620 is found in opserver 2025-06-16 20:53:11,195 - DEBUG - Do not have enough data to verify VN in agent 2025-06-16 20:53:11,201 - DEBUG - VRF ids for VN ctest-vn-80081620: {} 2025-06-16 20:53:11,267 - DEBUG - Services list from nova: [, , ] 2025-06-16 20:53:12,410 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3457-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3457-1) 2025-06-16 20:53:14,180 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3457-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3457-1) 2025-06-16 20:53:14,180 - INFO - Waiting for VM ctest-TestBasicPolicy-57025915-45244209 to be up.. 2025-06-16 20:53:14,367 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-16 20:53:19,497 - DEBUG - VM is in ACTIVE state now 2025-06-16 20:53:19,497 - INFO - VM name : ctest-TestBasicPolicy-57025915-45244209 2025-06-16 20:53:19,606 - DEBUG - VM ctest-TestBasicPolicy-57025915-45244209 ID is b58fdfb6-8146-4747-829a-6236d46c85a3 2025-06-16 20:53:19,635 - DEBUG - VM ctest-TestBasicPolicy-57025915-45244209 launched on Node cn-jenkins-deploy-platform-ansible-os-3457-1 2025-06-16 20:53:19,723 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/b58fdfb6-8146-4747-829a-6236d46c85a3 2025-06-16 20:53:19,736 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/ab74df35-7c8d-4559-9c5d-028cd6e714f3 2025-06-16 20:53:23,016 - 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 1026ms') 2025-06-16 20:53:23,016 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57025915-45244209 failed! 2025-06-16 20:53:23,071 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148 is 55.226.225.65 and allocation pool is NOT set 2025-06-16 20:53:25,141 - 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=9.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.80 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.803/5.531/9.259/3.728 ms') 2025-06-16 20:53:25,142 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57025915-45244209 passed 2025-06-16 20:53:25,295 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:53:25,295 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57025915-45244209, IP 55.226.225.67, Port 22 2025-06-16 20:53:25,361 - 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-16 20:53:25,467 - DEBUG - VM ctest-TestBasicPolicy-57025915-45244209 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-16 20:53:30,468 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:53:30,468 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57025915-45244209, IP 55.226.225.67, Port 22 2025-06-16 20:53:30,626 - DEBUG - VM ctest-TestBasicPolicy-57025915-45244209 is ready for SSH connections 2025-06-16 20:53:30,627 - INFO - Waiting for VM ctest-TestBasicPolicy-57025915-43155802 to be up.. 2025-06-16 20:53:30,715 - DEBUG - VM is in ACTIVE state now 2025-06-16 20:53:30,715 - INFO - VM name : ctest-TestBasicPolicy-57025915-43155802 2025-06-16 20:53:30,800 - DEBUG - VM ctest-TestBasicPolicy-57025915-43155802 ID is a315167c-f52b-4e26-8852-a3772dffc660 2025-06-16 20:53:30,800 - DEBUG - VM ctest-TestBasicPolicy-57025915-43155802 launched on Node cn-jenkins-deploy-platform-ansible-os-3457-1 2025-06-16 20:53:30,887 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/a315167c-f52b-4e26-8852-a3772dffc660 2025-06-16 20:53:30,897 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/692189b1-c735-4d09-97a6-15b31efa8e5c 2025-06-16 20:53:32,143 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.488 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.488/1.818/3.149/1.330 ms') 2025-06-16 20:53:32,143 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-57025915-43155802 passed 2025-06-16 20:53:32,299 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:53:32,299 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57025915-43155802, IP 25.225.159.131, Port 22 2025-06-16 20:53:32,469 - DEBUG - VM ctest-TestBasicPolicy-57025915-43155802 is ready for SSH connections 2025-06-16 20:53:32,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:53:32,469 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.225.159.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-16 20:53:32,470 - DEBUG - ping -s 56 -c 3 -W 1 25.225.159.131 2025-06-16 20:53:36,565 - DEBUG - PING 25.225.159.131 (25.225.159.131): 56 data bytes 64 bytes from 25.225.159.131: seq=0 ttl=63 time=3.560 ms 64 bytes from 25.225.159.131: seq=1 ttl=63 time=1.380 ms 64 bytes from 25.225.159.131: seq=2 ttl=63 time=1.112 ms --- 25.225.159.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.112/2.017/3.560 ms 2025-06-16 20:53:36,565 - INFO - Ping to IP 25.225.159.131 from VM ctest-TestBasicPolicy-57025915-45244209 passed 2025-06-16 20:53:36,750 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f3788043-fd39-42e4-af4e-0188d2e69e45", "href": "http://10.0.0.57:8082/network-policy/f3788043-fd39-42e4-af4e-0188d2e69e45"}} 2025-06-16 20:53:36,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:53:36,751 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.225.159.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-16 20:53:36,751 - DEBUG - ping -s 56 -c 3 -W 1 25.225.159.131 2025-06-16 20:53:39,985 - DEBUG - PING 25.225.159.131 (25.225.159.131): 56 data bytes 64 bytes from 25.225.159.131: seq=0 ttl=63 time=1.688 ms --- 25.225.159.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.688/1.688/1.688 ms 2025-06-16 20:53:39,985 - WARNING - Ping to IP 25.225.159.131 from VM ctest-TestBasicPolicy-57025915-45244209 failed 2025-06-16 20:53:39,985 - INFO - Deleting VM ctest-TestBasicPolicy-57025915-43155802 2025-06-16 20:53:40,082 - INFO - Deleting VM ctest-TestBasicPolicy-57025915-45244209 2025-06-16 20:53:40,575 - INFO - Deleted policy ctest-policy-allow-all-95474357 2025-06-16 20:53:40,575 - INFO - Deleting VN ctest-vn-80081620 2025-06-16 20:53:40,623 - DEBUG - VN 4a7ae742-d013-4918-9322-06848db5692d still in use: Unable to complete operation on network 4a7ae742-d013-4918-9322-06848db5692d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b21f8ae1-470b-4366-93a8-058809c8fc81'] 2025-06-16 20:53:40,623 - WARNING - Deleting VN ctest-vn-80081620 failed..Will retry 2025-06-16 20:53:42,766 - DEBUG - Response for deleting network () 2025-06-16 20:53:42,766 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee 2025-06-16 20:53:42,776 - DEBUG - Response Code: 404 2025-06-16 20:53:42,777 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:42,783 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4 2025-06-16 20:53:42,843 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:42,919 - INFO - Validated that VN ctest-vn-80081620 is not found in API Server 2025-06-16 20:53:42,931 - DEBUG - VN ctest-vn-80081620 is not present in Agent 10.0.0.57 2025-06-16 20:53:42,931 - INFO - Validated that VN ctest-vn-80081620 is not in any agent 2025-06-16 20:53:42,949 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80081620 info 2025-06-16 20:53:42,949 - INFO - Deleting VN ctest-vn-57682148 2025-06-16 20:53:43,069 - DEBUG - Response for deleting network () 2025-06-16 20:53:43,070 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f 2025-06-16 20:53:43,077 - DEBUG - Response Code: 404 2025-06-16 20:53:43,077 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-16 20:53:43,085 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4 2025-06-16 20:53:43,140 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103 2025-06-16 20:53:43,218 - INFO - Validated that VN ctest-vn-57682148 is not found in API Server 2025-06-16 20:53:43,230 - DEBUG - VN ctest-vn-57682148 is not present in Agent 10.0.0.57 2025-06-16 20:53:43,230 - INFO - Validated that VN ctest-vn-57682148 is not in any agent 2025-06-16 20:53:43,248 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57682148 info 2025-06-16 20:53:43,506 - DEBUG - No XMPP flaps were noticed during the test 2025-06-16 20:53:43,506 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-06-16 20:53:43,506 - INFO - -------------------------------------------------------------------------------- 2025-06-16 20:53:44,260 - INFO - Deleted project: ctest-TestBasicPolicy-57025915, ID : c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103