2024-09-18 17:43:06,451 - INFO - Domain Default found not creating 2024-09-18 17:43:06,610 - INFO - Project ctest-TestBasicPolicy-02166754 not found, creating it 2024-09-18 17:43:07,119 - INFO - Created Project:ctest-TestBasicPolicy-02166754, ID : 3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:08,620 - INFO - ================================================================================ 2024-09-18 17:43:08,620 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-18 17:43:08,620 - 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-09-18 17:43:08,882 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.6': '0'}} with 2024-09-18 17:43:08,883 - INFO - Initial checks done. Running the testcase now 2024-09-18 17:43:08,883 - INFO - 2024-09-18 17:43:09,451 - DEBUG - Response for create_network : {'network': {'id': '13f5fd1b-72f7-467b-bd3f-99a5d4e36be2', 'name': 'ctest-vn-80200879', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-80200879'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 17:43:09,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab0f9745-9370-433f-912e-3626bf4766d5', 'name': '', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'network_id': '13f5fd1b-72f7-467b-bd3f-99a5d4e36be2', 'ip_version': 4, 'cidr': '38.70.162.192/26', 'allocation_pools': [{'start': '38.70.162.194', 'end': '38.70.162.254'}], 'gateway_ip': '38.70.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.70.162.194', 'tags': [], 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e'}} 2024-09-18 17:43:09,689 - INFO - Created VN ctest-vn-80200879 2024-09-18 17:43:09,748 - DEBUG - VN ctest-vn-80200879 UUID is 13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:10,066 - DEBUG - Response for create_network : {'network': {'id': 'ce28a929-7d19-41b4-8bc4-c24ac1d438b6', 'name': 'ctest-vn-76184201', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-76184201'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 17:43:10,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ab6b479-21bf-4c16-baba-d4a6348e1465', 'name': '', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'network_id': 'ce28a929-7d19-41b4-8bc4-c24ac1d438b6', 'ip_version': 4, 'cidr': '177.209.68.192/26', 'allocation_pools': [{'start': '177.209.68.194', 'end': '177.209.68.254'}], 'gateway_ip': '177.209.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.209.68.194', 'tags': [], 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e'}} 2024-09-18 17:43:10,294 - INFO - Created VN ctest-vn-76184201 2024-09-18 17:43:10,356 - DEBUG - VN ctest-vn-76184201 UUID is ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:10,481 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879, 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-02166754:ctest-vn-76184201, 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-09-18 17:43:10,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13f5fd1b-72f7-467b-bd3f-99a5d4e36be2', 'name': 'ctest-vn-80200879', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab0f9745-9370-433f-912e-3626bf4766d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-80200879'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716']], 'subnet_ipam': [{'subnet_cidr': '38.70.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 17:43:11,089 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce28a929-7d19-41b4-8bc4-c24ac1d438b6', 'name': 'ctest-vn-76184201', 'tenant_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'project_id': '3c4fa15cd7ca485c8f23f6c178a7419e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ab6b479-21bf-4c16-baba-d4a6348e1465'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-vn-76184201'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716']], 'subnet_ipam': [{'subnet_cidr': '177.209.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 17:43:11,240 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:11,549 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:11,585 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57 2024-09-18 17:43:11,600 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:11,686 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:11,702 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:11,715 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25 2024-09-18 17:43:11,725 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25 2024-09-18 17:43:11,734 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/eaa60646-c5c1-4c06-9c5a-23f995bbbf6e 2024-09-18 17:43:11,742 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 17:43:11,742 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:11,755 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25 2024-09-18 17:43:11,777 - INFO - Verified VN network id 7 for VN 13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:11,777 - INFO - Verifications in API Server for VN ctest-vn-80200879 passed 2024-09-18 17:43:11,777 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:11,793 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25 2024-09-18 17:43:11,802 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25 2024-09-18 17:43:11,811 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/eaa60646-c5c1-4c06-9c5a-23f995bbbf6e 2024-09-18 17:43:11,825 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02166754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1438333950349493883', 'uuid-lslong': '13636787134221478882'}, 'enable': 'true', 'created': '2024-09-18T17:43:09', 'last-modified': '2024-09-18T17:43:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056045'} 2024-09-18 17:43:11,832 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 17:43:11,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80200879 passed 2024-09-18 17:43:11,833 - DEBUG - ====Verifying policy data for ctest-vn-80200879 in API_Server ====== 2024-09-18 17:43:11,833 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:11,839 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57 2024-09-18 17:43:11,852 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:11,934 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/13f5fd1b-72f7-467b-bd3f-99a5d4e36be2 2024-09-18 17:43:11,949 - DEBUG - ==>Verifying data for policy with id: 0f10faa2-0d20-48dd-8926-d0a8a5d20392, fqn: ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716'] 2024-09-18 17:43:11,949 - INFO - VN ctest-vn-80200879 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 17:43:11,949 - DEBUG - Verifying the vn in opserver 2024-09-18 17:43:11,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879 virtual network link through opserver 10.0.0.17 2024-09-18 17:43:11,949 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-18 17:43:12,358 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-18 17:43:12,419 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879?flat'} 2024-09-18 17:43:12,419 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879 is found in opserver 2024-09-18 17:43:12,432 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 17:43:12,437 - DEBUG - VRF ids for VN ctest-vn-80200879: {} 2024-09-18 17:43:12,437 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:12,443 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57 2024-09-18 17:43:12,456 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:12,543 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:12,559 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:12,573 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a 2024-09-18 17:43:12,582 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a 2024-09-18 17:43:12,591 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/23d9d473-1ddc-40d4-8f60-ba48ae274610 2024-09-18 17:43:12,598 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 17:43:12,598 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:12,611 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a 2024-09-18 17:43:12,630 - INFO - Verified VN network id 8 for VN ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:12,631 - INFO - Verifications in API Server for VN ctest-vn-76184201 passed 2024-09-18 17:43:12,631 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:12,644 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a 2024-09-18 17:43:12,653 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a 2024-09-18 17:43:12,661 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/23d9d473-1ddc-40d4-8f60-ba48ae274610 2024-09-18 17:43:12,674 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02166754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14855309366539141556', 'uuid-lslong': '10071388293042550966'}, 'enable': 'true', 'created': '2024-09-18T17:43:10', 'last-modified': '2024-09-18T17:43:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.656827'} 2024-09-18 17:43:12,680 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 17:43:12,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76184201 passed 2024-09-18 17:43:12,681 - DEBUG - ====Verifying policy data for ctest-vn-76184201 in API_Server ====== 2024-09-18 17:43:12,681 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:12,686 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57 2024-09-18 17:43:12,699 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:12,778 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ce28a929-7d19-41b4-8bc4-c24ac1d438b6 2024-09-18 17:43:12,793 - DEBUG - ==>Verifying data for policy with id: 0f10faa2-0d20-48dd-8926-d0a8a5d20392, fqn: ['default-domain', 'ctest-TestBasicPolicy-02166754', 'ctest-policy-allow-all-82156716'] 2024-09-18 17:43:12,793 - INFO - VN ctest-vn-76184201 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 17:43:12,794 - DEBUG - Verifying the vn in opserver 2024-09-18 17:43:12,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201 virtual network link through opserver 10.0.0.17 2024-09-18 17:43:12,794 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-09-18 17:43:12,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201?flat'} 2024-09-18 17:43:12,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-76184201 is found in opserver 2024-09-18 17:43:12,816 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 17:43:12,821 - DEBUG - VRF ids for VN ctest-vn-76184201: {} 2024-09-18 17:43:12,874 - DEBUG - Services list from nova: [, , ] 2024-09-18 17:43:13,929 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1990-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1990-1) 2024-09-18 17:43:15,255 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1990-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1990-1) 2024-09-18 17:43:15,256 - INFO - Waiting for VM ctest-TestBasicPolicy-02166754-13212164 to be up.. 2024-09-18 17:43:15,350 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 17:43:20,431 - DEBUG - VM is in ACTIVE state now 2024-09-18 17:43:20,431 - INFO - VM name : ctest-TestBasicPolicy-02166754-13212164 2024-09-18 17:43:20,510 - DEBUG - VM ctest-TestBasicPolicy-02166754-13212164 ID is 848d640d-6072-4c81-aa96-5a3c84bdb7c8 2024-09-18 17:43:20,532 - DEBUG - VM ctest-TestBasicPolicy-02166754-13212164 launched on Node cn-jenkins-deploy-platform-ansible-os-1990-1 2024-09-18 17:43:20,615 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/848d640d-6072-4c81-aa96-5a3c84bdb7c8 2024-09-18 17:43:20,626 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/3412b18a-616a-4f9b-b5f2-904be3dadccc 2024-09-18 17:43:23,924 - 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 1030ms') 2024-09-18 17:43:23,924 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02166754-13212164 failed! 2024-09-18 17:43:23,988 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-02166754:ctest-vn-80200879 is 38.70.162.193 and allocation pool is NOT set 2024-09-18 17:43:26,044 - 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=3.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.842 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 = 0.842/2.399/3.956/1.557 ms') 2024-09-18 17:43:26,044 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02166754-13212164 passed 2024-09-18 17:43:26,208 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:43:26,208 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02166754-13212164, IP 38.70.162.195, Port 22 2024-09-18 17:43:26,364 - DEBUG - VM ctest-TestBasicPolicy-02166754-13212164 is ready for SSH connections 2024-09-18 17:43:26,364 - INFO - Waiting for VM ctest-TestBasicPolicy-02166754-95032560 to be up.. 2024-09-18 17:43:26,442 - DEBUG - VM is in ACTIVE state now 2024-09-18 17:43:26,442 - INFO - VM name : ctest-TestBasicPolicy-02166754-95032560 2024-09-18 17:43:26,524 - DEBUG - VM ctest-TestBasicPolicy-02166754-95032560 ID is fa28047b-debc-4c14-89b1-5c2cb2c0e69e 2024-09-18 17:43:26,525 - DEBUG - VM ctest-TestBasicPolicy-02166754-95032560 launched on Node cn-jenkins-deploy-platform-ansible-os-1990-1 2024-09-18 17:43:26,608 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/fa28047b-debc-4c14-89b1-5c2cb2c0e69e 2024-09-18 17:43:26,619 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/146d3450-bdfb-430c-8c5a-b1ea2b809348 2024-09-18 17:43:27,886 - 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.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.449 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.449/2.097/3.746/1.648 ms') 2024-09-18 17:43:27,886 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02166754-95032560 passed 2024-09-18 17:43:28,044 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:43:28,044 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02166754-95032560, IP 177.209.68.195, Port 22 2024-09-18 17:43:28,200 - DEBUG - VM ctest-TestBasicPolicy-02166754-95032560 is ready for SSH connections 2024-09-18 17:43:28,200 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:43:28,200 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.209.68.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-18 17:43:28,201 - DEBUG - ping -s 56 -c 3 -W 1 177.209.68.195 2024-09-18 17:43:32,261 - DEBUG - PING 177.209.68.195 (177.209.68.195): 56 data bytes 64 bytes from 177.209.68.195: seq=0 ttl=63 time=5.288 ms 64 bytes from 177.209.68.195: seq=1 ttl=63 time=0.891 ms 64 bytes from 177.209.68.195: seq=2 ttl=63 time=0.972 ms --- 177.209.68.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.891/2.383/5.288 ms 2024-09-18 17:43:32,261 - INFO - Ping to IP 177.209.68.195 from VM ctest-TestBasicPolicy-02166754-13212164 passed 2024-09-18 17:43:32,448 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0f10faa2-0d20-48dd-8926-d0a8a5d20392", "href": "http://10.0.0.17:8082/network-policy/0f10faa2-0d20-48dd-8926-d0a8a5d20392"}} 2024-09-18 17:43:32,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:43:32,448 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.209.68.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-18 17:43:32,448 - DEBUG - ping -s 56 -c 3 -W 1 177.209.68.195 2024-09-18 17:43:35,667 - DEBUG - PING 177.209.68.195 (177.209.68.195): 56 data bytes 64 bytes from 177.209.68.195: seq=0 ttl=63 time=1.416 ms --- 177.209.68.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.416/1.416/1.416 ms 2024-09-18 17:43:35,667 - WARNING - Ping to IP 177.209.68.195 from VM ctest-TestBasicPolicy-02166754-13212164 failed 2024-09-18 17:43:35,667 - INFO - Deleting VM ctest-TestBasicPolicy-02166754-95032560 2024-09-18 17:43:35,733 - INFO - Deleting VM ctest-TestBasicPolicy-02166754-13212164 2024-09-18 17:43:36,150 - INFO - Deleted policy ctest-policy-allow-all-82156716 2024-09-18 17:43:36,150 - INFO - Deleting VN ctest-vn-76184201 2024-09-18 17:43:36,191 - DEBUG - VN ce28a929-7d19-41b4-8bc4-c24ac1d438b6 still in use: Unable to complete operation on network ce28a929-7d19-41b4-8bc4-c24ac1d438b6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ee70c76d-d8be-4717-b3b5-5e59985009ed'] 2024-09-18 17:43:36,191 - WARNING - Deleting VN ctest-vn-76184201 failed..Will retry 2024-09-18 17:43:38,301 - DEBUG - Response for deleting network () 2024-09-18 17:43:38,301 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/71b60ed3-cc0a-4f10-95b8-50e73ebd670a 2024-09-18 17:43:38,309 - DEBUG - Response Code: 404 2024-09-18 17:43:38,309 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:38,315 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57 2024-09-18 17:43:38,370 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:38,448 - INFO - Validated that VN ctest-vn-76184201 is not found in API Server 2024-09-18 17:43:38,459 - DEBUG - VN ctest-vn-76184201 is not present in Agent 10.0.0.17 2024-09-18 17:43:38,459 - INFO - Validated that VN ctest-vn-76184201 is not in any agent 2024-09-18 17:43:38,475 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76184201 info 2024-09-18 17:43:38,475 - INFO - Deleting VN ctest-vn-80200879 2024-09-18 17:43:38,580 - DEBUG - Response for deleting network () 2024-09-18 17:43:38,580 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/172348be-f405-4db7-99a1-93ce7bea6e25 2024-09-18 17:43:38,586 - DEBUG - Response Code: 404 2024-09-18 17:43:38,586 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-09-18 17:43:38,593 - DEBUG - Requesting: http://10.0.0.17:8082/domain/667e11ac-cf5d-4754-9af1-ae54ccacfd57 2024-09-18 17:43:38,654 - DEBUG - Requesting: http://10.0.0.17:8082/project/3c4fa15c-d7ca-485c-8f23-f6c178a7419e 2024-09-18 17:43:38,740 - INFO - Validated that VN ctest-vn-80200879 is not found in API Server 2024-09-18 17:43:38,755 - DEBUG - VN ctest-vn-80200879 is not present in Agent 10.0.0.17 2024-09-18 17:43:38,755 - INFO - Validated that VN ctest-vn-80200879 is not in any agent 2024-09-18 17:43:38,774 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80200879 info 2024-09-18 17:43:39,029 - DEBUG - No XMPP flaps were noticed during the test 2024-09-18 17:43:39,030 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-09-18 17:43:39,030 - INFO - -------------------------------------------------------------------------------- 2024-09-18 17:43:39,735 - INFO - Deleted project: ctest-TestBasicPolicy-02166754, ID : 3c4fa15c-d7ca-485c-8f23-f6c178a7419e