2024-11-04 02:20:19,947 - INFO - Domain Default found not creating 2024-11-04 02:20:20,109 - INFO - Project ctest-TestBasicPolicy-10260042 not found, creating it 2024-11-04 02:20:20,597 - INFO - Created Project:ctest-TestBasicPolicy-10260042, ID : 9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:22,172 - INFO - ================================================================================ 2024-11-04 02:20:22,172 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-04 02:20:22,172 - 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-11-04 02:20:22,431 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with 2024-11-04 02:20:22,431 - INFO - Initial checks done. Running the testcase now 2024-11-04 02:20:22,431 - INFO - 2024-11-04 02:20:23,003 - DEBUG - Response for create_network : {'network': {'id': '9f23f002-1fca-4541-a7c6-664bc6db4e43', 'name': 'ctest-vn-60342105', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-60342105'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 02:20:23,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '14c5219b-941f-406f-8c19-ece9fe18703d', 'name': '', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'network_id': '9f23f002-1fca-4541-a7c6-664bc6db4e43', 'ip_version': 4, 'cidr': '193.90.210.192/26', 'allocation_pools': [{'start': '193.90.210.194', 'end': '193.90.210.254'}], 'gateway_ip': '193.90.210.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.90.210.194', 'tags': [], 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d'}} 2024-11-04 02:20:23,198 - INFO - Created VN ctest-vn-60342105 2024-11-04 02:20:23,254 - DEBUG - VN ctest-vn-60342105 UUID is 9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:23,566 - DEBUG - Response for create_network : {'network': {'id': 'd35f5689-8822-4117-948a-e9928f3e7fd4', 'name': 'ctest-vn-71147455', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-71147455'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 02:20:23,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '37435a81-04a0-46bc-98f6-7dace9e0eda6', 'name': '', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'network_id': 'd35f5689-8822-4117-948a-e9928f3e7fd4', 'ip_version': 4, 'cidr': '168.82.28.128/26', 'allocation_pools': [{'start': '168.82.28.130', 'end': '168.82.28.190'}], 'gateway_ip': '168.82.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.82.28.130', 'tags': [], 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d'}} 2024-11-04 02:20:23,745 - INFO - Created VN ctest-vn-71147455 2024-11-04 02:20:23,801 - DEBUG - VN ctest-vn-71147455 UUID is d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:23,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105, 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-10260042:ctest-vn-71147455, 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-11-04 02:20:24,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f23f002-1fca-4541-a7c6-664bc6db4e43', 'name': 'ctest-vn-60342105', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14c5219b-941f-406f-8c19-ece9fe18703d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-60342105'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370']], 'subnet_ipam': [{'subnet_cidr': '193.90.210.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-04 02:20:24,724 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd35f5689-8822-4117-948a-e9928f3e7fd4', 'name': 'ctest-vn-71147455', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37435a81-04a0-46bc-98f6-7dace9e0eda6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-71147455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370']], 'subnet_ipam': [{'subnet_cidr': '168.82.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-04 02:20:24,874 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:25,176 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:25,207 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc 2024-11-04 02:20:25,222 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:25,311 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:25,326 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:25,340 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4 2024-11-04 02:20:25,351 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4 2024-11-04 02:20:25,360 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/606c1993-34c1-484f-955d-a5ed247a9e4f 2024-11-04 02:20:25,367 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-04 02:20:25,367 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:25,381 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4 2024-11-04 02:20:25,400 - INFO - Verified VN network id 9 for VN 9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:25,400 - INFO - Verifications in API Server for VN ctest-vn-60342105 passed 2024-11-04 02:20:25,400 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:25,414 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4 2024-11-04 02:20:25,423 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4 2024-11-04 02:20:25,431 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/606c1993-34c1-484f-955d-a5ed247a9e4f 2024-11-04 02:20:25,445 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10260042', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11467272968129365313', 'uuid-lslong': '12089462725367516739'}, 'enable': 'true', 'created': '2024-11-04T02:20:22', 'last-modified': '2024-11-04T02:20:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.054895'} 2024-11-04 02:20:25,453 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-04 02:20:25,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60342105 passed 2024-11-04 02:20:25,454 - DEBUG - ====Verifying policy data for ctest-vn-60342105 in API_Server ====== 2024-11-04 02:20:25,454 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:25,461 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc 2024-11-04 02:20:25,475 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:25,558 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43 2024-11-04 02:20:25,572 - DEBUG - ==>Verifying data for policy with id: e838ff8c-54b4-40dd-a19f-b08ff839440b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370'] 2024-11-04 02:20:25,572 - INFO - VN ctest-vn-60342105 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-04 02:20:25,572 - DEBUG - Verifying the vn in opserver 2024-11-04 02:20:25,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105 virtual network link through opserver 10.0.0.23 2024-11-04 02:20:25,573 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-04 02:20:25,875 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-04 02:20:25,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105?flat'} 2024-11-04 02:20:25,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105 is found in opserver 2024-11-04 02:20:25,955 - DEBUG - Do not have enough data to verify VN in agent 2024-11-04 02:20:25,960 - DEBUG - VRF ids for VN ctest-vn-60342105: {} 2024-11-04 02:20:25,961 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:25,967 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc 2024-11-04 02:20:25,982 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:26,074 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:26,093 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:26,108 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d 2024-11-04 02:20:26,117 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d 2024-11-04 02:20:26,126 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/53c9a106-e7fd-492e-b6c4-7611a723e14e 2024-11-04 02:20:26,133 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-04 02:20:26,133 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:26,147 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d 2024-11-04 02:20:26,167 - INFO - Verified VN network id 10 for VN d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:26,167 - INFO - Verifications in API Server for VN ctest-vn-71147455 passed 2024-11-04 02:20:26,167 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:26,182 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d 2024-11-04 02:20:26,193 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d 2024-11-04 02:20:26,202 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/53c9a106-e7fd-492e-b6c4-7611a723e14e 2024-11-04 02:20:26,216 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10260042', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15230987613484761367', 'uuid-lslong': '10703624280077139924'}, 'enable': 'true', 'created': '2024-11-04T02:20:23', 'last-modified': '2024-11-04T02:20:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.567160'} 2024-11-04 02:20:26,225 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-04 02:20:26,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71147455 passed 2024-11-04 02:20:26,225 - DEBUG - ====Verifying policy data for ctest-vn-71147455 in API_Server ====== 2024-11-04 02:20:26,225 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:26,232 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc 2024-11-04 02:20:26,245 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:26,330 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4 2024-11-04 02:20:26,347 - DEBUG - ==>Verifying data for policy with id: e838ff8c-54b4-40dd-a19f-b08ff839440b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370'] 2024-11-04 02:20:26,347 - INFO - VN ctest-vn-71147455 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-04 02:20:26,347 - DEBUG - Verifying the vn in opserver 2024-11-04 02:20:26,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455 virtual network link through opserver 10.0.0.23 2024-11-04 02:20:26,347 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-11-04 02:20:26,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455?flat'} 2024-11-04 02:20:26,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455 is found in opserver 2024-11-04 02:20:26,383 - DEBUG - Do not have enough data to verify VN in agent 2024-11-04 02:20:26,391 - DEBUG - VRF ids for VN ctest-vn-71147455: {} 2024-11-04 02:20:26,454 - DEBUG - Services list from nova: [, , ] 2024-11-04 02:20:27,480 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2194-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2194-1) 2024-11-04 02:20:28,764 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2194-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2194-1) 2024-11-04 02:20:28,764 - INFO - Waiting for VM ctest-TestBasicPolicy-10260042-76346391 to be up.. 2024-11-04 02:20:28,860 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-04 02:20:33,945 - DEBUG - VM is in ACTIVE state now 2024-11-04 02:20:33,946 - INFO - VM name : ctest-TestBasicPolicy-10260042-76346391 2024-11-04 02:20:34,030 - DEBUG - VM ctest-TestBasicPolicy-10260042-76346391 ID is 1913c96f-1747-47fa-8cbb-0aea36ea5a75 2024-11-04 02:20:34,050 - DEBUG - VM ctest-TestBasicPolicy-10260042-76346391 launched on Node cn-jenkins-deploy-platform-ansible-os-2194-1. 2024-11-04 02:20:34,136 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1913c96f-1747-47fa-8cbb-0aea36ea5a75 2024-11-04 02:20:34,146 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/01a68547-a37a-4a7a-ba97-5c7ef867f69c 2024-11-04 02:20:37,379 - 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 1015ms') 2024-11-04 02:20:37,379 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10260042-76346391 failed! 2024-11-04 02:20:37,438 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105 is 193.90.210.193 and allocation pool is NOT set 2024-11-04 02:20:39,495 - 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=5.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.676 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.676/2.970/5.265/2.294 ms') 2024-11-04 02:20:39,495 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10260042-76346391 passed 2024-11-04 02:20:39,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:39,650 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10260042-76346391, IP 193.90.210.195, Port 22 2024-11-04 02:20:39,809 - DEBUG - VM ctest-TestBasicPolicy-10260042-76346391 is ready for SSH connections 2024-11-04 02:20:39,809 - INFO - Waiting for VM ctest-TestBasicPolicy-10260042-46494154 to be up.. 2024-11-04 02:20:39,899 - DEBUG - VM is in ACTIVE state now 2024-11-04 02:20:39,899 - INFO - VM name : ctest-TestBasicPolicy-10260042-46494154 2024-11-04 02:20:39,984 - DEBUG - VM ctest-TestBasicPolicy-10260042-46494154 ID is ce6622c6-9af4-4b92-8863-5a5ccabadfb6 2024-11-04 02:20:39,984 - DEBUG - VM ctest-TestBasicPolicy-10260042-46494154 launched on Node cn-jenkins-deploy-platform-ansible-os-2194-1. 2024-11-04 02:20:40,068 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/ce6622c6-9af4-4b92-8863-5a5ccabadfb6 2024-11-04 02:20:40,078 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/b14756e0-e24b-4286-9bc2-6ac1476d1cf6 2024-11-04 02:20:41,333 - 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.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.391 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.391/1.660/2.929/1.269 ms') 2024-11-04 02:20:41,333 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10260042-46494154 passed 2024-11-04 02:20:41,498 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:41,498 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10260042-46494154, IP 168.82.28.131, Port 22 2024-11-04 02:20:41,649 - DEBUG - VM ctest-TestBasicPolicy-10260042-46494154 is ready for SSH connections 2024-11-04 02:20:41,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:41,649 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.82.28.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-04 02:20:41,649 - DEBUG - ping -s 56 -c 3 -W 1 168.82.28.131 2024-11-04 02:20:45,363 - DEBUG - PING 168.82.28.131 (168.82.28.131): 56 data bytes 64 bytes from 168.82.28.131: seq=0 ttl=63 time=4.419 ms 64 bytes from 168.82.28.131: seq=1 ttl=63 time=0.796 ms 64 bytes from 168.82.28.131: seq=2 ttl=63 time=0.978 ms --- 168.82.28.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.796/2.064/4.419 ms 2024-11-04 02:20:45,363 - INFO - Ping to IP 168.82.28.131 from VM ctest-TestBasicPolicy-10260042-76346391 passed 2024-11-04 02:20:45,553 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e838ff8c-54b4-40dd-a19f-b08ff839440b", "href": "http://10.0.0.23:8082/network-policy/e838ff8c-54b4-40dd-a19f-b08ff839440b"}} 2024-11-04 02:20:45,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 02:20:45,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.82.28.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-04 02:20:45,554 - DEBUG - ping -s 56 -c 3 -W 1 168.82.28.131 2024-11-04 02:20:48,753 - DEBUG - PING 168.82.28.131 (168.82.28.131): 56 data bytes 64 bytes from 168.82.28.131: seq=0 ttl=63 time=1.863 ms --- 168.82.28.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.863/1.863/1.863 ms 2024-11-04 02:20:48,753 - WARNING - Ping to IP 168.82.28.131 from VM ctest-TestBasicPolicy-10260042-76346391 failed 2024-11-04 02:20:48,753 - INFO - Deleting VM ctest-TestBasicPolicy-10260042-46494154 2024-11-04 02:20:48,832 - INFO - Deleting VM ctest-TestBasicPolicy-10260042-76346391 2024-11-04 02:20:49,309 - INFO - Deleted policy ctest-policy-allow-all-04230370 2024-11-04 02:20:49,309 - INFO - Deleting VN ctest-vn-71147455 2024-11-04 02:20:49,356 - DEBUG - VN d35f5689-8822-4117-948a-e9928f3e7fd4 still in use: Unable to complete operation on network d35f5689-8822-4117-948a-e9928f3e7fd4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6a98bc7a-512a-4160-b4ef-95359044f472'] 2024-11-04 02:20:49,356 - WARNING - Deleting VN ctest-vn-71147455 failed..Will retry 2024-11-04 02:20:51,459 - DEBUG - Response for deleting network () 2024-11-04 02:20:51,460 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d 2024-11-04 02:20:51,467 - DEBUG - Response Code: 404 2024-11-04 02:20:51,467 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:51,478 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc 2024-11-04 02:20:51,537 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:51,616 - INFO - Validated that VN ctest-vn-71147455 is not found in API Server 2024-11-04 02:20:51,627 - DEBUG - VN ctest-vn-71147455 is not present in Agent 10.0.0.23 2024-11-04 02:20:51,627 - INFO - Validated that VN ctest-vn-71147455 is not in any agent 2024-11-04 02:20:51,641 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71147455 info 2024-11-04 02:20:51,641 - INFO - Deleting VN ctest-vn-60342105 2024-11-04 02:20:51,751 - DEBUG - Response for deleting network () 2024-11-04 02:20:51,751 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4 2024-11-04 02:20:51,759 - DEBUG - Response Code: 404 2024-11-04 02:20:51,759 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-11-04 02:20:51,764 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc 2024-11-04 02:20:51,824 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d 2024-11-04 02:20:51,900 - INFO - Validated that VN ctest-vn-60342105 is not found in API Server 2024-11-04 02:20:51,911 - DEBUG - VN ctest-vn-60342105 is not present in Agent 10.0.0.23 2024-11-04 02:20:51,911 - INFO - Validated that VN ctest-vn-60342105 is not in any agent 2024-11-04 02:20:51,926 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60342105 info 2024-11-04 02:20:52,179 - DEBUG - No XMPP flaps were noticed during the test
2024-11-04 02:20:52,179 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-04 02:20:52,180 - INFO - -------------------------------------------------------------------------------- 2024-11-04 02:20:52,957 - INFO - Deleted project: ctest-TestBasicPolicy-10260042, ID : 9af78c88-b8bd-44f4-846c-bc5a06b39f0d