2024-11-12 14:39:31,061 - INFO - Domain Default found not creating 2024-11-12 14:39:31,231 - INFO - Project ctest-TestBasicPolicy-28374637 not found, creating it 2024-11-12 14:39:31,770 - INFO - Created Project:ctest-TestBasicPolicy-28374637, ID : 2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:39:33,450 - INFO - ================================================================================ 2024-11-12 14:39:33,450 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-12 14:39:33,450 - 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 2024-11-12 14:39:33,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with 2024-11-12 14:39:33,709 - INFO - Initial checks done. Running the testcase now 2024-11-12 14:39:33,710 - INFO - 2024-11-12 14:39:34,320 - DEBUG - Response for create_network : {'network': {'id': 'c9137da7-e0c2-4c36-a42e-c38151ba825a', 'name': 'ctest-vn-52451714', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-52451714'], 'port_security_enabled': True, 'description': ''}} 2024-11-12 14:39:34,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a7d63ca-603e-4741-b2aa-410e3f8fe8a9', 'name': '', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'network_id': 'c9137da7-e0c2-4c36-a42e-c38151ba825a', 'ip_version': 4, 'cidr': '160.158.147.128/26', 'allocation_pools': [{'start': '160.158.147.130', 'end': '160.158.147.190'}], 'gateway_ip': '160.158.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.158.147.130', 'tags': [], 'project_id': '2555c42fa96a43688ab755c77fbe0300'}} 2024-11-12 14:39:34,539 - INFO - Created VN ctest-vn-52451714 2024-11-12 14:39:34,598 - DEBUG - VN ctest-vn-52451714 UUID is c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:34,916 - DEBUG - Response for create_network : {'network': {'id': '252ac8f5-9980-4d14-92dd-c611e02b58f3', 'name': 'ctest-vn-76715232', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-76715232'], 'port_security_enabled': True, 'description': ''}} 2024-11-12 14:39:35,128 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d6db2b1-a3c5-4d06-9cfc-bedb5055b5d0', 'name': '', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'network_id': '252ac8f5-9980-4d14-92dd-c611e02b58f3', 'ip_version': 4, 'cidr': '95.136.242.128/26', 'allocation_pools': [{'start': '95.136.242.130', 'end': '95.136.242.190'}], 'gateway_ip': '95.136.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.136.242.130', 'tags': [], 'project_id': '2555c42fa96a43688ab755c77fbe0300'}} 2024-11-12 14:39:35,149 - INFO - Created VN ctest-vn-76715232 2024-11-12 14:39:35,206 - DEBUG - VN ctest-vn-76715232 UUID is 252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:35,333 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714, 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-28374637:ctest-vn-76715232, 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] 2024-11-12 14:39:35,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9137da7-e0c2-4c36-a42e-c38151ba825a', 'name': 'ctest-vn-52451714', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a7d63ca-603e-4741-b2aa-410e3f8fe8a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-52451714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793']], 'subnet_ipam': [{'subnet_cidr': '160.158.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-12 14:39:35,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '252ac8f5-9980-4d14-92dd-c611e02b58f3', 'name': 'ctest-vn-76715232', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d6db2b1-a3c5-4d06-9cfc-bedb5055b5d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-76715232'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793']], 'subnet_ipam': [{'subnet_cidr': '95.136.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-12 14:39:36,094 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:39:36,395 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:39:36,430 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a 2024-11-12 14:39:36,444 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:39:36,538 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:36,553 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:36,569 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3 2024-11-12 14:39:36,578 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3 2024-11-12 14:39:36,587 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e1f704bd-6052-4291-b52a-3a1454f35097 2024-11-12 14:39:36,594 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-12 14:39:36,594 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:36,611 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3 2024-11-12 14:39:36,637 - INFO - Verified VN network id 9 for VN c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:36,638 - INFO - Verifications in API Server for VN ctest-vn-52451714 passed 2024-11-12 14:39:36,638 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:36,654 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3 2024-11-12 14:39:36,662 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3 2024-11-12 14:39:36,670 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e1f704bd-6052-4291-b52a-3a1454f35097 2024-11-12 14:39:36,684 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28374637', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14489062586164857910', 'uuid-lslong': '11830608231338246746'}, 'enable': 'true', 'created': '2024-11-12T14:39:34', 'last-modified': '2024-11-12T14:39:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043827'} 2024-11-12 14:39:36,692 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-12 14:39:36,692 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52451714 passed 2024-11-12 14:39:36,692 - DEBUG - ====Verifying policy data for ctest-vn-52451714 in API_Server ====== 2024-11-12 14:39:36,692 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:39:36,698 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a 2024-11-12 14:39:36,711 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:39:36,787 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a 2024-11-12 14:39:36,806 - DEBUG - ==>Verifying data for policy with id: 181e8bab-3c4b-41ae-9576-ef777b980c0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793'] 2024-11-12 14:39:36,806 - INFO - VN ctest-vn-52451714 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-12 14:39:36,806 - DEBUG - Verifying the vn in opserver 2024-11-12 14:39:36,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714 virtual network link through opserver 10.0.0.23 2024-11-12 14:39:36,806 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-12 14:39:37,113 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-12 14:39:37,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714?flat'} 2024-11-12 14:39:37,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714 is found in opserver 2024-11-12 14:39:37,197 - DEBUG - Do not have enough data to verify VN in agent 2024-11-12 14:39:37,203 - DEBUG - VRF ids for VN ctest-vn-52451714: {} 2024-11-12 14:39:37,203 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:39:37,208 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a 2024-11-12 14:39:37,222 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:39:37,303 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:37,320 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:37,334 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d 2024-11-12 14:39:37,343 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d 2024-11-12 14:39:37,350 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/8ee8978c-49b4-4f98-b826-330f35da9612 2024-11-12 14:39:37,359 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-12 14:39:37,359 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:37,372 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d 2024-11-12 14:39:37,391 - INFO - Verified VN network id 10 for VN 252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:37,391 - INFO - Verifications in API Server for VN ctest-vn-76715232 passed 2024-11-12 14:39:37,391 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:37,404 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d 2024-11-12 14:39:37,413 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d 2024-11-12 14:39:37,426 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/8ee8978c-49b4-4f98-b826-330f35da9612 2024-11-12 14:39:37,439 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28374637', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2678173885593046292', 'uuid-lslong': '10582832479468214515'}, 'enable': 'true', 'created': '2024-11-12T14:39:34', 'last-modified': '2024-11-12T14:39:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.527383'} 2024-11-12 14:39:37,446 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-12 14:39:37,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76715232 passed 2024-11-12 14:39:37,446 - DEBUG - ====Verifying policy data for ctest-vn-76715232 in API_Server ====== 2024-11-12 14:39:37,446 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:39:37,452 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a 2024-11-12 14:39:37,466 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:39:37,547 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3 2024-11-12 14:39:37,561 - DEBUG - ==>Verifying data for policy with id: 181e8bab-3c4b-41ae-9576-ef777b980c0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793'] 2024-11-12 14:39:37,561 - INFO - VN ctest-vn-76715232 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-12 14:39:37,561 - DEBUG - Verifying the vn in opserver 2024-11-12 14:39:37,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232 virtual network link through opserver 10.0.0.23 2024-11-12 14:39:37,562 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-12 14:39:37,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232?flat'} 2024-11-12 14:39:37,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232 is found in opserver 2024-11-12 14:39:37,585 - DEBUG - Do not have enough data to verify VN in agent 2024-11-12 14:39:37,590 - DEBUG - VRF ids for VN ctest-vn-76715232: {} 2024-11-12 14:39:37,649 - DEBUG - Services list from nova: [, , ] 2024-11-12 14:39:38,820 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2277-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2277-1) 2024-11-12 14:39:39,997 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2277-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2277-1) 2024-11-12 14:39:39,997 - INFO - Waiting for VM ctest-TestBasicPolicy-28374637-82150999 to be up.. 2024-11-12 14:39:40,099 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-12 14:39:45,183 - DEBUG - VM is in ACTIVE state now 2024-11-12 14:39:45,183 - INFO - VM name : ctest-TestBasicPolicy-28374637-82150999 2024-11-12 14:39:45,272 - DEBUG - VM ctest-TestBasicPolicy-28374637-82150999 ID is 5d937b77-35a2-4999-934d-b0df8a52655f 2024-11-12 14:39:45,292 - DEBUG - VM ctest-TestBasicPolicy-28374637-82150999 launched on Node cn-jenkins-deploy-platform-ansible-os-2277-1 2024-11-12 14:39:45,375 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/5d937b77-35a2-4999-934d-b0df8a52655f 2024-11-12 14:39:45,384 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e6c29543-53c5-4a99-bdff-ae2096a4bc39 2024-11-12 14:39:48,673 - 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 1025ms') 2024-11-12 14:39:48,673 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28374637-82150999 failed! 2024-11-12 14:39:48,731 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714 is 160.158.147.129 and allocation pool is NOT set 2024-11-12 14:39:50,789 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.790 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.790/2.729/4.669/1.939 ms') 2024-11-12 14:39:50,789 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28374637-82150999 passed 2024-11-12 14:39:50,958 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-12 14:39:50,959 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28374637-82150999, IP 160.158.147.131, Port 22 2024-11-12 14:39:51,122 - DEBUG - VM ctest-TestBasicPolicy-28374637-82150999 is ready for SSH connections 2024-11-12 14:39:51,122 - INFO - Waiting for VM ctest-TestBasicPolicy-28374637-35373992 to be up.. 2024-11-12 14:39:51,218 - DEBUG - VM is in ACTIVE state now 2024-11-12 14:39:51,218 - INFO - VM name : ctest-TestBasicPolicy-28374637-35373992 2024-11-12 14:39:51,304 - DEBUG - VM ctest-TestBasicPolicy-28374637-35373992 ID is 6117f900-54da-4ccc-aeec-5f669ac5c40a 2024-11-12 14:39:51,305 - DEBUG - VM ctest-TestBasicPolicy-28374637-35373992 launched on Node cn-jenkins-deploy-platform-ansible-os-2277-1 2024-11-12 14:39:51,386 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6117f900-54da-4ccc-aeec-5f669ac5c40a 2024-11-12 14:39:51,397 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/423d1c2c-b45c-4535-a6b5-0f62ad9bfb4c 2024-11-12 14:39:52,650 - 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.31 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.540 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.540/1.924/3.309/1.384 ms') 2024-11-12 14:39:52,650 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-28374637-35373992 passed 2024-11-12 14:39:52,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-12 14:39:52,811 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28374637-35373992, IP 95.136.242.131, Port 22 2024-11-12 14:39:52,970 - DEBUG - VM ctest-TestBasicPolicy-28374637-35373992 is ready for SSH connections 2024-11-12 14:39:52,970 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-12 14:39:52,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.136.242.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-12 14:39:52,970 - DEBUG - ping -s 56 -c 3 -W 1 95.136.242.131 2024-11-12 14:39:57,000 - DEBUG - PING 95.136.242.131 (95.136.242.131): 56 data bytes 64 bytes from 95.136.242.131: seq=0 ttl=63 time=3.431 ms 64 bytes from 95.136.242.131: seq=1 ttl=63 time=0.894 ms 64 bytes from 95.136.242.131: seq=2 ttl=63 time=1.026 ms --- 95.136.242.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.894/1.783/3.431 ms 2024-11-12 14:39:57,000 - INFO - Ping to IP 95.136.242.131 from VM ctest-TestBasicPolicy-28374637-82150999 passed 2024-11-12 14:39:57,202 - DEBUG - Policy Update Response {"network-policy": {"uuid": "181e8bab-3c4b-41ae-9576-ef777b980c0e", "href": "http://10.0.0.23:8082/network-policy/181e8bab-3c4b-41ae-9576-ef777b980c0e"}} 2024-11-12 14:39:57,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-12 14:39:57,202 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.136.242.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-12 14:39:57,203 - DEBUG - ping -s 56 -c 3 -W 1 95.136.242.131 2024-11-12 14:40:00,420 - DEBUG - PING 95.136.242.131 (95.136.242.131): 56 data bytes 64 bytes from 95.136.242.131: seq=0 ttl=63 time=1.369 ms --- 95.136.242.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.369/1.369/1.369 ms 2024-11-12 14:40:00,421 - WARNING - Ping to IP 95.136.242.131 from VM ctest-TestBasicPolicy-28374637-82150999 failed 2024-11-12 14:40:00,421 - INFO - Deleting VM ctest-TestBasicPolicy-28374637-35373992 2024-11-12 14:40:00,482 - INFO - Deleting VM ctest-TestBasicPolicy-28374637-82150999 2024-11-12 14:40:00,924 - INFO - Deleted policy ctest-policy-allow-all-45992793 2024-11-12 14:40:00,924 - INFO - Deleting VN ctest-vn-76715232 2024-11-12 14:40:00,974 - DEBUG - VN 252ac8f5-9980-4d14-92dd-c611e02b58f3 still in use: Unable to complete operation on network 252ac8f5-9980-4d14-92dd-c611e02b58f3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1d1471e6-c4a1-409f-80b8-99395da42663'] 2024-11-12 14:40:00,974 - WARNING - Deleting VN ctest-vn-76715232 failed..Will retry 2024-11-12 14:40:03,084 - DEBUG - Response for deleting network () 2024-11-12 14:40:03,085 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d 2024-11-12 14:40:03,090 - DEBUG - Response Code: 404 2024-11-12 14:40:03,091 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:40:03,096 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a 2024-11-12 14:40:03,153 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:40:03,235 - INFO - Validated that VN ctest-vn-76715232 is not found in API Server 2024-11-12 14:40:03,246 - DEBUG - VN ctest-vn-76715232 is not present in Agent 10.0.0.23 2024-11-12 14:40:03,246 - INFO - Validated that VN ctest-vn-76715232 is not in any agent 2024-11-12 14:40:03,262 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76715232 info 2024-11-12 14:40:03,262 - INFO - Deleting VN ctest-vn-52451714 2024-11-12 14:40:03,383 - DEBUG - Response for deleting network () 2024-11-12 14:40:03,384 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3 2024-11-12 14:40:03,389 - DEBUG - Response Code: 404 2024-11-12 14:40:03,389 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-12 14:40:03,395 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a 2024-11-12 14:40:03,453 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300 2024-11-12 14:40:03,539 - INFO - Validated that VN ctest-vn-52451714 is not found in API Server 2024-11-12 14:40:03,551 - DEBUG - VN ctest-vn-52451714 is not present in Agent 10.0.0.23 2024-11-12 14:40:03,551 - INFO - Validated that VN ctest-vn-52451714 is not in any agent 2024-11-12 14:40:03,568 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52451714 info 2024-11-12 14:40:03,833 - DEBUG - No XMPP flaps were noticed during the test 2024-11-12 14:40:03,833 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-12 14:40:03,833 - INFO - -------------------------------------------------------------------------------- 2024-11-12 14:40:04,522 - INFO - Deleted project: ctest-TestBasicPolicy-28374637, ID : 2555c42f-a96a-4368-8ab7-55c77fbe0300