2025-06-23 20:05:22,322 - INFO - Domain Default found not creating 2025-06-23 20:05:22,477 - INFO - Project ctest-TestBasicPolicy-68496610 not found, creating it 2025-06-23 20:05:22,928 - INFO - Created Project:ctest-TestBasicPolicy-68496610, ID : 72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:24,388 - INFO - ================================================================================ 2025-06-23 20:05:24,388 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-23 20:05:24,389 - 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-06-23 20:05:24,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-06-23 20:05:24,644 - INFO - Initial checks done. Running the testcase now 2025-06-23 20:05:24,644 - INFO - 2025-06-23 20:05:25,227 - DEBUG - Response for create_network : {'network': {'id': '1a1fd741-2670-4f62-a32f-0771aff629dd', 'name': 'ctest-vn-43152239', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-43152239'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 20:05:25,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1a08903-04e7-44ea-8bc9-8ee66f42951a', 'name': '', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'network_id': '1a1fd741-2670-4f62-a32f-0771aff629dd', 'ip_version': 4, 'cidr': '102.231.39.192/26', 'allocation_pools': [{'start': '102.231.39.194', 'end': '102.231.39.254'}], 'gateway_ip': '102.231.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.231.39.194', 'tags': [], 'project_id': '72ad73ddff754e03b600929def0d33a1'}} 2025-06-23 20:05:25,444 - INFO - Created VN ctest-vn-43152239 2025-06-23 20:05:25,493 - DEBUG - VN ctest-vn-43152239 UUID is 1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:25,849 - DEBUG - Response for create_network : {'network': {'id': '3579d254-df4d-4db8-a2a1-a72d6a8477d4', 'name': 'ctest-vn-54862557', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-54862557'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 20:05:26,069 - DEBUG - Response for create_subnet : {'subnet': {'id': '65ca18ba-be3c-44e5-b13d-0e7fc44ab949', 'name': '', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'network_id': '3579d254-df4d-4db8-a2a1-a72d6a8477d4', 'ip_version': 4, 'cidr': '77.151.163.128/26', 'allocation_pools': [{'start': '77.151.163.130', 'end': '77.151.163.190'}], 'gateway_ip': '77.151.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.151.163.130', 'tags': [], 'project_id': '72ad73ddff754e03b600929def0d33a1'}} 2025-06-23 20:05:26,089 - INFO - Created VN ctest-vn-54862557 2025-06-23 20:05:26,141 - DEBUG - VN ctest-vn-54862557 UUID is 3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:26,293 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239, 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-68496610:ctest-vn-54862557, 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-06-23 20:05:26,591 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a1fd741-2670-4f62-a32f-0771aff629dd', 'name': 'ctest-vn-43152239', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1a08903-04e7-44ea-8bc9-8ee66f42951a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-43152239'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987']], 'subnet_ipam': [{'subnet_cidr': '102.231.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 20:05:26,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3579d254-df4d-4db8-a2a1-a72d6a8477d4', 'name': 'ctest-vn-54862557', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65ca18ba-be3c-44e5-b13d-0e7fc44ab949'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-54862557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987']], 'subnet_ipam': [{'subnet_cidr': '77.151.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 20:05:26,985 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:27,280 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:27,310 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d 2025-06-23 20:05:27,322 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:27,393 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:27,403 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:27,414 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50 2025-06-23 20:05:27,422 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50 2025-06-23 20:05:27,430 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/14dca4bc-9866-44a6-93c0-7c17365ed2b4 2025-06-23 20:05:27,437 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 20:05:27,437 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:27,448 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50 2025-06-23 20:05:27,465 - INFO - Verified VN network id 9 for VN 1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:27,465 - INFO - Verifications in API Server for VN ctest-vn-43152239 passed 2025-06-23 20:05:27,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:27,477 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50 2025-06-23 20:05:27,485 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50 2025-06-23 20:05:27,494 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/14dca4bc-9866-44a6-93c0-7c17365ed2b4 2025-06-23 20:05:27,506 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68496610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1882459844081897314', 'uuid-lslong': '11758625336952498653'}, 'enable': 'true', 'created': '2025-06-23T20:05:25', 'last-modified': '2025-06-23T20:05:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936109'} 2025-06-23 20:05:27,512 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 20:05:27,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43152239 passed 2025-06-23 20:05:27,513 - DEBUG - ====Verifying policy data for ctest-vn-43152239 in API_Server ====== 2025-06-23 20:05:27,513 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:27,518 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d 2025-06-23 20:05:27,528 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:27,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd 2025-06-23 20:05:27,610 - DEBUG - ==>Verifying data for policy with id: 763cbe40-d2ea-4874-ab86-8939d12fc53a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987'] 2025-06-23 20:05:27,610 - INFO - VN ctest-vn-43152239 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 20:05:27,610 - DEBUG - Verifying the vn in opserver 2025-06-23 20:05:27,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239 virtual network link through opserver 10.0.0.254 2025-06-23 20:05:27,610 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 20:05:27,902 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 20:05:27,958 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239?flat'} 2025-06-23 20:05:27,958 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239 is found in opserver 2025-06-23 20:05:27,967 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 20:05:27,971 - DEBUG - VRF ids for VN ctest-vn-43152239: {} 2025-06-23 20:05:27,971 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:27,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d 2025-06-23 20:05:27,988 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:28,061 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:28,073 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:28,081 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d 2025-06-23 20:05:28,088 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d 2025-06-23 20:05:28,094 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09defec9-b10f-4cfb-b58b-7a395be22cf2 2025-06-23 20:05:28,101 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 20:05:28,101 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:28,110 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d 2025-06-23 20:05:28,129 - INFO - Verified VN network id 10 for VN 3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:28,130 - INFO - Verifications in API Server for VN ctest-vn-54862557 passed 2025-06-23 20:05:28,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:28,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d 2025-06-23 20:05:28,152 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d 2025-06-23 20:05:28,166 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09defec9-b10f-4cfb-b58b-7a395be22cf2 2025-06-23 20:05:28,180 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68496610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3853342218157641144', 'uuid-lslong': '11718831518897174484'}, 'enable': 'true', 'created': '2025-06-23T20:05:25', 'last-modified': '2025-06-23T20:05:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389460'} 2025-06-23 20:05:28,186 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 20:05:28,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54862557 passed 2025-06-23 20:05:28,187 - DEBUG - ====Verifying policy data for ctest-vn-54862557 in API_Server ====== 2025-06-23 20:05:28,187 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:28,193 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d 2025-06-23 20:05:28,211 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:28,287 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4 2025-06-23 20:05:28,295 - DEBUG - ==>Verifying data for policy with id: 763cbe40-d2ea-4874-ab86-8939d12fc53a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987'] 2025-06-23 20:05:28,295 - INFO - VN ctest-vn-54862557 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 20:05:28,295 - DEBUG - Verifying the vn in opserver 2025-06-23 20:05:28,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557 virtual network link through opserver 10.0.0.254 2025-06-23 20:05:28,295 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 20:05:28,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557?flat'} 2025-06-23 20:05:28,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557 is found in opserver 2025-06-23 20:05:28,313 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 20:05:28,317 - DEBUG - VRF ids for VN ctest-vn-54862557: {} 2025-06-23 20:05:28,390 - DEBUG - Services list from nova: [, , ] 2025-06-23 20:05:29,538 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3524-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3524-1) 2025-06-23 20:05:30,911 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3524-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3524-1) 2025-06-23 20:05:30,911 - INFO - Waiting for VM ctest-TestBasicPolicy-68496610-51152616 to be up.. 2025-06-23 20:05:31,003 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-23 20:05:36,092 - DEBUG - VM is in ACTIVE state now 2025-06-23 20:05:36,092 - INFO - VM name : ctest-TestBasicPolicy-68496610-51152616 2025-06-23 20:05:36,182 - DEBUG - VM ctest-TestBasicPolicy-68496610-51152616 ID is 2913d1d7-f511-4fab-8302-cbfd1e5ff489 2025-06-23 20:05:36,202 - DEBUG - VM ctest-TestBasicPolicy-68496610-51152616 launched on Node cn-jenkins-deploy-platform-ansible-os-3524-1. 2025-06-23 20:05:36,292 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/2913d1d7-f511-4fab-8302-cbfd1e5ff489 2025-06-23 20:05:36,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/36b8d1c6-a17b-43a0-b4bb-21c295fe77b1 2025-06-23 20:05:39,561 - 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 1018ms') 2025-06-23 20:05:39,562 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68496610-51152616 failed! 2025-06-23 20:05:39,613 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239 is 102.231.39.193 and allocation pool is NOT set 2025-06-23 20:05:41,680 - 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=8.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.53 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 = 1.533/5.184/8.835/3.651 ms') 2025-06-23 20:05:41,680 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68496610-51152616 passed 2025-06-23 20:05:41,829 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 20:05:41,830 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68496610-51152616, IP 102.231.39.195, Port 22 2025-06-23 20:05:41,985 - DEBUG - VM ctest-TestBasicPolicy-68496610-51152616 is ready for SSH connections 2025-06-23 20:05:41,985 - INFO - Waiting for VM ctest-TestBasicPolicy-68496610-68781760 to be up.. 2025-06-23 20:05:42,084 - DEBUG - VM is in ACTIVE state now 2025-06-23 20:05:42,084 - INFO - VM name : ctest-TestBasicPolicy-68496610-68781760 2025-06-23 20:05:42,164 - DEBUG - VM ctest-TestBasicPolicy-68496610-68781760 ID is c24de0ac-8256-42e7-b717-3facfe22fa56 2025-06-23 20:05:42,165 - DEBUG - VM ctest-TestBasicPolicy-68496610-68781760 launched on Node cn-jenkins-deploy-platform-ansible-os-3524-1. 2025-06-23 20:05:42,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/c24de0ac-8256-42e7-b717-3facfe22fa56 2025-06-23 20:05:42,260 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/6b0f6fcb-82a6-4675-af0e-255185265c5c 2025-06-23 20:05:43,499 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.517 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.517/1.990/3.463/1.473 ms') 2025-06-23 20:05:43,500 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68496610-68781760 passed 2025-06-23 20:05:43,670 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 20:05:43,670 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68496610-68781760, IP 77.151.163.131, Port 22 2025-06-23 20:05:43,736 - 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-06-23 20:05:43,819 - DEBUG - VM ctest-TestBasicPolicy-68496610-68781760 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-23 20:05:48,819 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 20:05:48,820 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68496610-68781760, IP 77.151.163.131, Port 22 2025-06-23 20:05:48,985 - DEBUG - VM ctest-TestBasicPolicy-68496610-68781760 is ready for SSH connections 2025-06-23 20:05:48,985 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 20:05:48,985 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.151.163.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-23 20:05:48,985 - DEBUG - ping -s 56 -c 3 -W 1 77.151.163.131 2025-06-23 20:05:52,963 - DEBUG - PING 77.151.163.131 (77.151.163.131): 56 data bytes 64 bytes from 77.151.163.131: seq=0 ttl=63 time=3.175 ms 64 bytes from 77.151.163.131: seq=1 ttl=63 time=1.057 ms 64 bytes from 77.151.163.131: seq=2 ttl=63 time=0.767 ms --- 77.151.163.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.767/1.666/3.175 ms 2025-06-23 20:05:52,963 - INFO - Ping to IP 77.151.163.131 from VM ctest-TestBasicPolicy-68496610-51152616 passed 2025-06-23 20:05:53,141 - DEBUG - Policy Update Response {"network-policy": {"uuid": "763cbe40-d2ea-4874-ab86-8939d12fc53a", "href": "http://10.0.0.254:8082/network-policy/763cbe40-d2ea-4874-ab86-8939d12fc53a"}} 2025-06-23 20:05:53,141 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 20:05:53,141 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.151.163.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-23 20:05:53,142 - DEBUG - ping -s 56 -c 3 -W 1 77.151.163.131 2025-06-23 20:05:56,344 - DEBUG - PING 77.151.163.131 (77.151.163.131): 56 data bytes --- 77.151.163.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-23 20:05:56,344 - WARNING - Ping to IP 77.151.163.131 from VM ctest-TestBasicPolicy-68496610-51152616 failed 2025-06-23 20:05:56,344 - INFO - Deleting VM ctest-TestBasicPolicy-68496610-68781760 2025-06-23 20:05:56,413 - INFO - Deleting VM ctest-TestBasicPolicy-68496610-51152616 2025-06-23 20:05:56,819 - INFO - Deleted policy ctest-policy-allow-all-27108987 2025-06-23 20:05:56,820 - INFO - Deleting VN ctest-vn-54862557 2025-06-23 20:05:56,863 - DEBUG - VN 3579d254-df4d-4db8-a2a1-a72d6a8477d4 still in use: Unable to complete operation on network 3579d254-df4d-4db8-a2a1-a72d6a8477d4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7cb671e1-63c9-4c64-8d6d-f5369c046691'] 2025-06-23 20:05:56,863 - WARNING - Deleting VN ctest-vn-54862557 failed..Will retry 2025-06-23 20:05:58,959 - DEBUG - Response for deleting network () 2025-06-23 20:05:58,959 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d 2025-06-23 20:05:58,965 - DEBUG - Response Code: 404 2025-06-23 20:05:58,965 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:58,971 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d 2025-06-23 20:05:59,028 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:59,099 - INFO - Validated that VN ctest-vn-54862557 is not found in API Server 2025-06-23 20:05:59,107 - DEBUG - VN ctest-vn-54862557 is not present in Agent 10.0.0.254 2025-06-23 20:05:59,108 - INFO - Validated that VN ctest-vn-54862557 is not in any agent 2025-06-23 20:05:59,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54862557 info 2025-06-23 20:05:59,121 - INFO - Deleting VN ctest-vn-43152239 2025-06-23 20:05:59,221 - DEBUG - Response for deleting network () 2025-06-23 20:05:59,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50 2025-06-23 20:05:59,227 - DEBUG - Response Code: 404 2025-06-23 20:05:59,227 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 20:05:59,234 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d 2025-06-23 20:05:59,287 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1 2025-06-23 20:05:59,360 - INFO - Validated that VN ctest-vn-43152239 is not found in API Server 2025-06-23 20:05:59,369 - DEBUG - VN ctest-vn-43152239 is not present in Agent 10.0.0.254 2025-06-23 20:05:59,369 - INFO - Validated that VN ctest-vn-43152239 is not in any agent 2025-06-23 20:05:59,383 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43152239 info 2025-06-23 20:05:59,643 - DEBUG - No XMPP flaps were noticed during the test 2025-06-23 20:05:59,643 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-23 20:05:59,643 - INFO - -------------------------------------------------------------------------------- 2025-06-23 20:06:00,322 - INFO - Deleted project: ctest-TestBasicPolicy-68496610, ID : 72ad73dd-ff75-4e03-b600-929def0d33a1