2025-06-02 09:57:49,108 - INFO - Domain Default found not creating 2025-06-02 09:57:49,260 - INFO - Project ctest-TestBasicPolicy-41803594 not found, creating it 2025-06-02 09:57:49,700 - INFO - Created Project:ctest-TestBasicPolicy-41803594, ID : 63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:57:51,966 - INFO - ================================================================================ 2025-06-02 09:57:51,967 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-02 09:57:51,967 - 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-06-02 09:57:52,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2025-06-02 09:57:52,220 - INFO - Initial checks done. Running the testcase now 2025-06-02 09:57:52,220 - INFO - 2025-06-02 09:57:52,812 - DEBUG - Response for create_network : {'network': {'id': '72694c77-c885-4395-8e61-b6cd8dc83043', 'name': 'ctest-vn-52414509', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-52414509'], 'port_security_enabled': True, 'description': ''}} 2025-06-02 09:57:52,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '9597c249-d4e3-4f10-ba55-e30ce7a0a4b8', 'name': '', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'network_id': '72694c77-c885-4395-8e61-b6cd8dc83043', 'ip_version': 4, 'cidr': '32.97.114.64/26', 'allocation_pools': [{'start': '32.97.114.66', 'end': '32.97.114.126'}], 'gateway_ip': '32.97.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.97.114.66', 'tags': [], 'project_id': '63b8fc411ec44d7db0473266305091fe'}} 2025-06-02 09:57:52,982 - INFO - Created VN ctest-vn-52414509 2025-06-02 09:57:53,035 - DEBUG - VN ctest-vn-52414509 UUID is 72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:53,343 - DEBUG - Response for create_network : {'network': {'id': '58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2', 'name': 'ctest-vn-18248804', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-18248804'], 'port_security_enabled': True, 'description': ''}} 2025-06-02 09:57:53,513 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0a3c8f6-8d86-456b-acca-577738abc618', 'name': '', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'network_id': '58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2', 'ip_version': 4, 'cidr': '17.154.199.192/26', 'allocation_pools': [{'start': '17.154.199.194', 'end': '17.154.199.254'}], 'gateway_ip': '17.154.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.154.199.194', 'tags': [], 'project_id': '63b8fc411ec44d7db0473266305091fe'}} 2025-06-02 09:57:53,531 - INFO - Created VN ctest-vn-18248804 2025-06-02 09:57:53,583 - DEBUG - VN ctest-vn-18248804 UUID is 58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:53,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509, 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-41803594:ctest-vn-18248804, 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-06-02 09:57:53,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72694c77-c885-4395-8e61-b6cd8dc83043', 'name': 'ctest-vn-52414509', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9597c249-d4e3-4f10-ba55-e30ce7a0a4b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-52414509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949']], 'subnet_ipam': [{'subnet_cidr': '32.97.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-02 09:57:54,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2', 'name': 'ctest-vn-18248804', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0a3c8f6-8d86-456b-acca-577738abc618'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-18248804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949']], 'subnet_ipam': [{'subnet_cidr': '17.154.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-02 09:57:54,503 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:57:54,842 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:57:54,879 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8 2025-06-02 09:57:54,890 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:57:54,978 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:54,991 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:55,000 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57 2025-06-02 09:57:55,008 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57 2025-06-02 09:57:55,016 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d573b4c-0031-4de1-b214-88334bd91d33 2025-06-02 09:57:55,026 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-02 09:57:55,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:55,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57 2025-06-02 09:57:55,057 - INFO - Verified VN network id 8 for VN 72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:55,057 - INFO - Verifications in API Server for VN ctest-vn-52414509 passed 2025-06-02 09:57:55,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:55,072 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57 2025-06-02 09:57:55,083 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57 2025-06-02 09:57:55,091 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d573b4c-0031-4de1-b214-88334bd91d33 2025-06-02 09:57:55,103 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41803594', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8244204670227399573', 'uuid-lslong': '10259682420089958467'}, 'enable': 'true', 'created': '2025-06-02T09:57:52', 'last-modified': '2025-06-02T09:57:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135495'} 2025-06-02 09:57:55,109 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-02 09:57:55,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52414509 passed 2025-06-02 09:57:55,109 - DEBUG - ====Verifying policy data for ctest-vn-52414509 in API_Server ====== 2025-06-02 09:57:55,109 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:57:55,114 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8 2025-06-02 09:57:55,126 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:57:55,199 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043 2025-06-02 09:57:55,210 - DEBUG - ==>Verifying data for policy with id: 2b35b40d-099e-4de2-89a8-97061129f725, fqn: ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949'] 2025-06-02 09:57:55,210 - INFO - VN ctest-vn-52414509 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-02 09:57:55,210 - DEBUG - Verifying the vn in opserver 2025-06-02 09:57:55,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509 virtual network link through opserver 10.0.0.50 2025-06-02 09:57:55,211 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-02 09:57:55,550 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-02 09:57:55,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509?flat'} 2025-06-02 09:57:55,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509 is found in opserver 2025-06-02 09:57:55,622 - DEBUG - Do not have enough data to verify VN in agent 2025-06-02 09:57:55,631 - DEBUG - VRF ids for VN ctest-vn-52414509: {} 2025-06-02 09:57:55,631 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:57:55,637 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8 2025-06-02 09:57:55,650 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:57:55,724 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:55,737 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:55,747 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528 2025-06-02 09:57:55,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528 2025-06-02 09:57:55,764 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/194e1bc5-bc58-4d97-b05a-b9b2ab2891c0 2025-06-02 09:57:55,770 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-02 09:57:55,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:55,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528 2025-06-02 09:57:55,802 - INFO - Verified VN network id 9 for VN 58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:55,802 - INFO - Verifications in API Server for VN ctest-vn-18248804 passed 2025-06-02 09:57:55,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:55,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528 2025-06-02 09:57:55,821 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528 2025-06-02 09:57:55,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/194e1bc5-bc58-4d97-b05a-b9b2ab2891c0 2025-06-02 09:57:55,848 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41803594', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6396786480976249026', 'uuid-lslong': '11335531802761458658'}, 'enable': 'true', 'created': '2025-06-02T09:57:53', 'last-modified': '2025-06-02T09:57:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.567060'} 2025-06-02 09:57:55,854 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-02 09:57:55,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18248804 passed 2025-06-02 09:57:55,855 - DEBUG - ====Verifying policy data for ctest-vn-18248804 in API_Server ====== 2025-06-02 09:57:55,855 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:57:55,861 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8 2025-06-02 09:57:55,875 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:57:55,952 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 2025-06-02 09:57:55,963 - DEBUG - ==>Verifying data for policy with id: 2b35b40d-099e-4de2-89a8-97061129f725, fqn: ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949'] 2025-06-02 09:57:55,963 - INFO - VN ctest-vn-18248804 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-02 09:57:55,963 - DEBUG - Verifying the vn in opserver 2025-06-02 09:57:55,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804 virtual network link through opserver 10.0.0.50 2025-06-02 09:57:55,963 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-06-02 09:57:55,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804?flat'} 2025-06-02 09:57:55,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804 is found in opserver 2025-06-02 09:57:55,986 - DEBUG - Do not have enough data to verify VN in agent 2025-06-02 09:57:55,991 - DEBUG - VRF ids for VN ctest-vn-18248804: {} 2025-06-02 09:57:56,077 - DEBUG - Services list from nova: [, , ] 2025-06-02 09:57:57,236 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3388-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3388-1) 2025-06-02 09:57:58,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3388-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3388-1) 2025-06-02 09:57:58,666 - INFO - Waiting for VM ctest-TestBasicPolicy-41803594-69040914 to be up.. 2025-06-02 09:57:58,757 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-02 09:58:03,843 - DEBUG - VM is in ACTIVE state now 2025-06-02 09:58:03,843 - INFO - VM name : ctest-TestBasicPolicy-41803594-69040914 2025-06-02 09:58:03,950 - DEBUG - VM ctest-TestBasicPolicy-41803594-69040914 ID is 2b426f76-b34d-4aaa-a2fe-2464ed22c122 2025-06-02 09:58:03,977 - DEBUG - VM ctest-TestBasicPolicy-41803594-69040914 launched on Node cn-jenkins-deploy-platform-ansible-os-3388-1. 2025-06-02 09:58:04,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/2b426f76-b34d-4aaa-a2fe-2464ed22c122 2025-06-02 09:58:04,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/811c6a44-a8a3-411b-bc40-dbd22796588e 2025-06-02 09:58:07,357 - 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 1027ms') 2025-06-02 09:58:07,357 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41803594-69040914 failed! 2025-06-02 09:58:07,411 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509 is 32.97.114.65 and allocation pool is NOT set 2025-06-02 09:58:09,481 - 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=8.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.14 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 = 4.139/6.466/8.793/2.327 ms') 2025-06-02 09:58:09,481 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41803594-69040914 passed 2025-06-02 09:58:09,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 09:58:09,631 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41803594-69040914, IP 32.97.114.67, Port 22 2025-06-02 09:58:09,687 - 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-06-02 09:58:09,785 - DEBUG - VM ctest-TestBasicPolicy-41803594-69040914 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-02 09:58:14,786 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 09:58:14,786 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41803594-69040914, IP 32.97.114.67, Port 22 2025-06-02 09:58:14,950 - DEBUG - VM ctest-TestBasicPolicy-41803594-69040914 is ready for SSH connections 2025-06-02 09:58:14,950 - INFO - Waiting for VM ctest-TestBasicPolicy-41803594-60551154 to be up.. 2025-06-02 09:58:15,034 - DEBUG - VM is in ACTIVE state now 2025-06-02 09:58:15,034 - INFO - VM name : ctest-TestBasicPolicy-41803594-60551154 2025-06-02 09:58:15,110 - DEBUG - VM ctest-TestBasicPolicy-41803594-60551154 ID is da2575e9-a959-438d-8cbd-e2378a45ad97 2025-06-02 09:58:15,110 - DEBUG - VM ctest-TestBasicPolicy-41803594-60551154 launched on Node cn-jenkins-deploy-platform-ansible-os-3388-1. 2025-06-02 09:58:15,187 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/da2575e9-a959-438d-8cbd-e2378a45ad97 2025-06-02 09:58:15,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/eea87fc8-043e-40f7-a09a-45975ed9d6f0 2025-06-02 09:58:16,434 - 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=3.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.467 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.467/2.101/3.736/1.634 ms') 2025-06-02 09:58:16,434 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-41803594-60551154 passed 2025-06-02 09:58:16,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 09:58:16,587 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41803594-60551154, IP 17.154.199.195, Port 22 2025-06-02 09:58:16,742 - DEBUG - VM ctest-TestBasicPolicy-41803594-60551154 is ready for SSH connections 2025-06-02 09:58:16,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 09:58:16,743 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 17.154.199.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-02 09:58:16,743 - DEBUG - ping -s 56 -c 3 -W 1 17.154.199.195 2025-06-02 09:58:20,834 - DEBUG - PING 17.154.199.195 (17.154.199.195): 56 data bytes 64 bytes from 17.154.199.195: seq=0 ttl=63 time=3.363 ms 64 bytes from 17.154.199.195: seq=1 ttl=63 time=0.734 ms 64 bytes from 17.154.199.195: seq=2 ttl=63 time=0.830 ms --- 17.154.199.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.734/1.642/3.363 ms 2025-06-02 09:58:20,835 - INFO - Ping to IP 17.154.199.195 from VM ctest-TestBasicPolicy-41803594-69040914 passed 2025-06-02 09:58:21,010 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2b35b40d-099e-4de2-89a8-97061129f725", "href": "http://10.0.0.50:8082/network-policy/2b35b40d-099e-4de2-89a8-97061129f725"}} 2025-06-02 09:58:21,011 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 09:58:21,011 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 17.154.199.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-06-02 09:58:21,011 - DEBUG - ping -s 56 -c 3 -W 1 17.154.199.195 2025-06-02 09:58:24,293 - DEBUG - PING 17.154.199.195 (17.154.199.195): 56 data bytes --- 17.154.199.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-02 09:58:24,293 - WARNING - Ping to IP 17.154.199.195 from VM ctest-TestBasicPolicy-41803594-69040914 failed 2025-06-02 09:58:24,293 - INFO - Deleting VM ctest-TestBasicPolicy-41803594-60551154 2025-06-02 09:58:24,372 - INFO - Deleting VM ctest-TestBasicPolicy-41803594-69040914 2025-06-02 09:58:24,818 - INFO - Deleted policy ctest-policy-allow-all-70480949 2025-06-02 09:58:24,818 - INFO - Deleting VN ctest-vn-18248804 2025-06-02 09:58:24,860 - DEBUG - VN 58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2 still in use: Unable to complete operation on network 58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-562b7feb-a4f1-47cf-aa53-0593fc720564'] 2025-06-02 09:58:24,860 - WARNING - Deleting VN ctest-vn-18248804 failed..Will retry 2025-06-02 09:58:26,990 - DEBUG - Response for deleting network () 2025-06-02 09:58:26,990 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528 2025-06-02 09:58:26,996 - DEBUG - Response Code: 404 2025-06-02 09:58:26,997 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:58:27,002 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8 2025-06-02 09:58:27,089 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:58:27,171 - INFO - Validated that VN ctest-vn-18248804 is not found in API Server 2025-06-02 09:58:27,181 - DEBUG - VN ctest-vn-18248804 is not present in Agent 10.0.0.50 2025-06-02 09:58:27,181 - INFO - Validated that VN ctest-vn-18248804 is not in any agent 2025-06-02 09:58:27,194 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18248804 info 2025-06-02 09:58:27,194 - INFO - Deleting VN ctest-vn-52414509 2025-06-02 09:58:27,288 - DEBUG - Response for deleting network () 2025-06-02 09:58:27,288 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57 2025-06-02 09:58:27,293 - DEBUG - Response Code: 404 2025-06-02 09:58:27,293 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-06-02 09:58:27,298 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8 2025-06-02 09:58:27,352 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe 2025-06-02 09:58:27,419 - INFO - Validated that VN ctest-vn-52414509 is not found in API Server 2025-06-02 09:58:27,428 - DEBUG - VN ctest-vn-52414509 is not present in Agent 10.0.0.50 2025-06-02 09:58:27,428 - INFO - Validated that VN ctest-vn-52414509 is not in any agent 2025-06-02 09:58:27,442 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52414509 info 2025-06-02 09:58:27,695 - DEBUG - No XMPP flaps were noticed during the test 2025-06-02 09:58:27,696 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-06-02 09:58:27,696 - INFO - -------------------------------------------------------------------------------- 2025-06-02 09:58:28,446 - INFO - Deleted project: ctest-TestBasicPolicy-41803594, ID : 63b8fc41-1ec4-4d7d-b047-3266305091fe