2025-10-21 21:02:10,243 - INFO - Domain Default found not creating 2025-10-21 21:02:10,402 - INFO - Project ctest-TestBasicPolicy-98802717 not found, creating it 2025-10-21 21:02:10,871 - INFO - Created Project:ctest-TestBasicPolicy-98802717, ID : d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:12,322 - INFO - ================================================================================ 2025-10-21 21:02:12,323 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-21 21:02:12,323 - 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-21 21:02:12,580 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 21:02:12,580 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:02:12,580 - INFO - 2025-10-21 21:02:13,115 - DEBUG - Response for create_network : {'network': {'id': '9d492d97-3f28-46a5-8e4b-bd3773f72bc5', 'name': 'ctest-vn-27222426', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-27222426'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:02:13,299 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cde521ba-0f98-479e-b0d7-c0ec9c7744b4', 'name': '', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'network_id': '9d492d97-3f28-46a5-8e4b-bd3773f72bc5', 'ip_version': 4, 'cidr': '111.27.66.192/26', 'allocation_pools': [{'start': '111.27.66.194', 'end': '111.27.66.254'}], 'gateway_ip': '111.27.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.27.66.194', 'tags': [], 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346'}} 2025-10-21 21:02:13,317 - INFO - Created VN ctest-vn-27222426 2025-10-21 21:02:13,369 - DEBUG - VN ctest-vn-27222426 UUID is 9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:13,698 - DEBUG - Response for create_network : {'network': {'id': 'cb85ab66-928f-4297-b4cb-6ff2a3ad663d', 'name': 'ctest-vn-07200682', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-07200682'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:02:13,845 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b288c292-47df-4f33-8bd2-52f2c89aa670', 'name': '', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'network_id': 'cb85ab66-928f-4297-b4cb-6ff2a3ad663d', 'ip_version': 4, 'cidr': '125.67.126.192/26', 'allocation_pools': [{'start': '125.67.126.194', 'end': '125.67.126.254'}], 'gateway_ip': '125.67.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.67.126.194', 'tags': [], 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346'}} 2025-10-21 21:02:13,863 - INFO - Created VN ctest-vn-07200682 2025-10-21 21:02:13,913 - DEBUG - VN ctest-vn-07200682 UUID is cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:14,065 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426, 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-98802717:ctest-vn-07200682, 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-21 21:02:14,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d492d97-3f28-46a5-8e4b-bd3773f72bc5', 'name': 'ctest-vn-27222426', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cde521ba-0f98-479e-b0d7-c0ec9c7744b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-27222426'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469']], 'subnet_ipam': [{'subnet_cidr': '111.27.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:02:14,607 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb85ab66-928f-4297-b4cb-6ff2a3ad663d', 'name': 'ctest-vn-07200682', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b288c292-47df-4f33-8bd2-52f2c89aa670'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-07200682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469']], 'subnet_ipam': [{'subnet_cidr': '125.67.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:02:14,773 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:15,065 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:15,092 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:15,103 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:15,174 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:15,184 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:15,192 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1 2025-10-21 21:02:15,198 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1 2025-10-21 21:02:15,204 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e4597e99-c22a-4ba7-817c-4fd79064a5a5 2025-10-21 21:02:15,209 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:02:15,209 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:15,217 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1 2025-10-21 21:02:15,230 - INFO - Verified VN network id 11 for VN 9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:15,230 - INFO - Verifications in API Server for VN ctest-vn-27222426 passed 2025-10-21 21:02:15,230 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:15,238 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1 2025-10-21 21:02:15,244 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1 2025-10-21 21:02:15,249 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e4597e99-c22a-4ba7-817c-4fd79064a5a5 2025-10-21 21:02:15,259 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98802717', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11333640064877479589', 'uuid-lslong': '10253497022505495493'}, 'enable': 'true', 'created': '2025-10-21T21:02:13', 'last-modified': '2025-10-21T21:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916755'} 2025-10-21 21:02:15,264 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:02:15,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27222426 passed 2025-10-21 21:02:15,265 - DEBUG - ====Verifying policy data for ctest-vn-27222426 in API_Server ====== 2025-10-21 21:02:15,265 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:15,270 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:15,279 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:15,345 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5 2025-10-21 21:02:15,355 - DEBUG - ==>Verifying data for policy with id: 277915f0-6b6d-4943-a6ba-17a2d42efc74, fqn: ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469'] 2025-10-21 21:02:15,355 - INFO - VN ctest-vn-27222426 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 21:02:15,355 - DEBUG - Verifying the vn in opserver 2025-10-21 21:02:15,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426 virtual network link through opserver 10.0.0.141 2025-10-21 21:02:15,355 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 21:02:15,645 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 21:02:15,697 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426?flat'} 2025-10-21 21:02:15,698 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426 is found in opserver 2025-10-21 21:02:15,707 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 21:02:15,711 - DEBUG - VRF ids for VN ctest-vn-27222426: {} 2025-10-21 21:02:15,712 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:15,717 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:15,727 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:15,795 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:15,805 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:15,814 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685 2025-10-21 21:02:15,820 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685 2025-10-21 21:02:15,826 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/27cc6947-a06e-4e18-a84e-a5898a676850 2025-10-21 21:02:15,833 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-21 21:02:15,833 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:15,841 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685 2025-10-21 21:02:15,865 - INFO - Verified VN network id 12 for VN cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:15,865 - INFO - Verifications in API Server for VN ctest-vn-07200682 passed 2025-10-21 21:02:15,865 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:15,874 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685 2025-10-21 21:02:15,881 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685 2025-10-21 21:02:15,887 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/27cc6947-a06e-4e18-a84e-a5898a676850 2025-10-21 21:02:15,898 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98802717', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14665316218635764375', 'uuid-lslong': '13027629435018110525'}, 'enable': 'true', 'created': '2025-10-21T21:02:13', 'last-modified': '2025-10-21T21:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327289'} 2025-10-21 21:02:15,903 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-21 21:02:15,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07200682 passed 2025-10-21 21:02:15,903 - DEBUG - ====Verifying policy data for ctest-vn-07200682 in API_Server ====== 2025-10-21 21:02:15,903 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:15,910 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:15,920 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:15,988 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d 2025-10-21 21:02:15,997 - DEBUG - ==>Verifying data for policy with id: 277915f0-6b6d-4943-a6ba-17a2d42efc74, fqn: ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469'] 2025-10-21 21:02:15,997 - INFO - VN ctest-vn-07200682 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 21:02:15,997 - DEBUG - Verifying the vn in opserver 2025-10-21 21:02:15,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682 virtual network link through opserver 10.0.0.141 2025-10-21 21:02:15,997 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 21:02:16,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682?flat'} 2025-10-21 21:02:16,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682 is found in opserver 2025-10-21 21:02:16,016 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 21:02:16,021 - DEBUG - VRF ids for VN ctest-vn-07200682: {} 2025-10-21 21:02:16,079 - DEBUG - Services list from nova: [, , ] 2025-10-21 21:02:17,080 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4407-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4407-1) 2025-10-21 21:02:18,249 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4407-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4407-1) 2025-10-21 21:02:18,249 - INFO - Waiting for VM ctest-TestBasicPolicy-98802717-54590252 to be up.. 2025-10-21 21:02:18,323 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-21 21:02:23,397 - DEBUG - VM is in ACTIVE state now 2025-10-21 21:02:23,397 - INFO - VM name : ctest-TestBasicPolicy-98802717-54590252 2025-10-21 21:02:23,470 - DEBUG - VM ctest-TestBasicPolicy-98802717-54590252 ID is 2257bef4-5500-4430-aa03-ccd28fa78e85 2025-10-21 21:02:23,491 - DEBUG - VM ctest-TestBasicPolicy-98802717-54590252 launched on Node cn-jenkins-deploy-platform-ansible-os-4407-1 2025-10-21 21:02:23,566 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/2257bef4-5500-4430-aa03-ccd28fa78e85 2025-10-21 21:02:23,575 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/bca99cc4-34c6-4d07-ac0b-e64082868bef 2025-10-21 21:02:26,838 - 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 1023ms') 2025-10-21 21:02:26,839 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98802717-54590252 failed! 2025-10-21 21:02:26,893 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426 is 111.27.66.193 and allocation pool is NOT set 2025-10-21 21:02:28,959 - 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.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.415 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 = 0.415/5.070/9.726/4.655 ms') 2025-10-21 21:02:28,959 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98802717-54590252 passed 2025-10-21 21:02:29,105 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 21:02:29,105 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98802717-54590252, IP 111.27.66.195, Port 22 2025-10-21 21:02:29,176 - 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-21 21:02:29,259 - DEBUG - VM ctest-TestBasicPolicy-98802717-54590252 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-21 21:02:34,260 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 21:02:34,260 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98802717-54590252, IP 111.27.66.195, Port 22 2025-10-21 21:02:34,425 - DEBUG - VM ctest-TestBasicPolicy-98802717-54590252 is ready for SSH connections 2025-10-21 21:02:34,425 - INFO - Waiting for VM ctest-TestBasicPolicy-98802717-85189950 to be up.. 2025-10-21 21:02:34,501 - DEBUG - VM is in ACTIVE state now 2025-10-21 21:02:34,501 - INFO - VM name : ctest-TestBasicPolicy-98802717-85189950 2025-10-21 21:02:34,579 - DEBUG - VM ctest-TestBasicPolicy-98802717-85189950 ID is 64ae1737-ba3d-470f-a1b4-6bc4c5f5bfde 2025-10-21 21:02:34,579 - DEBUG - VM ctest-TestBasicPolicy-98802717-85189950 launched on Node cn-jenkins-deploy-platform-ansible-os-4407-1 2025-10-21 21:02:34,654 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/64ae1737-ba3d-470f-a1b4-6bc4c5f5bfde 2025-10-21 21:02:34,664 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/25703862-48e7-4c09-bb68-49992ab13d53 2025-10-21 21:02:35,905 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.441 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.441/1.688/2.936/1.247 ms') 2025-10-21 21:02:35,905 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98802717-85189950 passed 2025-10-21 21:02:36,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 21:02:36,057 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98802717-85189950, IP 125.67.126.195, Port 22 2025-10-21 21:02:36,213 - DEBUG - VM ctest-TestBasicPolicy-98802717-85189950 is ready for SSH connections 2025-10-21 21:02:36,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 21:02:36,214 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.67.126.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-21 21:02:36,214 - DEBUG - ping -s 56 -c 3 -W 1 125.67.126.195 2025-10-21 21:02:40,247 - DEBUG - PING 125.67.126.195 (125.67.126.195): 56 data bytes 64 bytes from 125.67.126.195: seq=0 ttl=63 time=4.349 ms 64 bytes from 125.67.126.195: seq=1 ttl=63 time=1.061 ms 64 bytes from 125.67.126.195: seq=2 ttl=63 time=1.076 ms --- 125.67.126.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.061/2.162/4.349 ms 2025-10-21 21:02:40,247 - INFO - Ping to IP 125.67.126.195 from VM ctest-TestBasicPolicy-98802717-54590252 passed 2025-10-21 21:02:40,421 - DEBUG - Policy Update Response {"network-policy": {"uuid": "277915f0-6b6d-4943-a6ba-17a2d42efc74", "href": "http://10.0.0.141:8082/network-policy/277915f0-6b6d-4943-a6ba-17a2d42efc74"}} 2025-10-21 21:02:40,421 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 21:02:40,421 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.67.126.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-21 21:02:40,422 - DEBUG - ping -s 56 -c 3 -W 1 125.67.126.195 2025-10-21 21:02:43,633 - DEBUG - PING 125.67.126.195 (125.67.126.195): 56 data bytes --- 125.67.126.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-21 21:02:43,634 - WARNING - Ping to IP 125.67.126.195 from VM ctest-TestBasicPolicy-98802717-54590252 failed 2025-10-21 21:02:43,634 - INFO - Deleting VM ctest-TestBasicPolicy-98802717-85189950 2025-10-21 21:02:43,707 - INFO - Deleting VM ctest-TestBasicPolicy-98802717-54590252 2025-10-21 21:02:44,121 - INFO - Deleted policy ctest-policy-allow-all-35337469 2025-10-21 21:02:44,121 - INFO - Deleting VN ctest-vn-07200682 2025-10-21 21:02:44,161 - DEBUG - VN cb85ab66-928f-4297-b4cb-6ff2a3ad663d still in use: Unable to complete operation on network cb85ab66-928f-4297-b4cb-6ff2a3ad663d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bb2fd080-1a9c-4a76-8379-7e7103e6774c'] 2025-10-21 21:02:44,161 - WARNING - Deleting VN ctest-vn-07200682 failed..Will retry 2025-10-21 21:02:46,280 - DEBUG - Response for deleting network () 2025-10-21 21:02:46,280 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685 2025-10-21 21:02:46,286 - DEBUG - Response Code: 404 2025-10-21 21:02:46,286 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:46,291 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:46,342 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:46,413 - INFO - Validated that VN ctest-vn-07200682 is not found in API Server 2025-10-21 21:02:46,423 - DEBUG - VN ctest-vn-07200682 is not present in Agent 10.0.0.141 2025-10-21 21:02:46,424 - INFO - Validated that VN ctest-vn-07200682 is not in any agent 2025-10-21 21:02:46,438 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-07200682 info 2025-10-21 21:02:46,439 - INFO - Deleting VN ctest-vn-27222426 2025-10-21 21:02:46,544 - DEBUG - Response for deleting network () 2025-10-21 21:02:46,544 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1 2025-10-21 21:02:46,548 - DEBUG - Response Code: 404 2025-10-21 21:02:46,549 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:46,553 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:46,611 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346 2025-10-21 21:02:46,684 - INFO - Validated that VN ctest-vn-27222426 is not found in API Server 2025-10-21 21:02:46,693 - DEBUG - VN ctest-vn-27222426 is not present in Agent 10.0.0.141 2025-10-21 21:02:46,693 - INFO - Validated that VN ctest-vn-27222426 is not in any agent 2025-10-21 21:02:46,706 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27222426 info 2025-10-21 21:02:46,962 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 21:02:46,962 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-10-21 21:02:46,962 - INFO - -------------------------------------------------------------------------------- 2025-10-21 21:02:47,643 - INFO - Deleted project: ctest-TestBasicPolicy-98802717, ID : d5bc3840-f622-4afe-8fad-93c02d0f6346