2025-07-01 17:25:21,228 - INFO - Domain Default found not creating 2025-07-01 17:25:21,584 - INFO - Project ctest-TestBasicPolicy-86222857 not found, creating it 2025-07-01 17:25:22,308 - INFO - Created Project:ctest-TestBasicPolicy-86222857, ID : f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:25:24,565 - INFO - ================================================================================ 2025-07-01 17:25:24,565 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-01 17:25:24,566 - 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-07-01 17:25:24,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-01 17:25:24,900 - INFO - Initial checks done. Running the testcase now 2025-07-01 17:25:24,900 - INFO - 2025-07-01 17:25:25,968 - DEBUG - Response for create_network : {'network': {'id': '3848f4f0-d3d2-43fc-8e4b-0abe57291311', 'name': 'ctest-vn-34209360', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-34209360'], 'port_security_enabled': True, 'description': ''}} 2025-07-01 17:25:26,446 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd08c500c-99c2-46c7-971e-a934eb7f8d5d', 'name': '', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'network_id': '3848f4f0-d3d2-43fc-8e4b-0abe57291311', 'ip_version': 4, 'cidr': '109.230.254.128/26', 'allocation_pools': [{'start': '109.230.254.130', 'end': '109.230.254.190'}], 'gateway_ip': '109.230.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.230.254.130', 'tags': [], 'project_id': 'f7b2ead9739d4c909a0814332d259b07'}} 2025-07-01 17:25:26,474 - INFO - Created VN ctest-vn-34209360 2025-07-01 17:25:26,528 - DEBUG - VN ctest-vn-34209360 UUID is 3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:26,945 - DEBUG - Response for create_network : {'network': {'id': '3fe77f8b-dfcc-4b22-98e4-cd0e4900473a', 'name': 'ctest-vn-48212341', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-48212341'], 'port_security_enabled': True, 'description': ''}} 2025-07-01 17:25:27,221 - DEBUG - Response for create_subnet : {'subnet': {'id': '7136ca1a-ceb3-400c-a546-51e46ff20d0a', 'name': '', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'network_id': '3fe77f8b-dfcc-4b22-98e4-cd0e4900473a', 'ip_version': 4, 'cidr': '120.121.142.0/26', 'allocation_pools': [{'start': '120.121.142.2', 'end': '120.121.142.62'}], 'gateway_ip': '120.121.142.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.121.142.2', 'tags': [], 'project_id': 'f7b2ead9739d4c909a0814332d259b07'}} 2025-07-01 17:25:27,253 - INFO - Created VN ctest-vn-48212341 2025-07-01 17:25:27,312 - DEBUG - VN ctest-vn-48212341 UUID is 3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:27,497 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360, 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-86222857:ctest-vn-48212341, 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-07-01 17:25:27,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3848f4f0-d3d2-43fc-8e4b-0abe57291311', 'name': 'ctest-vn-34209360', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d08c500c-99c2-46c7-971e-a934eb7f8d5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-34209360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661']], 'subnet_ipam': [{'subnet_cidr': '109.230.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-01 17:25:28,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fe77f8b-dfcc-4b22-98e4-cd0e4900473a', 'name': 'ctest-vn-48212341', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7136ca1a-ceb3-400c-a546-51e46ff20d0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-48212341'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661']], 'subnet_ipam': [{'subnet_cidr': '120.121.142.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-01 17:25:28,504 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:25:28,839 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:25:28,884 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad 2025-07-01 17:25:28,920 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:25:29,027 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:29,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:29,085 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498 2025-07-01 17:25:29,102 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498 2025-07-01 17:25:29,119 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c057ada-cccd-4cd9-9245-bfdfda63b91c 2025-07-01 17:25:29,141 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-01 17:25:29,142 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:29,170 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498 2025-07-01 17:25:29,200 - INFO - Verified VN network id 9 for VN 3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:29,201 - INFO - Verifications in API Server for VN ctest-vn-34209360 passed 2025-07-01 17:25:29,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:29,224 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498 2025-07-01 17:25:29,242 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498 2025-07-01 17:25:29,258 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c057ada-cccd-4cd9-9245-bfdfda63b91c 2025-07-01 17:25:29,290 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86222857', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4055760779630232572', 'uuid-lslong': '10253300789261439761'}, 'enable': 'true', 'created': '2025-07-01T17:25:25', 'last-modified': '2025-07-01T17:25:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353240'} 2025-07-01 17:25:29,309 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-01 17:25:29,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34209360 passed 2025-07-01 17:25:29,310 - DEBUG - ====Verifying policy data for ctest-vn-34209360 in API_Server ====== 2025-07-01 17:25:29,310 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:25:29,324 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad 2025-07-01 17:25:29,360 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:25:29,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311 2025-07-01 17:25:29,514 - DEBUG - ==>Verifying data for policy with id: 041081fa-cae1-492f-a099-f0e14f4de580, fqn: ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661'] 2025-07-01 17:25:29,514 - INFO - VN ctest-vn-34209360 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-01 17:25:29,514 - DEBUG - Verifying the vn in opserver 2025-07-01 17:25:29,514 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360 virtual network link through opserver 10.0.0.254 2025-07-01 17:25:29,515 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-01 17:25:29,821 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-01 17:25:29,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360?flat'} 2025-07-01 17:25:29,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360 is found in opserver 2025-07-01 17:25:29,918 - DEBUG - Do not have enough data to verify VN in agent 2025-07-01 17:25:29,924 - DEBUG - VRF ids for VN ctest-vn-34209360: {} 2025-07-01 17:25:29,924 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:25:29,932 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad 2025-07-01 17:25:29,954 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:25:30,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:30,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:30,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572 2025-07-01 17:25:30,123 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572 2025-07-01 17:25:30,139 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c1d139e-0010-4212-a6d4-0a999f774997 2025-07-01 17:25:30,156 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-01 17:25:30,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:30,183 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572 2025-07-01 17:25:30,211 - INFO - Verified VN network id 10 for VN 3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:30,211 - INFO - Verifications in API Server for VN ctest-vn-48212341 passed 2025-07-01 17:25:30,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:30,225 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572 2025-07-01 17:25:30,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572 2025-07-01 17:25:30,249 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c1d139e-0010-4212-a6d4-0a999f774997 2025-07-01 17:25:30,270 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86222857', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4604789382741510946', 'uuid-lslong': '11017156049693067066'}, 'enable': 'true', 'created': '2025-07-01T17:25:26', 'last-modified': '2025-07-01T17:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.974447'} 2025-07-01 17:25:30,280 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-01 17:25:30,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48212341 passed 2025-07-01 17:25:30,281 - DEBUG - ====Verifying policy data for ctest-vn-48212341 in API_Server ====== 2025-07-01 17:25:30,281 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:25:30,293 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad 2025-07-01 17:25:30,311 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:25:30,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a 2025-07-01 17:25:30,448 - DEBUG - ==>Verifying data for policy with id: 041081fa-cae1-492f-a099-f0e14f4de580, fqn: ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661'] 2025-07-01 17:25:30,448 - INFO - VN ctest-vn-48212341 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-01 17:25:30,448 - DEBUG - Verifying the vn in opserver 2025-07-01 17:25:30,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341 virtual network link through opserver 10.0.0.254 2025-07-01 17:25:30,449 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-01 17:25:30,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341?flat'} 2025-07-01 17:25:30,469 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341 is found in opserver 2025-07-01 17:25:30,489 - DEBUG - Do not have enough data to verify VN in agent 2025-07-01 17:25:30,497 - DEBUG - VRF ids for VN ctest-vn-48212341: {} 2025-07-01 17:25:30,628 - DEBUG - Services list from nova: [, , ] 2025-07-01 17:25:31,976 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3588-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3588-1) 2025-07-01 17:25:33,632 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3588-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3588-1) 2025-07-01 17:25:33,632 - INFO - Waiting for VM ctest-TestBasicPolicy-86222857-85658744 to be up.. 2025-07-01 17:25:33,768 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-01 17:25:38,947 - DEBUG - VM is in ACTIVE state now 2025-07-01 17:25:38,947 - INFO - VM name : ctest-TestBasicPolicy-86222857-85658744 2025-07-01 17:25:39,121 - DEBUG - VM ctest-TestBasicPolicy-86222857-85658744 ID is 14d5069d-fdc5-4023-a4ac-186eb3adb6af 2025-07-01 17:25:39,149 - DEBUG - VM ctest-TestBasicPolicy-86222857-85658744 launched on Node cn-jenkins-deploy-platform-ansible-os-3588-1 2025-07-01 17:25:39,295 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/14d5069d-fdc5-4023-a4ac-186eb3adb6af 2025-07-01 17:25:39,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/dec12fef-84bf-42b9-9961-33827d6915ed 2025-07-01 17:25:42,618 - 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 1004ms') 2025-07-01 17:25:42,619 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86222857-85658744 failed! 2025-07-01 17:25:42,696 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360 is 109.230.254.129 and allocation pool is NOT set 2025-07-01 17:25:44,785 - 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=4.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.870 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 = 0.870/2.748/4.626/1.878 ms') 2025-07-01 17:25:44,786 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86222857-85658744 passed 2025-07-01 17:25:44,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-01 17:25:44,964 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86222857-85658744, IP 109.230.254.131, Port 22 2025-07-01 17:25:45,144 - DEBUG - VM ctest-TestBasicPolicy-86222857-85658744 is ready for SSH connections 2025-07-01 17:25:45,144 - INFO - Waiting for VM ctest-TestBasicPolicy-86222857-81352695 to be up.. 2025-07-01 17:25:45,296 - DEBUG - VM is in ACTIVE state now 2025-07-01 17:25:45,296 - INFO - VM name : ctest-TestBasicPolicy-86222857-81352695 2025-07-01 17:25:45,424 - DEBUG - VM ctest-TestBasicPolicy-86222857-81352695 ID is 5dd2f86f-8e3e-417f-807f-db6836f99afb 2025-07-01 17:25:45,425 - DEBUG - VM ctest-TestBasicPolicy-86222857-81352695 launched on Node cn-jenkins-deploy-platform-ansible-os-3588-1 2025-07-01 17:25:45,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/5dd2f86f-8e3e-417f-807f-db6836f99afb 2025-07-01 17:25:45,557 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/27ca1a2c-74fa-4d47-a465-c90fa612e05f 2025-07-01 17:25:46,879 - 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=8.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.86 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.863/5.080/8.297/3.217 ms') 2025-07-01 17:25:46,879 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-86222857-81352695 passed 2025-07-01 17:25:47,085 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-01 17:25:47,085 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86222857-81352695, IP 120.121.142.3, Port 22 2025-07-01 17:25:47,167 - 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-07-01 17:25:47,378 - DEBUG - VM ctest-TestBasicPolicy-86222857-81352695 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-01 17:25:52,379 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-01 17:25:52,380 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86222857-81352695, IP 120.121.142.3, Port 22 2025-07-01 17:25:52,586 - DEBUG - VM ctest-TestBasicPolicy-86222857-81352695 is ready for SSH connections 2025-07-01 17:25:52,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-01 17:25:52,587 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.121.142.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-01 17:25:52,587 - DEBUG - ping -s 56 -c 3 -W 1 120.121.142.3 2025-07-01 17:25:57,180 - DEBUG - PING 120.121.142.3 (120.121.142.3): 56 data bytes 64 bytes from 120.121.142.3: seq=0 ttl=63 time=4.343 ms 64 bytes from 120.121.142.3: seq=1 ttl=63 time=1.726 ms 64 bytes from 120.121.142.3: seq=2 ttl=63 time=1.431 ms --- 120.121.142.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.431/2.500/4.343 ms 2025-07-01 17:25:57,181 - INFO - Ping to IP 120.121.142.3 from VM ctest-TestBasicPolicy-86222857-85658744 passed 2025-07-01 17:25:57,411 - DEBUG - Policy Update Response {"network-policy": {"uuid": "041081fa-cae1-492f-a099-f0e14f4de580", "href": "http://10.0.0.254:8082/network-policy/041081fa-cae1-492f-a099-f0e14f4de580"}} 2025-07-01 17:25:57,412 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-01 17:25:57,412 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.121.142.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-01 17:25:57,412 - DEBUG - ping -s 56 -c 3 -W 1 120.121.142.3 2025-07-01 17:26:00,717 - DEBUG - PING 120.121.142.3 (120.121.142.3): 56 data bytes 64 bytes from 120.121.142.3: seq=0 ttl=63 time=2.322 ms --- 120.121.142.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.322/2.322/2.322 ms 2025-07-01 17:26:00,717 - WARNING - Ping to IP 120.121.142.3 from VM ctest-TestBasicPolicy-86222857-85658744 failed 2025-07-01 17:26:00,717 - INFO - Deleting VM ctest-TestBasicPolicy-86222857-81352695 2025-07-01 17:26:00,845 - INFO - Deleting VM ctest-TestBasicPolicy-86222857-85658744 2025-07-01 17:26:01,379 - INFO - Deleted policy ctest-policy-allow-all-17885661 2025-07-01 17:26:01,379 - INFO - Deleting VN ctest-vn-48212341 2025-07-01 17:26:01,430 - DEBUG - VN 3fe77f8b-dfcc-4b22-98e4-cd0e4900473a still in use: Unable to complete operation on network 3fe77f8b-dfcc-4b22-98e4-cd0e4900473a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c634dea5-1f46-47a7-8cd7-14ec96b37409'] 2025-07-01 17:26:01,430 - WARNING - Deleting VN ctest-vn-48212341 failed..Will retry 2025-07-01 17:26:03,609 - DEBUG - Response for deleting network () 2025-07-01 17:26:03,609 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572 2025-07-01 17:26:03,620 - DEBUG - Response Code: 404 2025-07-01 17:26:03,620 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:26:03,635 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad 2025-07-01 17:26:03,654 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:26:03,750 - INFO - Validated that VN ctest-vn-48212341 is not found in API Server 2025-07-01 17:26:03,767 - DEBUG - VN ctest-vn-48212341 is not present in Agent 10.0.0.254 2025-07-01 17:26:03,767 - INFO - Validated that VN ctest-vn-48212341 is not in any agent 2025-07-01 17:26:03,814 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48212341 info 2025-07-01 17:26:03,814 - INFO - Deleting VN ctest-vn-34209360 2025-07-01 17:26:04,046 - DEBUG - Response for deleting network () 2025-07-01 17:26:04,046 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498 2025-07-01 17:26:04,065 - DEBUG - Response Code: 404 2025-07-01 17:26:04,066 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-01 17:26:04,078 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad 2025-07-01 17:26:04,104 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07 2025-07-01 17:26:04,237 - INFO - Validated that VN ctest-vn-34209360 is not found in API Server 2025-07-01 17:26:04,279 - DEBUG - VN ctest-vn-34209360 is not present in Agent 10.0.0.254 2025-07-01 17:26:04,279 - INFO - Validated that VN ctest-vn-34209360 is not in any agent 2025-07-01 17:26:04,335 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34209360 info 2025-07-01 17:26:04,675 - DEBUG - No XMPP flaps were noticed during the test
2025-07-01 17:26:04,675 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2025-07-01 17:26:04,675 - INFO - -------------------------------------------------------------------------------- 2025-07-01 17:26:05,619 - INFO - Deleted project: ctest-TestBasicPolicy-86222857, ID : f7b2ead9-739d-4c90-9a08-14332d259b07