2025-10-16 15:21:18,571 - INFO - Domain Default found not creating 2025-10-16 15:21:18,771 - INFO - Project ctest-TestBasicPolicy-87381598 not found, creating it 2025-10-16 15:21:19,375 - INFO - Created Project:ctest-TestBasicPolicy-87381598, ID : f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:20,971 - INFO - ================================================================================ 2025-10-16 15:21:20,971 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-16 15:21:20,971 - 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-16 15:21:21,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-16 15:21:21,231 - INFO - Initial checks done. Running the testcase now 2025-10-16 15:21:21,231 - INFO - 2025-10-16 15:21:21,826 - DEBUG - Response for create_network : {'network': {'id': 'f9b27c7b-1e62-473a-9c15-3d9167a8914d', 'name': 'ctest-vn-35744525', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-35744525'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 15:21:22,018 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e5d7c4b-df69-4710-8bb6-2826ad347ea4', 'name': '', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'network_id': 'f9b27c7b-1e62-473a-9c15-3d9167a8914d', 'ip_version': 4, 'cidr': '14.45.209.64/26', 'allocation_pools': [{'start': '14.45.209.66', 'end': '14.45.209.126'}], 'gateway_ip': '14.45.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.45.209.66', 'tags': [], 'project_id': 'f48f779aeca94833817b53780d8d575c'}} 2025-10-16 15:21:22,038 - INFO - Created VN ctest-vn-35744525 2025-10-16 15:21:22,095 - DEBUG - VN ctest-vn-35744525 UUID is f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:22,417 - DEBUG - Response for create_network : {'network': {'id': 'bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647', 'name': 'ctest-vn-97911301', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-97911301'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 15:21:22,628 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f021b6da-045e-47b3-89a2-b882d93c7f9b', 'name': '', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'network_id': 'bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647', 'ip_version': 4, 'cidr': '46.32.239.192/26', 'allocation_pools': [{'start': '46.32.239.194', 'end': '46.32.239.254'}], 'gateway_ip': '46.32.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.32.239.194', 'tags': [], 'project_id': 'f48f779aeca94833817b53780d8d575c'}} 2025-10-16 15:21:22,647 - INFO - Created VN ctest-vn-97911301 2025-10-16 15:21:22,702 - DEBUG - VN ctest-vn-97911301 UUID is bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:22,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525, 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-87381598:ctest-vn-97911301, 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-16 15:21:23,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9b27c7b-1e62-473a-9c15-3d9167a8914d', 'name': 'ctest-vn-35744525', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e5d7c4b-df69-4710-8bb6-2826ad347ea4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-35744525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665']], 'subnet_ipam': [{'subnet_cidr': '14.45.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 15:21:23,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647', 'name': 'ctest-vn-97911301', 'tenant_id': 'f48f779aeca94833817b53780d8d575c', 'project_id': 'f48f779aeca94833817b53780d8d575c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f021b6da-045e-47b3-89a2-b882d93c7f9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-vn-97911301'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665']], 'subnet_ipam': [{'subnet_cidr': '46.32.239.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 15:21:23,595 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:23,910 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:23,946 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:23,963 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:24,054 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:24,069 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:24,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96 2025-10-16 15:21:24,095 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96 2025-10-16 15:21:24,105 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/711e35e3-ebff-43ee-9654-46eb060a7915 2025-10-16 15:21:24,114 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 15:21:24,114 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:24,125 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96 2025-10-16 15:21:24,146 - INFO - Verified VN network id 12 for VN f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:24,146 - INFO - Verifications in API Server for VN ctest-vn-35744525 passed 2025-10-16 15:21:24,146 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:24,157 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96 2025-10-16 15:21:24,164 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96 2025-10-16 15:21:24,172 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/711e35e3-ebff-43ee-9654-46eb060a7915 2025-10-16 15:21:24,184 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87381598', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17992580329531131706', 'uuid-lslong': '11246963339146334541'}, 'enable': 'true', 'created': '2025-10-16T15:21:21', 'last-modified': '2025-10-16T15:21:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032666'} 2025-10-16 15:21:24,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 15:21:24,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35744525 passed 2025-10-16 15:21:24,192 - DEBUG - ====Verifying policy data for ctest-vn-35744525 in API_Server ====== 2025-10-16 15:21:24,192 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:24,198 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:24,213 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:24,290 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f9b27c7b-1e62-473a-9c15-3d9167a8914d 2025-10-16 15:21:24,304 - DEBUG - ==>Verifying data for policy with id: 3554eb2f-c8f5-4a23-af1f-17d8c62e4733, fqn: ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665'] 2025-10-16 15:21:24,304 - INFO - VN ctest-vn-35744525 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 15:21:24,304 - DEBUG - Verifying the vn in opserver 2025-10-16 15:21:24,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525 virtual network link through opserver 10.0.0.22 2025-10-16 15:21:24,304 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 15:21:24,605 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 15:21:24,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525?flat'} 2025-10-16 15:21:24,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525 is found in opserver 2025-10-16 15:21:24,688 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 15:21:24,694 - DEBUG - VRF ids for VN ctest-vn-35744525: {} 2025-10-16 15:21:24,694 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:24,700 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:24,713 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:24,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:24,797 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:24,808 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130 2025-10-16 15:21:24,816 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130 2025-10-16 15:21:24,825 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2e5762f-7646-4710-aef2-22fc51cded09 2025-10-16 15:21:24,833 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-16 15:21:24,833 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:24,846 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130 2025-10-16 15:21:24,864 - INFO - Verified VN network id 13 for VN bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:24,864 - INFO - Verifications in API Server for VN ctest-vn-97911301 passed 2025-10-16 15:21:24,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:24,888 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130 2025-10-16 15:21:24,898 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130 2025-10-16 15:21:24,908 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2e5762f-7646-4710-aef2-22fc51cded09 2025-10-16 15:21:24,923 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87381598', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13685276049748675635', 'uuid-lslong': '12894567599127184967'}, 'enable': 'true', 'created': '2025-10-16T15:21:22', 'last-modified': '2025-10-16T15:21:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530072'} 2025-10-16 15:21:24,929 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-16 15:21:24,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97911301 passed 2025-10-16 15:21:24,930 - DEBUG - ====Verifying policy data for ctest-vn-97911301 in API_Server ====== 2025-10-16 15:21:24,930 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:24,938 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:24,952 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:25,033 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 2025-10-16 15:21:25,043 - DEBUG - ==>Verifying data for policy with id: 3554eb2f-c8f5-4a23-af1f-17d8c62e4733, fqn: ['default-domain', 'ctest-TestBasicPolicy-87381598', 'ctest-policy-allow-all-41249665'] 2025-10-16 15:21:25,043 - INFO - VN ctest-vn-97911301 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 15:21:25,043 - DEBUG - Verifying the vn in opserver 2025-10-16 15:21:25,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301 virtual network link through opserver 10.0.0.22 2025-10-16 15:21:25,043 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 15:21:25,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301?flat'} 2025-10-16 15:21:25,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-97911301 is found in opserver 2025-10-16 15:21:25,068 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 15:21:25,074 - DEBUG - VRF ids for VN ctest-vn-97911301: {} 2025-10-16 15:21:25,136 - DEBUG - Services list from nova: [, , ] 2025-10-16 15:21:26,199 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4346-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4346-1) 2025-10-16 15:21:27,727 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4346-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4346-1) 2025-10-16 15:21:27,728 - INFO - Waiting for VM ctest-TestBasicPolicy-87381598-52129086 to be up.. 2025-10-16 15:21:27,828 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-16 15:21:32,930 - DEBUG - VM is in ACTIVE state now 2025-10-16 15:21:32,930 - INFO - VM name : ctest-TestBasicPolicy-87381598-52129086 2025-10-16 15:21:33,054 - DEBUG - VM ctest-TestBasicPolicy-87381598-52129086 ID is cd2a9316-05a5-42f9-8a03-8fa7192149ab 2025-10-16 15:21:33,079 - DEBUG - VM ctest-TestBasicPolicy-87381598-52129086 launched on Node cn-jenkins-deploy-platform-ansible-os-4346-1 2025-10-16 15:21:33,176 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/cd2a9316-05a5-42f9-8a03-8fa7192149ab 2025-10-16 15:21:33,185 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/27965a22-a02b-44c8-bb12-c856522cce90 2025-10-16 15:21:36,448 - 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 1011ms') 2025-10-16 15:21:36,448 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87381598-52129086 failed! 2025-10-16 15:21:36,503 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87381598:ctest-vn-35744525 is 14.45.209.65 and allocation pool is NOT set 2025-10-16 15:21:38,571 - 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=12.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.90 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 = 2.902/7.801/12.701/4.899 ms') 2025-10-16 15:21:38,571 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87381598-52129086 passed 2025-10-16 15:21:38,731 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 15:21:38,731 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87381598-52129086, IP 14.45.209.67, Port 22 2025-10-16 15:21:38,797 - 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-16 15:21:38,915 - DEBUG - VM ctest-TestBasicPolicy-87381598-52129086 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-16 15:21:43,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 15:21:43,916 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87381598-52129086, IP 14.45.209.67, Port 22 2025-10-16 15:21:44,084 - DEBUG - VM ctest-TestBasicPolicy-87381598-52129086 is ready for SSH connections 2025-10-16 15:21:44,084 - INFO - Waiting for VM ctest-TestBasicPolicy-87381598-01139223 to be up.. 2025-10-16 15:21:44,174 - DEBUG - VM is in ACTIVE state now 2025-10-16 15:21:44,174 - INFO - VM name : ctest-TestBasicPolicy-87381598-01139223 2025-10-16 15:21:44,259 - DEBUG - VM ctest-TestBasicPolicy-87381598-01139223 ID is 3bc40c99-9bd2-4155-8f7c-01e0a10e853a 2025-10-16 15:21:44,259 - DEBUG - VM ctest-TestBasicPolicy-87381598-01139223 launched on Node cn-jenkins-deploy-platform-ansible-os-4346-1 2025-10-16 15:21:44,357 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/3bc40c99-9bd2-4155-8f7c-01e0a10e853a 2025-10-16 15:21:44,368 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/abc4e91a-2866-423a-bcb0-e2b8e43c7f20 2025-10-16 15:21:45,631 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.823 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.823/2.372/3.922/1.549 ms') 2025-10-16 15:21:45,631 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87381598-01139223 passed 2025-10-16 15:21:45,783 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 15:21:45,783 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87381598-01139223, IP 46.32.239.195, Port 22 2025-10-16 15:21:45,949 - DEBUG - VM ctest-TestBasicPolicy-87381598-01139223 is ready for SSH connections 2025-10-16 15:21:45,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 15:21:45,950 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.32.239.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-10-16 15:21:45,950 - DEBUG - ping -s 56 -c 3 -W 1 46.32.239.195 2025-10-16 15:21:50,077 - DEBUG - PING 46.32.239.195 (46.32.239.195): 56 data bytes 64 bytes from 46.32.239.195: seq=0 ttl=63 time=4.247 ms 64 bytes from 46.32.239.195: seq=1 ttl=63 time=1.890 ms 64 bytes from 46.32.239.195: seq=2 ttl=63 time=0.984 ms --- 46.32.239.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.984/2.373/4.247 ms 2025-10-16 15:21:50,078 - INFO - Ping to IP 46.32.239.195 from VM ctest-TestBasicPolicy-87381598-52129086 passed 2025-10-16 15:21:50,270 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3554eb2f-c8f5-4a23-af1f-17d8c62e4733", "href": "http://10.0.0.22:8082/network-policy/3554eb2f-c8f5-4a23-af1f-17d8c62e4733"}} 2025-10-16 15:21:50,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-16 15:21:50,271 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.32.239.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-10-16 15:21:50,271 - DEBUG - ping -s 56 -c 3 -W 1 46.32.239.195 2025-10-16 15:21:53,509 - DEBUG - PING 46.32.239.195 (46.32.239.195): 56 data bytes --- 46.32.239.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-16 15:21:53,509 - WARNING - Ping to IP 46.32.239.195 from VM ctest-TestBasicPolicy-87381598-52129086 failed 2025-10-16 15:21:53,510 - INFO - Deleting VM ctest-TestBasicPolicy-87381598-01139223 2025-10-16 15:21:53,604 - INFO - Deleting VM ctest-TestBasicPolicy-87381598-52129086 2025-10-16 15:21:54,047 - INFO - Deleted policy ctest-policy-allow-all-41249665 2025-10-16 15:21:54,047 - INFO - Deleting VN ctest-vn-97911301 2025-10-16 15:21:54,097 - DEBUG - VN bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647 still in use: Unable to complete operation on network bdebde0f-3e6e-4c33-b2f2-b4e9be3cc647. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c5129595-c358-4d73-82b6-538f65698643'] 2025-10-16 15:21:54,097 - WARNING - Deleting VN ctest-vn-97911301 failed..Will retry 2025-10-16 15:21:56,230 - DEBUG - Response for deleting network () 2025-10-16 15:21:56,230 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2f86a7c-85ea-4353-a809-07c6d84fb130 2025-10-16 15:21:56,237 - DEBUG - Response Code: 404 2025-10-16 15:21:56,238 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:56,245 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:56,303 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:56,377 - INFO - Validated that VN ctest-vn-97911301 is not found in API Server 2025-10-16 15:21:56,388 - DEBUG - VN ctest-vn-97911301 is not present in Agent 10.0.0.22 2025-10-16 15:21:56,388 - INFO - Validated that VN ctest-vn-97911301 is not in any agent 2025-10-16 15:21:56,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97911301 info 2025-10-16 15:21:56,404 - INFO - Deleting VN ctest-vn-35744525 2025-10-16 15:21:56,516 - DEBUG - Response for deleting network () 2025-10-16 15:21:56,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fcf199a-7420-4dd9-b913-e2cf45f1fa96 2025-10-16 15:21:56,524 - DEBUG - Response Code: 404 2025-10-16 15:21:56,524 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:56,531 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:56,589 - DEBUG - Requesting: http://10.0.0.22:8082/project/f48f779a-eca9-4833-817b-53780d8d575c 2025-10-16 15:21:56,673 - INFO - Validated that VN ctest-vn-35744525 is not found in API Server 2025-10-16 15:21:56,683 - DEBUG - VN ctest-vn-35744525 is not present in Agent 10.0.0.22 2025-10-16 15:21:56,683 - INFO - Validated that VN ctest-vn-35744525 is not in any agent 2025-10-16 15:21:56,699 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35744525 info 2025-10-16 15:21:56,966 - DEBUG - No XMPP flaps were noticed during the test
2025-10-16 15:21:56,966 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-10-16 15:21:56,966 - INFO - -------------------------------------------------------------------------------- 2025-10-16 15:21:57,668 - INFO - Deleted project: ctest-TestBasicPolicy-87381598, ID : f48f779a-eca9-4833-817b-53780d8d575c