2025-09-15 09:16:13,236 - INFO - Domain Default found not creating 2025-09-15 09:16:13,394 - INFO - Project ctest-TestBasicPolicy-83167292 not found, creating it 2025-09-15 09:16:13,826 - INFO - Created Project:ctest-TestBasicPolicy-83167292, ID : 1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:15,235 - INFO - ================================================================================ 2025-09-15 09:16:15,235 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-15 09:16:15,235 - 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-09-15 09:16:15,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-15 09:16:15,487 - INFO - Initial checks done. Running the testcase now 2025-09-15 09:16:15,487 - INFO - 2025-09-15 09:16:16,016 - DEBUG - Response for create_network : {'network': {'id': '7887b4c3-de1d-409f-bafd-35cb718e407f', 'name': 'ctest-vn-61793033', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-61793033'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 09:16:16,162 - DEBUG - Response for create_subnet : {'subnet': {'id': '07b558df-eb03-4268-81e1-feda6ab12751', 'name': '', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'network_id': '7887b4c3-de1d-409f-bafd-35cb718e407f', 'ip_version': 4, 'cidr': '18.248.57.192/26', 'allocation_pools': [{'start': '18.248.57.194', 'end': '18.248.57.254'}], 'gateway_ip': '18.248.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.248.57.194', 'tags': [], 'project_id': '1e1e0d37a56c489187f866292a79755f'}} 2025-09-15 09:16:16,182 - INFO - Created VN ctest-vn-61793033 2025-09-15 09:16:16,234 - DEBUG - VN ctest-vn-61793033 UUID is 7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:16,516 - DEBUG - Response for create_network : {'network': {'id': '43f05785-7016-47fe-a1a5-e8cfb31dfc19', 'name': 'ctest-vn-63381125', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-63381125'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 09:16:16,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '20ce1505-51d5-4c35-a6aa-afd7c2cf8f79', 'name': '', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'network_id': '43f05785-7016-47fe-a1a5-e8cfb31dfc19', 'ip_version': 4, 'cidr': '198.148.8.64/26', 'allocation_pools': [{'start': '198.148.8.66', 'end': '198.148.8.126'}], 'gateway_ip': '198.148.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.148.8.66', 'tags': [], 'project_id': '1e1e0d37a56c489187f866292a79755f'}} 2025-09-15 09:16:16,697 - INFO - Created VN ctest-vn-63381125 2025-09-15 09:16:16,750 - DEBUG - VN ctest-vn-63381125 UUID is 43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:16,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033, 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-83167292:ctest-vn-63381125, 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-09-15 09:16:17,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7887b4c3-de1d-409f-bafd-35cb718e407f', 'name': 'ctest-vn-61793033', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07b558df-eb03-4268-81e1-feda6ab12751'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-61793033'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255']], 'subnet_ipam': [{'subnet_cidr': '18.248.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 09:16:17,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43f05785-7016-47fe-a1a5-e8cfb31dfc19', 'name': 'ctest-vn-63381125', 'tenant_id': '1e1e0d37a56c489187f866292a79755f', 'project_id': '1e1e0d37a56c489187f866292a79755f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20ce1505-51d5-4c35-a6aa-afd7c2cf8f79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-vn-63381125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255']], 'subnet_ipam': [{'subnet_cidr': '198.148.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 09:16:17,547 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:17,849 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:17,878 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5 2025-09-15 09:16:17,890 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:17,964 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:17,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:17,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2 2025-09-15 09:16:17,991 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2 2025-09-15 09:16:17,997 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5f195ab2-179c-4ef6-bd9f-a56d43179634 2025-09-15 09:16:18,002 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 09:16:18,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:18,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2 2025-09-15 09:16:18,023 - INFO - Verified VN network id 12 for VN 7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:18,023 - INFO - Verifications in API Server for VN ctest-vn-61793033 passed 2025-09-15 09:16:18,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:18,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2 2025-09-15 09:16:18,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2 2025-09-15 09:16:18,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5f195ab2-179c-4ef6-bd9f-a56d43179634 2025-09-15 09:16:18,056 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83167292', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8685109159745372319', 'uuid-lslong': '13473984808062173311'}, 'enable': 'true', 'created': '2025-09-15T09:16:15', 'last-modified': '2025-09-15T09:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888114'} 2025-09-15 09:16:18,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 09:16:18,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61793033 passed 2025-09-15 09:16:18,063 - DEBUG - ====Verifying policy data for ctest-vn-61793033 in API_Server ====== 2025-09-15 09:16:18,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:18,069 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5 2025-09-15 09:16:18,079 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:18,147 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7887b4c3-de1d-409f-bafd-35cb718e407f 2025-09-15 09:16:18,157 - DEBUG - ==>Verifying data for policy with id: cc761736-8e2e-45f6-88d6-f2c9bf149155, fqn: ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255'] 2025-09-15 09:16:18,157 - INFO - VN ctest-vn-61793033 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 09:16:18,157 - DEBUG - Verifying the vn in opserver 2025-09-15 09:16:18,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033 virtual network link through opserver 10.0.0.38 2025-09-15 09:16:18,157 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 09:16:18,446 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 09:16:18,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033?flat'} 2025-09-15 09:16:18,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033 is found in opserver 2025-09-15 09:16:18,555 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 09:16:18,559 - DEBUG - VRF ids for VN ctest-vn-61793033: {} 2025-09-15 09:16:18,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:18,569 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5 2025-09-15 09:16:18,633 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:18,730 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:18,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:18,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84 2025-09-15 09:16:18,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84 2025-09-15 09:16:18,774 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b45a39de-4fd1-4dc1-bce2-0d9467161235 2025-09-15 09:16:18,785 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 09:16:18,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:18,799 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84 2025-09-15 09:16:18,818 - INFO - Verified VN network id 13 for VN 43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:18,818 - INFO - Verifications in API Server for VN ctest-vn-63381125 passed 2025-09-15 09:16:18,818 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:18,831 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84 2025-09-15 09:16:18,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84 2025-09-15 09:16:18,858 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b45a39de-4fd1-4dc1-bce2-0d9467161235 2025-09-15 09:16:18,876 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83167292', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4895509025574504446', 'uuid-lslong': '11647971990024616985'}, 'enable': 'true', 'created': '2025-09-15T09:16:16', 'last-modified': '2025-09-15T09:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480888'} 2025-09-15 09:16:18,885 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 09:16:18,885 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63381125 passed 2025-09-15 09:16:18,885 - DEBUG - ====Verifying policy data for ctest-vn-63381125 in API_Server ====== 2025-09-15 09:16:18,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:18,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5 2025-09-15 09:16:18,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:19,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43f05785-7016-47fe-a1a5-e8cfb31dfc19 2025-09-15 09:16:19,052 - DEBUG - ==>Verifying data for policy with id: cc761736-8e2e-45f6-88d6-f2c9bf149155, fqn: ['default-domain', 'ctest-TestBasicPolicy-83167292', 'ctest-policy-allow-all-28659255'] 2025-09-15 09:16:19,052 - INFO - VN ctest-vn-63381125 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 09:16:19,052 - DEBUG - Verifying the vn in opserver 2025-09-15 09:16:19,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125 virtual network link through opserver 10.0.0.38 2025-09-15 09:16:19,052 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 09:16:19,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125?flat'} 2025-09-15 09:16:19,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-63381125 is found in opserver 2025-09-15 09:16:19,086 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 09:16:19,092 - DEBUG - VRF ids for VN ctest-vn-63381125: {} 2025-09-15 09:16:19,168 - DEBUG - Services list from nova: [, , ] 2025-09-15 09:16:20,203 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4112-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4112-1) 2025-09-15 09:16:21,394 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4112-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4112-1) 2025-09-15 09:16:21,394 - INFO - Waiting for VM ctest-TestBasicPolicy-83167292-07319066 to be up.. 2025-09-15 09:16:21,485 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-15 09:16:26,575 - DEBUG - VM is in ACTIVE state now 2025-09-15 09:16:26,575 - INFO - VM name : ctest-TestBasicPolicy-83167292-07319066 2025-09-15 09:16:26,646 - DEBUG - VM ctest-TestBasicPolicy-83167292-07319066 ID is 4b10c99d-ae79-4e82-b447-5386ee99516a 2025-09-15 09:16:26,667 - DEBUG - VM ctest-TestBasicPolicy-83167292-07319066 launched on Node cn-jenkins-deploy-platform-ansible-os-4112-1 2025-09-15 09:16:26,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/4b10c99d-ae79-4e82-b447-5386ee99516a 2025-09-15 09:16:26,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/90c24af0-1413-4aee-af56-cc110901a83a 2025-09-15 09:16:30,005 - 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-09-15 09:16:30,005 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83167292-07319066 failed! 2025-09-15 09:16:30,058 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-83167292:ctest-vn-61793033 is 18.248.57.193 and allocation pool is NOT set 2025-09-15 09:16:32,118 - 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=7.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.59 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.593/5.053/7.513/2.460 ms') 2025-09-15 09:16:32,118 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83167292-07319066 passed 2025-09-15 09:16:32,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 09:16:32,267 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83167292-07319066, IP 18.248.57.195, Port 22 2025-09-15 09:16:32,322 - 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-09-15 09:16:32,394 - DEBUG - VM ctest-TestBasicPolicy-83167292-07319066 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 09:16:37,395 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 09:16:37,395 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83167292-07319066, IP 18.248.57.195, Port 22 2025-09-15 09:16:37,554 - DEBUG - VM ctest-TestBasicPolicy-83167292-07319066 is ready for SSH connections 2025-09-15 09:16:37,554 - INFO - Waiting for VM ctest-TestBasicPolicy-83167292-47415314 to be up.. 2025-09-15 09:16:37,628 - DEBUG - VM is in ACTIVE state now 2025-09-15 09:16:37,628 - INFO - VM name : ctest-TestBasicPolicy-83167292-47415314 2025-09-15 09:16:37,701 - DEBUG - VM ctest-TestBasicPolicy-83167292-47415314 ID is 0638f3d3-11dc-41d6-84a2-3609dc0ca380 2025-09-15 09:16:37,701 - DEBUG - VM ctest-TestBasicPolicy-83167292-47415314 launched on Node cn-jenkins-deploy-platform-ansible-os-4112-1 2025-09-15 09:16:37,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/0638f3d3-11dc-41d6-84a2-3609dc0ca380 2025-09-15 09:16:37,778 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/9681c409-1e6f-41b1-a74b-cc3a71ac4e65 2025-09-15 09:16:39,016 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.473 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.473/2.001/3.529/1.528 ms') 2025-09-15 09:16:39,016 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-83167292-47415314 passed 2025-09-15 09:16:39,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 09:16:39,163 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83167292-47415314, IP 198.148.8.67, Port 22 2025-09-15 09:16:39,318 - DEBUG - VM ctest-TestBasicPolicy-83167292-47415314 is ready for SSH connections 2025-09-15 09:16:39,318 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 09:16:39,319 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.148.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-15 09:16:39,319 - DEBUG - ping -s 56 -c 3 -W 1 198.148.8.67 2025-09-15 09:16:43,028 - DEBUG - PING 198.148.8.67 (198.148.8.67): 56 data bytes 64 bytes from 198.148.8.67: seq=0 ttl=63 time=3.209 ms 64 bytes from 198.148.8.67: seq=1 ttl=63 time=0.862 ms 64 bytes from 198.148.8.67: seq=2 ttl=63 time=1.039 ms --- 198.148.8.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/1.703/3.209 ms 2025-09-15 09:16:43,028 - INFO - Ping to IP 198.148.8.67 from VM ctest-TestBasicPolicy-83167292-07319066 passed 2025-09-15 09:16:43,206 - DEBUG - Policy Update Response {"network-policy": {"uuid": "cc761736-8e2e-45f6-88d6-f2c9bf149155", "href": "http://10.0.0.38:8082/network-policy/cc761736-8e2e-45f6-88d6-f2c9bf149155"}} 2025-09-15 09:16:43,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 09:16:43,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.148.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-15 09:16:43,206 - DEBUG - ping -s 56 -c 3 -W 1 198.148.8.67 2025-09-15 09:16:46,422 - DEBUG - PING 198.148.8.67 (198.148.8.67): 56 data bytes --- 198.148.8.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-15 09:16:46,422 - WARNING - Ping to IP 198.148.8.67 from VM ctest-TestBasicPolicy-83167292-07319066 failed 2025-09-15 09:16:46,422 - INFO - Deleting VM ctest-TestBasicPolicy-83167292-47415314 2025-09-15 09:16:46,489 - INFO - Deleting VM ctest-TestBasicPolicy-83167292-07319066 2025-09-15 09:16:46,856 - INFO - Deleted policy ctest-policy-allow-all-28659255 2025-09-15 09:16:46,857 - INFO - Deleting VN ctest-vn-63381125 2025-09-15 09:16:46,889 - DEBUG - VN 43f05785-7016-47fe-a1a5-e8cfb31dfc19 still in use: Unable to complete operation on network 43f05785-7016-47fe-a1a5-e8cfb31dfc19. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fae56d84-59b0-4bff-b8e1-3b89e1679dcd'] 2025-09-15 09:16:46,889 - WARNING - Deleting VN ctest-vn-63381125 failed..Will retry 2025-09-15 09:16:48,986 - DEBUG - Response for deleting network () 2025-09-15 09:16:48,986 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/365e097a-e8bb-4674-9a75-f74e91be3f84 2025-09-15 09:16:48,992 - DEBUG - Response Code: 404 2025-09-15 09:16:48,992 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:48,997 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5 2025-09-15 09:16:49,052 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:49,127 - INFO - Validated that VN ctest-vn-63381125 is not found in API Server 2025-09-15 09:16:49,137 - DEBUG - VN ctest-vn-63381125 is not present in Agent 10.0.0.38 2025-09-15 09:16:49,137 - INFO - Validated that VN ctest-vn-63381125 is not in any agent 2025-09-15 09:16:49,150 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63381125 info 2025-09-15 09:16:49,151 - INFO - Deleting VN ctest-vn-61793033 2025-09-15 09:16:49,255 - DEBUG - Response for deleting network () 2025-09-15 09:16:49,255 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8067b1-1678-445f-865c-458f6504c6e2 2025-09-15 09:16:49,262 - DEBUG - Response Code: 404 2025-09-15 09:16:49,262 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 09:16:49,267 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ee43fe02-00a2-43ee-8a18-61edff72eaa5 2025-09-15 09:16:49,319 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e1e0d37-a56c-4891-87f8-66292a79755f 2025-09-15 09:16:49,388 - INFO - Validated that VN ctest-vn-61793033 is not found in API Server 2025-09-15 09:16:49,396 - DEBUG - VN ctest-vn-61793033 is not present in Agent 10.0.0.38 2025-09-15 09:16:49,396 - INFO - Validated that VN ctest-vn-61793033 is not in any agent 2025-09-15 09:16:49,409 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61793033 info 2025-09-15 09:16:49,670 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 09:16:49,670 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-09-15 09:16:49,670 - INFO - -------------------------------------------------------------------------------- 2025-09-15 09:16:50,344 - INFO - Deleted project: ctest-TestBasicPolicy-83167292, ID : 1e1e0d37-a56c-4891-87f8-66292a79755f