2024-09-17 10:32:17,320 - INFO - Domain Default found not creating 2024-09-17 10:32:17,512 - INFO - Project ctest-TestBasicPolicy-99308268 not found, creating it 2024-09-17 10:32:18,040 - INFO - Created Project:ctest-TestBasicPolicy-99308268, ID : 1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:19,724 - INFO - ================================================================================ 2024-09-17 10:32:19,724 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 10:32:19,724 - 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-17 10:32:19,989 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.13': '0'}} with 2024-09-17 10:32:19,989 - INFO - Initial checks done. Running the testcase now 2024-09-17 10:32:19,990 - INFO - 2024-09-17 10:32:20,669 - DEBUG - Response for create_network : {'network': {'id': '9028d4f7-e6b1-401f-b9c2-bde7c597b51e', 'name': 'ctest-vn-16521661', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-16521661'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:32:20,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '18504587-ff2d-4300-a883-83fac3cd043c', 'name': '', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'network_id': '9028d4f7-e6b1-401f-b9c2-bde7c597b51e', 'ip_version': 4, 'cidr': '113.21.56.64/26', 'allocation_pools': [{'start': '113.21.56.66', 'end': '113.21.56.126'}], 'gateway_ip': '113.21.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.21.56.66', 'tags': [], 'project_id': '1cbb7c083a454558acb77ce26810b01c'}} 2024-09-17 10:32:20,865 - INFO - Created VN ctest-vn-16521661 2024-09-17 10:32:20,926 - DEBUG - VN ctest-vn-16521661 UUID is 9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:21,276 - DEBUG - Response for create_network : {'network': {'id': '518b1dcd-1e89-4fe4-85d4-a74e8560939d', 'name': 'ctest-vn-28305379', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-28305379'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:32:21,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c50c00c-9961-492a-ba9b-9fe308de5d06', 'name': '', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'network_id': '518b1dcd-1e89-4fe4-85d4-a74e8560939d', 'ip_version': 4, 'cidr': '108.218.60.128/26', 'allocation_pools': [{'start': '108.218.60.130', 'end': '108.218.60.190'}], 'gateway_ip': '108.218.60.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.218.60.130', 'tags': [], 'project_id': '1cbb7c083a454558acb77ce26810b01c'}} 2024-09-17 10:32:21,545 - INFO - Created VN ctest-vn-28305379 2024-09-17 10:32:21,606 - DEBUG - VN ctest-vn-28305379 UUID is 518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:21,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661, 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-99308268:ctest-vn-28305379, 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-17 10:32:22,078 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9028d4f7-e6b1-401f-b9c2-bde7c597b51e', 'name': 'ctest-vn-16521661', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18504587-ff2d-4300-a883-83fac3cd043c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-16521661'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404']], 'subnet_ipam': [{'subnet_cidr': '113.21.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:32:22,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518b1dcd-1e89-4fe4-85d4-a74e8560939d', 'name': 'ctest-vn-28305379', 'tenant_id': '1cbb7c083a454558acb77ce26810b01c', 'project_id': '1cbb7c083a454558acb77ce26810b01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c50c00c-9961-492a-ba9b-9fe308de5d06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-vn-28305379'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404']], 'subnet_ipam': [{'subnet_cidr': '108.218.60.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:32:22,506 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:22,806 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:22,840 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43 2024-09-17 10:32:22,855 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:22,943 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:22,962 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:22,977 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935 2024-09-17 10:32:22,988 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935 2024-09-17 10:32:22,998 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8e1b18f8-8f40-4f6d-9303-0af5b0c838a8 2024-09-17 10:32:23,006 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 10:32:23,006 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:23,021 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935 2024-09-17 10:32:23,044 - INFO - Verified VN network id 8 for VN 9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:23,044 - INFO - Verifications in API Server for VN ctest-vn-16521661 passed 2024-09-17 10:32:23,044 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:23,063 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935 2024-09-17 10:32:23,075 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935 2024-09-17 10:32:23,087 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/8e1b18f8-8f40-4f6d-9303-0af5b0c838a8 2024-09-17 10:32:23,102 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99308268', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10387786701722435615', 'uuid-lslong': '13385469845648684318'}, 'enable': 'true', 'created': '2024-09-17T10:32:20', 'last-modified': '2024-09-17T10:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048558'} 2024-09-17 10:32:23,111 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 10:32:23,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16521661 passed 2024-09-17 10:32:23,111 - DEBUG - ====Verifying policy data for ctest-vn-16521661 in API_Server ====== 2024-09-17 10:32:23,111 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:23,119 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43 2024-09-17 10:32:23,135 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:23,217 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/9028d4f7-e6b1-401f-b9c2-bde7c597b51e 2024-09-17 10:32:23,236 - DEBUG - ==>Verifying data for policy with id: 94bc4489-e9c0-46a4-94e0-9f5878438478, fqn: ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404'] 2024-09-17 10:32:23,237 - INFO - VN ctest-vn-16521661 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 10:32:23,237 - DEBUG - Verifying the vn in opserver 2024-09-17 10:32:23,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661 virtual network link through opserver 10.0.0.29 2024-09-17 10:32:23,237 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-17 10:32:23,538 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-17 10:32:23,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661?flat'} 2024-09-17 10:32:23,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661 is found in opserver 2024-09-17 10:32:23,623 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 10:32:23,629 - DEBUG - VRF ids for VN ctest-vn-16521661: {} 2024-09-17 10:32:23,629 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:23,636 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43 2024-09-17 10:32:23,650 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:23,734 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:23,751 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:23,767 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e 2024-09-17 10:32:23,777 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e 2024-09-17 10:32:23,788 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/fb9b386a-22f7-461b-82a0-8521325751cf 2024-09-17 10:32:23,797 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 10:32:23,797 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:23,813 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e 2024-09-17 10:32:23,839 - INFO - Verified VN network id 9 for VN 518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:23,839 - INFO - Verifications in API Server for VN ctest-vn-28305379 passed 2024-09-17 10:32:23,839 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:23,854 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e 2024-09-17 10:32:23,865 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e 2024-09-17 10:32:23,878 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/fb9b386a-22f7-461b-82a0-8521325751cf 2024-09-17 10:32:23,895 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99308268', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5875822905652760548', 'uuid-lslong': '9643516657794061213'}, 'enable': 'true', 'created': '2024-09-17T10:32:21', 'last-modified': '2024-09-17T10:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591247'} 2024-09-17 10:32:23,903 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 10:32:23,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28305379 passed 2024-09-17 10:32:23,903 - DEBUG - ====Verifying policy data for ctest-vn-28305379 in API_Server ====== 2024-09-17 10:32:23,903 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:23,910 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43 2024-09-17 10:32:23,926 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:24,017 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/518b1dcd-1e89-4fe4-85d4-a74e8560939d 2024-09-17 10:32:24,034 - DEBUG - ==>Verifying data for policy with id: 94bc4489-e9c0-46a4-94e0-9f5878438478, fqn: ['default-domain', 'ctest-TestBasicPolicy-99308268', 'ctest-policy-allow-all-16523404'] 2024-09-17 10:32:24,034 - INFO - VN ctest-vn-28305379 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 10:32:24,034 - DEBUG - Verifying the vn in opserver 2024-09-17 10:32:24,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379 virtual network link through opserver 10.0.0.29 2024-09-17 10:32:24,034 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-17 10:32:24,048 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379?flat'} 2024-09-17 10:32:24,048 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-28305379 is found in opserver 2024-09-17 10:32:24,060 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 10:32:24,065 - DEBUG - VRF ids for VN ctest-vn-28305379: {} 2024-09-17 10:32:24,133 - DEBUG - Services list from nova: [, , ] 2024-09-17 10:32:25,233 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1959-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1959-1) 2024-09-17 10:32:26,605 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1959-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1959-1) 2024-09-17 10:32:26,606 - INFO - Waiting for VM ctest-TestBasicPolicy-99308268-02036185 to be up.. 2024-09-17 10:32:26,696 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 10:32:31,793 - DEBUG - VM is in ACTIVE state now 2024-09-17 10:32:31,794 - INFO - VM name : ctest-TestBasicPolicy-99308268-02036185 2024-09-17 10:32:31,892 - DEBUG - VM ctest-TestBasicPolicy-99308268-02036185 ID is 5aeb8119-403b-43f1-bb4f-82729e7bcc19 2024-09-17 10:32:31,914 - DEBUG - VM ctest-TestBasicPolicy-99308268-02036185 launched on Node cn-jenkins-deploy-platform-ansible-os-1959-1 2024-09-17 10:32:32,006 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/5aeb8119-403b-43f1-bb4f-82729e7bcc19 2024-09-17 10:32:32,019 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/aeea672a-9c64-4fd5-95b7-17104c4cb534 2024-09-17 10:32:35,278 - 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 1002ms') 2024-09-17 10:32:35,278 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99308268-02036185 failed! 2024-09-17 10:32:35,338 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99308268:ctest-vn-16521661 is 113.21.56.65 and allocation pool is NOT set 2024-09-17 10:32:37,410 - 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=14.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.22 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 = 1.220/7.856/14.493/6.636 ms') 2024-09-17 10:32:37,410 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99308268-02036185 passed 2024-09-17 10:32:37,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:32:37,570 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99308268-02036185, IP 113.21.56.67, Port 22 2024-09-17 10:32:37,737 - DEBUG - VM ctest-TestBasicPolicy-99308268-02036185 is ready for SSH connections 2024-09-17 10:32:37,737 - INFO - Waiting for VM ctest-TestBasicPolicy-99308268-09311596 to be up.. 2024-09-17 10:32:37,833 - DEBUG - VM is in ACTIVE state now 2024-09-17 10:32:37,833 - INFO - VM name : ctest-TestBasicPolicy-99308268-09311596 2024-09-17 10:32:37,916 - DEBUG - VM ctest-TestBasicPolicy-99308268-09311596 ID is b21f0325-7c07-4ace-8ef9-d52c3faa2403 2024-09-17 10:32:37,916 - DEBUG - VM ctest-TestBasicPolicy-99308268-09311596 launched on Node cn-jenkins-deploy-platform-ansible-os-1959-1 2024-09-17 10:32:38,005 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/b21f0325-7c07-4ace-8ef9-d52c3faa2403 2024-09-17 10:32:38,017 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/81544942-f727-4843-8d93-205f19e1048e 2024-09-17 10:32:39,273 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.473 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.473/1.741/3.009/1.268 ms') 2024-09-17 10:32:39,273 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99308268-09311596 passed 2024-09-17 10:32:39,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:32:39,438 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99308268-09311596, IP 108.218.60.131, Port 22 2024-09-17 10:32:39,594 - DEBUG - VM ctest-TestBasicPolicy-99308268-09311596 is ready for SSH connections 2024-09-17 10:32:39,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:32:39,594 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.218.60.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-17 10:32:39,595 - DEBUG - ping -s 56 -c 3 -W 1 108.218.60.131 2024-09-17 10:32:43,692 - DEBUG - PING 108.218.60.131 (108.218.60.131): 56 data bytes 64 bytes from 108.218.60.131: seq=0 ttl=63 time=3.711 ms 64 bytes from 108.218.60.131: seq=1 ttl=63 time=0.954 ms 64 bytes from 108.218.60.131: seq=2 ttl=63 time=1.155 ms --- 108.218.60.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.954/1.940/3.711 ms 2024-09-17 10:32:43,692 - INFO - Ping to IP 108.218.60.131 from VM ctest-TestBasicPolicy-99308268-02036185 passed 2024-09-17 10:32:43,914 - DEBUG - Policy Update Response {"network-policy": {"uuid": "94bc4489-e9c0-46a4-94e0-9f5878438478", "href": "http://10.0.0.29:8082/network-policy/94bc4489-e9c0-46a4-94e0-9f5878438478"}} 2024-09-17 10:32:43,914 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:32:43,914 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.218.60.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-17 10:32:43,914 - DEBUG - ping -s 56 -c 3 -W 1 108.218.60.131 2024-09-17 10:32:47,130 - DEBUG - PING 108.218.60.131 (108.218.60.131): 56 data bytes 64 bytes from 108.218.60.131: seq=0 ttl=63 time=2.211 ms --- 108.218.60.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.211/2.211/2.211 ms 2024-09-17 10:32:47,130 - WARNING - Ping to IP 108.218.60.131 from VM ctest-TestBasicPolicy-99308268-02036185 failed 2024-09-17 10:32:47,131 - INFO - Deleting VM ctest-TestBasicPolicy-99308268-09311596 2024-09-17 10:32:47,225 - INFO - Deleting VM ctest-TestBasicPolicy-99308268-02036185 2024-09-17 10:32:47,729 - INFO - Deleted policy ctest-policy-allow-all-16523404 2024-09-17 10:32:47,729 - INFO - Deleting VN ctest-vn-28305379 2024-09-17 10:32:47,776 - DEBUG - VN 518b1dcd-1e89-4fe4-85d4-a74e8560939d still in use: Unable to complete operation on network 518b1dcd-1e89-4fe4-85d4-a74e8560939d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c9e0d985-80b3-435b-84c0-b6e9f6f43301'] 2024-09-17 10:32:47,776 - WARNING - Deleting VN ctest-vn-28305379 failed..Will retry 2024-09-17 10:32:49,892 - DEBUG - Response for deleting network () 2024-09-17 10:32:49,892 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9918d5c2-57a7-4716-b1b9-b2c4af52d32e 2024-09-17 10:32:49,899 - DEBUG - Response Code: 404 2024-09-17 10:32:49,899 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:49,911 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43 2024-09-17 10:32:49,972 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:50,073 - INFO - Validated that VN ctest-vn-28305379 is not found in API Server 2024-09-17 10:32:50,085 - DEBUG - VN ctest-vn-28305379 is not present in Agent 10.0.0.29 2024-09-17 10:32:50,086 - INFO - Validated that VN ctest-vn-28305379 is not in any agent 2024-09-17 10:32:50,104 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28305379 info 2024-09-17 10:32:50,104 - INFO - Deleting VN ctest-vn-16521661 2024-09-17 10:32:50,236 - DEBUG - Response for deleting network () 2024-09-17 10:32:50,236 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/08970342-630b-4fb4-9fbe-667593b50935 2024-09-17 10:32:50,243 - DEBUG - Response Code: 404 2024-09-17 10:32:50,243 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 10:32:50,252 - DEBUG - Requesting: http://10.0.0.29:8082/domain/57cc4c2d-e16e-49b4-8108-54fb901d5c43 2024-09-17 10:32:50,309 - DEBUG - Requesting: http://10.0.0.29:8082/project/1cbb7c08-3a45-4558-acb7-7ce26810b01c 2024-09-17 10:32:50,398 - INFO - Validated that VN ctest-vn-16521661 is not found in API Server 2024-09-17 10:32:50,410 - DEBUG - VN ctest-vn-16521661 is not present in Agent 10.0.0.29 2024-09-17 10:32:50,410 - INFO - Validated that VN ctest-vn-16521661 is not in any agent 2024-09-17 10:32:50,431 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16521661 info 2024-09-17 10:32:50,689 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 10:32:50,689 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-17 10:32:50,689 - INFO - -------------------------------------------------------------------------------- 2024-09-17 10:32:51,435 - INFO - Deleted project: ctest-TestBasicPolicy-99308268, ID : 1cbb7c08-3a45-4558-acb7-7ce26810b01c