2025-10-17 21:54:22,930 - INFO - Domain Default found not creating 2025-10-17 21:54:23,259 - INFO - Project ctest-TestBasicPolicy-42877657 not found, creating it 2025-10-17 21:54:23,990 - INFO - Created Project:ctest-TestBasicPolicy-42877657, ID : 8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:54:26,069 - INFO - ================================================================================ 2025-10-17 21:54:26,069 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-17 21:54:26,069 - 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-17 21:54:26,391 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-17 21:54:26,392 - INFO - Initial checks done. Running the testcase now 2025-10-17 21:54:26,392 - INFO - 2025-10-17 21:54:27,259 - DEBUG - Response for create_network : {'network': {'id': 'b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b', 'name': 'ctest-vn-08665281', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-08665281'], 'port_security_enabled': True, 'description': ''}} 2025-10-17 21:54:27,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '98899359-5cc3-4c6e-882b-3a55a2efd527', 'name': '', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'network_id': 'b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b', 'ip_version': 4, 'cidr': '152.146.97.192/26', 'allocation_pools': [{'start': '152.146.97.194', 'end': '152.146.97.254'}], 'gateway_ip': '152.146.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.146.97.194', 'tags': [], 'project_id': '8abeef87e08347b5b4d566105b5ae62b'}} 2025-10-17 21:54:27,510 - INFO - Created VN ctest-vn-08665281 2025-10-17 21:54:27,565 - DEBUG - VN ctest-vn-08665281 UUID is b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:27,948 - DEBUG - Response for create_network : {'network': {'id': '637c14c3-dd0b-4ee8-84f6-6d3d3f08810e', 'name': 'ctest-vn-22490729', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-22490729'], 'port_security_enabled': True, 'description': ''}} 2025-10-17 21:54:28,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '275817b3-507f-4707-9a97-51ff471114a1', 'name': '', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'network_id': '637c14c3-dd0b-4ee8-84f6-6d3d3f08810e', 'ip_version': 4, 'cidr': '15.126.17.128/26', 'allocation_pools': [{'start': '15.126.17.130', 'end': '15.126.17.190'}], 'gateway_ip': '15.126.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.126.17.130', 'tags': [], 'project_id': '8abeef87e08347b5b4d566105b5ae62b'}} 2025-10-17 21:54:28,135 - INFO - Created VN ctest-vn-22490729 2025-10-17 21:54:28,189 - DEBUG - VN ctest-vn-22490729 UUID is 637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:28,352 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281, 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-42877657:ctest-vn-22490729, 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-17 21:54:28,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b', 'name': 'ctest-vn-08665281', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98899359-5cc3-4c6e-882b-3a55a2efd527'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-08665281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789']], 'subnet_ipam': [{'subnet_cidr': '152.146.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-17 21:54:29,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '637c14c3-dd0b-4ee8-84f6-6d3d3f08810e', 'name': 'ctest-vn-22490729', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['275817b3-507f-4707-9a97-51ff471114a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-22490729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789']], 'subnet_ipam': [{'subnet_cidr': '15.126.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-17 21:54:29,245 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:54:29,591 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:54:29,631 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2 2025-10-17 21:54:29,653 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:54:29,745 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:29,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:29,790 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3 2025-10-17 21:54:29,806 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3 2025-10-17 21:54:29,822 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/48bd32be-1b04-4d70-ad74-8040195a5705 2025-10-17 21:54:29,835 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 21:54:29,836 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:29,855 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3 2025-10-17 21:54:29,884 - INFO - Verified VN network id 11 for VN b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:29,884 - INFO - Verifications in API Server for VN ctest-vn-08665281 passed 2025-10-17 21:54:29,884 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:29,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3 2025-10-17 21:54:29,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3 2025-10-17 21:54:29,928 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/48bd32be-1b04-4d70-ad74-8040195a5705 2025-10-17 21:54:29,950 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42877657', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13370358244364337417', 'uuid-lslong': '12285083851334576795'}, 'enable': 'true', 'created': '2025-10-17T21:54:27', 'last-modified': '2025-10-17T21:54:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.204769'} 2025-10-17 21:54:29,961 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 21:54:29,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08665281 passed 2025-10-17 21:54:29,961 - DEBUG - ====Verifying policy data for ctest-vn-08665281 in API_Server ====== 2025-10-17 21:54:29,961 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:54:29,971 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2 2025-10-17 21:54:29,996 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:54:30,091 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b 2025-10-17 21:54:30,111 - DEBUG - ==>Verifying data for policy with id: de89e353-a5be-425d-8fad-b47578294ad4, fqn: ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789'] 2025-10-17 21:54:30,111 - INFO - VN ctest-vn-08665281 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 21:54:30,111 - DEBUG - Verifying the vn in opserver 2025-10-17 21:54:30,111 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281 virtual network link through opserver 10.0.0.254 2025-10-17 21:54:30,112 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-17 21:54:30,439 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-17 21:54:30,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281?flat'} 2025-10-17 21:54:30,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281 is found in opserver 2025-10-17 21:54:30,596 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 21:54:30,606 - DEBUG - VRF ids for VN ctest-vn-08665281: {} 2025-10-17 21:54:30,606 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:54:30,617 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2 2025-10-17 21:54:30,642 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:54:30,763 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:30,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:30,821 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7 2025-10-17 21:54:30,834 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7 2025-10-17 21:54:30,847 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b3ecdf9-4fb6-4492-86f0-e0908d29b223 2025-10-17 21:54:30,860 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-17 21:54:30,860 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:30,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7 2025-10-17 21:54:30,904 - INFO - Verified VN network id 12 for VN 637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:30,904 - INFO - Verifications in API Server for VN ctest-vn-22490729 passed 2025-10-17 21:54:30,904 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:30,923 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7 2025-10-17 21:54:30,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7 2025-10-17 21:54:30,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b3ecdf9-4fb6-4492-86f0-e0908d29b223 2025-10-17 21:54:30,972 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42877657', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7168627538326671080', 'uuid-lslong': '9580965367095263502'}, 'enable': 'true', 'created': '2025-10-17T21:54:27', 'last-modified': '2025-10-17T21:54:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.913333'} 2025-10-17 21:54:30,981 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-17 21:54:30,982 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22490729 passed 2025-10-17 21:54:30,982 - DEBUG - ====Verifying policy data for ctest-vn-22490729 in API_Server ====== 2025-10-17 21:54:30,982 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:54:30,992 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2 2025-10-17 21:54:31,013 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:54:31,118 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e 2025-10-17 21:54:31,152 - DEBUG - ==>Verifying data for policy with id: de89e353-a5be-425d-8fad-b47578294ad4, fqn: ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789'] 2025-10-17 21:54:31,152 - INFO - VN ctest-vn-22490729 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 21:54:31,152 - DEBUG - Verifying the vn in opserver 2025-10-17 21:54:31,152 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729 virtual network link through opserver 10.0.0.254 2025-10-17 21:54:31,152 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-17 21:54:31,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729?flat'} 2025-10-17 21:54:31,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729 is found in opserver 2025-10-17 21:54:31,191 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 21:54:31,199 - DEBUG - VRF ids for VN ctest-vn-22490729: {} 2025-10-17 21:54:31,332 - DEBUG - Services list from nova: [, , ] 2025-10-17 21:54:32,835 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4359-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4359-1) 2025-10-17 21:54:34,319 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4359-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4359-1) 2025-10-17 21:54:34,319 - INFO - Waiting for VM ctest-TestBasicPolicy-42877657-38580456 to be up.. 2025-10-17 21:54:34,405 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-17 21:54:39,526 - DEBUG - VM is in ACTIVE state now 2025-10-17 21:54:39,526 - INFO - VM name : ctest-TestBasicPolicy-42877657-38580456 2025-10-17 21:54:39,636 - DEBUG - VM ctest-TestBasicPolicy-42877657-38580456 ID is 22c58004-5d1c-44ec-bde2-cc9cde1a601f 2025-10-17 21:54:39,659 - DEBUG - VM ctest-TestBasicPolicy-42877657-38580456 launched on Node cn-jenkins-deploy-platform-ansible-os-4359-1 2025-10-17 21:54:39,739 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/22c58004-5d1c-44ec-bde2-cc9cde1a601f 2025-10-17 21:54:39,754 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b54ccaef-710e-4c92-acdc-d48dcec89560 2025-10-17 21:54:43,036 - 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 1008ms') 2025-10-17 21:54:43,036 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42877657-38580456 failed! 2025-10-17 21:54:43,110 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281 is 152.146.97.193 and allocation pool is NOT set 2025-10-17 21:54:45,186 - 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=16.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.08 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.082/8.973/16.865/7.891 ms') 2025-10-17 21:54:45,186 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42877657-38580456 passed 2025-10-17 21:54:45,357 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 21:54:45,357 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42877657-38580456, IP 152.146.97.195, Port 22 2025-10-17 21:54:45,423 - 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-17 21:54:45,576 - DEBUG - VM ctest-TestBasicPolicy-42877657-38580456 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-17 21:54:50,577 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 21:54:50,577 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42877657-38580456, IP 152.146.97.195, Port 22 2025-10-17 21:54:50,780 - DEBUG - VM ctest-TestBasicPolicy-42877657-38580456 is ready for SSH connections 2025-10-17 21:54:50,781 - INFO - Waiting for VM ctest-TestBasicPolicy-42877657-73649941 to be up.. 2025-10-17 21:54:50,932 - DEBUG - VM is in ACTIVE state now 2025-10-17 21:54:50,932 - INFO - VM name : ctest-TestBasicPolicy-42877657-73649941 2025-10-17 21:54:51,059 - DEBUG - VM ctest-TestBasicPolicy-42877657-73649941 ID is ac0f586a-9755-4e9a-b481-643b27b6401a 2025-10-17 21:54:51,059 - DEBUG - VM ctest-TestBasicPolicy-42877657-73649941 launched on Node cn-jenkins-deploy-platform-ansible-os-4359-1 2025-10-17 21:54:51,195 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/ac0f586a-9755-4e9a-b481-643b27b6401a 2025-10-17 21:54:51,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/d8207cbf-eccf-4cfd-91c6-7720ecf1e013 2025-10-17 21:54:52,506 - 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=7.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.836 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.836/4.174/7.513/3.338 ms') 2025-10-17 21:54:52,506 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-42877657-73649941 passed 2025-10-17 21:54:52,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 21:54:52,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42877657-73649941, IP 15.126.17.131, Port 22 2025-10-17 21:54:52,888 - DEBUG - VM ctest-TestBasicPolicy-42877657-73649941 is ready for SSH connections 2025-10-17 21:54:52,889 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 21:54:52,889 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.126.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-17 21:54:52,890 - DEBUG - ping -s 56 -c 3 -W 1 15.126.17.131 2025-10-17 21:54:57,454 - DEBUG - PING 15.126.17.131 (15.126.17.131): 56 data bytes 64 bytes from 15.126.17.131: seq=0 ttl=63 time=4.465 ms 64 bytes from 15.126.17.131: seq=1 ttl=63 time=2.529 ms 64 bytes from 15.126.17.131: seq=2 ttl=63 time=2.017 ms --- 15.126.17.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.017/3.003/4.465 ms 2025-10-17 21:54:57,454 - INFO - Ping to IP 15.126.17.131 from VM ctest-TestBasicPolicy-42877657-38580456 passed 2025-10-17 21:54:57,705 - DEBUG - Policy Update Response {"network-policy": {"uuid": "de89e353-a5be-425d-8fad-b47578294ad4", "href": "http://10.0.0.254:8082/network-policy/de89e353-a5be-425d-8fad-b47578294ad4"}} 2025-10-17 21:54:57,706 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-17 21:54:57,706 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.126.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-17 21:54:57,706 - DEBUG - ping -s 56 -c 3 -W 1 15.126.17.131 2025-10-17 21:55:00,954 - DEBUG - PING 15.126.17.131 (15.126.17.131): 56 data bytes --- 15.126.17.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-17 21:55:00,955 - WARNING - Ping to IP 15.126.17.131 from VM ctest-TestBasicPolicy-42877657-38580456 failed 2025-10-17 21:55:00,955 - INFO - Deleting VM ctest-TestBasicPolicy-42877657-73649941 2025-10-17 21:55:01,031 - INFO - Deleting VM ctest-TestBasicPolicy-42877657-38580456 2025-10-17 21:55:01,606 - INFO - Deleted policy ctest-policy-allow-all-81990789 2025-10-17 21:55:01,606 - INFO - Deleting VN ctest-vn-22490729 2025-10-17 21:55:01,649 - DEBUG - VN 637c14c3-dd0b-4ee8-84f6-6d3d3f08810e still in use: Unable to complete operation on network 637c14c3-dd0b-4ee8-84f6-6d3d3f08810e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-83c6d6d5-7686-4637-8014-d760e41bc960'] 2025-10-17 21:55:01,649 - WARNING - Deleting VN ctest-vn-22490729 failed..Will retry 2025-10-17 21:55:03,824 - DEBUG - Response for deleting network () 2025-10-17 21:55:03,824 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7 2025-10-17 21:55:03,830 - DEBUG - Response Code: 404 2025-10-17 21:55:03,830 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:55:03,837 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2 2025-10-17 21:55:03,892 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:55:03,983 - INFO - Validated that VN ctest-vn-22490729 is not found in API Server 2025-10-17 21:55:04,000 - DEBUG - VN ctest-vn-22490729 is not present in Agent 10.0.0.254 2025-10-17 21:55:04,001 - INFO - Validated that VN ctest-vn-22490729 is not in any agent 2025-10-17 21:55:04,031 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22490729 info 2025-10-17 21:55:04,031 - INFO - Deleting VN ctest-vn-08665281 2025-10-17 21:55:04,196 - DEBUG - Response for deleting network () 2025-10-17 21:55:04,196 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3 2025-10-17 21:55:04,203 - DEBUG - Response Code: 404 2025-10-17 21:55:04,203 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-17 21:55:04,212 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2 2025-10-17 21:55:04,271 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b 2025-10-17 21:55:04,394 - INFO - Validated that VN ctest-vn-08665281 is not found in API Server 2025-10-17 21:55:04,418 - DEBUG - VN ctest-vn-08665281 is not present in Agent 10.0.0.254 2025-10-17 21:55:04,418 - INFO - Validated that VN ctest-vn-08665281 is not in any agent 2025-10-17 21:55:04,462 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08665281 info 2025-10-17 21:55:04,755 - DEBUG - No XMPP flaps were noticed during the test 2025-10-17 21:55:04,755 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2025-10-17 21:55:04,755 - INFO - -------------------------------------------------------------------------------- 2025-10-17 21:55:05,470 - INFO - Deleted project: ctest-TestBasicPolicy-42877657, ID : 8abeef87-e083-47b5-b4d5-66105b5ae62b