2025-01-13 14:46:38,387 - INFO - Domain Default found not creating 2025-01-13 14:46:38,556 - INFO - Project ctest-TestBasicPolicy-67354272 not found, creating it 2025-01-13 14:46:39,048 - INFO - Created Project:ctest-TestBasicPolicy-67354272, ID : 688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:46:40,655 - INFO - ================================================================================ 2025-01-13 14:46:40,655 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-13 14:46:40,655 - 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-13 14:46:40,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with 2025-01-13 14:46:40,915 - INFO - Initial checks done. Running the testcase now 2025-01-13 14:46:40,915 - INFO - 2025-01-13 14:46:41,566 - DEBUG - Response for create_network : {'network': {'id': '75823f45-0e02-40f1-99ee-325ba58c097c', 'name': 'ctest-vn-03279688', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-03279688'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 14:46:41,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '4876eaed-b1b3-454c-9aaf-3678f9351add', 'name': '', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'network_id': '75823f45-0e02-40f1-99ee-325ba58c097c', 'ip_version': 4, 'cidr': '156.250.82.0/26', 'allocation_pools': [{'start': '156.250.82.2', 'end': '156.250.82.62'}], 'gateway_ip': '156.250.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.250.82.2', 'tags': [], 'project_id': '688ec403d1e746eea10207d8d68fa9f9'}} 2025-01-13 14:46:41,763 - INFO - Created VN ctest-vn-03279688 2025-01-13 14:46:41,819 - DEBUG - VN ctest-vn-03279688 UUID is 75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:42,146 - DEBUG - Response for create_network : {'network': {'id': '1c78709d-ad6c-46b3-89e9-8d00653200cf', 'name': 'ctest-vn-59096006', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-59096006'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 14:46:42,363 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e24ca1f-65eb-4883-a763-ef11da55b430', 'name': '', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'network_id': '1c78709d-ad6c-46b3-89e9-8d00653200cf', 'ip_version': 4, 'cidr': '118.111.230.192/26', 'allocation_pools': [{'start': '118.111.230.194', 'end': '118.111.230.254'}], 'gateway_ip': '118.111.230.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.111.230.194', 'tags': [], 'project_id': '688ec403d1e746eea10207d8d68fa9f9'}} 2025-01-13 14:46:42,383 - INFO - Created VN ctest-vn-59096006 2025-01-13 14:46:42,439 - DEBUG - VN ctest-vn-59096006 UUID is 1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:42,562 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688, 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-67354272:ctest-vn-59096006, 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-13 14:46:42,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75823f45-0e02-40f1-99ee-325ba58c097c', 'name': 'ctest-vn-03279688', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4876eaed-b1b3-454c-9aaf-3678f9351add'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-03279688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484']], 'subnet_ipam': [{'subnet_cidr': '156.250.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 14:46:43,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c78709d-ad6c-46b3-89e9-8d00653200cf', 'name': 'ctest-vn-59096006', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e24ca1f-65eb-4883-a763-ef11da55b430'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-59096006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484']], 'subnet_ipam': [{'subnet_cidr': '118.111.230.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 14:46:43,292 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:46:43,592 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:46:43,629 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340 2025-01-13 14:46:43,647 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:46:43,733 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:43,748 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:43,761 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a 2025-01-13 14:46:43,772 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a 2025-01-13 14:46:43,781 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fc97e7d2-cdc6-43ea-8bca-f0968e2d3993 2025-01-13 14:46:43,791 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 14:46:43,791 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:43,803 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a 2025-01-13 14:46:43,820 - INFO - Verified VN network id 8 for VN 75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:43,820 - INFO - Verifications in API Server for VN ctest-vn-03279688 passed 2025-01-13 14:46:43,820 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:43,832 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a 2025-01-13 14:46:43,842 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a 2025-01-13 14:46:43,850 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fc97e7d2-cdc6-43ea-8bca-f0968e2d3993 2025-01-13 14:46:43,865 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67354272', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8467399815230275825', 'uuid-lslong': '11091858301460941180'}, 'enable': 'true', 'created': '2025-01-13T14:46:41', 'last-modified': '2025-01-13T14:46:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011266'} 2025-01-13 14:46:43,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 14:46:43,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03279688 passed 2025-01-13 14:46:43,873 - DEBUG - ====Verifying policy data for ctest-vn-03279688 in API_Server ====== 2025-01-13 14:46:43,873 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:46:43,882 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340 2025-01-13 14:46:43,895 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:46:43,977 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c 2025-01-13 14:46:43,993 - DEBUG - ==>Verifying data for policy with id: 9bbf69ad-c582-4a74-a116-60a8d3f2c53c, fqn: ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484'] 2025-01-13 14:46:43,993 - INFO - VN ctest-vn-03279688 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 14:46:43,993 - DEBUG - Verifying the vn in opserver 2025-01-13 14:46:43,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688 virtual network link through opserver 10.0.0.27 2025-01-13 14:46:43,994 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-13 14:46:44,308 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-13 14:46:44,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688?flat'} 2025-01-13 14:46:44,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688 is found in opserver 2025-01-13 14:46:44,397 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 14:46:44,403 - DEBUG - VRF ids for VN ctest-vn-03279688: {} 2025-01-13 14:46:44,403 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:46:44,410 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340 2025-01-13 14:46:44,438 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:46:44,517 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:44,531 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:44,542 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c 2025-01-13 14:46:44,552 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c 2025-01-13 14:46:44,561 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c1455945-bc87-437e-83e2-6b090bcde397 2025-01-13 14:46:44,569 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 14:46:44,569 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:44,580 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c 2025-01-13 14:46:44,597 - INFO - Verified VN network id 9 for VN 1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:44,597 - INFO - Verifications in API Server for VN ctest-vn-59096006 passed 2025-01-13 14:46:44,597 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:44,609 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c 2025-01-13 14:46:44,617 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c 2025-01-13 14:46:44,626 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c1455945-bc87-437e-83e2-6b090bcde397 2025-01-13 14:46:44,641 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67354272', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2051513452788991667', 'uuid-lslong': '9937629085607002319'}, 'enable': 'true', 'created': '2025-01-13T14:46:42', 'last-modified': '2025-01-13T14:46:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531271'} 2025-01-13 14:46:44,650 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 14:46:44,650 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59096006 passed 2025-01-13 14:46:44,651 - DEBUG - ====Verifying policy data for ctest-vn-59096006 in API_Server ====== 2025-01-13 14:46:44,651 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:46:44,656 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340 2025-01-13 14:46:44,669 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:46:44,748 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf 2025-01-13 14:46:44,759 - DEBUG - ==>Verifying data for policy with id: 9bbf69ad-c582-4a74-a116-60a8d3f2c53c, fqn: ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484'] 2025-01-13 14:46:44,759 - INFO - VN ctest-vn-59096006 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 14:46:44,759 - DEBUG - Verifying the vn in opserver 2025-01-13 14:46:44,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006 virtual network link through opserver 10.0.0.27 2025-01-13 14:46:44,759 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-13 14:46:44,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006?flat'} 2025-01-13 14:46:44,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006 is found in opserver 2025-01-13 14:46:44,784 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 14:46:44,790 - DEBUG - VRF ids for VN ctest-vn-59096006: {} 2025-01-13 14:46:44,863 - DEBUG - Services list from nova: [, , ] 2025-01-13 14:46:45,941 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2612-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2612-1) 2025-01-13 14:46:47,286 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2612-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2612-1) 2025-01-13 14:46:47,286 - INFO - Waiting for VM ctest-TestBasicPolicy-67354272-39455809 to be up.. 2025-01-13 14:46:47,399 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 14:46:52,497 - DEBUG - VM is in ACTIVE state now 2025-01-13 14:46:52,497 - INFO - VM name : ctest-TestBasicPolicy-67354272-39455809 2025-01-13 14:46:52,578 - DEBUG - VM ctest-TestBasicPolicy-67354272-39455809 ID is 35d9c582-8d10-4656-8f63-aad2dac06694 2025-01-13 14:46:52,600 - DEBUG - VM ctest-TestBasicPolicy-67354272-39455809 launched on Node cn-jenkins-deploy-platform-ansible-os-2612-1 2025-01-13 14:46:52,685 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/35d9c582-8d10-4656-8f63-aad2dac06694 2025-01-13 14:46:52,694 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/1aee44bc-4901-4b6f-b11d-1fec6b14fa4b 2025-01-13 14:46:55,922 - 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 1010ms') 2025-01-13 14:46:55,922 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-67354272-39455809 failed! 2025-01-13 14:46:55,983 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688 is 156.250.82.1 and allocation pool is NOT set 2025-01-13 14:46:58,046 - 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=9.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.72 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 = 2.717/6.278/9.840/3.561 ms') 2025-01-13 14:46:58,047 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-67354272-39455809 passed 2025-01-13 14:46:58,232 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 14:46:58,232 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-67354272-39455809, IP 156.250.82.3, Port 22 2025-01-13 14:46:58,412 - DEBUG - VM ctest-TestBasicPolicy-67354272-39455809 is ready for SSH connections 2025-01-13 14:46:58,412 - INFO - Waiting for VM ctest-TestBasicPolicy-67354272-14063582 to be up.. 2025-01-13 14:46:58,608 - DEBUG - VM is in ACTIVE state now 2025-01-13 14:46:58,608 - INFO - VM name : ctest-TestBasicPolicy-67354272-14063582 2025-01-13 14:46:58,703 - DEBUG - VM ctest-TestBasicPolicy-67354272-14063582 ID is 168a6ef1-cc7f-47c7-bf71-3ac9a0317d5a 2025-01-13 14:46:58,703 - DEBUG - VM ctest-TestBasicPolicy-67354272-14063582 launched on Node cn-jenkins-deploy-platform-ansible-os-2612-1 2025-01-13 14:46:58,790 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/168a6ef1-cc7f-47c7-bf71-3ac9a0317d5a 2025-01-13 14:46:58,801 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/9ba2f5b7-0a44-4921-a42e-ef01c6410b1c 2025-01-13 14:47:00,057 - 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=4.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.80 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.799/3.180/4.561/1.381 ms') 2025-01-13 14:47:00,057 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-67354272-14063582 passed 2025-01-13 14:47:00,216 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 14:47:00,216 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-67354272-14063582, IP 118.111.230.195, Port 22 2025-01-13 14:47:00,381 - DEBUG - VM ctest-TestBasicPolicy-67354272-14063582 is ready for SSH connections 2025-01-13 14:47:00,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 14:47:00,381 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.111.230.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-13 14:47:00,381 - DEBUG - ping -s 56 -c 3 -W 1 118.111.230.195 2025-01-13 14:47:04,508 - DEBUG - PING 118.111.230.195 (118.111.230.195): 56 data bytes 64 bytes from 118.111.230.195: seq=0 ttl=63 time=4.256 ms 64 bytes from 118.111.230.195: seq=1 ttl=63 time=0.917 ms 64 bytes from 118.111.230.195: seq=2 ttl=63 time=0.921 ms --- 118.111.230.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.917/2.031/4.256 ms 2025-01-13 14:47:04,508 - INFO - Ping to IP 118.111.230.195 from VM ctest-TestBasicPolicy-67354272-39455809 passed 2025-01-13 14:47:04,695 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9bbf69ad-c582-4a74-a116-60a8d3f2c53c", "href": "http://10.0.0.27:8082/network-policy/9bbf69ad-c582-4a74-a116-60a8d3f2c53c"}} 2025-01-13 14:47:04,695 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 14:47:04,696 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.111.230.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-13 14:47:04,696 - DEBUG - ping -s 56 -c 3 -W 1 118.111.230.195 2025-01-13 14:47:07,943 - DEBUG - PING 118.111.230.195 (118.111.230.195): 56 data bytes 64 bytes from 118.111.230.195: seq=0 ttl=63 time=1.372 ms --- 118.111.230.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.372/1.372/1.372 ms 2025-01-13 14:47:07,943 - WARNING - Ping to IP 118.111.230.195 from VM ctest-TestBasicPolicy-67354272-39455809 failed 2025-01-13 14:47:07,943 - INFO - Deleting VM ctest-TestBasicPolicy-67354272-14063582 2025-01-13 14:47:08,023 - INFO - Deleting VM ctest-TestBasicPolicy-67354272-39455809 2025-01-13 14:47:08,442 - INFO - Deleted policy ctest-policy-allow-all-71039484 2025-01-13 14:47:08,443 - INFO - Deleting VN ctest-vn-59096006 2025-01-13 14:47:08,487 - DEBUG - VN 1c78709d-ad6c-46b3-89e9-8d00653200cf still in use: Unable to complete operation on network 1c78709d-ad6c-46b3-89e9-8d00653200cf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a35ca05f-c08d-4462-8137-280dadedf9ab'] 2025-01-13 14:47:08,487 - WARNING - Deleting VN ctest-vn-59096006 failed..Will retry 2025-01-13 14:47:10,631 - DEBUG - Response for deleting network () 2025-01-13 14:47:10,631 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c 2025-01-13 14:47:10,639 - DEBUG - Response Code: 404 2025-01-13 14:47:10,639 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:47:10,648 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340 2025-01-13 14:47:10,709 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:47:10,787 - INFO - Validated that VN ctest-vn-59096006 is not found in API Server 2025-01-13 14:47:10,802 - DEBUG - VN ctest-vn-59096006 is not present in Agent 10.0.0.27 2025-01-13 14:47:10,802 - INFO - Validated that VN ctest-vn-59096006 is not in any agent 2025-01-13 14:47:10,821 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59096006 info 2025-01-13 14:47:10,821 - INFO - Deleting VN ctest-vn-03279688 2025-01-13 14:47:10,953 - DEBUG - Response for deleting network () 2025-01-13 14:47:10,953 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a 2025-01-13 14:47:10,960 - DEBUG - Response Code: 404 2025-01-13 14:47:10,960 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-13 14:47:10,968 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340 2025-01-13 14:47:11,025 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9 2025-01-13 14:47:11,108 - INFO - Validated that VN ctest-vn-03279688 is not found in API Server 2025-01-13 14:47:11,122 - DEBUG - VN ctest-vn-03279688 is not present in Agent 10.0.0.27 2025-01-13 14:47:11,122 - INFO - Validated that VN ctest-vn-03279688 is not in any agent 2025-01-13 14:47:11,141 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03279688 info 2025-01-13 14:47:11,398 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 14:47:11,398 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2025-01-13 14:47:11,398 - INFO - -------------------------------------------------------------------------------- 2025-01-13 14:47:12,132 - INFO - Deleted project: ctest-TestBasicPolicy-67354272, ID : 688ec403-d1e7-46ee-a102-07d8d68fa9f9