2024-08-21 18:57:00,790 - INFO - Domain Default found not creating 2024-08-21 18:57:00,949 - INFO - Project ctest-TestBasicPolicy-58069638 not found, creating it 2024-08-21 18:57:01,434 - INFO - Created Project:ctest-TestBasicPolicy-58069638, ID : 5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:02,949 - INFO - ================================================================================ 2024-08-21 18:57:02,949 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 18:57:02,949 - 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-08-21 18:57:03,205 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.5': '0'}} with 2024-08-21 18:57:03,205 - INFO - Initial checks done. Running the testcase now 2024-08-21 18:57:03,206 - INFO - 2024-08-21 18:57:03,789 - DEBUG - Response for create_network : {'network': {'id': '76a3e888-a8fe-4493-ad8b-69e90839fb3c', 'name': 'ctest-vn-44892047', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-44892047'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:57:03,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7fc88e-12a7-484b-b196-70057f92bcda', 'name': '', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'network_id': '76a3e888-a8fe-4493-ad8b-69e90839fb3c', 'ip_version': 4, 'cidr': '84.176.36.128/26', 'allocation_pools': [{'start': '84.176.36.130', 'end': '84.176.36.190'}], 'gateway_ip': '84.176.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.176.36.130', 'tags': [], 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd'}} 2024-08-21 18:57:04,008 - INFO - Created VN ctest-vn-44892047 2024-08-21 18:57:04,060 - DEBUG - VN ctest-vn-44892047 UUID is 76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:04,355 - DEBUG - Response for create_network : {'network': {'id': '6a2fc8d6-0c65-4f22-9a77-32ea8dc42019', 'name': 'ctest-vn-14582809', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-14582809'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:57:04,520 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e66c0dc0-430f-4b20-8644-41003b98a0fd', 'name': '', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'network_id': '6a2fc8d6-0c65-4f22-9a77-32ea8dc42019', 'ip_version': 4, 'cidr': '62.66.167.64/26', 'allocation_pools': [{'start': '62.66.167.66', 'end': '62.66.167.126'}], 'gateway_ip': '62.66.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.66.167.66', 'tags': [], 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd'}} 2024-08-21 18:57:04,539 - INFO - Created VN ctest-vn-14582809 2024-08-21 18:57:04,588 - DEBUG - VN ctest-vn-14582809 UUID is 6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:04,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047, 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-58069638:ctest-vn-14582809, 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-08-21 18:57:04,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76a3e888-a8fe-4493-ad8b-69e90839fb3c', 'name': 'ctest-vn-44892047', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e7fc88e-12a7-484b-b196-70057f92bcda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-44892047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820']], 'subnet_ipam': [{'subnet_cidr': '84.176.36.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:57:05,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a2fc8d6-0c65-4f22-9a77-32ea8dc42019', 'name': 'ctest-vn-14582809', 'tenant_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'project_id': '5ed2c1fd31c84daca8b68e378d19f8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e66c0dc0-430f-4b20-8644-41003b98a0fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-vn-14582809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820']], 'subnet_ipam': [{'subnet_cidr': '62.66.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:57:05,424 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:05,723 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:05,755 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9 2024-08-21 18:57:05,770 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:05,841 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:05,850 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:05,858 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a 2024-08-21 18:57:05,864 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a 2024-08-21 18:57:05,869 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/ddac1292-a776-464b-94a1-3de92a378b9f 2024-08-21 18:57:05,876 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 18:57:05,876 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:05,883 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a 2024-08-21 18:57:05,895 - INFO - Verified VN network id 9 for VN 76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:05,896 - INFO - Verifications in API Server for VN ctest-vn-44892047 passed 2024-08-21 18:57:05,896 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:05,905 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a 2024-08-21 18:57:05,912 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a 2024-08-21 18:57:05,919 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/ddac1292-a776-464b-94a1-3de92a378b9f 2024-08-21 18:57:05,930 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58069638', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8548932191327765651', 'uuid-lslong': '12505205239910628156'}, 'enable': 'true', 'created': '2024-08-21T18:57:03', 'last-modified': '2024-08-21T18:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952169'} 2024-08-21 18:57:05,937 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 18:57:05,937 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44892047 passed 2024-08-21 18:57:05,937 - DEBUG - ====Verifying policy data for ctest-vn-44892047 in API_Server ====== 2024-08-21 18:57:05,937 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:05,942 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9 2024-08-21 18:57:05,953 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:06,025 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/76a3e888-a8fe-4493-ad8b-69e90839fb3c 2024-08-21 18:57:06,044 - DEBUG - ==>Verifying data for policy with id: 2f0139a7-26ab-4b75-b620-1f35ea86557f, fqn: ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820'] 2024-08-21 18:57:06,044 - INFO - VN ctest-vn-44892047 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 18:57:06,044 - DEBUG - Verifying the vn in opserver 2024-08-21 18:57:06,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047 virtual network link through opserver 10.0.0.55 2024-08-21 18:57:06,045 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2024-08-21 18:57:06,343 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2024-08-21 18:57:06,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047?flat'} 2024-08-21 18:57:06,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047 is found in opserver 2024-08-21 18:57:06,413 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 18:57:06,417 - DEBUG - VRF ids for VN ctest-vn-44892047: {} 2024-08-21 18:57:06,418 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:06,423 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9 2024-08-21 18:57:06,435 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:06,503 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:06,514 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:06,521 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458 2024-08-21 18:57:06,528 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458 2024-08-21 18:57:06,534 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/f06fefb1-acdf-4d24-99b9-557e4f63626a 2024-08-21 18:57:06,540 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 18:57:06,540 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:06,547 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458 2024-08-21 18:57:06,559 - INFO - Verified VN network id 10 for VN 6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:06,559 - INFO - Verifications in API Server for VN ctest-vn-14582809 passed 2024-08-21 18:57:06,559 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:06,566 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458 2024-08-21 18:57:06,572 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458 2024-08-21 18:57:06,578 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/f06fefb1-acdf-4d24-99b9-557e4f63626a 2024-08-21 18:57:06,590 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58069638', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7651555113582284578', 'uuid-lslong': '11130420987051647001'}, 'enable': 'true', 'created': '2024-08-21T18:57:04', 'last-modified': '2024-08-21T18:57:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363961'} 2024-08-21 18:57:06,596 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 18:57:06,596 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14582809 passed 2024-08-21 18:57:06,596 - DEBUG - ====Verifying policy data for ctest-vn-14582809 in API_Server ====== 2024-08-21 18:57:06,597 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:06,602 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9 2024-08-21 18:57:06,613 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:06,683 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 2024-08-21 18:57:06,691 - DEBUG - ==>Verifying data for policy with id: 2f0139a7-26ab-4b75-b620-1f35ea86557f, fqn: ['default-domain', 'ctest-TestBasicPolicy-58069638', 'ctest-policy-allow-all-99903820'] 2024-08-21 18:57:06,691 - INFO - VN ctest-vn-14582809 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 18:57:06,691 - DEBUG - Verifying the vn in opserver 2024-08-21 18:57:06,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809 virtual network link through opserver 10.0.0.55 2024-08-21 18:57:06,691 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2024-08-21 18:57:06,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809?flat'} 2024-08-21 18:57:06,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-14582809 is found in opserver 2024-08-21 18:57:06,712 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 18:57:06,717 - DEBUG - VRF ids for VN ctest-vn-14582809: {} 2024-08-21 18:57:06,772 - DEBUG - Services list from nova: [, , ] 2024-08-21 18:57:07,785 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1697-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1697-1) 2024-08-21 18:57:09,008 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1697-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1697-1) 2024-08-21 18:57:09,008 - INFO - Waiting for VM ctest-TestBasicPolicy-58069638-72949097 to be up.. 2024-08-21 18:57:09,092 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 18:57:14,174 - DEBUG - VM is in ACTIVE state now 2024-08-21 18:57:14,174 - INFO - VM name : ctest-TestBasicPolicy-58069638-72949097 2024-08-21 18:57:14,257 - DEBUG - VM ctest-TestBasicPolicy-58069638-72949097 ID is 8eda5646-98ca-4f4b-8192-c405c48a9419 2024-08-21 18:57:14,278 - DEBUG - VM ctest-TestBasicPolicy-58069638-72949097 launched on Node cn-jenkins-deploy-platform-ansible-os-1697-1 2024-08-21 18:57:14,357 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/8eda5646-98ca-4f4b-8192-c405c48a9419 2024-08-21 18:57:14,366 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/3f1ed04a-9891-484c-ae05-9cbd5cdf2371 2024-08-21 18:57:17,615 - 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 1019ms') 2024-08-21 18:57:17,615 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58069638-72949097 failed! 2024-08-21 18:57:17,676 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58069638:ctest-vn-44892047 is 84.176.36.129 and allocation pool is NOT set 2024-08-21 18:57:19,742 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.824 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.824/2.463/4.102/1.639 ms') 2024-08-21 18:57:19,742 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58069638-72949097 passed 2024-08-21 18:57:19,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:57:19,892 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58069638-72949097, IP 84.176.36.131, Port 22 2024-08-21 18:57:20,047 - DEBUG - VM ctest-TestBasicPolicy-58069638-72949097 is ready for SSH connections 2024-08-21 18:57:20,047 - INFO - Waiting for VM ctest-TestBasicPolicy-58069638-30113790 to be up.. 2024-08-21 18:57:20,133 - DEBUG - VM is in ACTIVE state now 2024-08-21 18:57:20,134 - INFO - VM name : ctest-TestBasicPolicy-58069638-30113790 2024-08-21 18:57:20,210 - DEBUG - VM ctest-TestBasicPolicy-58069638-30113790 ID is 91e5d5e0-43ac-4c8b-ab29-7b2a065c043b 2024-08-21 18:57:20,210 - DEBUG - VM ctest-TestBasicPolicy-58069638-30113790 launched on Node cn-jenkins-deploy-platform-ansible-os-1697-1 2024-08-21 18:57:20,292 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/91e5d5e0-43ac-4c8b-ab29-7b2a065c043b 2024-08-21 18:57:20,302 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/dc517840-ae53-41ba-8b18-bf1ebe50c39d 2024-08-21 18:57:21,546 - 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=2.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.520 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.520/1.609/2.699/1.089 ms') 2024-08-21 18:57:21,546 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58069638-30113790 passed 2024-08-21 18:57:21,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:57:21,696 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58069638-30113790, IP 62.66.167.67, Port 22 2024-08-21 18:57:21,855 - DEBUG - VM ctest-TestBasicPolicy-58069638-30113790 is ready for SSH connections 2024-08-21 18:57:21,855 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:57:21,855 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.66.167.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2024-08-21 18:57:21,855 - DEBUG - ping -s 56 -c 3 -W 1 62.66.167.67 2024-08-21 18:57:25,513 - DEBUG - PING 62.66.167.67 (62.66.167.67): 56 data bytes 64 bytes from 62.66.167.67: seq=0 ttl=63 time=3.221 ms 64 bytes from 62.66.167.67: seq=1 ttl=63 time=0.994 ms 64 bytes from 62.66.167.67: seq=2 ttl=63 time=0.919 ms --- 62.66.167.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.919/1.711/3.221 ms 2024-08-21 18:57:25,513 - INFO - Ping to IP 62.66.167.67 from VM ctest-TestBasicPolicy-58069638-72949097 passed 2024-08-21 18:57:25,696 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2f0139a7-26ab-4b75-b620-1f35ea86557f", "href": "http://10.0.0.55:8082/network-policy/2f0139a7-26ab-4b75-b620-1f35ea86557f"}} 2024-08-21 18:57:25,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:57:25,696 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.66.167.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2024-08-21 18:57:25,696 - DEBUG - ping -s 56 -c 3 -W 1 62.66.167.67 2024-08-21 18:57:28,899 - DEBUG - PING 62.66.167.67 (62.66.167.67): 56 data bytes 64 bytes from 62.66.167.67: seq=0 ttl=63 time=1.751 ms --- 62.66.167.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.751/1.751/1.751 ms 2024-08-21 18:57:28,900 - WARNING - Ping to IP 62.66.167.67 from VM ctest-TestBasicPolicy-58069638-72949097 failed 2024-08-21 18:57:28,900 - INFO - Deleting VM ctest-TestBasicPolicy-58069638-30113790 2024-08-21 18:57:28,962 - INFO - Deleting VM ctest-TestBasicPolicy-58069638-72949097 2024-08-21 18:57:29,331 - INFO - Deleted policy ctest-policy-allow-all-99903820 2024-08-21 18:57:29,331 - INFO - Deleting VN ctest-vn-14582809 2024-08-21 18:57:29,365 - DEBUG - VN 6a2fc8d6-0c65-4f22-9a77-32ea8dc42019 still in use: Unable to complete operation on network 6a2fc8d6-0c65-4f22-9a77-32ea8dc42019. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3ca1e401-7add-494e-84c2-4ab779110f8e'] 2024-08-21 18:57:29,365 - WARNING - Deleting VN ctest-vn-14582809 failed..Will retry 2024-08-21 18:57:31,482 - DEBUG - Response for deleting network () 2024-08-21 18:57:31,482 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/98679fc3-14d4-4ef3-bd2a-6b5c6a654458 2024-08-21 18:57:31,487 - DEBUG - Response Code: 404 2024-08-21 18:57:31,487 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:31,493 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9 2024-08-21 18:57:31,546 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:31,617 - INFO - Validated that VN ctest-vn-14582809 is not found in API Server 2024-08-21 18:57:31,629 - DEBUG - VN ctest-vn-14582809 is not present in Agent 10.0.0.55 2024-08-21 18:57:31,629 - INFO - Validated that VN ctest-vn-14582809 is not in any agent 2024-08-21 18:57:31,645 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14582809 info 2024-08-21 18:57:31,645 - INFO - Deleting VN ctest-vn-44892047 2024-08-21 18:57:31,767 - DEBUG - Response for deleting network () 2024-08-21 18:57:31,767 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/6c58ad43-7289-4a2e-80f2-e974daf2879a 2024-08-21 18:57:31,773 - DEBUG - Response Code: 404 2024-08-21 18:57:31,773 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2024-08-21 18:57:31,782 - DEBUG - Requesting: http://10.0.0.55:8082/domain/8ce7fad6-ebae-4f5e-be79-040a5c67b5c9 2024-08-21 18:57:31,836 - DEBUG - Requesting: http://10.0.0.55:8082/project/5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd 2024-08-21 18:57:31,900 - INFO - Validated that VN ctest-vn-44892047 is not found in API Server 2024-08-21 18:57:31,911 - DEBUG - VN ctest-vn-44892047 is not present in Agent 10.0.0.55 2024-08-21 18:57:31,911 - INFO - Validated that VN ctest-vn-44892047 is not in any agent 2024-08-21 18:57:31,926 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44892047 info 2024-08-21 18:57:32,183 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 18:57:32,183 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-21 18:57:32,183 - INFO - -------------------------------------------------------------------------------- 2024-08-21 18:57:32,855 - INFO - Deleted project: ctest-TestBasicPolicy-58069638, ID : 5ed2c1fd-31c8-4dac-a8b6-8e378d19f8fd