2025-04-14 20:41:01,766 - INFO - Domain Default found not creating 2025-04-14 20:41:02,099 - INFO - Project ctest-TestBasicPolicy-90062454 not found, creating it 2025-04-14 20:41:02,534 - INFO - Created Project:ctest-TestBasicPolicy-90062454, ID : 836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:04,005 - INFO - ================================================================================ 2025-04-14 20:41:04,005 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-14 20:41:04,006 - 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-04-14 20:41:04,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-14 20:41:04,260 - INFO - Initial checks done. Running the testcase now 2025-04-14 20:41:04,260 - INFO - 2025-04-14 20:41:04,849 - DEBUG - Response for create_network : {'network': {'id': 'b1949255-1f16-432c-999c-e461b727aef4', 'name': 'ctest-vn-05917755', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-05917755'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 20:41:05,066 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb4bf56f-428c-4c96-8613-60421caca0d9', 'name': '', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'network_id': 'b1949255-1f16-432c-999c-e461b727aef4', 'ip_version': 4, 'cidr': '21.31.46.128/26', 'allocation_pools': [{'start': '21.31.46.130', 'end': '21.31.46.190'}], 'gateway_ip': '21.31.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.31.46.130', 'tags': [], 'project_id': '836c81f3c23c4ab2ae26a8703623740a'}} 2025-04-14 20:41:05,085 - INFO - Created VN ctest-vn-05917755 2025-04-14 20:41:05,137 - DEBUG - VN ctest-vn-05917755 UUID is b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:05,456 - DEBUG - Response for create_network : {'network': {'id': '8fe3436f-a2ed-45be-80d6-0dfb510e88b0', 'name': 'ctest-vn-53448820', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-53448820'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 20:41:05,663 - DEBUG - Response for create_subnet : {'subnet': {'id': '76857c4b-7d65-489c-a76d-e311f412d0ae', 'name': '', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'network_id': '8fe3436f-a2ed-45be-80d6-0dfb510e88b0', 'ip_version': 4, 'cidr': '148.255.93.64/26', 'allocation_pools': [{'start': '148.255.93.66', 'end': '148.255.93.126'}], 'gateway_ip': '148.255.93.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.255.93.66', 'tags': [], 'project_id': '836c81f3c23c4ab2ae26a8703623740a'}} 2025-04-14 20:41:05,683 - INFO - Created VN ctest-vn-53448820 2025-04-14 20:41:05,737 - DEBUG - VN ctest-vn-53448820 UUID is 8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:05,875 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755, 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-90062454:ctest-vn-53448820, 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-04-14 20:41:06,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1949255-1f16-432c-999c-e461b727aef4', 'name': 'ctest-vn-05917755', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb4bf56f-428c-4c96-8613-60421caca0d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-05917755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711']], 'subnet_ipam': [{'subnet_cidr': '21.31.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 20:41:06,473 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fe3436f-a2ed-45be-80d6-0dfb510e88b0', 'name': 'ctest-vn-53448820', 'tenant_id': '836c81f3c23c4ab2ae26a8703623740a', 'project_id': '836c81f3c23c4ab2ae26a8703623740a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76857c4b-7d65-489c-a76d-e311f412d0ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-vn-53448820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711']], 'subnet_ipam': [{'subnet_cidr': '148.255.93.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 20:41:06,637 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:06,939 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:06,975 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2 2025-04-14 20:41:06,992 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:07,072 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:07,088 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:07,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb 2025-04-14 20:41:07,108 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb 2025-04-14 20:41:07,116 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49c6859e-c4bf-48f6-9d6b-e7635bb45d27 2025-04-14 20:41:07,125 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 20:41:07,125 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:07,135 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb 2025-04-14 20:41:07,149 - INFO - Verified VN network id 9 for VN b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:07,150 - INFO - Verifications in API Server for VN ctest-vn-05917755 passed 2025-04-14 20:41:07,150 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:07,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb 2025-04-14 20:41:07,169 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb 2025-04-14 20:41:07,177 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49c6859e-c4bf-48f6-9d6b-e7635bb45d27 2025-04-14 20:41:07,191 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90062454', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12796013335557849900', 'uuid-lslong': '11068973092505628404'}, 'enable': 'true', 'created': '2025-04-14T20:41:04', 'last-modified': '2025-04-14T20:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998776'} 2025-04-14 20:41:07,198 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 20:41:07,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05917755 passed 2025-04-14 20:41:07,199 - DEBUG - ====Verifying policy data for ctest-vn-05917755 in API_Server ====== 2025-04-14 20:41:07,199 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:07,206 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2 2025-04-14 20:41:07,219 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:07,294 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1949255-1f16-432c-999c-e461b727aef4 2025-04-14 20:41:07,304 - DEBUG - ==>Verifying data for policy with id: 23a80c33-517b-4b13-89ec-564076d02218, fqn: ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711'] 2025-04-14 20:41:07,304 - INFO - VN ctest-vn-05917755 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 20:41:07,305 - DEBUG - Verifying the vn in opserver 2025-04-14 20:41:07,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755 virtual network link through opserver 10.0.0.254 2025-04-14 20:41:07,305 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-14 20:41:07,607 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-14 20:41:07,668 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755?flat'} 2025-04-14 20:41:07,668 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755 is found in opserver 2025-04-14 20:41:07,684 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 20:41:07,689 - DEBUG - VRF ids for VN ctest-vn-05917755: {} 2025-04-14 20:41:07,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:07,697 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2 2025-04-14 20:41:07,710 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:07,777 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:07,788 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:07,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386 2025-04-14 20:41:07,805 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386 2025-04-14 20:41:07,813 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7167f1ed-eba0-440a-958b-77670a5eb9c2 2025-04-14 20:41:07,821 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 20:41:07,821 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:07,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386 2025-04-14 20:41:07,841 - INFO - Verified VN network id 10 for VN 8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:07,841 - INFO - Verifications in API Server for VN ctest-vn-53448820 passed 2025-04-14 20:41:07,842 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:07,854 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386 2025-04-14 20:41:07,863 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386 2025-04-14 20:41:07,871 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7167f1ed-eba0-440a-958b-77670a5eb9c2 2025-04-14 20:41:07,887 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90062454', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10368204913890903486', 'uuid-lslong': '9283623054918715568'}, 'enable': 'true', 'created': '2025-04-14T20:41:05', 'last-modified': '2025-04-14T20:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437675'} 2025-04-14 20:41:07,895 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 20:41:07,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53448820 passed 2025-04-14 20:41:07,895 - DEBUG - ====Verifying policy data for ctest-vn-53448820 in API_Server ====== 2025-04-14 20:41:07,895 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:07,902 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2 2025-04-14 20:41:07,916 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:08,004 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fe3436f-a2ed-45be-80d6-0dfb510e88b0 2025-04-14 20:41:08,013 - DEBUG - ==>Verifying data for policy with id: 23a80c33-517b-4b13-89ec-564076d02218, fqn: ['default-domain', 'ctest-TestBasicPolicy-90062454', 'ctest-policy-allow-all-64589711'] 2025-04-14 20:41:08,013 - INFO - VN ctest-vn-53448820 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 20:41:08,013 - DEBUG - Verifying the vn in opserver 2025-04-14 20:41:08,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820 virtual network link through opserver 10.0.0.254 2025-04-14 20:41:08,013 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-14 20:41:08,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820?flat'} 2025-04-14 20:41:08,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-53448820 is found in opserver 2025-04-14 20:41:08,036 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 20:41:08,043 - DEBUG - VRF ids for VN ctest-vn-53448820: {} 2025-04-14 20:41:08,108 - DEBUG - Services list from nova: [, , ] 2025-04-14 20:41:09,153 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3110-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3110-1) 2025-04-14 20:41:10,379 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3110-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3110-1) 2025-04-14 20:41:10,379 - INFO - Waiting for VM ctest-TestBasicPolicy-90062454-27102393 to be up.. 2025-04-14 20:41:10,464 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 20:41:15,548 - DEBUG - VM is in ACTIVE state now 2025-04-14 20:41:15,548 - INFO - VM name : ctest-TestBasicPolicy-90062454-27102393 2025-04-14 20:41:15,628 - DEBUG - VM ctest-TestBasicPolicy-90062454-27102393 ID is 81dc9c44-fa19-4b6a-bd72-37687c2918ce 2025-04-14 20:41:15,652 - DEBUG - VM ctest-TestBasicPolicy-90062454-27102393 launched on Node cn-jenkins-deploy-platform-ansible-os-3110-1 2025-04-14 20:41:15,859 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/81dc9c44-fa19-4b6a-bd72-37687c2918ce 2025-04-14 20:41:15,875 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/40395c6c-8fc3-4899-8226-e89e4e6b11e1 2025-04-14 20:41:19,190 - 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-04-14 20:41:19,190 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90062454-27102393 failed! 2025-04-14 20:41:19,245 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90062454:ctest-vn-05917755 is 21.31.46.129 and allocation pool is NOT set 2025-04-14 20:41:21,305 - 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=3.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.35 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.349/2.896/3.444/0.547 ms') 2025-04-14 20:41:21,306 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90062454-27102393 passed 2025-04-14 20:41:21,457 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 20:41:21,457 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90062454-27102393, IP 21.31.46.131, Port 22 2025-04-14 20:41:21,513 - 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-04-14 20:41:21,596 - DEBUG - VM ctest-TestBasicPolicy-90062454-27102393 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-14 20:41:26,597 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 20:41:26,597 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90062454-27102393, IP 21.31.46.131, Port 22 2025-04-14 20:41:26,761 - DEBUG - VM ctest-TestBasicPolicy-90062454-27102393 is ready for SSH connections 2025-04-14 20:41:26,761 - INFO - Waiting for VM ctest-TestBasicPolicy-90062454-37763170 to be up.. 2025-04-14 20:41:26,855 - DEBUG - VM is in ACTIVE state now 2025-04-14 20:41:26,855 - INFO - VM name : ctest-TestBasicPolicy-90062454-37763170 2025-04-14 20:41:26,933 - DEBUG - VM ctest-TestBasicPolicy-90062454-37763170 ID is 6574a250-3e2c-4970-a8f8-8a40a08bde86 2025-04-14 20:41:26,934 - DEBUG - VM ctest-TestBasicPolicy-90062454-37763170 launched on Node cn-jenkins-deploy-platform-ansible-os-3110-1 2025-04-14 20:41:27,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/6574a250-3e2c-4970-a8f8-8a40a08bde86 2025-04-14 20:41:27,018 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ab412ac4-d09f-4b48-8817-e71083b1b34d 2025-04-14 20:41:28,262 - 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.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.392 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.392/1.842/3.293/1.450 ms') 2025-04-14 20:41:28,262 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90062454-37763170 passed 2025-04-14 20:41:28,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 20:41:28,409 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90062454-37763170, IP 148.255.93.67, Port 22 2025-04-14 20:41:28,569 - DEBUG - VM ctest-TestBasicPolicy-90062454-37763170 is ready for SSH connections 2025-04-14 20:41:28,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 20:41:28,570 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.255.93.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-14 20:41:28,570 - DEBUG - ping -s 56 -c 3 -W 1 148.255.93.67 2025-04-14 20:41:32,254 - DEBUG - PING 148.255.93.67 (148.255.93.67): 56 data bytes 64 bytes from 148.255.93.67: seq=0 ttl=63 time=4.093 ms 64 bytes from 148.255.93.67: seq=1 ttl=63 time=1.411 ms 64 bytes from 148.255.93.67: seq=2 ttl=63 time=0.869 ms --- 148.255.93.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.869/2.124/4.093 ms 2025-04-14 20:41:32,254 - INFO - Ping to IP 148.255.93.67 from VM ctest-TestBasicPolicy-90062454-27102393 passed 2025-04-14 20:41:32,429 - DEBUG - Policy Update Response {"network-policy": {"uuid": "23a80c33-517b-4b13-89ec-564076d02218", "href": "http://10.0.0.254:8082/network-policy/23a80c33-517b-4b13-89ec-564076d02218"}} 2025-04-14 20:41:32,429 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 20:41:32,429 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.255.93.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-14 20:41:32,429 - DEBUG - ping -s 56 -c 3 -W 1 148.255.93.67 2025-04-14 20:41:35,634 - DEBUG - PING 148.255.93.67 (148.255.93.67): 56 data bytes 64 bytes from 148.255.93.67: seq=0 ttl=63 time=1.675 ms --- 148.255.93.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.675/1.675/1.675 ms 2025-04-14 20:41:35,635 - WARNING - Ping to IP 148.255.93.67 from VM ctest-TestBasicPolicy-90062454-27102393 failed 2025-04-14 20:41:35,635 - INFO - Deleting VM ctest-TestBasicPolicy-90062454-37763170 2025-04-14 20:41:35,704 - INFO - Deleting VM ctest-TestBasicPolicy-90062454-27102393 2025-04-14 20:41:36,072 - INFO - Deleted policy ctest-policy-allow-all-64589711 2025-04-14 20:41:36,073 - INFO - Deleting VN ctest-vn-53448820 2025-04-14 20:41:36,109 - DEBUG - VN 8fe3436f-a2ed-45be-80d6-0dfb510e88b0 still in use: Unable to complete operation on network 8fe3436f-a2ed-45be-80d6-0dfb510e88b0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-60b5ada0-c3f7-4417-aa32-6bec52d355a2'] 2025-04-14 20:41:36,109 - WARNING - Deleting VN ctest-vn-53448820 failed..Will retry 2025-04-14 20:41:38,225 - DEBUG - Response for deleting network () 2025-04-14 20:41:38,225 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac419413-48f7-45ba-8135-8e1fa6807386 2025-04-14 20:41:38,232 - DEBUG - Response Code: 404 2025-04-14 20:41:38,232 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:38,238 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2 2025-04-14 20:41:38,295 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:38,367 - INFO - Validated that VN ctest-vn-53448820 is not found in API Server 2025-04-14 20:41:38,381 - DEBUG - VN ctest-vn-53448820 is not present in Agent 10.0.0.254 2025-04-14 20:41:38,381 - INFO - Validated that VN ctest-vn-53448820 is not in any agent 2025-04-14 20:41:38,398 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53448820 info 2025-04-14 20:41:38,398 - INFO - Deleting VN ctest-vn-05917755 2025-04-14 20:41:38,516 - DEBUG - Response for deleting network () 2025-04-14 20:41:38,516 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae1dd2c6-8b57-448c-bfcf-da5bae0f23bb 2025-04-14 20:41:38,522 - DEBUG - Response Code: 404 2025-04-14 20:41:38,523 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 20:41:38,530 - DEBUG - Requesting: http://10.0.0.254:8082/domain/407fe57d-1822-45cc-91c8-75c068d2d4a2 2025-04-14 20:41:38,586 - DEBUG - Requesting: http://10.0.0.254:8082/project/836c81f3-c23c-4ab2-ae26-a8703623740a 2025-04-14 20:41:38,656 - INFO - Validated that VN ctest-vn-05917755 is not found in API Server 2025-04-14 20:41:38,670 - DEBUG - VN ctest-vn-05917755 is not present in Agent 10.0.0.254 2025-04-14 20:41:38,670 - INFO - Validated that VN ctest-vn-05917755 is not in any agent 2025-04-14 20:41:38,698 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05917755 info 2025-04-14 20:41:38,968 - DEBUG - No XMPP flaps were noticed during the test 2025-04-14 20:41:38,968 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-04-14 20:41:38,968 - INFO - -------------------------------------------------------------------------------- 2025-04-14 20:41:39,649 - INFO - Deleted project: ctest-TestBasicPolicy-90062454, ID : 836c81f3-c23c-4ab2-ae26-a8703623740a