2024-09-17 16:28:13,036 - INFO - Domain Default found not creating 2024-09-17 16:28:13,229 - INFO - Project ctest-TestBasicPolicy-98532259 not found, creating it 2024-09-17 16:28:13,756 - INFO - Created Project:ctest-TestBasicPolicy-98532259, ID : af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:15,493 - INFO - ================================================================================ 2024-09-17 16:28:15,493 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 16:28:15,493 - 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 16:28:15,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.24': '0'}} with 2024-09-17 16:28:15,748 - INFO - Initial checks done. Running the testcase now 2024-09-17 16:28:15,748 - INFO - 2024-09-17 16:28:16,442 - DEBUG - Response for create_network : {'network': {'id': '72a2db93-98e2-4ef4-b364-3957697562ac', 'name': 'ctest-vn-12908504', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-12908504'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:28:16,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '0597745e-f439-4337-bc06-e3987864818d', 'name': '', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'network_id': '72a2db93-98e2-4ef4-b364-3957697562ac', 'ip_version': 4, 'cidr': '220.175.40.128/26', 'allocation_pools': [{'start': '220.175.40.130', 'end': '220.175.40.190'}], 'gateway_ip': '220.175.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.175.40.130', 'tags': [], 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f'}} 2024-09-17 16:28:16,656 - INFO - Created VN ctest-vn-12908504 2024-09-17 16:28:16,718 - DEBUG - VN ctest-vn-12908504 UUID is 72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:17,149 - DEBUG - Response for create_network : {'network': {'id': '142f8d51-74c5-4dad-be46-762bb9ae5a09', 'name': 'ctest-vn-97472893', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-97472893'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:28:17,345 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f361eff1-2767-44d6-bf86-5130dbfadef2', 'name': '', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'network_id': '142f8d51-74c5-4dad-be46-762bb9ae5a09', 'ip_version': 4, 'cidr': '215.222.123.0/26', 'allocation_pools': [{'start': '215.222.123.2', 'end': '215.222.123.62'}], 'gateway_ip': '215.222.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.222.123.2', 'tags': [], 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f'}} 2024-09-17 16:28:17,371 - INFO - Created VN ctest-vn-97472893 2024-09-17 16:28:17,430 - DEBUG - VN ctest-vn-97472893 UUID is 142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:17,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504, 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-98532259:ctest-vn-97472893, 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 16:28:17,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72a2db93-98e2-4ef4-b364-3957697562ac', 'name': 'ctest-vn-12908504', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0597745e-f439-4337-bc06-e3987864818d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-12908504'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738']], 'subnet_ipam': [{'subnet_cidr': '220.175.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:28:18,163 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '142f8d51-74c5-4dad-be46-762bb9ae5a09', 'name': 'ctest-vn-97472893', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f361eff1-2767-44d6-bf86-5130dbfadef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-97472893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738']], 'subnet_ipam': [{'subnet_cidr': '215.222.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 16:28:18,338 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:18,695 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:18,731 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162 2024-09-17 16:28:18,749 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:18,841 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:18,859 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:18,877 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8 2024-09-17 16:28:18,890 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8 2024-09-17 16:28:18,903 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/bb11eb28-d431-4947-8a95-c3a97504a146 2024-09-17 16:28:18,914 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 16:28:18,914 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:18,930 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8 2024-09-17 16:28:18,958 - INFO - Verified VN network id 8 for VN 72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:18,958 - INFO - Verifications in API Server for VN ctest-vn-12908504 passed 2024-09-17 16:28:18,958 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:18,986 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8 2024-09-17 16:28:19,000 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8 2024-09-17 16:28:19,015 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/bb11eb28-d431-4947-8a95-c3a97504a146 2024-09-17 16:28:19,034 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98532259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8260406093522554612', 'uuid-lslong': '12926519878054404780'}, 'enable': 'true', 'created': '2024-09-17T16:28:16', 'last-modified': '2024-09-17T16:28:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.165242'} 2024-09-17 16:28:19,044 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 16:28:19,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12908504 passed 2024-09-17 16:28:19,044 - DEBUG - ====Verifying policy data for ctest-vn-12908504 in API_Server ====== 2024-09-17 16:28:19,044 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:19,052 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162 2024-09-17 16:28:19,074 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:19,156 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac 2024-09-17 16:28:19,171 - DEBUG - ==>Verifying data for policy with id: 8caeb62e-306b-4e2b-9223-07a28e735a5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738'] 2024-09-17 16:28:19,171 - INFO - VN ctest-vn-12908504 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 16:28:19,171 - DEBUG - Verifying the vn in opserver 2024-09-17 16:28:19,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504 virtual network link through opserver 10.0.0.59 2024-09-17 16:28:19,172 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2024-09-17 16:28:19,515 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2024-09-17 16:28:19,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504?flat'} 2024-09-17 16:28:19,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504 is found in opserver 2024-09-17 16:28:19,604 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 16:28:19,610 - DEBUG - VRF ids for VN ctest-vn-12908504: {} 2024-09-17 16:28:19,610 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:19,617 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162 2024-09-17 16:28:19,632 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:19,719 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:19,738 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:19,755 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88 2024-09-17 16:28:19,765 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88 2024-09-17 16:28:19,775 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/e8e14a3e-a3df-40c2-8b18-c9a279a6e905 2024-09-17 16:28:19,784 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 16:28:19,784 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:19,803 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88 2024-09-17 16:28:19,830 - INFO - Verified VN network id 9 for VN 142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:19,830 - INFO - Verifications in API Server for VN ctest-vn-97472893 passed 2024-09-17 16:28:19,830 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:19,845 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88 2024-09-17 16:28:19,855 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88 2024-09-17 16:28:19,864 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/e8e14a3e-a3df-40c2-8b18-c9a279a6e905 2024-09-17 16:28:19,882 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98532259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1454536585654914477', 'uuid-lslong': '13710776045746936329'}, 'enable': 'true', 'created': '2024-09-17T16:28:17', 'last-modified': '2024-09-17T16:28:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.747244'} 2024-09-17 16:28:19,891 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 16:28:19,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97472893 passed 2024-09-17 16:28:19,892 - DEBUG - ====Verifying policy data for ctest-vn-97472893 in API_Server ====== 2024-09-17 16:28:19,892 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:19,899 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162 2024-09-17 16:28:19,919 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:20,010 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09 2024-09-17 16:28:20,027 - DEBUG - ==>Verifying data for policy with id: 8caeb62e-306b-4e2b-9223-07a28e735a5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738'] 2024-09-17 16:28:20,028 - INFO - VN ctest-vn-97472893 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 16:28:20,028 - DEBUG - Verifying the vn in opserver 2024-09-17 16:28:20,028 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893 virtual network link through opserver 10.0.0.59 2024-09-17 16:28:20,028 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2024-09-17 16:28:20,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893?flat'} 2024-09-17 16:28:20,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893 is found in opserver 2024-09-17 16:28:20,056 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 16:28:20,062 - DEBUG - VRF ids for VN ctest-vn-97472893: {} 2024-09-17 16:28:20,134 - DEBUG - Services list from nova: [, , ] 2024-09-17 16:28:21,324 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1965-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1965-1) 2024-09-17 16:28:22,729 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1965-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1965-1) 2024-09-17 16:28:22,729 - INFO - Waiting for VM ctest-TestBasicPolicy-98532259-53498645 to be up.. 2024-09-17 16:28:22,825 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 16:28:27,935 - DEBUG - VM is in ACTIVE state now 2024-09-17 16:28:27,936 - INFO - VM name : ctest-TestBasicPolicy-98532259-53498645 2024-09-17 16:28:28,024 - DEBUG - VM ctest-TestBasicPolicy-98532259-53498645 ID is 8a3deda1-8cfb-47c4-a896-adbc3a0e3aaa 2024-09-17 16:28:28,044 - DEBUG - VM ctest-TestBasicPolicy-98532259-53498645 launched on Node cn-jenkins-deploy-platform-ansible-os-1965-1 2024-09-17 16:28:28,132 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/8a3deda1-8cfb-47c4-a896-adbc3a0e3aaa 2024-09-17 16:28:28,143 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/dcba5322-1699-4267-8c67-4b02268551c3 2024-09-17 16:28:31,421 - 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 1014ms') 2024-09-17 16:28:31,421 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98532259-53498645 failed! 2024-09-17 16:28:31,494 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504 is 220.175.40.129 and allocation pool is NOT set 2024-09-17 16:28:33,558 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.663 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.663/5.075/9.488/4.412 ms') 2024-09-17 16:28:33,558 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98532259-53498645 passed 2024-09-17 16:28:33,718 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:28:33,718 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98532259-53498645, IP 220.175.40.131, Port 22 2024-09-17 16:28:33,883 - DEBUG - VM ctest-TestBasicPolicy-98532259-53498645 is ready for SSH connections 2024-09-17 16:28:33,883 - INFO - Waiting for VM ctest-TestBasicPolicy-98532259-24349130 to be up.. 2024-09-17 16:28:33,980 - DEBUG - VM is in ACTIVE state now 2024-09-17 16:28:33,980 - INFO - VM name : ctest-TestBasicPolicy-98532259-24349130 2024-09-17 16:28:34,068 - DEBUG - VM ctest-TestBasicPolicy-98532259-24349130 ID is 5a6db61c-912b-47cb-831f-6d19d02abe1e 2024-09-17 16:28:34,068 - DEBUG - VM ctest-TestBasicPolicy-98532259-24349130 launched on Node cn-jenkins-deploy-platform-ansible-os-1965-1 2024-09-17 16:28:34,155 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/5a6db61c-912b-47cb-831f-6d19d02abe1e 2024-09-17 16:28:34,166 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/9788d188-407f-41b8-ae30-aac9b0d4ce97 2024-09-17 16:28:35,431 - 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.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.05 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.050/3.471/3.892/0.421 ms') 2024-09-17 16:28:35,431 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98532259-24349130 passed 2024-09-17 16:28:35,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:28:35,594 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98532259-24349130, IP 215.222.123.3, Port 22 2024-09-17 16:28:35,764 - DEBUG - VM ctest-TestBasicPolicy-98532259-24349130 is ready for SSH connections 2024-09-17 16:28:35,764 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:28:35,764 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 215.222.123.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2024-09-17 16:28:35,764 - DEBUG - ping -s 56 -c 3 -W 1 215.222.123.3 2024-09-17 16:28:39,501 - DEBUG - PING 215.222.123.3 (215.222.123.3): 56 data bytes 64 bytes from 215.222.123.3: seq=0 ttl=63 time=3.739 ms 64 bytes from 215.222.123.3: seq=1 ttl=63 time=0.938 ms 64 bytes from 215.222.123.3: seq=2 ttl=63 time=0.907 ms --- 215.222.123.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.907/1.861/3.739 ms 2024-09-17 16:28:39,501 - INFO - Ping to IP 215.222.123.3 from VM ctest-TestBasicPolicy-98532259-53498645 passed 2024-09-17 16:28:39,705 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8caeb62e-306b-4e2b-9223-07a28e735a5c", "href": "http://10.0.0.59:8082/network-policy/8caeb62e-306b-4e2b-9223-07a28e735a5c"}} 2024-09-17 16:28:39,706 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 16:28:39,706 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 215.222.123.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2024-09-17 16:28:39,706 - DEBUG - ping -s 56 -c 3 -W 1 215.222.123.3 2024-09-17 16:28:42,941 - DEBUG - PING 215.222.123.3 (215.222.123.3): 56 data bytes 64 bytes from 215.222.123.3: seq=0 ttl=63 time=2.156 ms --- 215.222.123.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.156/2.156/2.156 ms 2024-09-17 16:28:42,941 - WARNING - Ping to IP 215.222.123.3 from VM ctest-TestBasicPolicy-98532259-53498645 failed 2024-09-17 16:28:42,941 - INFO - Deleting VM ctest-TestBasicPolicy-98532259-24349130 2024-09-17 16:28:43,008 - INFO - Deleting VM ctest-TestBasicPolicy-98532259-53498645 2024-09-17 16:28:43,489 - INFO - Deleted policy ctest-policy-allow-all-20181738 2024-09-17 16:28:43,489 - INFO - Deleting VN ctest-vn-97472893 2024-09-17 16:28:43,546 - DEBUG - VN 142f8d51-74c5-4dad-be46-762bb9ae5a09 still in use: Unable to complete operation on network 142f8d51-74c5-4dad-be46-762bb9ae5a09. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dccd92f5-839f-4e34-81dd-7e3ad8c2004c'] 2024-09-17 16:28:43,546 - WARNING - Deleting VN ctest-vn-97472893 failed..Will retry 2024-09-17 16:28:45,687 - DEBUG - Response for deleting network () 2024-09-17 16:28:45,687 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88 2024-09-17 16:28:45,698 - DEBUG - Response Code: 404 2024-09-17 16:28:45,698 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:45,704 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162 2024-09-17 16:28:45,762 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:45,845 - INFO - Validated that VN ctest-vn-97472893 is not found in API Server 2024-09-17 16:28:45,857 - DEBUG - VN ctest-vn-97472893 is not present in Agent 10.0.0.59 2024-09-17 16:28:45,857 - INFO - Validated that VN ctest-vn-97472893 is not in any agent 2024-09-17 16:28:45,875 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97472893 info 2024-09-17 16:28:45,875 - INFO - Deleting VN ctest-vn-12908504 2024-09-17 16:28:45,991 - DEBUG - Response for deleting network () 2024-09-17 16:28:45,991 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8 2024-09-17 16:28:45,999 - DEBUG - Response Code: 404 2024-09-17 16:28:45,999 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-09-17 16:28:46,006 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162 2024-09-17 16:28:46,066 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f 2024-09-17 16:28:46,163 - INFO - Validated that VN ctest-vn-12908504 is not found in API Server 2024-09-17 16:28:46,176 - DEBUG - VN ctest-vn-12908504 is not present in Agent 10.0.0.59 2024-09-17 16:28:46,176 - INFO - Validated that VN ctest-vn-12908504 is not in any agent 2024-09-17 16:28:46,196 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12908504 info 2024-09-17 16:28:46,456 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 16:28:46,456 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-17 16:28:46,456 - INFO - -------------------------------------------------------------------------------- 2024-09-17 16:28:47,203 - INFO - Deleted project: ctest-TestBasicPolicy-98532259, ID : af7eea39-9103-4f81-bfc1-45a20eaa2f4f