2025-10-16 17:13:34,135 - INFO - Domain Default found not creating 2025-10-16 17:13:34,396 - INFO - Project ctest-TestBasicPolicy-48742799 not found, creating it 2025-10-16 17:13:35,012 - INFO - Created Project:ctest-TestBasicPolicy-48742799, ID : 4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:13:37,175 - INFO - ================================================================================ 2025-10-16 17:13:37,176 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-16 17:13:37,176 - 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-10-16 17:13:37,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-10-16 17:13:37,482 - INFO - Initial checks done. Running the testcase now 2025-10-16 17:13:37,482 - INFO - 2025-10-16 17:13:38,276 - DEBUG - Response for create_network : {'network': {'id': '09e6aee8-98e2-45a5-ab6e-73f7f9cda08f', 'name': 'ctest-vn-58495953', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-58495953'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 17:13:38,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9d2734f-8dd8-46c3-b6b9-3f1e1ea233ff', 'name': '', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'network_id': '09e6aee8-98e2-45a5-ab6e-73f7f9cda08f', 'ip_version': 4, 'cidr': '166.120.232.192/26', 'allocation_pools': [{'start': '166.120.232.194', 'end': '166.120.232.254'}], 'gateway_ip': '166.120.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.120.232.194', 'tags': [], 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880'}} 2025-10-16 17:13:38,556 - INFO - Created VN ctest-vn-58495953 2025-10-16 17:13:38,610 - DEBUG - VN ctest-vn-58495953 UUID is 09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:39,290 - DEBUG - Response for create_network : {'network': {'id': '4402cf71-fa0b-4ed9-b7a8-11bc479e83a5', 'name': 'ctest-vn-91921080', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-91921080'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 17:13:39,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bf807ee-d9c5-4a3b-82b5-5d2d34ed86b1', 'name': '', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'network_id': '4402cf71-fa0b-4ed9-b7a8-11bc479e83a5', 'ip_version': 4, 'cidr': '123.88.72.128/26', 'allocation_pools': [{'start': '123.88.72.130', 'end': '123.88.72.190'}], 'gateway_ip': '123.88.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.88.72.130', 'tags': [], 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880'}} 2025-10-16 17:13:39,611 - INFO - Created VN ctest-vn-91921080 2025-10-16 17:13:39,666 - DEBUG - VN ctest-vn-91921080 UUID is 4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:39,787 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953, 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-48742799:ctest-vn-91921080, 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-10-16 17:13:40,228 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09e6aee8-98e2-45a5-ab6e-73f7f9cda08f', 'name': 'ctest-vn-58495953', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9d2734f-8dd8-46c3-b6b9-3f1e1ea233ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-58495953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916']], 'subnet_ipam': [{'subnet_cidr': '166.120.232.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 17:13:40,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4402cf71-fa0b-4ed9-b7a8-11bc479e83a5', 'name': 'ctest-vn-91921080', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bf807ee-d9c5-4a3b-82b5-5d2d34ed86b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-91921080'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916']], 'subnet_ipam': [{'subnet_cidr': '123.88.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 17:13:40,703 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:41,053 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:41,101 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:41,136 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:13:41,264 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:41,292 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:41,316 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33 2025-10-16 17:13:41,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33 2025-10-16 17:13:41,356 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1b81e58a-901e-4515-bee2-a0d62a9d661c 2025-10-16 17:13:41,371 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 17:13:41,371 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:41,386 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33 2025-10-16 17:13:41,415 - INFO - Verified VN network id 11 for VN 09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:41,415 - INFO - Verifications in API Server for VN ctest-vn-58495953 passed 2025-10-16 17:13:41,415 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:41,434 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33 2025-10-16 17:13:41,446 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33 2025-10-16 17:13:41,456 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1b81e58a-901e-4515-bee2-a0d62a9d661c 2025-10-16 17:13:41,476 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48742799', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '713449905005413797', 'uuid-lslong': '12352938336808968335'}, 'enable': 'true', 'created': '2025-10-16T17:13:38', 'last-modified': '2025-10-16T17:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314930'} 2025-10-16 17:13:41,487 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 17:13:41,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58495953 passed 2025-10-16 17:13:41,487 - DEBUG - ====Verifying policy data for ctest-vn-58495953 in API_Server ====== 2025-10-16 17:13:41,487 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:41,494 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:41,511 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:13:41,599 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f 2025-10-16 17:13:41,613 - DEBUG - ==>Verifying data for policy with id: c03e595f-004b-4257-8e8e-cc9c581add33, fqn: ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916'] 2025-10-16 17:13:41,613 - INFO - VN ctest-vn-58495953 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 17:13:41,613 - DEBUG - Verifying the vn in opserver 2025-10-16 17:13:41,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953 virtual network link through opserver 10.0.0.22 2025-10-16 17:13:41,614 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 17:13:41,965 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 17:13:42,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953?flat'} 2025-10-16 17:13:42,073 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953 is found in opserver 2025-10-16 17:13:42,100 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 17:13:42,109 - DEBUG - VRF ids for VN ctest-vn-58495953: {} 2025-10-16 17:13:42,109 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:42,119 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:42,149 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:13:42,270 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:42,293 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:42,311 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c 2025-10-16 17:13:42,324 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c 2025-10-16 17:13:42,339 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/46350da0-f742-4de4-8d1d-c397d6df092f 2025-10-16 17:13:42,354 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-16 17:13:42,355 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:42,373 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c 2025-10-16 17:13:42,406 - INFO - Verified VN network id 12 for VN 4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:42,407 - INFO - Verifications in API Server for VN ctest-vn-91921080 passed 2025-10-16 17:13:42,407 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:42,427 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c 2025-10-16 17:13:42,443 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c 2025-10-16 17:13:42,463 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/46350da0-f742-4de4-8d1d-c397d6df092f 2025-10-16 17:13:42,484 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48742799', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4900707432965820121', 'uuid-lslong': '13233847005381297061'}, 'enable': 'true', 'created': '2025-10-16T17:13:39', 'last-modified': '2025-10-16T17:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.989717'} 2025-10-16 17:13:42,490 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-16 17:13:42,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91921080 passed 2025-10-16 17:13:42,490 - DEBUG - ====Verifying policy data for ctest-vn-91921080 in API_Server ====== 2025-10-16 17:13:42,490 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:42,499 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:42,515 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:13:42,623 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 2025-10-16 17:13:42,643 - DEBUG - ==>Verifying data for policy with id: c03e595f-004b-4257-8e8e-cc9c581add33, fqn: ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916'] 2025-10-16 17:13:42,643 - INFO - VN ctest-vn-91921080 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 17:13:42,643 - DEBUG - Verifying the vn in opserver 2025-10-16 17:13:42,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080 virtual network link through opserver 10.0.0.22 2025-10-16 17:13:42,644 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 17:13:42,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080?flat'} 2025-10-16 17:13:42,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080 is found in opserver 2025-10-16 17:13:42,692 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 17:13:42,699 - DEBUG - VRF ids for VN ctest-vn-91921080: {} 2025-10-16 17:13:42,796 - DEBUG - Services list from nova: [, , ] 2025-10-16 17:13:44,323 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4349-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4349-1) 2025-10-16 17:13:45,592 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4349-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4349-1) 2025-10-16 17:13:45,593 - INFO - Waiting for VM ctest-TestBasicPolicy-48742799-79734298 to be up.. 2025-10-16 17:13:45,669 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-16 17:13:50,795 - DEBUG - VM is in ACTIVE state now 2025-10-16 17:13:50,795 - INFO - VM name : ctest-TestBasicPolicy-48742799-79734298 2025-10-16 17:13:50,920 - DEBUG - VM ctest-TestBasicPolicy-48742799-79734298 ID is 6b9921ff-5c3c-44c0-bfa5-56580e1f152c 2025-10-16 17:13:50,945 - DEBUG - VM ctest-TestBasicPolicy-48742799-79734298 launched on Node cn-jenkins-deploy-platform-ansible-os-4349-1 2025-10-16 17:13:51,041 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/6b9921ff-5c3c-44c0-bfa5-56580e1f152c 2025-10-16 17:13:51,050 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/7c5b0779-7353-4f71-b814-fb08a1260359 2025-10-16 17:13:54,326 - 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 1019ms') 2025-10-16 17:13:54,326 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48742799-79734298 failed! 2025-10-16 17:13:54,398 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953 is 166.120.232.193 and allocation pool is NOT set 2025-10-16 17:13:56,489 - 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.93 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.802/5.868/9.934/4.066 ms') 2025-10-16 17:13:56,489 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48742799-79734298 passed 2025-10-16 17:13:56,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 17:13:56,679 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48742799-79734298, IP 166.120.232.195, Port 22 2025-10-16 17:13:56,761 - 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-10-16 17:13:56,938 - DEBUG - VM ctest-TestBasicPolicy-48742799-79734298 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-16 17:14:01,939 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 17:14:01,940 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48742799-79734298, IP 166.120.232.195, Port 22 2025-10-16 17:14:02,125 - DEBUG - VM ctest-TestBasicPolicy-48742799-79734298 is ready for SSH connections 2025-10-16 17:14:02,125 - INFO - Waiting for VM ctest-TestBasicPolicy-48742799-42569978 to be up.. 2025-10-16 17:14:02,269 - DEBUG - VM is in ACTIVE state now 2025-10-16 17:14:02,269 - INFO - VM name : ctest-TestBasicPolicy-48742799-42569978 2025-10-16 17:14:02,417 - DEBUG - VM ctest-TestBasicPolicy-48742799-42569978 ID is e25eed80-a410-43d0-aed4-198ad669d6f8 2025-10-16 17:14:02,418 - DEBUG - VM ctest-TestBasicPolicy-48742799-42569978 launched on Node cn-jenkins-deploy-platform-ansible-os-4349-1 2025-10-16 17:14:02,562 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e25eed80-a410-43d0-aed4-198ad669d6f8 2025-10-16 17:14:02,577 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/c9413ff0-8a31-42fb-958d-cd0099c042ce 2025-10-16 17:14:03,878 - 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=9.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.497 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.497/4.782/9.068/4.285 ms') 2025-10-16 17:14:03,878 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-48742799-42569978 passed 2025-10-16 17:14:04,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 17:14:04,042 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48742799-42569978, IP 123.88.72.131, Port 22 2025-10-16 17:14:04,238 - DEBUG - VM ctest-TestBasicPolicy-48742799-42569978 is ready for SSH connections 2025-10-16 17:14:04,238 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 17:14:04,238 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.88.72.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-10-16 17:14:04,239 - DEBUG - ping -s 56 -c 3 -W 1 123.88.72.131 2025-10-16 17:14:08,764 - DEBUG - PING 123.88.72.131 (123.88.72.131): 56 data bytes 64 bytes from 123.88.72.131: seq=0 ttl=63 time=3.995 ms 64 bytes from 123.88.72.131: seq=1 ttl=63 time=1.763 ms 64 bytes from 123.88.72.131: seq=2 ttl=63 time=2.107 ms --- 123.88.72.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.763/2.621/3.995 ms 2025-10-16 17:14:08,764 - INFO - Ping to IP 123.88.72.131 from VM ctest-TestBasicPolicy-48742799-79734298 passed 2025-10-16 17:14:08,998 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c03e595f-004b-4257-8e8e-cc9c581add33", "href": "http://10.0.0.22:8082/network-policy/c03e595f-004b-4257-8e8e-cc9c581add33"}} 2025-10-16 17:14:08,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 17:14:08,998 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.88.72.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-10-16 17:14:08,999 - DEBUG - ping -s 56 -c 3 -W 1 123.88.72.131 2025-10-16 17:14:12,361 - DEBUG - PING 123.88.72.131 (123.88.72.131): 56 data bytes 64 bytes from 123.88.72.131: seq=0 ttl=63 time=2.019 ms --- 123.88.72.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.019/2.019/2.019 ms 2025-10-16 17:14:12,361 - WARNING - Ping to IP 123.88.72.131 from VM ctest-TestBasicPolicy-48742799-79734298 failed 2025-10-16 17:14:12,361 - INFO - Deleting VM ctest-TestBasicPolicy-48742799-42569978 2025-10-16 17:14:12,499 - INFO - Deleting VM ctest-TestBasicPolicy-48742799-79734298 2025-10-16 17:14:13,036 - INFO - Deleted policy ctest-policy-allow-all-91146916 2025-10-16 17:14:13,036 - INFO - Deleting VN ctest-vn-91921080 2025-10-16 17:14:13,083 - DEBUG - VN 4402cf71-fa0b-4ed9-b7a8-11bc479e83a5 still in use: Unable to complete operation on network 4402cf71-fa0b-4ed9-b7a8-11bc479e83a5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-23762a58-6b49-43b9-a589-446f993eef89'] 2025-10-16 17:14:13,083 - WARNING - Deleting VN ctest-vn-91921080 failed..Will retry 2025-10-16 17:14:15,268 - DEBUG - Response for deleting network () 2025-10-16 17:14:15,268 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c 2025-10-16 17:14:15,277 - DEBUG - Response Code: 404 2025-10-16 17:14:15,277 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:14:15,290 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:14:15,309 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:14:15,400 - INFO - Validated that VN ctest-vn-91921080 is not found in API Server 2025-10-16 17:14:15,418 - DEBUG - VN ctest-vn-91921080 is not present in Agent 10.0.0.22 2025-10-16 17:14:15,418 - INFO - Validated that VN ctest-vn-91921080 is not in any agent 2025-10-16 17:14:15,448 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91921080 info 2025-10-16 17:14:15,448 - INFO - Deleting VN ctest-vn-58495953 2025-10-16 17:14:15,667 - DEBUG - Response for deleting network () 2025-10-16 17:14:15,667 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33 2025-10-16 17:14:15,678 - DEBUG - Response Code: 404 2025-10-16 17:14:15,679 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:14:15,686 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:14:15,744 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880 2025-10-16 17:14:15,864 - INFO - Validated that VN ctest-vn-58495953 is not found in API Server 2025-10-16 17:14:15,891 - DEBUG - VN ctest-vn-58495953 is not present in Agent 10.0.0.22 2025-10-16 17:14:15,891 - INFO - Validated that VN ctest-vn-58495953 is not in any agent 2025-10-16 17:14:15,919 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58495953 info 2025-10-16 17:14:16,216 - DEBUG - No XMPP flaps were noticed during the test 2025-10-16 17:14:16,216 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-10-16 17:14:16,216 - INFO - -------------------------------------------------------------------------------- 2025-10-16 17:14:17,114 - INFO - Deleted project: ctest-TestBasicPolicy-48742799, ID : 4e2e4413-ff95-4f5f-a8ee-5fa4fa096880