2024-12-26 02:14:06,203 - INFO - Domain Default found not creating 2024-12-26 02:14:06,358 - INFO - Project ctest-TestBasicPolicy-60286922 not found, creating it 2024-12-26 02:14:06,832 - INFO - Created Project:ctest-TestBasicPolicy-60286922, ID : 39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:08,330 - INFO - ================================================================================ 2024-12-26 02:14:08,330 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-12-26 02:14:08,330 - 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-12-26 02:14:08,592 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.5': '0'}} with 2024-12-26 02:14:08,592 - INFO - Initial checks done. Running the testcase now 2024-12-26 02:14:08,592 - INFO - 2024-12-26 02:14:09,148 - DEBUG - Response for create_network : {'network': {'id': 'c3f350e9-7fbf-4667-83f2-7e6d4ac6886b', 'name': 'ctest-vn-61395334', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-61395334'], 'port_security_enabled': True, 'description': ''}} 2024-12-26 02:14:09,296 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8c91c57-4154-4693-89ec-ffe615bd60e8', 'name': '', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'network_id': 'c3f350e9-7fbf-4667-83f2-7e6d4ac6886b', 'ip_version': 4, 'cidr': '185.232.116.64/26', 'allocation_pools': [{'start': '185.232.116.66', 'end': '185.232.116.126'}], 'gateway_ip': '185.232.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.232.116.66', 'tags': [], 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc'}} 2024-12-26 02:14:09,314 - INFO - Created VN ctest-vn-61395334 2024-12-26 02:14:09,365 - DEBUG - VN ctest-vn-61395334 UUID is c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:09,672 - DEBUG - Response for create_network : {'network': {'id': '768d9c71-e5e6-41fd-bb33-59addd361b85', 'name': 'ctest-vn-60581205', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-60581205'], 'port_security_enabled': True, 'description': ''}} 2024-12-26 02:14:09,863 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c8bb865-2876-4556-8e33-00242e959b9b', 'name': '', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'network_id': '768d9c71-e5e6-41fd-bb33-59addd361b85', 'ip_version': 4, 'cidr': '32.63.226.128/26', 'allocation_pools': [{'start': '32.63.226.130', 'end': '32.63.226.190'}], 'gateway_ip': '32.63.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.63.226.130', 'tags': [], 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc'}} 2024-12-26 02:14:09,884 - INFO - Created VN ctest-vn-60581205 2024-12-26 02:14:09,933 - DEBUG - VN ctest-vn-60581205 UUID is 768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:10,052 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334, 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-60286922:ctest-vn-60581205, 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-12-26 02:14:10,360 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3f350e9-7fbf-4667-83f2-7e6d4ac6886b', 'name': 'ctest-vn-61395334', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8c91c57-4154-4693-89ec-ffe615bd60e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-61395334'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065']], 'subnet_ipam': [{'subnet_cidr': '185.232.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-26 02:14:10,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '768d9c71-e5e6-41fd-bb33-59addd361b85', 'name': 'ctest-vn-60581205', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c8bb865-2876-4556-8e33-00242e959b9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-60581205'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065']], 'subnet_ipam': [{'subnet_cidr': '32.63.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-26 02:14:10,757 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:11,061 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:11,096 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c 2024-12-26 02:14:11,110 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:11,185 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:11,194 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:11,202 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663 2024-12-26 02:14:11,211 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663 2024-12-26 02:14:11,219 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0df2cd68-2ff6-47c0-b755-dc879fadb14a 2024-12-26 02:14:11,226 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-26 02:14:11,226 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:11,235 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663 2024-12-26 02:14:11,247 - INFO - Verified VN network id 8 for VN c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:11,247 - INFO - Verifications in API Server for VN ctest-vn-61395334 passed 2024-12-26 02:14:11,247 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:11,258 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663 2024-12-26 02:14:11,266 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663 2024-12-26 02:14:11,274 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0df2cd68-2ff6-47c0-b755-dc879fadb14a 2024-12-26 02:14:11,286 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286922', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14119718220537480807', 'uuid-lslong': '9507800771203598443'}, 'enable': 'true', 'created': '2024-12-26T02:14:09', 'last-modified': '2024-12-26T02:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951256'} 2024-12-26 02:14:11,293 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-26 02:14:11,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61395334 passed 2024-12-26 02:14:11,293 - DEBUG - ====Verifying policy data for ctest-vn-61395334 in API_Server ====== 2024-12-26 02:14:11,293 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:11,300 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c 2024-12-26 02:14:11,312 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:11,381 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b 2024-12-26 02:14:11,390 - DEBUG - ==>Verifying data for policy with id: d4dcecf5-9342-4def-a5ce-9443634e7699, fqn: ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065'] 2024-12-26 02:14:11,390 - INFO - VN ctest-vn-61395334 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-26 02:14:11,390 - DEBUG - Verifying the vn in opserver 2024-12-26 02:14:11,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334 virtual network link through opserver 10.0.0.32 2024-12-26 02:14:11,390 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-12-26 02:14:11,686 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-12-26 02:14:11,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334?flat'} 2024-12-26 02:14:11,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334 is found in opserver 2024-12-26 02:14:11,762 - DEBUG - Do not have enough data to verify VN in agent 2024-12-26 02:14:11,767 - DEBUG - VRF ids for VN ctest-vn-61395334: {} 2024-12-26 02:14:11,767 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:11,774 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c 2024-12-26 02:14:11,786 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:11,857 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:11,867 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:11,876 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558 2024-12-26 02:14:11,883 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558 2024-12-26 02:14:11,891 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ef4e5df0-9531-454d-8473-4baadcdaa1a7 2024-12-26 02:14:11,898 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-26 02:14:11,898 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:11,906 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558 2024-12-26 02:14:11,919 - INFO - Verified VN network id 9 for VN 768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:11,919 - INFO - Verifications in API Server for VN ctest-vn-60581205 passed 2024-12-26 02:14:11,919 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:11,929 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558 2024-12-26 02:14:11,937 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558 2024-12-26 02:14:11,946 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ef4e5df0-9531-454d-8473-4baadcdaa1a7 2024-12-26 02:14:11,960 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286922', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8542656081194009085', 'uuid-lslong': '13489223912180292485'}, 'enable': 'true', 'created': '2024-12-26T02:14:09', 'last-modified': '2024-12-26T02:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.391718'} 2024-12-26 02:14:11,967 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-26 02:14:11,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60581205 passed 2024-12-26 02:14:11,968 - DEBUG - ====Verifying policy data for ctest-vn-60581205 in API_Server ====== 2024-12-26 02:14:11,968 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:11,974 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c 2024-12-26 02:14:11,986 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:12,060 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85 2024-12-26 02:14:12,075 - DEBUG - ==>Verifying data for policy with id: d4dcecf5-9342-4def-a5ce-9443634e7699, fqn: ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065'] 2024-12-26 02:14:12,075 - INFO - VN ctest-vn-60581205 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-26 02:14:12,076 - DEBUG - Verifying the vn in opserver 2024-12-26 02:14:12,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205 virtual network link through opserver 10.0.0.32 2024-12-26 02:14:12,076 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-12-26 02:14:12,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205?flat'} 2024-12-26 02:14:12,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205 is found in opserver 2024-12-26 02:14:12,102 - DEBUG - Do not have enough data to verify VN in agent 2024-12-26 02:14:12,108 - DEBUG - VRF ids for VN ctest-vn-60581205: {} 2024-12-26 02:14:12,171 - DEBUG - Services list from nova: [, , ] 2024-12-26 02:14:13,269 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2493-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2493-1) 2024-12-26 02:14:14,606 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2493-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2493-1) 2024-12-26 02:14:14,606 - INFO - Waiting for VM ctest-TestBasicPolicy-60286922-24459733 to be up.. 2024-12-26 02:14:14,711 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-26 02:14:19,813 - DEBUG - VM is in ACTIVE state now 2024-12-26 02:14:19,813 - INFO - VM name : ctest-TestBasicPolicy-60286922-24459733 2024-12-26 02:14:19,926 - DEBUG - VM ctest-TestBasicPolicy-60286922-24459733 ID is 9c76cccb-3a94-46dc-9554-8e66738aa5e5 2024-12-26 02:14:19,953 - DEBUG - VM ctest-TestBasicPolicy-60286922-24459733 launched on Node cn-jenkins-deploy-platform-ansible-os-2493-1 2024-12-26 02:14:20,055 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/9c76cccb-3a94-46dc-9554-8e66738aa5e5 2024-12-26 02:14:20,066 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/ef09bd6f-a9cd-443a-bdbc-1f61b1c7e119 2024-12-26 02:14:23,316 - 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 1005ms') 2024-12-26 02:14:23,316 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286922-24459733 failed! 2024-12-26 02:14:23,369 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334 is 185.232.116.65 and allocation pool is NOT set 2024-12-26 02:14:25,439 - 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=8.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.435 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.435/4.605/8.775/4.170 ms') 2024-12-26 02:14:25,439 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286922-24459733 passed 2024-12-26 02:14:25,589 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:25,589 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286922-24459733, IP 185.232.116.67, Port 22 2024-12-26 02:14:25,756 - DEBUG - VM ctest-TestBasicPolicy-60286922-24459733 is ready for SSH connections 2024-12-26 02:14:25,756 - INFO - Waiting for VM ctest-TestBasicPolicy-60286922-85158589 to be up.. 2024-12-26 02:14:25,838 - DEBUG - VM is in ACTIVE state now 2024-12-26 02:14:25,838 - INFO - VM name : ctest-TestBasicPolicy-60286922-85158589 2024-12-26 02:14:25,916 - DEBUG - VM ctest-TestBasicPolicy-60286922-85158589 ID is 92b7dcb4-1cf5-4d0f-a115-3eb685b40636 2024-12-26 02:14:25,917 - DEBUG - VM ctest-TestBasicPolicy-60286922-85158589 launched on Node cn-jenkins-deploy-platform-ansible-os-2493-1 2024-12-26 02:14:26,026 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/92b7dcb4-1cf5-4d0f-a115-3eb685b40636 2024-12-26 02:14:26,038 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/4d99b973-f3b8-4385-996e-8a4d5ed85589 2024-12-26 02:14:27,303 - 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.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.680 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.680/2.034/3.388/1.354 ms') 2024-12-26 02:14:27,303 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60286922-85158589 passed 2024-12-26 02:14:27,461 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:27,461 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286922-85158589, IP 32.63.226.131, Port 22 2024-12-26 02:14:27,630 - DEBUG - VM ctest-TestBasicPolicy-60286922-85158589 is ready for SSH connections 2024-12-26 02:14:27,630 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:27,630 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 32.63.226.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-12-26 02:14:27,630 - DEBUG - ping -s 56 -c 3 -W 1 32.63.226.131 2024-12-26 02:14:31,799 - DEBUG - PING 32.63.226.131 (32.63.226.131): 56 data bytes 64 bytes from 32.63.226.131: seq=0 ttl=63 time=3.889 ms 64 bytes from 32.63.226.131: seq=1 ttl=63 time=1.176 ms 64 bytes from 32.63.226.131: seq=2 ttl=63 time=1.044 ms --- 32.63.226.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.044/2.036/3.889 ms 2024-12-26 02:14:31,800 - INFO - Ping to IP 32.63.226.131 from VM ctest-TestBasicPolicy-60286922-24459733 passed 2024-12-26 02:14:31,977 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d4dcecf5-9342-4def-a5ce-9443634e7699", "href": "http://10.0.0.32:8082/network-policy/d4dcecf5-9342-4def-a5ce-9443634e7699"}} 2024-12-26 02:14:31,977 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:31,978 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 32.63.226.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-12-26 02:14:31,978 - DEBUG - ping -s 56 -c 3 -W 1 32.63.226.131 2024-12-26 02:14:35,197 - DEBUG - PING 32.63.226.131 (32.63.226.131): 56 data bytes 64 bytes from 32.63.226.131: seq=0 ttl=63 time=1.543 ms --- 32.63.226.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.543/1.543/1.543 ms 2024-12-26 02:14:35,197 - WARNING - Ping to IP 32.63.226.131 from VM ctest-TestBasicPolicy-60286922-24459733 failed 2024-12-26 02:14:35,197 - INFO - Deleting VM ctest-TestBasicPolicy-60286922-85158589 2024-12-26 02:14:35,277 - INFO - Deleting VM ctest-TestBasicPolicy-60286922-24459733 2024-12-26 02:14:35,685 - INFO - Deleted policy ctest-policy-allow-all-42821065 2024-12-26 02:14:35,685 - INFO - Deleting VN ctest-vn-60581205 2024-12-26 02:14:35,723 - DEBUG - VN 768d9c71-e5e6-41fd-bb33-59addd361b85 still in use: Unable to complete operation on network 768d9c71-e5e6-41fd-bb33-59addd361b85. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6e141a5d-05a8-450e-9bca-25382dd2f71b'] 2024-12-26 02:14:35,723 - WARNING - Deleting VN ctest-vn-60581205 failed..Will retry 2024-12-26 02:14:37,831 - DEBUG - Response for deleting network () 2024-12-26 02:14:37,831 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558 2024-12-26 02:14:37,838 - DEBUG - Response Code: 404 2024-12-26 02:14:37,838 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:37,845 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c 2024-12-26 02:14:37,900 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:37,971 - INFO - Validated that VN ctest-vn-60581205 is not found in API Server 2024-12-26 02:14:37,983 - DEBUG - VN ctest-vn-60581205 is not present in Agent 10.0.0.32 2024-12-26 02:14:37,983 - INFO - Validated that VN ctest-vn-60581205 is not in any agent 2024-12-26 02:14:38,000 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60581205 info 2024-12-26 02:14:38,000 - INFO - Deleting VN ctest-vn-61395334 2024-12-26 02:14:38,107 - DEBUG - Response for deleting network () 2024-12-26 02:14:38,107 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663 2024-12-26 02:14:38,114 - DEBUG - Response Code: 404 2024-12-26 02:14:38,114 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-12-26 02:14:38,121 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c 2024-12-26 02:14:38,176 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc 2024-12-26 02:14:38,246 - INFO - Validated that VN ctest-vn-61395334 is not found in API Server 2024-12-26 02:14:38,258 - DEBUG - VN ctest-vn-61395334 is not present in Agent 10.0.0.32 2024-12-26 02:14:38,258 - INFO - Validated that VN ctest-vn-61395334 is not in any agent 2024-12-26 02:14:38,275 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61395334 info 2024-12-26 02:14:38,531 - DEBUG - No XMPP flaps were noticed during the test
2024-12-26 02:14:38,532 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-12-26 02:14:38,532 - INFO - -------------------------------------------------------------------------------- 2024-12-26 02:14:39,210 - INFO - Deleted project: ctest-TestBasicPolicy-60286922, ID : 39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc