2025-08-26 08:01:53,841 - INFO - Domain Default found not creating 2025-08-26 08:01:53,985 - INFO - Project ctest-TestBasicPolicy-94044704 not found, creating it 2025-08-26 08:01:54,468 - INFO - Created Project:ctest-TestBasicPolicy-94044704, ID : 4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:01:56,082 - INFO - ================================================================================ 2025-08-26 08:01:56,082 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-26 08:01:56,082 - 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-08-26 08:01:56,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-26 08:01:56,340 - INFO - Initial checks done. Running the testcase now 2025-08-26 08:01:56,340 - INFO - 2025-08-26 08:01:56,936 - DEBUG - Response for create_network : {'network': {'id': 'f09f92ff-1381-41f9-80f5-4f0c7ab06755', 'name': 'ctest-vn-75876029', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-75876029'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:01:57,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '06157300-9b3b-4334-9d10-4cb66cb31b6c', 'name': '', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'network_id': 'f09f92ff-1381-41f9-80f5-4f0c7ab06755', 'ip_version': 4, 'cidr': '211.162.209.192/26', 'allocation_pools': [{'start': '211.162.209.194', 'end': '211.162.209.254'}], 'gateway_ip': '211.162.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.162.209.194', 'tags': [], 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce'}} 2025-08-26 08:01:57,134 - INFO - Created VN ctest-vn-75876029 2025-08-26 08:01:57,187 - DEBUG - VN ctest-vn-75876029 UUID is f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:57,506 - DEBUG - Response for create_network : {'network': {'id': 'aadd8b7b-8922-4699-9ae6-24371d766aeb', 'name': 'ctest-vn-82117403', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-82117403'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:01:57,693 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b06b2d02-19de-4302-92e6-afed8c6d0559', 'name': '', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'network_id': 'aadd8b7b-8922-4699-9ae6-24371d766aeb', 'ip_version': 4, 'cidr': '132.80.38.128/26', 'allocation_pools': [{'start': '132.80.38.130', 'end': '132.80.38.190'}], 'gateway_ip': '132.80.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.80.38.130', 'tags': [], 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce'}} 2025-08-26 08:01:57,730 - INFO - Created VN ctest-vn-82117403 2025-08-26 08:01:57,787 - DEBUG - VN ctest-vn-82117403 UUID is aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:01:57,900 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029, 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-94044704:ctest-vn-82117403, 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-08-26 08:01:58,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f09f92ff-1381-41f9-80f5-4f0c7ab06755', 'name': 'ctest-vn-75876029', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06157300-9b3b-4334-9d10-4cb66cb31b6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-75876029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357']], 'subnet_ipam': [{'subnet_cidr': '211.162.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:01:58,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aadd8b7b-8922-4699-9ae6-24371d766aeb', 'name': 'ctest-vn-82117403', 'tenant_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'project_id': '4b6eeeda49b04ea4b7ccd531a4e364ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b06b2d02-19de-4302-92e6-afed8c6d0559'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-vn-82117403'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357']], 'subnet_ipam': [{'subnet_cidr': '132.80.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:01:58,647 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:58,983 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:59,011 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:59,024 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:01:59,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:59,112 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:59,122 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d 2025-08-26 08:01:59,130 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d 2025-08-26 08:01:59,136 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/19e56d9b-c6bb-4460-93ad-ee4a0836084d 2025-08-26 08:01:59,143 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 08:01:59,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:59,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d 2025-08-26 08:01:59,167 - INFO - Verified VN network id 9 for VN f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:59,167 - INFO - Verifications in API Server for VN ctest-vn-75876029 passed 2025-08-26 08:01:59,168 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:59,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d 2025-08-26 08:01:59,185 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d 2025-08-26 08:01:59,193 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/19e56d9b-c6bb-4460-93ad-ee4a0836084d 2025-08-26 08:01:59,206 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94044704', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17338738714641252857', 'uuid-lslong': '9292420321165469525'}, 'enable': 'true', 'created': '2025-08-26T08:01:56', 'last-modified': '2025-08-26T08:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017232'} 2025-08-26 08:01:59,213 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 08:01:59,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75876029 passed 2025-08-26 08:01:59,213 - DEBUG - ====Verifying policy data for ctest-vn-75876029 in API_Server ====== 2025-08-26 08:01:59,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:59,219 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:59,232 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:01:59,309 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f09f92ff-1381-41f9-80f5-4f0c7ab06755 2025-08-26 08:01:59,320 - DEBUG - ==>Verifying data for policy with id: bf726f7c-8d45-450d-a5c0-fb4c4e492b47, fqn: ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357'] 2025-08-26 08:01:59,320 - INFO - VN ctest-vn-75876029 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 08:01:59,321 - DEBUG - Verifying the vn in opserver 2025-08-26 08:01:59,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029 virtual network link through opserver 10.0.0.38 2025-08-26 08:01:59,321 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-26 08:01:59,655 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-26 08:01:59,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029?flat'} 2025-08-26 08:01:59,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029 is found in opserver 2025-08-26 08:01:59,727 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 08:01:59,733 - DEBUG - VRF ids for VN ctest-vn-75876029: {} 2025-08-26 08:01:59,733 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:59,739 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:59,758 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:01:59,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:01:59,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:01:59,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c 2025-08-26 08:01:59,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c 2025-08-26 08:01:59,889 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ced45f21-8211-43d9-9888-3725461fe52d 2025-08-26 08:01:59,899 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-26 08:01:59,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:01:59,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c 2025-08-26 08:01:59,930 - INFO - Verified VN network id 10 for VN aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:01:59,930 - INFO - Verifications in API Server for VN ctest-vn-82117403 passed 2025-08-26 08:01:59,930 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:01:59,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c 2025-08-26 08:01:59,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c 2025-08-26 08:01:59,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ced45f21-8211-43d9-9888-3725461fe52d 2025-08-26 08:01:59,974 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94044704', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12312150318998767257', 'uuid-lslong': '11161648545620454123'}, 'enable': 'true', 'created': '2025-08-26T08:01:57', 'last-modified': '2025-08-26T08:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534969'} 2025-08-26 08:01:59,981 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-26 08:01:59,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82117403 passed 2025-08-26 08:01:59,982 - DEBUG - ====Verifying policy data for ctest-vn-82117403 in API_Server ====== 2025-08-26 08:01:59,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:59,987 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:59,999 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:02:00,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aadd8b7b-8922-4699-9ae6-24371d766aeb 2025-08-26 08:02:00,085 - DEBUG - ==>Verifying data for policy with id: bf726f7c-8d45-450d-a5c0-fb4c4e492b47, fqn: ['default-domain', 'ctest-TestBasicPolicy-94044704', 'ctest-policy-allow-all-10908357'] 2025-08-26 08:02:00,085 - INFO - VN ctest-vn-82117403 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 08:02:00,085 - DEBUG - Verifying the vn in opserver 2025-08-26 08:02:00,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403 virtual network link through opserver 10.0.0.38 2025-08-26 08:02:00,085 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-26 08:02:00,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403?flat'} 2025-08-26 08:02:00,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-82117403 is found in opserver 2025-08-26 08:02:00,108 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 08:02:00,114 - DEBUG - VRF ids for VN ctest-vn-82117403: {} 2025-08-26 08:02:00,182 - DEBUG - Services list from nova: [, , ] 2025-08-26 08:02:01,295 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3936-1) 2025-08-26 08:02:02,534 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3936-1) 2025-08-26 08:02:02,534 - INFO - Waiting for VM ctest-TestBasicPolicy-94044704-89548482 to be up.. 2025-08-26 08:02:02,618 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-26 08:02:07,709 - DEBUG - VM is in ACTIVE state now 2025-08-26 08:02:07,709 - INFO - VM name : ctest-TestBasicPolicy-94044704-89548482 2025-08-26 08:02:07,799 - DEBUG - VM ctest-TestBasicPolicy-94044704-89548482 ID is 19f16080-e130-4e25-82a4-b52bce59e48d 2025-08-26 08:02:07,822 - DEBUG - VM ctest-TestBasicPolicy-94044704-89548482 launched on Node cn-jenkins-deploy-platform-ansible-os-3936-1 2025-08-26 08:02:07,903 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/19f16080-e130-4e25-82a4-b52bce59e48d 2025-08-26 08:02:07,915 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d71d6200-ea20-4f62-b226-f65f876dc54c 2025-08-26 08:02:11,189 - 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 1026ms') 2025-08-26 08:02:11,189 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94044704-89548482 failed! 2025-08-26 08:02:11,251 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94044704:ctest-vn-75876029 is 211.162.209.193 and allocation pool is NOT set 2025-08-26 08:02:13,316 - 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.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.35 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.346/5.311/7.276/1.965 ms') 2025-08-26 08:02:13,316 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94044704-89548482 passed 2025-08-26 08:02:13,471 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:02:13,471 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94044704-89548482, IP 211.162.209.195, Port 22 2025-08-26 08:02:13,645 - DEBUG - VM ctest-TestBasicPolicy-94044704-89548482 is ready for SSH connections 2025-08-26 08:02:13,645 - INFO - Waiting for VM ctest-TestBasicPolicy-94044704-73093318 to be up.. 2025-08-26 08:02:13,730 - DEBUG - VM is in ACTIVE state now 2025-08-26 08:02:13,731 - INFO - VM name : ctest-TestBasicPolicy-94044704-73093318 2025-08-26 08:02:13,830 - DEBUG - VM ctest-TestBasicPolicy-94044704-73093318 ID is a8e9b893-042e-4f6d-a695-0de64a3e54d6 2025-08-26 08:02:13,830 - DEBUG - VM ctest-TestBasicPolicy-94044704-73093318 launched on Node cn-jenkins-deploy-platform-ansible-os-3936-1 2025-08-26 08:02:13,950 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a8e9b893-042e-4f6d-a695-0de64a3e54d6 2025-08-26 08:02:13,961 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/8ac9a9c4-bcf4-40f5-81ed-c9cea7b2d1e7 2025-08-26 08:02:15,226 - 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=6.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.88 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 = 1.877/4.010/6.144/2.133 ms') 2025-08-26 08:02:15,226 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-94044704-73093318 passed 2025-08-26 08:02:15,379 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:02:15,379 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94044704-73093318, IP 132.80.38.131, Port 22 2025-08-26 08:02:15,439 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-26 08:02:15,518 - DEBUG - VM ctest-TestBasicPolicy-94044704-73093318 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-26 08:02:20,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:02:20,518 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94044704-73093318, IP 132.80.38.131, Port 22 2025-08-26 08:02:20,674 - DEBUG - VM ctest-TestBasicPolicy-94044704-73093318 is ready for SSH connections 2025-08-26 08:02:20,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:02:20,674 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.80.38.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-26 08:02:20,674 - DEBUG - ping -s 56 -c 3 -W 1 132.80.38.131 2025-08-26 08:02:24,764 - DEBUG - PING 132.80.38.131 (132.80.38.131): 56 data bytes 64 bytes from 132.80.38.131: seq=0 ttl=63 time=3.845 ms 64 bytes from 132.80.38.131: seq=1 ttl=63 time=1.039 ms 64 bytes from 132.80.38.131: seq=2 ttl=63 time=0.781 ms --- 132.80.38.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.781/1.888/3.845 ms 2025-08-26 08:02:24,764 - INFO - Ping to IP 132.80.38.131 from VM ctest-TestBasicPolicy-94044704-89548482 passed 2025-08-26 08:02:24,950 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bf726f7c-8d45-450d-a5c0-fb4c4e492b47", "href": "http://10.0.0.38:8082/network-policy/bf726f7c-8d45-450d-a5c0-fb4c4e492b47"}} 2025-08-26 08:02:24,951 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:02:24,951 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.80.38.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-26 08:02:24,951 - DEBUG - ping -s 56 -c 3 -W 1 132.80.38.131 2025-08-26 08:02:28,174 - DEBUG - PING 132.80.38.131 (132.80.38.131): 56 data bytes --- 132.80.38.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-26 08:02:28,174 - WARNING - Ping to IP 132.80.38.131 from VM ctest-TestBasicPolicy-94044704-89548482 failed 2025-08-26 08:02:28,174 - INFO - Deleting VM ctest-TestBasicPolicy-94044704-73093318 2025-08-26 08:02:28,248 - INFO - Deleting VM ctest-TestBasicPolicy-94044704-89548482 2025-08-26 08:02:28,680 - INFO - Deleted policy ctest-policy-allow-all-10908357 2025-08-26 08:02:28,680 - INFO - Deleting VN ctest-vn-82117403 2025-08-26 08:02:28,725 - DEBUG - VN aadd8b7b-8922-4699-9ae6-24371d766aeb still in use: Unable to complete operation on network aadd8b7b-8922-4699-9ae6-24371d766aeb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-826add1a-166f-4482-92df-c72cb906b004'] 2025-08-26 08:02:28,725 - WARNING - Deleting VN ctest-vn-82117403 failed..Will retry 2025-08-26 08:02:30,844 - DEBUG - Response for deleting network () 2025-08-26 08:02:30,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aee738e0-32f0-4c9f-bee9-448b890c837c 2025-08-26 08:02:30,851 - DEBUG - Response Code: 404 2025-08-26 08:02:30,851 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:02:30,857 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:02:30,912 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:02:30,989 - INFO - Validated that VN ctest-vn-82117403 is not found in API Server 2025-08-26 08:02:31,001 - DEBUG - VN ctest-vn-82117403 is not present in Agent 10.0.0.38 2025-08-26 08:02:31,001 - INFO - Validated that VN ctest-vn-82117403 is not in any agent 2025-08-26 08:02:31,017 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82117403 info 2025-08-26 08:02:31,017 - INFO - Deleting VN ctest-vn-75876029 2025-08-26 08:02:31,125 - DEBUG - Response for deleting network () 2025-08-26 08:02:31,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8e8c828-ff1d-4727-b599-897efe47265d 2025-08-26 08:02:31,132 - DEBUG - Response Code: 404 2025-08-26 08:02:31,132 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:02:31,142 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:02:31,196 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce 2025-08-26 08:02:31,269 - INFO - Validated that VN ctest-vn-75876029 is not found in API Server 2025-08-26 08:02:31,281 - DEBUG - VN ctest-vn-75876029 is not present in Agent 10.0.0.38 2025-08-26 08:02:31,281 - INFO - Validated that VN ctest-vn-75876029 is not in any agent 2025-08-26 08:02:31,298 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75876029 info 2025-08-26 08:02:31,568 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 08:02:31,568 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-08-26 08:02:31,568 - INFO - -------------------------------------------------------------------------------- 2025-08-26 08:02:32,284 - INFO - Deleted project: ctest-TestBasicPolicy-94044704, ID : 4b6eeeda-49b0-4ea4-b7cc-d531a4e364ce