2024-09-14 02:59:02,624 - INFO - Domain Default found not creating 2024-09-14 02:59:02,774 - INFO - Project ctest-TestBasicPolicy-89940860 not found, creating it 2024-09-14 02:59:03,251 - INFO - Created Project:ctest-TestBasicPolicy-89940860, ID : 0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:04,706 - INFO - ================================================================================ 2024-09-14 02:59:04,706 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-14 02:59:04,706 - 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-14 02:59:04,963 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.33': '0'}} with 2024-09-14 02:59:04,964 - INFO - Initial checks done. Running the testcase now 2024-09-14 02:59:04,964 - INFO - 2024-09-14 02:59:05,515 - DEBUG - Response for create_network : {'network': {'id': 'd8bbdc4f-8bb2-4cff-a747-25acd2e34051', 'name': 'ctest-vn-91114539', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-91114539'], 'port_security_enabled': True, 'description': ''}} 2024-09-14 02:59:05,689 - DEBUG - Response for create_subnet : {'subnet': {'id': '6aea176d-95b8-44ab-93b0-e0fb1dbd6488', 'name': '', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'network_id': 'd8bbdc4f-8bb2-4cff-a747-25acd2e34051', 'ip_version': 4, 'cidr': '203.157.244.128/26', 'allocation_pools': [{'start': '203.157.244.130', 'end': '203.157.244.190'}], 'gateway_ip': '203.157.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.157.244.130', 'tags': [], 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4'}} 2024-09-14 02:59:05,708 - INFO - Created VN ctest-vn-91114539 2024-09-14 02:59:05,763 - DEBUG - VN ctest-vn-91114539 UUID is d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:06,069 - DEBUG - Response for create_network : {'network': {'id': '9d1115c4-da7a-4302-946c-a9977c806e60', 'name': 'ctest-vn-37727294', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-37727294'], 'port_security_enabled': True, 'description': ''}} 2024-09-14 02:59:06,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '63f542cb-8c39-4789-8bb0-34a1ddb00596', 'name': '', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'network_id': '9d1115c4-da7a-4302-946c-a9977c806e60', 'ip_version': 4, 'cidr': '142.12.10.128/26', 'allocation_pools': [{'start': '142.12.10.130', 'end': '142.12.10.190'}], 'gateway_ip': '142.12.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.12.10.130', 'tags': [], 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4'}} 2024-09-14 02:59:06,309 - INFO - Created VN ctest-vn-37727294 2024-09-14 02:59:06,367 - DEBUG - VN ctest-vn-37727294 UUID is 9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:06,527 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539, 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-89940860:ctest-vn-37727294, 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-14 02:59:06,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8bbdc4f-8bb2-4cff-a747-25acd2e34051', 'name': 'ctest-vn-91114539', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6aea176d-95b8-44ab-93b0-e0fb1dbd6488'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-91114539'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262']], 'subnet_ipam': [{'subnet_cidr': '203.157.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-14 02:59:07,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d1115c4-da7a-4302-946c-a9977c806e60', 'name': 'ctest-vn-37727294', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63f542cb-8c39-4789-8bb0-34a1ddb00596'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-37727294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262']], 'subnet_ipam': [{'subnet_cidr': '142.12.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-14 02:59:07,255 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:07,551 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:07,583 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1 2024-09-14 02:59:07,597 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:07,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:07,697 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:07,709 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff 2024-09-14 02:59:07,718 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff 2024-09-14 02:59:07,725 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a40a61b3-33a7-4be7-8d2f-ad2f4f57a905 2024-09-14 02:59:07,732 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-14 02:59:07,732 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:07,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff 2024-09-14 02:59:07,762 - INFO - Verified VN network id 9 for VN d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:07,762 - INFO - Verifications in API Server for VN ctest-vn-91114539 passed 2024-09-14 02:59:07,762 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:07,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff 2024-09-14 02:59:07,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff 2024-09-14 02:59:07,790 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a40a61b3-33a7-4be7-8d2f-ad2f4f57a905 2024-09-14 02:59:07,803 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89940860', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15617318367041572095', 'uuid-lslong': '12053644351883133009'}, 'enable': 'true', 'created': '2024-09-14T02:59:05', 'last-modified': '2024-09-14T02:59:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988004'} 2024-09-14 02:59:07,809 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-14 02:59:07,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91114539 passed 2024-09-14 02:59:07,809 - DEBUG - ====Verifying policy data for ctest-vn-91114539 in API_Server ====== 2024-09-14 02:59:07,809 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:07,814 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1 2024-09-14 02:59:07,826 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:07,912 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051 2024-09-14 02:59:07,926 - DEBUG - ==>Verifying data for policy with id: b88e34b5-791b-4d12-a8ae-46e37499e7dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262'] 2024-09-14 02:59:07,926 - INFO - VN ctest-vn-91114539 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-14 02:59:07,927 - DEBUG - Verifying the vn in opserver 2024-09-14 02:59:07,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539 virtual network link through opserver 10.0.0.38 2024-09-14 02:59:07,927 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-09-14 02:59:08,218 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-09-14 02:59:08,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539?flat'} 2024-09-14 02:59:08,274 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539 is found in opserver 2024-09-14 02:59:08,284 - DEBUG - Do not have enough data to verify VN in agent 2024-09-14 02:59:08,289 - DEBUG - VRF ids for VN ctest-vn-91114539: {} 2024-09-14 02:59:08,289 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:08,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1 2024-09-14 02:59:08,306 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:08,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:08,398 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:08,412 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da 2024-09-14 02:59:08,420 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da 2024-09-14 02:59:08,427 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/07508b86-9336-4380-9f1f-667821bff725 2024-09-14 02:59:08,433 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-14 02:59:08,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:08,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da 2024-09-14 02:59:08,463 - INFO - Verified VN network id 10 for VN 9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:08,463 - INFO - Verifications in API Server for VN ctest-vn-37727294 passed 2024-09-14 02:59:08,463 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:08,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da 2024-09-14 02:59:08,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da 2024-09-14 02:59:08,491 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/07508b86-9336-4380-9f1f-667821bff725 2024-09-14 02:59:08,502 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89940860', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11317851273781986050', 'uuid-lslong': '10695109683192032864'}, 'enable': 'true', 'created': '2024-09-14T02:59:06', 'last-modified': '2024-09-14T02:59:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444224'} 2024-09-14 02:59:08,508 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-14 02:59:08,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37727294 passed 2024-09-14 02:59:08,508 - DEBUG - ====Verifying policy data for ctest-vn-37727294 in API_Server ====== 2024-09-14 02:59:08,508 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:08,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1 2024-09-14 02:59:08,525 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:08,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60 2024-09-14 02:59:08,624 - DEBUG - ==>Verifying data for policy with id: b88e34b5-791b-4d12-a8ae-46e37499e7dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262'] 2024-09-14 02:59:08,624 - INFO - VN ctest-vn-37727294 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-14 02:59:08,624 - DEBUG - Verifying the vn in opserver 2024-09-14 02:59:08,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294 virtual network link through opserver 10.0.0.38 2024-09-14 02:59:08,625 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-09-14 02:59:08,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294?flat'} 2024-09-14 02:59:08,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294 is found in opserver 2024-09-14 02:59:08,645 - DEBUG - Do not have enough data to verify VN in agent 2024-09-14 02:59:08,650 - DEBUG - VRF ids for VN ctest-vn-37727294: {} 2024-09-14 02:59:08,703 - DEBUG - Services list from nova: [, , ] 2024-09-14 02:59:09,693 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1934-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1934-1) 2024-09-14 02:59:10,898 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1934-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1934-1) 2024-09-14 02:59:10,900 - INFO - Waiting for VM ctest-TestBasicPolicy-89940860-47760480 to be up.. 2024-09-14 02:59:10,988 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-14 02:59:16,066 - DEBUG - VM is in ACTIVE state now 2024-09-14 02:59:16,066 - INFO - VM name : ctest-TestBasicPolicy-89940860-47760480 2024-09-14 02:59:16,143 - DEBUG - VM ctest-TestBasicPolicy-89940860-47760480 ID is 4b256e34-dd58-46d7-b97b-c4efe4c24bdb 2024-09-14 02:59:16,160 - DEBUG - VM ctest-TestBasicPolicy-89940860-47760480 launched on Node cn-jenkins-deploy-platform-ansible-os-1934-1 2024-09-14 02:59:16,234 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/4b256e34-dd58-46d7-b97b-c4efe4c24bdb 2024-09-14 02:59:16,244 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3802bc5a-271e-4822-be7f-33585cf5886d 2024-09-14 02:59:19,519 - 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 1032ms') 2024-09-14 02:59:19,519 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89940860-47760480 failed! 2024-09-14 02:59:19,583 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539 is 203.157.244.129 and allocation pool is NOT set 2024-09-14 02:59:21,650 - 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=2.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.363 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.363/1.516/2.670/1.153 ms') 2024-09-14 02:59:21,650 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89940860-47760480 passed 2024-09-14 02:59:21,807 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-14 02:59:21,807 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89940860-47760480, IP 203.157.244.131, Port 22 2024-09-14 02:59:21,958 - DEBUG - VM ctest-TestBasicPolicy-89940860-47760480 is ready for SSH connections 2024-09-14 02:59:21,959 - INFO - Waiting for VM ctest-TestBasicPolicy-89940860-01372225 to be up.. 2024-09-14 02:59:22,036 - DEBUG - VM is in ACTIVE state now 2024-09-14 02:59:22,037 - INFO - VM name : ctest-TestBasicPolicy-89940860-01372225 2024-09-14 02:59:22,110 - DEBUG - VM ctest-TestBasicPolicy-89940860-01372225 ID is c438f699-9754-46fd-abbb-28c33d37cb63 2024-09-14 02:59:22,110 - DEBUG - VM ctest-TestBasicPolicy-89940860-01372225 launched on Node cn-jenkins-deploy-platform-ansible-os-1934-1 2024-09-14 02:59:22,191 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c438f699-9754-46fd-abbb-28c33d37cb63 2024-09-14 02:59:22,201 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7edf52d3-fadc-4548-9979-f34281d46e6c 2024-09-14 02:59:23,442 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.358 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.358/1.786/3.215/1.428 ms') 2024-09-14 02:59:23,442 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89940860-01372225 passed 2024-09-14 02:59:23,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-14 02:59:23,599 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89940860-01372225, IP 142.12.10.131, Port 22 2024-09-14 02:59:23,755 - DEBUG - VM ctest-TestBasicPolicy-89940860-01372225 is ready for SSH connections 2024-09-14 02:59:23,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-14 02:59:23,755 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.12.10.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-14 02:59:23,755 - DEBUG - ping -s 56 -c 3 -W 1 142.12.10.131 2024-09-14 02:59:27,421 - DEBUG - PING 142.12.10.131 (142.12.10.131): 56 data bytes 64 bytes from 142.12.10.131: seq=0 ttl=63 time=3.272 ms 64 bytes from 142.12.10.131: seq=1 ttl=63 time=0.840 ms 64 bytes from 142.12.10.131: seq=2 ttl=63 time=0.803 ms --- 142.12.10.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.803/1.638/3.272 ms 2024-09-14 02:59:27,421 - INFO - Ping to IP 142.12.10.131 from VM ctest-TestBasicPolicy-89940860-47760480 passed 2024-09-14 02:59:27,603 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b88e34b5-791b-4d12-a8ae-46e37499e7dc", "href": "http://10.0.0.38:8082/network-policy/b88e34b5-791b-4d12-a8ae-46e37499e7dc"}} 2024-09-14 02:59:27,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-14 02:59:27,603 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.12.10.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-09-14 02:59:27,603 - DEBUG - ping -s 56 -c 3 -W 1 142.12.10.131 2024-09-14 02:59:30,799 - DEBUG - PING 142.12.10.131 (142.12.10.131): 56 data bytes --- 142.12.10.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-14 02:59:30,799 - WARNING - Ping to IP 142.12.10.131 from VM ctest-TestBasicPolicy-89940860-47760480 failed 2024-09-14 02:59:30,799 - INFO - Deleting VM ctest-TestBasicPolicy-89940860-01372225 2024-09-14 02:59:30,860 - INFO - Deleting VM ctest-TestBasicPolicy-89940860-47760480 2024-09-14 02:59:31,237 - INFO - Deleted policy ctest-policy-allow-all-06644262 2024-09-14 02:59:31,237 - INFO - Deleting VN ctest-vn-37727294 2024-09-14 02:59:31,276 - DEBUG - VN 9d1115c4-da7a-4302-946c-a9977c806e60 still in use: Unable to complete operation on network 9d1115c4-da7a-4302-946c-a9977c806e60. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6454a32b-26a2-470f-9f7c-85271216b811'] 2024-09-14 02:59:31,276 - WARNING - Deleting VN ctest-vn-37727294 failed..Will retry 2024-09-14 02:59:33,371 - DEBUG - Response for deleting network () 2024-09-14 02:59:33,371 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da 2024-09-14 02:59:33,376 - DEBUG - Response Code: 404 2024-09-14 02:59:33,376 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:33,382 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1 2024-09-14 02:59:33,442 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:33,523 - INFO - Validated that VN ctest-vn-37727294 is not found in API Server 2024-09-14 02:59:33,535 - DEBUG - VN ctest-vn-37727294 is not present in Agent 10.0.0.38 2024-09-14 02:59:33,535 - INFO - Validated that VN ctest-vn-37727294 is not in any agent 2024-09-14 02:59:33,550 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37727294 info 2024-09-14 02:59:33,550 - INFO - Deleting VN ctest-vn-91114539 2024-09-14 02:59:33,658 - DEBUG - Response for deleting network () 2024-09-14 02:59:33,659 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff 2024-09-14 02:59:33,670 - DEBUG - Response Code: 404 2024-09-14 02:59:33,670 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-09-14 02:59:33,676 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1 2024-09-14 02:59:33,733 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4 2024-09-14 02:59:33,811 - INFO - Validated that VN ctest-vn-91114539 is not found in API Server 2024-09-14 02:59:33,821 - DEBUG - VN ctest-vn-91114539 is not present in Agent 10.0.0.38 2024-09-14 02:59:33,821 - INFO - Validated that VN ctest-vn-91114539 is not in any agent 2024-09-14 02:59:33,836 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91114539 info 2024-09-14 02:59:34,089 - DEBUG - No XMPP flaps were noticed during the test 2024-09-14 02:59:34,089 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-14 02:59:34,089 - INFO - -------------------------------------------------------------------------------- 2024-09-14 02:59:34,784 - INFO - Deleted project: ctest-TestBasicPolicy-89940860, ID : 0b4fc88f-28e0-4465-b6d7-d91ab2769cb4