2024-11-09 22:15:39,873 - INFO - Domain Default found not creating 2024-11-09 22:15:40,046 - INFO - Project ctest-TestBasicPolicy-41452359 not found, creating it 2024-11-09 22:15:40,533 - INFO - Created Project:ctest-TestBasicPolicy-41452359, ID : 36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:15:42,117 - INFO - ================================================================================ 2024-11-09 22:15:42,118 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-09 22:15:42,118 - 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-09 22:15:42,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2024-11-09 22:15:42,378 - INFO - Initial checks done. Running the testcase now 2024-11-09 22:15:42,378 - INFO - 2024-11-09 22:15:42,968 - DEBUG - Response for create_network : {'network': {'id': '8d0a7b97-9a28-4991-ab78-388bde9f57c4', 'name': 'ctest-vn-11325536', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-11325536'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 22:15:43,217 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f5ae6b6-c262-4352-8f37-26562c163b93', 'name': '', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'network_id': '8d0a7b97-9a28-4991-ab78-388bde9f57c4', 'ip_version': 4, 'cidr': '33.238.90.128/26', 'allocation_pools': [{'start': '33.238.90.130', 'end': '33.238.90.190'}], 'gateway_ip': '33.238.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.238.90.130', 'tags': [], 'project_id': '36a261f21ebf430b9e23e352048e4051'}} 2024-11-09 22:15:43,238 - INFO - Created VN ctest-vn-11325536 2024-11-09 22:15:43,296 - DEBUG - VN ctest-vn-11325536 UUID is 8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:43,628 - DEBUG - Response for create_network : {'network': {'id': 'f65f4ff6-bca1-4410-aff7-46fc56022681', 'name': 'ctest-vn-83028496', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-83028496'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 22:15:43,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '5920bcf8-904a-44a8-87a6-9baa1403fa55', 'name': '', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'network_id': 'f65f4ff6-bca1-4410-aff7-46fc56022681', 'ip_version': 4, 'cidr': '201.64.162.128/26', 'allocation_pools': [{'start': '201.64.162.130', 'end': '201.64.162.190'}], 'gateway_ip': '201.64.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.64.162.130', 'tags': [], 'project_id': '36a261f21ebf430b9e23e352048e4051'}} 2024-11-09 22:15:43,827 - INFO - Created VN ctest-vn-83028496 2024-11-09 22:15:43,888 - DEBUG - VN ctest-vn-83028496 UUID is f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:44,025 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536, 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-41452359:ctest-vn-83028496, 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-09 22:15:44,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d0a7b97-9a28-4991-ab78-388bde9f57c4', 'name': 'ctest-vn-11325536', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f5ae6b6-c262-4352-8f37-26562c163b93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-11325536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530']], 'subnet_ipam': [{'subnet_cidr': '33.238.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-09 22:15:44,615 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f65f4ff6-bca1-4410-aff7-46fc56022681', 'name': 'ctest-vn-83028496', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5920bcf8-904a-44a8-87a6-9baa1403fa55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-83028496'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530']], 'subnet_ipam': [{'subnet_cidr': '201.64.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-09 22:15:44,796 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:15:45,097 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:15:45,133 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61 2024-11-09 22:15:45,149 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:15:45,232 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:45,248 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:45,263 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb 2024-11-09 22:15:45,273 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb 2024-11-09 22:15:45,282 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fa2550f-4b49-44c6-956e-6b9cea7754d5 2024-11-09 22:15:45,290 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-09 22:15:45,290 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:45,304 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb 2024-11-09 22:15:45,326 - INFO - Verified VN network id 7 for VN 8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:45,326 - INFO - Verifications in API Server for VN ctest-vn-11325536 passed 2024-11-09 22:15:45,326 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:45,341 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb 2024-11-09 22:15:45,351 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb 2024-11-09 22:15:45,361 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fa2550f-4b49-44c6-956e-6b9cea7754d5 2024-11-09 22:15:45,376 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41452359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10163071400171555217', 'uuid-lslong': '12355687751077550020'}, 'enable': 'true', 'created': '2024-11-09T22:15:42', 'last-modified': '2024-11-09T22:15:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042750'} 2024-11-09 22:15:45,383 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-09 22:15:45,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11325536 passed 2024-11-09 22:15:45,383 - DEBUG - ====Verifying policy data for ctest-vn-11325536 in API_Server ====== 2024-11-09 22:15:45,383 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:15:45,389 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61 2024-11-09 22:15:45,403 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:15:45,480 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4 2024-11-09 22:15:45,495 - DEBUG - ==>Verifying data for policy with id: 1901fda6-4059-4310-83e8-cd7b9e9f1c5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530'] 2024-11-09 22:15:45,496 - INFO - VN ctest-vn-11325536 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-09 22:15:45,496 - DEBUG - Verifying the vn in opserver 2024-11-09 22:15:45,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536 virtual network link through opserver 10.0.0.12 2024-11-09 22:15:45,496 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-09 22:15:45,795 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-09 22:15:45,863 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536?flat'} 2024-11-09 22:15:45,863 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536 is found in opserver 2024-11-09 22:15:45,875 - DEBUG - Do not have enough data to verify VN in agent 2024-11-09 22:15:45,882 - DEBUG - VRF ids for VN ctest-vn-11325536: {} 2024-11-09 22:15:45,882 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:15:45,889 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61 2024-11-09 22:15:45,903 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:15:45,982 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:46,006 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:46,022 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88 2024-11-09 22:15:46,032 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88 2024-11-09 22:15:46,041 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d4fd79ad-32f7-4b3b-907e-339ea6388fa5 2024-11-09 22:15:46,049 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-09 22:15:46,049 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:46,063 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88 2024-11-09 22:15:46,085 - INFO - Verified VN network id 8 for VN f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:46,085 - INFO - Verifications in API Server for VN ctest-vn-83028496 passed 2024-11-09 22:15:46,086 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:46,099 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88 2024-11-09 22:15:46,108 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88 2024-11-09 22:15:46,117 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d4fd79ad-32f7-4b3b-907e-339ea6388fa5 2024-11-09 22:15:46,130 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41452359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17752996177263019024', 'uuid-lslong': '12679681325473605249'}, 'enable': 'true', 'created': '2024-11-09T22:15:43', 'last-modified': '2024-11-09T22:15:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540639'} 2024-11-09 22:15:46,137 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-09 22:15:46,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83028496 passed 2024-11-09 22:15:46,138 - DEBUG - ====Verifying policy data for ctest-vn-83028496 in API_Server ====== 2024-11-09 22:15:46,138 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:15:46,144 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61 2024-11-09 22:15:46,160 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:15:46,249 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681 2024-11-09 22:15:46,268 - DEBUG - ==>Verifying data for policy with id: 1901fda6-4059-4310-83e8-cd7b9e9f1c5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530'] 2024-11-09 22:15:46,269 - INFO - VN ctest-vn-83028496 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-09 22:15:46,269 - DEBUG - Verifying the vn in opserver 2024-11-09 22:15:46,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496 virtual network link through opserver 10.0.0.12 2024-11-09 22:15:46,269 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-09 22:15:46,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496?flat'} 2024-11-09 22:15:46,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496 is found in opserver 2024-11-09 22:15:46,296 - DEBUG - Do not have enough data to verify VN in agent 2024-11-09 22:15:46,303 - DEBUG - VRF ids for VN ctest-vn-83028496: {} 2024-11-09 22:15:46,372 - DEBUG - Services list from nova: [, , ] 2024-11-09 22:15:47,463 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2246-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2246-1) 2024-11-09 22:15:48,875 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2246-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2246-1) 2024-11-09 22:15:48,876 - INFO - Waiting for VM ctest-TestBasicPolicy-41452359-85242909 to be up.. 2024-11-09 22:15:48,987 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 22:15:54,088 - DEBUG - VM is in ACTIVE state now 2024-11-09 22:15:54,088 - INFO - VM name : ctest-TestBasicPolicy-41452359-85242909 2024-11-09 22:15:54,192 - DEBUG - VM ctest-TestBasicPolicy-41452359-85242909 ID is 319ef799-0c49-4f81-b167-78a81ecafc74 2024-11-09 22:15:54,221 - DEBUG - VM ctest-TestBasicPolicy-41452359-85242909 launched on Node cn-jenkins-deploy-platform-ansible-os-2246-1 2024-11-09 22:15:54,311 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/319ef799-0c49-4f81-b167-78a81ecafc74 2024-11-09 22:15:54,322 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/89906d67-67e5-4e39-bfb8-d3317df1f968 2024-11-09 22:15:57,611 - 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 1035ms') 2024-11-09 22:15:57,611 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41452359-85242909 failed! 2024-11-09 22:15:57,672 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536 is 33.238.90.129 and allocation pool is NOT set 2024-11-09 22:15:59,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=3.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.503 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.503/1.862/3.221/1.359 ms') 2024-11-09 22:15:59,742 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41452359-85242909 passed 2024-11-09 22:15:59,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:15:59,896 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41452359-85242909, IP 33.238.90.131, Port 22 2024-11-09 22:16:00,055 - DEBUG - VM ctest-TestBasicPolicy-41452359-85242909 is ready for SSH connections 2024-11-09 22:16:00,055 - INFO - Waiting for VM ctest-TestBasicPolicy-41452359-18937012 to be up.. 2024-11-09 22:16:00,145 - DEBUG - VM is in ACTIVE state now 2024-11-09 22:16:00,145 - INFO - VM name : ctest-TestBasicPolicy-41452359-18937012 2024-11-09 22:16:00,224 - DEBUG - VM ctest-TestBasicPolicy-41452359-18937012 ID is 4c1d22f1-1fdf-4226-b2d9-a383bf4640d5 2024-11-09 22:16:00,224 - DEBUG - VM ctest-TestBasicPolicy-41452359-18937012 launched on Node cn-jenkins-deploy-platform-ansible-os-2246-1 2024-11-09 22:16:00,313 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/4c1d22f1-1fdf-4226-b2d9-a383bf4640d5 2024-11-09 22:16:00,324 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/6ac76300-8536-4182-a986-803bec347d6c 2024-11-09 22:16:01,588 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.493 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.493/1.686/2.880/1.193 ms') 2024-11-09 22:16:01,588 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-41452359-18937012 passed 2024-11-09 22:16:01,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:16:01,744 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41452359-18937012, IP 201.64.162.131, Port 22 2024-11-09 22:16:01,899 - DEBUG - VM ctest-TestBasicPolicy-41452359-18937012 is ready for SSH connections 2024-11-09 22:16:01,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:16:01,899 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.64.162.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-09 22:16:01,899 - DEBUG - ping -s 56 -c 3 -W 1 201.64.162.131 2024-11-09 22:16:05,956 - DEBUG - PING 201.64.162.131 (201.64.162.131): 56 data bytes 64 bytes from 201.64.162.131: seq=0 ttl=63 time=4.038 ms 64 bytes from 201.64.162.131: seq=1 ttl=63 time=0.850 ms 64 bytes from 201.64.162.131: seq=2 ttl=63 time=1.374 ms --- 201.64.162.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/2.087/4.038 ms 2024-11-09 22:16:05,956 - INFO - Ping to IP 201.64.162.131 from VM ctest-TestBasicPolicy-41452359-85242909 passed 2024-11-09 22:16:06,143 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1901fda6-4059-4310-83e8-cd7b9e9f1c5c", "href": "http://10.0.0.12:8082/network-policy/1901fda6-4059-4310-83e8-cd7b9e9f1c5c"}} 2024-11-09 22:16:06,144 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 22:16:06,144 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.64.162.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-09 22:16:06,144 - DEBUG - ping -s 56 -c 3 -W 1 201.64.162.131 2024-11-09 22:16:09,359 - DEBUG - PING 201.64.162.131 (201.64.162.131): 56 data bytes 64 bytes from 201.64.162.131: seq=0 ttl=63 time=1.615 ms --- 201.64.162.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.615/1.615/1.615 ms 2024-11-09 22:16:09,359 - WARNING - Ping to IP 201.64.162.131 from VM ctest-TestBasicPolicy-41452359-85242909 failed 2024-11-09 22:16:09,359 - INFO - Deleting VM ctest-TestBasicPolicy-41452359-18937012 2024-11-09 22:16:09,424 - INFO - Deleting VM ctest-TestBasicPolicy-41452359-85242909 2024-11-09 22:16:09,932 - INFO - Deleted policy ctest-policy-allow-all-71903530 2024-11-09 22:16:09,932 - INFO - Deleting VN ctest-vn-83028496 2024-11-09 22:16:09,974 - DEBUG - VN f65f4ff6-bca1-4410-aff7-46fc56022681 still in use: Unable to complete operation on network f65f4ff6-bca1-4410-aff7-46fc56022681. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1013fede-54e1-445e-a46d-e8be82dc312c'] 2024-11-09 22:16:09,975 - WARNING - Deleting VN ctest-vn-83028496 failed..Will retry 2024-11-09 22:16:12,088 - DEBUG - Response for deleting network () 2024-11-09 22:16:12,088 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88 2024-11-09 22:16:12,096 - DEBUG - Response Code: 404 2024-11-09 22:16:12,096 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:16:12,103 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61 2024-11-09 22:16:12,158 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:16:12,237 - INFO - Validated that VN ctest-vn-83028496 is not found in API Server 2024-11-09 22:16:12,248 - DEBUG - VN ctest-vn-83028496 is not present in Agent 10.0.0.12 2024-11-09 22:16:12,248 - INFO - Validated that VN ctest-vn-83028496 is not in any agent 2024-11-09 22:16:12,265 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83028496 info 2024-11-09 22:16:12,265 - INFO - Deleting VN ctest-vn-11325536 2024-11-09 22:16:12,374 - DEBUG - Response for deleting network () 2024-11-09 22:16:12,375 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb 2024-11-09 22:16:12,381 - DEBUG - Response Code: 404 2024-11-09 22:16:12,381 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-09 22:16:12,392 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61 2024-11-09 22:16:12,451 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051 2024-11-09 22:16:12,533 - INFO - Validated that VN ctest-vn-11325536 is not found in API Server 2024-11-09 22:16:12,545 - DEBUG - VN ctest-vn-11325536 is not present in Agent 10.0.0.12 2024-11-09 22:16:12,545 - INFO - Validated that VN ctest-vn-11325536 is not in any agent 2024-11-09 22:16:12,560 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11325536 info 2024-11-09 22:16:12,814 - DEBUG - No XMPP flaps were noticed during the test 2024-11-09 22:16:12,814 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-09 22:16:12,814 - INFO - -------------------------------------------------------------------------------- 2024-11-09 22:16:13,547 - INFO - Deleted project: ctest-TestBasicPolicy-41452359, ID : 36a261f2-1ebf-430b-9e23-e352048e4051