2025-07-21 12:44:10,519 - INFO - Domain Default found not creating 2025-07-21 12:44:10,669 - INFO - Project ctest-TestBasicPolicy-01319833 not found, creating it 2025-07-21 12:44:11,116 - INFO - Created Project:ctest-TestBasicPolicy-01319833, ID : 9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:12,569 - INFO - ================================================================================ 2025-07-21 12:44:12,569 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-21 12:44:12,569 - 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-07-21 12:44:12,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with 2025-07-21 12:44:12,829 - INFO - Initial checks done. Running the testcase now 2025-07-21 12:44:12,829 - INFO - 2025-07-21 12:44:13,414 - DEBUG - Response for create_network : {'network': {'id': 'fba9ecca-9337-4efa-b5cc-cd6ee209991f', 'name': 'ctest-vn-26716272', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-26716272'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 12:44:13,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dd8cd9b-212b-441d-92c3-c2b4129249d9', 'name': '', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'network_id': 'fba9ecca-9337-4efa-b5cc-cd6ee209991f', 'ip_version': 4, 'cidr': '2.74.21.64/26', 'allocation_pools': [{'start': '2.74.21.66', 'end': '2.74.21.126'}], 'gateway_ip': '2.74.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.74.21.66', 'tags': [], 'project_id': '9f85c8b99a654c37ac93607de7180bb2'}} 2025-07-21 12:44:13,598 - INFO - Created VN ctest-vn-26716272 2025-07-21 12:44:13,651 - DEBUG - VN ctest-vn-26716272 UUID is fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:14,051 - DEBUG - Response for create_network : {'network': {'id': 'e988aa60-8b68-4c17-9e3c-36c45484fd3b', 'name': 'ctest-vn-73067359', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-73067359'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 12:44:14,223 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6f06025-39e9-4467-9c3e-8036db24d763', 'name': '', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'network_id': 'e988aa60-8b68-4c17-9e3c-36c45484fd3b', 'ip_version': 4, 'cidr': '169.212.71.64/26', 'allocation_pools': [{'start': '169.212.71.66', 'end': '169.212.71.126'}], 'gateway_ip': '169.212.71.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.212.71.66', 'tags': [], 'project_id': '9f85c8b99a654c37ac93607de7180bb2'}} 2025-07-21 12:44:14,241 - INFO - Created VN ctest-vn-73067359 2025-07-21 12:44:14,295 - DEBUG - VN ctest-vn-73067359 UUID is e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:14,447 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272, 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-01319833:ctest-vn-73067359, 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-07-21 12:44:14,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba9ecca-9337-4efa-b5cc-cd6ee209991f', 'name': 'ctest-vn-26716272', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dd8cd9b-212b-441d-92c3-c2b4129249d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-26716272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636']], 'subnet_ipam': [{'subnet_cidr': '2.74.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-21 12:44:14,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e988aa60-8b68-4c17-9e3c-36c45484fd3b', 'name': 'ctest-vn-73067359', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6f06025-39e9-4467-9c3e-8036db24d763'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-73067359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636']], 'subnet_ipam': [{'subnet_cidr': '169.212.71.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-21 12:44:15,123 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:15,419 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:15,448 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c 2025-07-21 12:44:15,462 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:15,533 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:15,545 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:15,556 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa 2025-07-21 12:44:15,564 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa 2025-07-21 12:44:15,572 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e410e525-aeca-4b57-8a63-fe95e5c6031b 2025-07-21 12:44:15,580 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-21 12:44:15,580 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:15,591 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa 2025-07-21 12:44:15,607 - INFO - Verified VN network id 8 for VN fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:15,607 - INFO - Verifications in API Server for VN ctest-vn-26716272 passed 2025-07-21 12:44:15,607 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:15,618 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa 2025-07-21 12:44:15,626 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa 2025-07-21 12:44:15,634 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e410e525-aeca-4b57-8a63-fe95e5c6031b 2025-07-21 12:44:15,648 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01319833', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18134285729381437178', 'uuid-lslong': '13100071292236306719'}, 'enable': 'true', 'created': '2025-07-21T12:44:13', 'last-modified': '2025-07-21T12:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916723'} 2025-07-21 12:44:15,655 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-21 12:44:15,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26716272 passed 2025-07-21 12:44:15,656 - DEBUG - ====Verifying policy data for ctest-vn-26716272 in API_Server ====== 2025-07-21 12:44:15,656 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:15,661 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c 2025-07-21 12:44:15,674 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:15,754 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f 2025-07-21 12:44:15,769 - DEBUG - ==>Verifying data for policy with id: 45a11216-0569-4bfd-ac49-f038557f77c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636'] 2025-07-21 12:44:15,769 - INFO - VN ctest-vn-26716272 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-21 12:44:15,769 - DEBUG - Verifying the vn in opserver 2025-07-21 12:44:15,769 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272 virtual network link through opserver 10.0.0.242 2025-07-21 12:44:15,769 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-07-21 12:44:16,065 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-07-21 12:44:16,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272?flat'} 2025-07-21 12:44:16,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272 is found in opserver 2025-07-21 12:44:16,137 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 12:44:16,142 - DEBUG - VRF ids for VN ctest-vn-26716272: {} 2025-07-21 12:44:16,142 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:16,148 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c 2025-07-21 12:44:16,160 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:16,242 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:16,259 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:16,269 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e 2025-07-21 12:44:16,278 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e 2025-07-21 12:44:16,286 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/45d909f6-07db-4843-b9d7-5a4a3b0782ff 2025-07-21 12:44:16,293 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-21 12:44:16,293 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:16,304 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e 2025-07-21 12:44:16,320 - INFO - Verified VN network id 9 for VN e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:16,320 - INFO - Verifications in API Server for VN ctest-vn-73067359 passed 2025-07-21 12:44:16,321 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:16,335 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e 2025-07-21 12:44:16,346 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e 2025-07-21 12:44:16,356 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/45d909f6-07db-4843-b9d7-5a4a3b0782ff 2025-07-21 12:44:16,374 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01319833', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16827887339302308887', 'uuid-lslong': '11402048573454744891'}, 'enable': 'true', 'created': '2025-07-21T12:44:14', 'last-modified': '2025-07-21T12:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466230'} 2025-07-21 12:44:16,382 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-21 12:44:16,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73067359 passed 2025-07-21 12:44:16,382 - DEBUG - ====Verifying policy data for ctest-vn-73067359 in API_Server ====== 2025-07-21 12:44:16,382 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:16,389 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c 2025-07-21 12:44:16,403 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:16,478 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b 2025-07-21 12:44:16,488 - DEBUG - ==>Verifying data for policy with id: 45a11216-0569-4bfd-ac49-f038557f77c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636'] 2025-07-21 12:44:16,488 - INFO - VN ctest-vn-73067359 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-21 12:44:16,489 - DEBUG - Verifying the vn in opserver 2025-07-21 12:44:16,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359 virtual network link through opserver 10.0.0.242 2025-07-21 12:44:16,489 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-07-21 12:44:16,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359?flat'} 2025-07-21 12:44:16,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359 is found in opserver 2025-07-21 12:44:16,511 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 12:44:16,518 - DEBUG - VRF ids for VN ctest-vn-73067359: {} 2025-07-21 12:44:16,580 - DEBUG - Services list from nova: [, , ] 2025-07-21 12:44:17,600 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3680-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3680-1) 2025-07-21 12:44:18,817 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3680-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3680-1) 2025-07-21 12:44:18,817 - INFO - Waiting for VM ctest-TestBasicPolicy-01319833-84128590 to be up.. 2025-07-21 12:44:18,896 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-21 12:44:23,967 - DEBUG - VM is in ACTIVE state now 2025-07-21 12:44:23,967 - INFO - VM name : ctest-TestBasicPolicy-01319833-84128590 2025-07-21 12:44:24,040 - DEBUG - VM ctest-TestBasicPolicy-01319833-84128590 ID is fbe1b9c9-ee46-4a3d-8bd9-7f43a6d33b64 2025-07-21 12:44:24,059 - DEBUG - VM ctest-TestBasicPolicy-01319833-84128590 launched on Node cn-jenkins-deploy-platform-ansible-os-3680-1 2025-07-21 12:44:24,127 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/fbe1b9c9-ee46-4a3d-8bd9-7f43a6d33b64 2025-07-21 12:44:24,136 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/34e8dc70-372c-4c53-904a-1c9645ec0ea1 2025-07-21 12:44:27,385 - 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 1015ms') 2025-07-21 12:44:27,385 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01319833-84128590 failed! 2025-07-21 12:44:27,439 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272 is 2.74.21.65 and allocation pool is NOT set 2025-07-21 12:44:29,502 - 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=4.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.058/2.742/4.427/1.684 ms') 2025-07-21 12:44:29,502 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01319833-84128590 passed 2025-07-21 12:44:29,655 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 12:44:29,655 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01319833-84128590, IP 2.74.21.67, Port 22 2025-07-21 12:44:29,710 - 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-07-21 12:44:29,779 - DEBUG - VM ctest-TestBasicPolicy-01319833-84128590 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 12:44:34,780 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 12:44:34,780 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01319833-84128590, IP 2.74.21.67, Port 22 2025-07-21 12:44:34,934 - DEBUG - VM ctest-TestBasicPolicy-01319833-84128590 is ready for SSH connections 2025-07-21 12:44:34,935 - INFO - Waiting for VM ctest-TestBasicPolicy-01319833-63307898 to be up.. 2025-07-21 12:44:35,008 - DEBUG - VM is in ACTIVE state now 2025-07-21 12:44:35,008 - INFO - VM name : ctest-TestBasicPolicy-01319833-63307898 2025-07-21 12:44:35,076 - DEBUG - VM ctest-TestBasicPolicy-01319833-63307898 ID is 777f3411-a137-423f-adff-5141b420f558 2025-07-21 12:44:35,076 - DEBUG - VM ctest-TestBasicPolicy-01319833-63307898 launched on Node cn-jenkins-deploy-platform-ansible-os-3680-1 2025-07-21 12:44:35,155 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/777f3411-a137-423f-adff-5141b420f558 2025-07-21 12:44:35,166 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/8e5604c5-a975-43f7-b0bc-e8c6d0024271 2025-07-21 12:44:36,403 - 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=2.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.351 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.351/1.662/2.973/1.311 ms') 2025-07-21 12:44:36,403 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01319833-63307898 passed 2025-07-21 12:44:36,551 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 12:44:36,551 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01319833-63307898, IP 169.212.71.67, Port 22 2025-07-21 12:44:36,710 - DEBUG - VM ctest-TestBasicPolicy-01319833-63307898 is ready for SSH connections 2025-07-21 12:44:36,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 12:44:36,710 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 169.212.71.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-07-21 12:44:36,710 - DEBUG - ping -s 56 -c 3 -W 1 169.212.71.67 2025-07-21 12:44:40,422 - DEBUG - PING 169.212.71.67 (169.212.71.67): 56 data bytes 64 bytes from 169.212.71.67: seq=0 ttl=63 time=3.355 ms 64 bytes from 169.212.71.67: seq=1 ttl=63 time=0.857 ms 64 bytes from 169.212.71.67: seq=2 ttl=63 time=0.888 ms --- 169.212.71.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.857/1.700/3.355 ms 2025-07-21 12:44:40,422 - INFO - Ping to IP 169.212.71.67 from VM ctest-TestBasicPolicy-01319833-84128590 passed 2025-07-21 12:44:40,599 - DEBUG - Policy Update Response {"network-policy": {"uuid": "45a11216-0569-4bfd-ac49-f038557f77c1", "href": "http://10.0.0.242:8082/network-policy/45a11216-0569-4bfd-ac49-f038557f77c1"}} 2025-07-21 12:44:40,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 12:44:40,599 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 169.212.71.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-07-21 12:44:40,599 - DEBUG - ping -s 56 -c 3 -W 1 169.212.71.67 2025-07-21 12:44:43,802 - DEBUG - PING 169.212.71.67 (169.212.71.67): 56 data bytes 64 bytes from 169.212.71.67: seq=0 ttl=63 time=1.327 ms --- 169.212.71.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.327/1.327/1.327 ms 2025-07-21 12:44:43,802 - WARNING - Ping to IP 169.212.71.67 from VM ctest-TestBasicPolicy-01319833-84128590 failed 2025-07-21 12:44:43,802 - INFO - Deleting VM ctest-TestBasicPolicy-01319833-63307898 2025-07-21 12:44:43,866 - INFO - Deleting VM ctest-TestBasicPolicy-01319833-84128590 2025-07-21 12:44:44,253 - INFO - Deleted policy ctest-policy-allow-all-64191636 2025-07-21 12:44:44,254 - INFO - Deleting VN ctest-vn-73067359 2025-07-21 12:44:44,295 - DEBUG - VN e988aa60-8b68-4c17-9e3c-36c45484fd3b still in use: Unable to complete operation on network e988aa60-8b68-4c17-9e3c-36c45484fd3b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-63512706-df44-411f-87dc-abd1dea869e4'] 2025-07-21 12:44:44,295 - WARNING - Deleting VN ctest-vn-73067359 failed..Will retry 2025-07-21 12:44:46,391 - DEBUG - Response for deleting network () 2025-07-21 12:44:46,391 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e 2025-07-21 12:44:46,401 - DEBUG - Response Code: 404 2025-07-21 12:44:46,402 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:46,407 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c 2025-07-21 12:44:46,460 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:46,533 - INFO - Validated that VN ctest-vn-73067359 is not found in API Server 2025-07-21 12:44:46,544 - DEBUG - VN ctest-vn-73067359 is not present in Agent 10.0.0.242 2025-07-21 12:44:46,544 - INFO - Validated that VN ctest-vn-73067359 is not in any agent 2025-07-21 12:44:46,560 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73067359 info 2025-07-21 12:44:46,560 - INFO - Deleting VN ctest-vn-26716272 2025-07-21 12:44:46,662 - DEBUG - Response for deleting network () 2025-07-21 12:44:46,662 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa 2025-07-21 12:44:46,671 - DEBUG - Response Code: 404 2025-07-21 12:44:46,671 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-07-21 12:44:46,677 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c 2025-07-21 12:44:46,732 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2 2025-07-21 12:44:46,806 - INFO - Validated that VN ctest-vn-26716272 is not found in API Server 2025-07-21 12:44:46,818 - DEBUG - VN ctest-vn-26716272 is not present in Agent 10.0.0.242 2025-07-21 12:44:46,818 - INFO - Validated that VN ctest-vn-26716272 is not in any agent 2025-07-21 12:44:46,837 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26716272 info 2025-07-21 12:44:47,093 - DEBUG - No XMPP flaps were noticed during the test
2025-07-21 12:44:47,093 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-07-21 12:44:47,093 - INFO - -------------------------------------------------------------------------------- 2025-07-21 12:44:47,779 - INFO - Deleted project: ctest-TestBasicPolicy-01319833, ID : 9f85c8b9-9a65-4c37-ac93-607de7180bb2