2025-01-14 19:47:47,952 - INFO - Domain Default found not creating 2025-01-14 19:47:48,107 - INFO - Project ctest-TestBasicPolicy-13344698 not found, creating it 2025-01-14 19:47:48,593 - INFO - Created Project:ctest-TestBasicPolicy-13344698, ID : 149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:47:50,078 - INFO - ================================================================================ 2025-01-14 19:47:50,078 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-14 19:47:50,078 - 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-01-14 19:47:50,336 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with 2025-01-14 19:47:50,336 - INFO - Initial checks done. Running the testcase now 2025-01-14 19:47:50,336 - INFO - 2025-01-14 19:47:50,891 - DEBUG - Response for create_network : {'network': {'id': '02f0a46f-e048-48fb-9184-35f4a7477c03', 'name': 'ctest-vn-48098596', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-48098596'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 19:47:51,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '78ba84c3-ffab-429e-891c-20d923b3e4e0', 'name': '', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'network_id': '02f0a46f-e048-48fb-9184-35f4a7477c03', 'ip_version': 4, 'cidr': '167.145.118.0/26', 'allocation_pools': [{'start': '167.145.118.2', 'end': '167.145.118.62'}], 'gateway_ip': '167.145.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.145.118.2', 'tags': [], 'project_id': '149c3a10620745d8b5c5c974e75d9bd5'}} 2025-01-14 19:47:51,118 - INFO - Created VN ctest-vn-48098596 2025-01-14 19:47:51,170 - DEBUG - VN ctest-vn-48098596 UUID is 02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:51,464 - DEBUG - Response for create_network : {'network': {'id': '592a3723-1c4c-409c-9c23-75853fac89de', 'name': 'ctest-vn-60915520', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-60915520'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 19:47:51,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '206d7c70-61ca-46e4-abfa-a9e8c8204696', 'name': '', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'network_id': '592a3723-1c4c-409c-9c23-75853fac89de', 'ip_version': 4, 'cidr': '42.107.112.192/26', 'allocation_pools': [{'start': '42.107.112.194', 'end': '42.107.112.254'}], 'gateway_ip': '42.107.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.107.112.194', 'tags': [], 'project_id': '149c3a10620745d8b5c5c974e75d9bd5'}} 2025-01-14 19:47:51,667 - INFO - Created VN ctest-vn-60915520 2025-01-14 19:47:51,722 - DEBUG - VN ctest-vn-60915520 UUID is 592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:51,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596, 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-13344698:ctest-vn-60915520, 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-01-14 19:47:52,143 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02f0a46f-e048-48fb-9184-35f4a7477c03', 'name': 'ctest-vn-48098596', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78ba84c3-ffab-429e-891c-20d923b3e4e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-48098596'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644']], 'subnet_ipam': [{'subnet_cidr': '167.145.118.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 19:47:52,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '592a3723-1c4c-409c-9c23-75853fac89de', 'name': 'ctest-vn-60915520', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['206d7c70-61ca-46e4-abfa-a9e8c8204696'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-60915520'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644']], 'subnet_ipam': [{'subnet_cidr': '42.107.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 19:47:52,554 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:47:52,856 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:47:52,886 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d 2025-01-14 19:47:52,900 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:47:52,982 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:52,994 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:53,004 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d 2025-01-14 19:47:53,012 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d 2025-01-14 19:47:53,020 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/31f094d0-b61f-4714-a19d-4f0630531e8c 2025-01-14 19:47:53,030 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 19:47:53,030 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:53,041 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d 2025-01-14 19:47:53,060 - INFO - Verified VN network id 8 for VN 02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:53,060 - INFO - Verifications in API Server for VN ctest-vn-48098596 passed 2025-01-14 19:47:53,061 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:53,076 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d 2025-01-14 19:47:53,087 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d 2025-01-14 19:47:53,097 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/31f094d0-b61f-4714-a19d-4f0630531e8c 2025-01-14 19:47:53,115 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13344698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '211849982897572091', 'uuid-lslong': '10485565157320129539'}, 'enable': 'true', 'created': '2025-01-14T19:47:50', 'last-modified': '2025-01-14T19:47:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001541'} 2025-01-14 19:47:53,122 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 19:47:53,122 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48098596 passed 2025-01-14 19:47:53,123 - DEBUG - ====Verifying policy data for ctest-vn-48098596 in API_Server ====== 2025-01-14 19:47:53,123 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:47:53,129 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d 2025-01-14 19:47:53,141 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:47:53,219 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03 2025-01-14 19:47:53,229 - DEBUG - ==>Verifying data for policy with id: a7655e76-67b0-44aa-8c8b-12079a87f81a, fqn: ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644'] 2025-01-14 19:47:53,230 - INFO - VN ctest-vn-48098596 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 19:47:53,230 - DEBUG - Verifying the vn in opserver 2025-01-14 19:47:53,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596 virtual network link through opserver 10.0.0.45 2025-01-14 19:47:53,230 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-14 19:47:53,534 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-14 19:47:53,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596?flat'} 2025-01-14 19:47:53,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596 is found in opserver 2025-01-14 19:47:53,607 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 19:47:53,613 - DEBUG - VRF ids for VN ctest-vn-48098596: {} 2025-01-14 19:47:53,613 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:47:53,619 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d 2025-01-14 19:47:53,632 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:47:53,715 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:53,728 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:53,739 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893 2025-01-14 19:47:53,748 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893 2025-01-14 19:47:53,757 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/aa881904-e50a-4ae4-9ce0-d2fb9b974b68 2025-01-14 19:47:53,765 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 19:47:53,765 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:53,777 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893 2025-01-14 19:47:53,796 - INFO - Verified VN network id 9 for VN 592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:53,796 - INFO - Verifications in API Server for VN ctest-vn-60915520 passed 2025-01-14 19:47:53,796 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:53,807 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893 2025-01-14 19:47:53,815 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893 2025-01-14 19:47:53,824 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/aa881904-e50a-4ae4-9ce0-d2fb9b974b68 2025-01-14 19:47:53,838 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13344698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6425008442335576220', 'uuid-lslong': '11250965509261003230'}, 'enable': 'true', 'created': '2025-01-14T19:47:51', 'last-modified': '2025-01-14T19:47:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.473886'} 2025-01-14 19:47:53,845 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 19:47:53,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60915520 passed 2025-01-14 19:47:53,845 - DEBUG - ====Verifying policy data for ctest-vn-60915520 in API_Server ====== 2025-01-14 19:47:53,845 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:47:53,851 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d 2025-01-14 19:47:53,866 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:47:53,948 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de 2025-01-14 19:47:53,960 - DEBUG - ==>Verifying data for policy with id: a7655e76-67b0-44aa-8c8b-12079a87f81a, fqn: ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644'] 2025-01-14 19:47:53,960 - INFO - VN ctest-vn-60915520 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 19:47:53,960 - DEBUG - Verifying the vn in opserver 2025-01-14 19:47:53,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520 virtual network link through opserver 10.0.0.45 2025-01-14 19:47:53,960 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2025-01-14 19:47:53,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520?flat'} 2025-01-14 19:47:53,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520 is found in opserver 2025-01-14 19:47:53,985 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 19:47:53,991 - DEBUG - VRF ids for VN ctest-vn-60915520: {} 2025-01-14 19:47:54,058 - DEBUG - Services list from nova: [, , ] 2025-01-14 19:47:55,216 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2629-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2629-1) 2025-01-14 19:47:56,349 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2629-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2629-1) 2025-01-14 19:47:56,349 - INFO - Waiting for VM ctest-TestBasicPolicy-13344698-02383672 to be up.. 2025-01-14 19:47:56,440 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 19:48:01,527 - DEBUG - VM is in ACTIVE state now 2025-01-14 19:48:01,527 - INFO - VM name : ctest-TestBasicPolicy-13344698-02383672 2025-01-14 19:48:01,630 - DEBUG - VM ctest-TestBasicPolicy-13344698-02383672 ID is e0071547-64cf-48f2-8101-9cd6b63d26fd 2025-01-14 19:48:01,654 - DEBUG - VM ctest-TestBasicPolicy-13344698-02383672 launched on Node cn-jenkins-deploy-platform-ansible-os-2629-1 2025-01-14 19:48:01,743 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/e0071547-64cf-48f2-8101-9cd6b63d26fd 2025-01-14 19:48:01,753 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/0bda1aea-b1b6-4eb4-8b63-0291d9ef2aa9 2025-01-14 19:48:05,027 - 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 1021ms') 2025-01-14 19:48:05,027 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13344698-02383672 failed! 2025-01-14 19:48:05,086 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596 is 167.145.118.1 and allocation pool is NOT set 2025-01-14 19:48:07,150 - 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.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.61 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 = 1.605/5.077/8.549/3.472 ms') 2025-01-14 19:48:07,150 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13344698-02383672 passed 2025-01-14 19:48:07,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 19:48:07,314 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13344698-02383672, IP 167.145.118.3, Port 22 2025-01-14 19:48:07,484 - DEBUG - VM ctest-TestBasicPolicy-13344698-02383672 is ready for SSH connections 2025-01-14 19:48:07,484 - INFO - Waiting for VM ctest-TestBasicPolicy-13344698-05915007 to be up.. 2025-01-14 19:48:07,567 - DEBUG - VM is in ACTIVE state now 2025-01-14 19:48:07,567 - INFO - VM name : ctest-TestBasicPolicy-13344698-05915007 2025-01-14 19:48:07,643 - DEBUG - VM ctest-TestBasicPolicy-13344698-05915007 ID is b92a558e-9aed-4e27-8e5b-d0c9a60d7c24 2025-01-14 19:48:07,644 - DEBUG - VM ctest-TestBasicPolicy-13344698-05915007 launched on Node cn-jenkins-deploy-platform-ansible-os-2629-1 2025-01-14 19:48:07,721 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/b92a558e-9aed-4e27-8e5b-d0c9a60d7c24 2025-01-14 19:48:07,734 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/32da69a4-d194-4477-a595-c987de6f97cd 2025-01-14 19:48:08,979 - 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.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.471 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.471/1.852/3.233/1.381 ms') 2025-01-14 19:48:08,979 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13344698-05915007 passed 2025-01-14 19:48:09,134 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 19:48:09,134 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13344698-05915007, IP 42.107.112.195, Port 22 2025-01-14 19:48:09,312 - DEBUG - VM ctest-TestBasicPolicy-13344698-05915007 is ready for SSH connections 2025-01-14 19:48:09,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 19:48:09,312 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.107.112.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-14 19:48:09,312 - DEBUG - ping -s 56 -c 3 -W 1 42.107.112.195 2025-01-14 19:48:12,995 - DEBUG - PING 42.107.112.195 (42.107.112.195): 56 data bytes 64 bytes from 42.107.112.195: seq=0 ttl=63 time=4.000 ms 64 bytes from 42.107.112.195: seq=1 ttl=63 time=0.967 ms 64 bytes from 42.107.112.195: seq=2 ttl=63 time=0.890 ms --- 42.107.112.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.890/1.952/4.000 ms 2025-01-14 19:48:12,996 - INFO - Ping to IP 42.107.112.195 from VM ctest-TestBasicPolicy-13344698-02383672 passed 2025-01-14 19:48:13,182 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a7655e76-67b0-44aa-8c8b-12079a87f81a", "href": "http://10.0.0.45:8082/network-policy/a7655e76-67b0-44aa-8c8b-12079a87f81a"}} 2025-01-14 19:48:13,182 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 19:48:13,182 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.107.112.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-01-14 19:48:13,182 - DEBUG - ping -s 56 -c 3 -W 1 42.107.112.195 2025-01-14 19:48:16,397 - DEBUG - PING 42.107.112.195 (42.107.112.195): 56 data bytes 64 bytes from 42.107.112.195: seq=0 ttl=63 time=2.173 ms --- 42.107.112.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.173/2.173/2.173 ms 2025-01-14 19:48:16,398 - WARNING - Ping to IP 42.107.112.195 from VM ctest-TestBasicPolicy-13344698-02383672 failed 2025-01-14 19:48:16,398 - INFO - Deleting VM ctest-TestBasicPolicy-13344698-05915007 2025-01-14 19:48:16,467 - INFO - Deleting VM ctest-TestBasicPolicy-13344698-02383672 2025-01-14 19:48:16,857 - INFO - Deleted policy ctest-policy-allow-all-16510644 2025-01-14 19:48:16,858 - INFO - Deleting VN ctest-vn-60915520 2025-01-14 19:48:16,894 - DEBUG - VN 592a3723-1c4c-409c-9c23-75853fac89de still in use: Unable to complete operation on network 592a3723-1c4c-409c-9c23-75853fac89de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-60bddb4e-4641-4e00-8524-e12e99cd70bc'] 2025-01-14 19:48:16,894 - WARNING - Deleting VN ctest-vn-60915520 failed..Will retry 2025-01-14 19:48:19,000 - DEBUG - Response for deleting network () 2025-01-14 19:48:19,000 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893 2025-01-14 19:48:19,006 - DEBUG - Response Code: 404 2025-01-14 19:48:19,006 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:48:19,014 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d 2025-01-14 19:48:19,073 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:48:19,146 - INFO - Validated that VN ctest-vn-60915520 is not found in API Server 2025-01-14 19:48:19,157 - DEBUG - VN ctest-vn-60915520 is not present in Agent 10.0.0.45 2025-01-14 19:48:19,157 - INFO - Validated that VN ctest-vn-60915520 is not in any agent 2025-01-14 19:48:19,172 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60915520 info 2025-01-14 19:48:19,172 - INFO - Deleting VN ctest-vn-48098596 2025-01-14 19:48:19,279 - DEBUG - Response for deleting network () 2025-01-14 19:48:19,279 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d 2025-01-14 19:48:19,286 - DEBUG - Response Code: 404 2025-01-14 19:48:19,286 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2025-01-14 19:48:19,292 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d 2025-01-14 19:48:19,347 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5 2025-01-14 19:48:19,421 - INFO - Validated that VN ctest-vn-48098596 is not found in API Server 2025-01-14 19:48:19,432 - DEBUG - VN ctest-vn-48098596 is not present in Agent 10.0.0.45 2025-01-14 19:48:19,432 - INFO - Validated that VN ctest-vn-48098596 is not in any agent 2025-01-14 19:48:19,453 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48098596 info 2025-01-14 19:48:19,708 - DEBUG - No XMPP flaps were noticed during the test 2025-01-14 19:48:19,709 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2025-01-14 19:48:19,709 - INFO - -------------------------------------------------------------------------------- 2025-01-14 19:48:20,401 - INFO - Deleted project: ctest-TestBasicPolicy-13344698, ID : 149c3a10-6207-45d8-b5c5-c974e75d9bd5