2025-11-10 20:22:27,622 - INFO - Domain Default found not creating 2025-11-10 20:22:27,901 - INFO - Project ctest-TestBasicPolicy-62206916 not found, creating it 2025-11-10 20:22:28,505 - INFO - Created Project:ctest-TestBasicPolicy-62206916, ID : c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:22:30,398 - INFO - ================================================================================ 2025-11-10 20:22:30,399 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-10 20:22:30,399 - 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-10 20:22:30,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with 2025-11-10 20:22:30,721 - INFO - Initial checks done. Running the testcase now 2025-11-10 20:22:30,721 - INFO - 2025-11-10 20:22:31,515 - DEBUG - Response for create_network : {'network': {'id': '320551eb-f909-41c6-9d61-123ef624efa8', 'name': 'ctest-vn-68598921', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-68598921'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:22:31,733 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd98f79fb-0f20-408a-902b-c5d2dbe48239', 'name': '', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'network_id': '320551eb-f909-41c6-9d61-123ef624efa8', 'ip_version': 4, 'cidr': '172.141.254.64/26', 'allocation_pools': [{'start': '172.141.254.66', 'end': '172.141.254.126'}], 'gateway_ip': '172.141.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.141.254.66', 'tags': [], 'project_id': 'c83b425e171b4cf795d2c9985469ed23'}} 2025-11-10 20:22:31,757 - INFO - Created VN ctest-vn-68598921 2025-11-10 20:22:31,820 - DEBUG - VN ctest-vn-68598921 UUID is 320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:32,276 - DEBUG - Response for create_network : {'network': {'id': '02c3b2aa-5d15-4142-8d7e-cf3726a2c545', 'name': 'ctest-vn-30312698', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-30312698'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:22:32,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '88936cb8-5e7d-46c4-98c0-6acc76d4a519', 'name': '', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'network_id': '02c3b2aa-5d15-4142-8d7e-cf3726a2c545', 'ip_version': 4, 'cidr': '158.38.198.128/26', 'allocation_pools': [{'start': '158.38.198.130', 'end': '158.38.198.190'}], 'gateway_ip': '158.38.198.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.38.198.130', 'tags': [], 'project_id': 'c83b425e171b4cf795d2c9985469ed23'}} 2025-11-10 20:22:32,552 - INFO - Created VN ctest-vn-30312698 2025-11-10 20:22:32,604 - DEBUG - VN ctest-vn-30312698 UUID is 02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:32,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921, 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-62206916:ctest-vn-30312698, 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-10 20:22:33,157 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '320551eb-f909-41c6-9d61-123ef624efa8', 'name': 'ctest-vn-68598921', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d98f79fb-0f20-408a-902b-c5d2dbe48239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-68598921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455']], 'subnet_ipam': [{'subnet_cidr': '172.141.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:22:33,427 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02c3b2aa-5d15-4142-8d7e-cf3726a2c545', 'name': 'ctest-vn-30312698', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88936cb8-5e7d-46c4-98c0-6acc76d4a519'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-30312698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455']], 'subnet_ipam': [{'subnet_cidr': '158.38.198.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:22:33,604 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:22:33,933 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:22:33,991 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e 2025-11-10 20:22:34,005 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:22:34,089 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:34,107 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:34,125 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc 2025-11-10 20:22:34,137 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc 2025-11-10 20:22:34,148 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e78c3f5c-2d1d-4a4e-9717-28b161eaae8a 2025-11-10 20:22:34,158 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 20:22:34,158 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:34,174 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc 2025-11-10 20:22:34,192 - INFO - Verified VN network id 11 for VN 320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:34,192 - INFO - Verifications in API Server for VN ctest-vn-68598921 passed 2025-11-10 20:22:34,193 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:34,210 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc 2025-11-10 20:22:34,222 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc 2025-11-10 20:22:34,233 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e78c3f5c-2d1d-4a4e-9717-28b161eaae8a 2025-11-10 20:22:34,247 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62206916', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3604377150717247942', 'uuid-lslong': '11340365398322507688'}, 'enable': 'true', 'created': '2025-11-10T20:22:31', 'last-modified': '2025-11-10T20:22:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119161'} 2025-11-10 20:22:34,254 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 20:22:34,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68598921 passed 2025-11-10 20:22:34,255 - DEBUG - ====Verifying policy data for ctest-vn-68598921 in API_Server ====== 2025-11-10 20:22:34,255 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:22:34,261 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e 2025-11-10 20:22:34,275 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:22:34,351 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8 2025-11-10 20:22:34,364 - DEBUG - ==>Verifying data for policy with id: 58aec305-1a32-4ca9-b479-e182c10025e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455'] 2025-11-10 20:22:34,364 - INFO - VN ctest-vn-68598921 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 20:22:34,364 - DEBUG - Verifying the vn in opserver 2025-11-10 20:22:34,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921 virtual network link through opserver 10.0.0.33 2025-11-10 20:22:34,365 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-10 20:22:34,683 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-10 20:22:34,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921?flat'} 2025-11-10 20:22:34,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921 is found in opserver 2025-11-10 20:22:34,767 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 20:22:34,776 - DEBUG - VRF ids for VN ctest-vn-68598921: {} 2025-11-10 20:22:34,776 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:22:34,785 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e 2025-11-10 20:22:34,804 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:22:34,911 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:34,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:34,954 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5 2025-11-10 20:22:34,966 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5 2025-11-10 20:22:34,977 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/87bc545d-99c3-4b2c-bf56-73f54edabfc1 2025-11-10 20:22:34,987 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 20:22:34,987 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:35,001 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5 2025-11-10 20:22:35,024 - INFO - Verified VN network id 12 for VN 02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:35,024 - INFO - Verifications in API Server for VN ctest-vn-30312698 passed 2025-11-10 20:22:35,025 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:35,041 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5 2025-11-10 20:22:35,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5 2025-11-10 20:22:35,063 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/87bc545d-99c3-4b2c-bf56-73f54edabfc1 2025-11-10 20:22:35,088 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62206916', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '199199253310292290', 'uuid-lslong': '10195814442191734085'}, 'enable': 'true', 'created': '2025-11-10T20:22:32', 'last-modified': '2025-11-10T20:22:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.677320'} 2025-11-10 20:22:35,105 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 20:22:35,106 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30312698 passed 2025-11-10 20:22:35,106 - DEBUG - ====Verifying policy data for ctest-vn-30312698 in API_Server ====== 2025-11-10 20:22:35,106 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:22:35,116 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e 2025-11-10 20:22:35,138 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:22:35,248 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545 2025-11-10 20:22:35,268 - DEBUG - ==>Verifying data for policy with id: 58aec305-1a32-4ca9-b479-e182c10025e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455'] 2025-11-10 20:22:35,268 - INFO - VN ctest-vn-30312698 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 20:22:35,268 - DEBUG - Verifying the vn in opserver 2025-11-10 20:22:35,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698 virtual network link through opserver 10.0.0.33 2025-11-10 20:22:35,268 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-10 20:22:35,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698?flat'} 2025-11-10 20:22:35,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698 is found in opserver 2025-11-10 20:22:35,307 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 20:22:35,315 - DEBUG - VRF ids for VN ctest-vn-30312698: {} 2025-11-10 20:22:35,427 - DEBUG - Services list from nova: [, , ] 2025-11-10 20:22:36,857 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4688-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4688-1) 2025-11-10 20:22:38,151 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4688-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4688-1) 2025-11-10 20:22:38,151 - INFO - Waiting for VM ctest-TestBasicPolicy-62206916-98312864 to be up.. 2025-11-10 20:22:38,251 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-10 20:22:43,451 - DEBUG - VM is in ACTIVE state now 2025-11-10 20:22:43,451 - INFO - VM name : ctest-TestBasicPolicy-62206916-98312864 2025-11-10 20:22:43,578 - DEBUG - VM ctest-TestBasicPolicy-62206916-98312864 ID is de2ead7b-099d-4b4b-a2f0-aa93a298951b 2025-11-10 20:22:43,604 - DEBUG - VM ctest-TestBasicPolicy-62206916-98312864 launched on Node cn-jenkins-deploy-platform-ansible-os-4688-1 2025-11-10 20:22:43,750 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/de2ead7b-099d-4b4b-a2f0-aa93a298951b 2025-11-10 20:22:43,774 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/a30a5b23-355d-4910-9c5a-ee33d962faaf 2025-11-10 20:22:47,127 - 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 1028ms') 2025-11-10 20:22:47,127 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62206916-98312864 failed! 2025-11-10 20:22:47,200 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921 is 172.141.254.65 and allocation pool is NOT set 2025-11-10 20:22:49,282 - 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=19.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.855 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 = 0.855/10.009/19.164/9.154 ms') 2025-11-10 20:22:49,282 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62206916-98312864 passed 2025-11-10 20:22:49,453 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:22:49,453 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62206916-98312864, IP 172.141.254.67, Port 22 2025-11-10 20:22:49,522 - 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-10 20:22:49,680 - DEBUG - VM ctest-TestBasicPolicy-62206916-98312864 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 20:22:54,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:22:54,681 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62206916-98312864, IP 172.141.254.67, Port 22 2025-11-10 20:22:54,858 - DEBUG - VM ctest-TestBasicPolicy-62206916-98312864 is ready for SSH connections 2025-11-10 20:22:54,859 - INFO - Waiting for VM ctest-TestBasicPolicy-62206916-17686478 to be up.. 2025-11-10 20:22:54,965 - DEBUG - VM is in ACTIVE state now 2025-11-10 20:22:54,965 - INFO - VM name : ctest-TestBasicPolicy-62206916-17686478 2025-11-10 20:22:55,048 - DEBUG - VM ctest-TestBasicPolicy-62206916-17686478 ID is ccf2a081-5f77-4813-b761-e2dc775b2b8d 2025-11-10 20:22:55,048 - DEBUG - VM ctest-TestBasicPolicy-62206916-17686478 launched on Node cn-jenkins-deploy-platform-ansible-os-4688-1 2025-11-10 20:22:55,138 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/ccf2a081-5f77-4813-b761-e2dc775b2b8d 2025-11-10 20:22:55,153 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/f878f1bc-128d-4557-a498-60e60382870b 2025-11-10 20:22:56,432 - 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=10.4 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.897 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.897/5.635/10.373/4.738 ms') 2025-11-10 20:22:56,432 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62206916-17686478 passed 2025-11-10 20:22:56,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:22:56,625 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62206916-17686478, IP 158.38.198.131, Port 22 2025-11-10 20:22:56,835 - DEBUG - VM ctest-TestBasicPolicy-62206916-17686478 is ready for SSH connections 2025-11-10 20:22:56,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:22:56,836 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.38.198.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-11-10 20:22:56,836 - DEBUG - ping -s 56 -c 3 -W 1 158.38.198.131 2025-11-10 20:23:01,380 - DEBUG - PING 158.38.198.131 (158.38.198.131): 56 data bytes 64 bytes from 158.38.198.131: seq=0 ttl=63 time=8.348 ms 64 bytes from 158.38.198.131: seq=1 ttl=63 time=1.362 ms 64 bytes from 158.38.198.131: seq=2 ttl=63 time=2.038 ms --- 158.38.198.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.362/3.916/8.348 ms 2025-11-10 20:23:01,380 - INFO - Ping to IP 158.38.198.131 from VM ctest-TestBasicPolicy-62206916-98312864 passed 2025-11-10 20:23:01,623 - DEBUG - Policy Update Response {"network-policy": {"uuid": "58aec305-1a32-4ca9-b479-e182c10025e2", "href": "http://10.0.0.33:8082/network-policy/58aec305-1a32-4ca9-b479-e182c10025e2"}} 2025-11-10 20:23:01,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 20:23:01,624 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.38.198.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-11-10 20:23:01,624 - DEBUG - ping -s 56 -c 3 -W 1 158.38.198.131 2025-11-10 20:23:04,941 - DEBUG - PING 158.38.198.131 (158.38.198.131): 56 data bytes --- 158.38.198.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-10 20:23:04,941 - WARNING - Ping to IP 158.38.198.131 from VM ctest-TestBasicPolicy-62206916-98312864 failed 2025-11-10 20:23:04,942 - INFO - Deleting VM ctest-TestBasicPolicy-62206916-17686478 2025-11-10 20:23:05,041 - INFO - Deleting VM ctest-TestBasicPolicy-62206916-98312864 2025-11-10 20:23:05,678 - INFO - Deleted policy ctest-policy-allow-all-82447455 2025-11-10 20:23:05,678 - INFO - Deleting VN ctest-vn-30312698 2025-11-10 20:23:05,720 - DEBUG - VN 02c3b2aa-5d15-4142-8d7e-cf3726a2c545 still in use: Unable to complete operation on network 02c3b2aa-5d15-4142-8d7e-cf3726a2c545. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fff5ffa2-23a5-4841-a559-0e5957b22ca7'] 2025-11-10 20:23:05,720 - WARNING - Deleting VN ctest-vn-30312698 failed..Will retry 2025-11-10 20:23:07,939 - DEBUG - Response for deleting network () 2025-11-10 20:23:07,939 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5 2025-11-10 20:23:07,949 - DEBUG - Response Code: 404 2025-11-10 20:23:07,949 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:23:07,957 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e 2025-11-10 20:23:08,024 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:23:08,114 - INFO - Validated that VN ctest-vn-30312698 is not found in API Server 2025-11-10 20:23:08,135 - DEBUG - VN ctest-vn-30312698 is not present in Agent 10.0.0.33 2025-11-10 20:23:08,135 - INFO - Validated that VN ctest-vn-30312698 is not in any agent 2025-11-10 20:23:08,154 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30312698 info 2025-11-10 20:23:08,154 - INFO - Deleting VN ctest-vn-68598921 2025-11-10 20:23:08,310 - DEBUG - Response for deleting network () 2025-11-10 20:23:08,310 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc 2025-11-10 20:23:08,320 - DEBUG - Response Code: 404 2025-11-10 20:23:08,320 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 20:23:08,326 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e 2025-11-10 20:23:08,383 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23 2025-11-10 20:23:08,488 - INFO - Validated that VN ctest-vn-68598921 is not found in API Server 2025-11-10 20:23:08,511 - DEBUG - VN ctest-vn-68598921 is not present in Agent 10.0.0.33 2025-11-10 20:23:08,512 - INFO - Validated that VN ctest-vn-68598921 is not in any agent 2025-11-10 20:23:08,534 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68598921 info 2025-11-10 20:23:08,827 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 20:23:08,827 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-11-10 20:23:08,827 - INFO - -------------------------------------------------------------------------------- 2025-11-10 20:23:09,675 - INFO - Deleted project: ctest-TestBasicPolicy-62206916, ID : c83b425e-171b-4cf7-95d2-c9985469ed23