2025-11-05 20:07:02,841 - INFO - Domain Default found not creating 2025-11-05 20:07:03,156 - INFO - Project ctest-TestBasicPolicy-20426511 not found, creating it 2025-11-05 20:07:03,745 - INFO - Created Project:ctest-TestBasicPolicy-20426511, ID : d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:05,861 - INFO - ================================================================================ 2025-11-05 20:07:05,861 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-05 20:07:05,861 - 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-11-05 20:07:06,177 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2025-11-05 20:07:06,177 - INFO - Initial checks done. Running the testcase now 2025-11-05 20:07:06,177 - INFO - 2025-11-05 20:07:06,957 - DEBUG - Response for create_network : {'network': {'id': '93edc923-d6ae-4f4b-b12e-5b10dc83b7b3', 'name': 'ctest-vn-87804657', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-87804657'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 20:07:07,138 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2edcda4-4e43-41cd-b23f-8f2a8f00b3dc', 'name': '', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'network_id': '93edc923-d6ae-4f4b-b12e-5b10dc83b7b3', 'ip_version': 4, 'cidr': '31.137.29.128/26', 'allocation_pools': [{'start': '31.137.29.130', 'end': '31.137.29.190'}], 'gateway_ip': '31.137.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.137.29.130', 'tags': [], 'project_id': 'd964ae31101b457489bf36a9b01af1e9'}} 2025-11-05 20:07:07,160 - INFO - Created VN ctest-vn-87804657 2025-11-05 20:07:07,215 - DEBUG - VN ctest-vn-87804657 UUID is 93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:07,583 - DEBUG - Response for create_network : {'network': {'id': 'ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7', 'name': 'ctest-vn-53693548', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-53693548'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 20:07:07,833 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2a2282b-08ed-451f-9f4b-facc05dcb61c', 'name': '', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'network_id': 'ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7', 'ip_version': 4, 'cidr': '209.96.77.128/26', 'allocation_pools': [{'start': '209.96.77.130', 'end': '209.96.77.190'}], 'gateway_ip': '209.96.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.96.77.130', 'tags': [], 'project_id': 'd964ae31101b457489bf36a9b01af1e9'}} 2025-11-05 20:07:07,855 - INFO - Created VN ctest-vn-53693548 2025-11-05 20:07:07,912 - DEBUG - VN ctest-vn-53693548 UUID is ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:08,071 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657, 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-20426511:ctest-vn-53693548, 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-11-05 20:07:08,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93edc923-d6ae-4f4b-b12e-5b10dc83b7b3', 'name': 'ctest-vn-87804657', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2edcda4-4e43-41cd-b23f-8f2a8f00b3dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-87804657'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297']], 'subnet_ipam': [{'subnet_cidr': '31.137.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 20:07:08,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7', 'name': 'ctest-vn-53693548', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2a2282b-08ed-451f-9f4b-facc05dcb61c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-53693548'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297']], 'subnet_ipam': [{'subnet_cidr': '209.96.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 20:07:08,972 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:09,314 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:09,352 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:09,373 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:09,467 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:09,492 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:09,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653 2025-11-05 20:07:09,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653 2025-11-05 20:07:09,541 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/40c8ca86-2603-4049-8380-40a5f21b8351 2025-11-05 20:07:09,554 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 20:07:09,555 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:09,572 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653 2025-11-05 20:07:09,602 - INFO - Verified VN network id 10 for VN 93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:09,603 - INFO - Verifications in API Server for VN ctest-vn-87804657 passed 2025-11-05 20:07:09,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:09,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653 2025-11-05 20:07:09,647 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653 2025-11-05 20:07:09,665 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/40c8ca86-2603-4049-8380-40a5f21b8351 2025-11-05 20:07:09,687 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20426511', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10659397048818618187', 'uuid-lslong': '12767242121619158963'}, 'enable': 'true', 'created': '2025-11-05T20:07:06', 'last-modified': '2025-11-05T20:07:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.219586'} 2025-11-05 20:07:09,699 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 20:07:09,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87804657 passed 2025-11-05 20:07:09,700 - DEBUG - ====Verifying policy data for ctest-vn-87804657 in API_Server ====== 2025-11-05 20:07:09,700 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:09,709 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:09,725 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:09,806 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3 2025-11-05 20:07:09,819 - DEBUG - ==>Verifying data for policy with id: 5b179b91-a9d6-49d0-a194-5d652e1e4cd1, fqn: ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297'] 2025-11-05 20:07:09,819 - INFO - VN ctest-vn-87804657 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 20:07:09,819 - DEBUG - Verifying the vn in opserver 2025-11-05 20:07:09,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657 virtual network link through opserver 10.0.0.50 2025-11-05 20:07:09,819 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 20:07:10,125 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 20:07:10,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657?flat'} 2025-11-05 20:07:10,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657 is found in opserver 2025-11-05 20:07:10,280 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 20:07:10,292 - DEBUG - VRF ids for VN ctest-vn-87804657: {} 2025-11-05 20:07:10,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:10,303 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:10,331 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:10,452 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:10,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:10,510 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602 2025-11-05 20:07:10,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602 2025-11-05 20:07:10,543 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8f0ea57-80cd-45b5-9ede-208d783ab6f4 2025-11-05 20:07:10,562 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 20:07:10,562 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:10,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602 2025-11-05 20:07:10,628 - INFO - Verified VN network id 11 for VN ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:10,629 - INFO - Verifications in API Server for VN ctest-vn-53693548 passed 2025-11-05 20:07:10,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:10,659 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602 2025-11-05 20:07:10,678 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602 2025-11-05 20:07:10,701 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8f0ea57-80cd-45b5-9ede-208d783ab6f4 2025-11-05 20:07:10,731 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20426511', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18437415492977772051', 'uuid-lslong': '12571058721151475655'}, 'enable': 'true', 'created': '2025-11-05T20:07:07', 'last-modified': '2025-11-05T20:07:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.941766'} 2025-11-05 20:07:10,748 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-05 20:07:10,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53693548 passed 2025-11-05 20:07:10,749 - DEBUG - ====Verifying policy data for ctest-vn-53693548 in API_Server ====== 2025-11-05 20:07:10,749 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:10,760 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:10,782 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:10,899 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 2025-11-05 20:07:10,919 - DEBUG - ==>Verifying data for policy with id: 5b179b91-a9d6-49d0-a194-5d652e1e4cd1, fqn: ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297'] 2025-11-05 20:07:10,919 - INFO - VN ctest-vn-53693548 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 20:07:10,919 - DEBUG - Verifying the vn in opserver 2025-11-05 20:07:10,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548 virtual network link through opserver 10.0.0.50 2025-11-05 20:07:10,919 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 20:07:10,936 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548?flat'} 2025-11-05 20:07:10,936 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548 is found in opserver 2025-11-05 20:07:10,956 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 20:07:10,969 - DEBUG - VRF ids for VN ctest-vn-53693548: {} 2025-11-05 20:07:11,088 - DEBUG - Services list from nova: [, , ] 2025-11-05 20:07:12,580 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4655-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4655-1) 2025-11-05 20:07:14,000 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4655-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4655-1) 2025-11-05 20:07:14,000 - INFO - Waiting for VM ctest-TestBasicPolicy-20426511-90551600 to be up.. 2025-11-05 20:07:14,090 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 20:07:19,228 - DEBUG - VM is in ACTIVE state now 2025-11-05 20:07:19,228 - INFO - VM name : ctest-TestBasicPolicy-20426511-90551600 2025-11-05 20:07:19,353 - DEBUG - VM ctest-TestBasicPolicy-20426511-90551600 ID is 97587d32-d5f7-4033-b824-4f2a13cda0e8 2025-11-05 20:07:19,382 - DEBUG - VM ctest-TestBasicPolicy-20426511-90551600 launched on Node cn-jenkins-deploy-platform-ansible-os-4655-1 2025-11-05 20:07:19,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/97587d32-d5f7-4033-b824-4f2a13cda0e8 2025-11-05 20:07:19,494 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/7ed6b98a-028d-4698-ae04-dbfd04c6cb67 2025-11-05 20:07:22,792 - 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 1018ms') 2025-11-05 20:07:22,792 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20426511-90551600 failed! 2025-11-05 20:07:22,852 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657 is 31.137.29.129 and allocation pool is NOT set 2025-11-05 20:07:24,931 - 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=10.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.75 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.749/6.115/10.482/4.366 ms') 2025-11-05 20:07:24,931 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20426511-90551600 passed 2025-11-05 20:07:25,088 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 20:07:25,088 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20426511-90551600, IP 31.137.29.131, Port 22 2025-11-05 20:07:25,154 - 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-11-05 20:07:25,256 - DEBUG - VM ctest-TestBasicPolicy-20426511-90551600 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 20:07:30,257 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 20:07:30,257 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20426511-90551600, IP 31.137.29.131, Port 22 2025-11-05 20:07:30,449 - DEBUG - VM ctest-TestBasicPolicy-20426511-90551600 is ready for SSH connections 2025-11-05 20:07:30,449 - INFO - Waiting for VM ctest-TestBasicPolicy-20426511-75040319 to be up.. 2025-11-05 20:07:30,627 - DEBUG - VM is in ACTIVE state now 2025-11-05 20:07:30,627 - INFO - VM name : ctest-TestBasicPolicy-20426511-75040319 2025-11-05 20:07:30,751 - DEBUG - VM ctest-TestBasicPolicy-20426511-75040319 ID is 1c914156-aa09-4cac-9ec3-1471d8418472 2025-11-05 20:07:30,751 - DEBUG - VM ctest-TestBasicPolicy-20426511-75040319 launched on Node cn-jenkins-deploy-platform-ansible-os-4655-1 2025-11-05 20:07:30,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/1c914156-aa09-4cac-9ec3-1471d8418472 2025-11-05 20:07:30,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/0b2973f2-ccbd-4df6-a897-11e59d636718 2025-11-05 20:07:32,160 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.614 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.614/5.175/9.737/4.561 ms') 2025-11-05 20:07:32,160 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-20426511-75040319 passed 2025-11-05 20:07:32,328 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 20:07:32,328 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20426511-75040319, IP 209.96.77.131, Port 22 2025-11-05 20:07:32,521 - DEBUG - VM ctest-TestBasicPolicy-20426511-75040319 is ready for SSH connections 2025-11-05 20:07:32,521 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 20:07:32,521 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.96.77.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-05 20:07:32,521 - DEBUG - ping -s 56 -c 3 -W 1 209.96.77.131 2025-11-05 20:07:36,936 - DEBUG - PING 209.96.77.131 (209.96.77.131): 56 data bytes 64 bytes from 209.96.77.131: seq=0 ttl=63 time=3.670 ms 64 bytes from 209.96.77.131: seq=1 ttl=63 time=1.146 ms 64 bytes from 209.96.77.131: seq=2 ttl=63 time=1.683 ms --- 209.96.77.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.146/2.166/3.670 ms 2025-11-05 20:07:36,936 - INFO - Ping to IP 209.96.77.131 from VM ctest-TestBasicPolicy-20426511-90551600 passed 2025-11-05 20:07:37,155 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5b179b91-a9d6-49d0-a194-5d652e1e4cd1", "href": "http://10.0.0.50:8082/network-policy/5b179b91-a9d6-49d0-a194-5d652e1e4cd1"}} 2025-11-05 20:07:37,155 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 20:07:37,156 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.96.77.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-05 20:07:37,156 - DEBUG - ping -s 56 -c 3 -W 1 209.96.77.131 2025-11-05 20:07:40,383 - DEBUG - PING 209.96.77.131 (209.96.77.131): 56 data bytes --- 209.96.77.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-05 20:07:40,383 - WARNING - Ping to IP 209.96.77.131 from VM ctest-TestBasicPolicy-20426511-90551600 failed 2025-11-05 20:07:40,384 - INFO - Deleting VM ctest-TestBasicPolicy-20426511-75040319 2025-11-05 20:07:40,544 - INFO - Deleting VM ctest-TestBasicPolicy-20426511-90551600 2025-11-05 20:07:40,984 - INFO - Deleted policy ctest-policy-allow-all-51187297 2025-11-05 20:07:40,984 - INFO - Deleting VN ctest-vn-53693548 2025-11-05 20:07:41,030 - DEBUG - VN ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7 still in use: Unable to complete operation on network ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2c93ad6f-27f8-4526-959b-281c6a6548b8'] 2025-11-05 20:07:41,030 - WARNING - Deleting VN ctest-vn-53693548 failed..Will retry 2025-11-05 20:07:43,235 - DEBUG - Response for deleting network () 2025-11-05 20:07:43,235 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602 2025-11-05 20:07:43,251 - DEBUG - Response Code: 404 2025-11-05 20:07:43,251 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:43,257 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:43,311 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:43,419 - INFO - Validated that VN ctest-vn-53693548 is not found in API Server 2025-11-05 20:07:43,434 - DEBUG - VN ctest-vn-53693548 is not present in Agent 10.0.0.50 2025-11-05 20:07:43,434 - INFO - Validated that VN ctest-vn-53693548 is not in any agent 2025-11-05 20:07:43,452 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53693548 info 2025-11-05 20:07:43,452 - INFO - Deleting VN ctest-vn-87804657 2025-11-05 20:07:43,656 - DEBUG - Response for deleting network () 2025-11-05 20:07:43,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653 2025-11-05 20:07:43,667 - DEBUG - Response Code: 404 2025-11-05 20:07:43,668 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:43,673 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:43,729 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9 2025-11-05 20:07:43,806 - INFO - Validated that VN ctest-vn-87804657 is not found in API Server 2025-11-05 20:07:43,816 - DEBUG - VN ctest-vn-87804657 is not present in Agent 10.0.0.50 2025-11-05 20:07:43,816 - INFO - Validated that VN ctest-vn-87804657 is not in any agent 2025-11-05 20:07:43,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87804657 info 2025-11-05 20:07:44,126 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 20:07:44,126 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-11-05 20:07:44,126 - INFO - -------------------------------------------------------------------------------- 2025-11-05 20:07:45,039 - INFO - Deleted project: ctest-TestBasicPolicy-20426511, ID : d964ae31-101b-4574-89bf-36a9b01af1e9