2024-09-17 10:37:58,267 - INFO - Domain Default found not creating 2024-09-17 10:37:58,453 - INFO - Project ctest-TestBasicPolicy-05684815 not found, creating it 2024-09-17 10:37:58,971 - INFO - Created Project:ctest-TestBasicPolicy-05684815, ID : d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:00,522 - INFO - ================================================================================ 2024-09-17 10:38:00,522 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 10:38:00,523 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-09-17 10:38:00,778 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.21': '0'}} with 2024-09-17 10:38:00,779 - INFO - Initial checks done. Running the testcase now 2024-09-17 10:38:00,779 - INFO - 2024-09-17 10:38:01,362 - DEBUG - Response for create_network : {'network': {'id': '334e109c-8631-4528-bc5e-2a85622d750c', 'name': 'ctest-vn-67290418', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-67290418'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:38:01,564 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9e9049a-198c-403e-975d-90c4e7e59820', 'name': '', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'network_id': '334e109c-8631-4528-bc5e-2a85622d750c', 'ip_version': 4, 'cidr': '54.142.153.0/26', 'allocation_pools': [{'start': '54.142.153.2', 'end': '54.142.153.62'}], 'gateway_ip': '54.142.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.142.153.2', 'tags': [], 'project_id': 'd0338d065d7d448c99f9d661c929b846'}} 2024-09-17 10:38:01,589 - INFO - Created VN ctest-vn-67290418 2024-09-17 10:38:01,648 - DEBUG - VN ctest-vn-67290418 UUID is 334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:01,976 - DEBUG - Response for create_network : {'network': {'id': '4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5', 'name': 'ctest-vn-44990531', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-44990531'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:38:02,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c86f24a4-0f29-4f90-b747-551debcebedd', 'name': '', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'network_id': '4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5', 'ip_version': 4, 'cidr': '106.196.222.64/26', 'allocation_pools': [{'start': '106.196.222.66', 'end': '106.196.222.126'}], 'gateway_ip': '106.196.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.196.222.66', 'tags': [], 'project_id': 'd0338d065d7d448c99f9d661c929b846'}} 2024-09-17 10:38:02,211 - INFO - Created VN ctest-vn-44990531 2024-09-17 10:38:02,269 - DEBUG - VN ctest-vn-44990531 UUID is 4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:02,398 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418, 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-05684815:ctest-vn-44990531, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-09-17 10:38:02,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '334e109c-8631-4528-bc5e-2a85622d750c', 'name': 'ctest-vn-67290418', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9e9049a-198c-403e-975d-90c4e7e59820'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-67290418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399']], 'subnet_ipam': [{'subnet_cidr': '54.142.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:38:02,978 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5', 'name': 'ctest-vn-44990531', 'tenant_id': 'd0338d065d7d448c99f9d661c929b846', 'project_id': 'd0338d065d7d448c99f9d661c929b846', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c86f24a4-0f29-4f90-b747-551debcebedd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-vn-44990531'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399']], 'subnet_ipam': [{'subnet_cidr': '106.196.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 10:38:03,161 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:03,478 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:03,510 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf 2024-09-17 10:38:03,526 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:03,609 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:03,627 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:03,642 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d 2024-09-17 10:38:03,652 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d 2024-09-17 10:38:03,662 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b132ee98-ee45-4859-8861-184bccbc2a87 2024-09-17 10:38:03,670 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 10:38:03,670 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:03,684 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d 2024-09-17 10:38:03,705 - INFO - Verified VN network id 8 for VN 334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:03,705 - INFO - Verifications in API Server for VN ctest-vn-67290418 passed 2024-09-17 10:38:03,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:03,720 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d 2024-09-17 10:38:03,729 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d 2024-09-17 10:38:03,737 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b132ee98-ee45-4859-8861-184bccbc2a87 2024-09-17 10:38:03,751 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05684815', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3696910608570074408', 'uuid-lslong': '13573333079307416844'}, 'enable': 'true', 'created': '2024-09-17T10:38:01', 'last-modified': '2024-09-17T10:38:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056117'} 2024-09-17 10:38:03,758 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 10:38:03,758 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67290418 passed 2024-09-17 10:38:03,758 - DEBUG - ====Verifying policy data for ctest-vn-67290418 in API_Server ====== 2024-09-17 10:38:03,758 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:03,765 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf 2024-09-17 10:38:03,779 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:03,864 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/334e109c-8631-4528-bc5e-2a85622d750c 2024-09-17 10:38:03,878 - DEBUG - ==>Verifying data for policy with id: 8550623f-257c-460a-b4e7-a8c5bd5fe5d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399'] 2024-09-17 10:38:03,878 - INFO - VN ctest-vn-67290418 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 10:38:03,878 - DEBUG - Verifying the vn in opserver 2024-09-17 10:38:03,878 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418 virtual network link through opserver 10.0.0.33 2024-09-17 10:38:03,879 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-17 10:38:04,172 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-17 10:38:04,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418?flat'} 2024-09-17 10:38:04,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418 is found in opserver 2024-09-17 10:38:04,250 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 10:38:04,255 - DEBUG - VRF ids for VN ctest-vn-67290418: {} 2024-09-17 10:38:04,256 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:04,262 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf 2024-09-17 10:38:04,276 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:04,359 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:04,376 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:04,393 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e 2024-09-17 10:38:04,404 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e 2024-09-17 10:38:04,415 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ccc6dc2-60ae-4af1-9bb3-2dc259e9d2f6 2024-09-17 10:38:04,424 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 10:38:04,424 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:04,440 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e 2024-09-17 10:38:04,478 - INFO - Verified VN network id 9 for VN 4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:04,479 - INFO - Verifications in API Server for VN ctest-vn-44990531 passed 2024-09-17 10:38:04,479 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:04,508 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e 2024-09-17 10:38:04,518 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e 2024-09-17 10:38:04,527 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ccc6dc2-60ae-4af1-9bb3-2dc259e9d2f6 2024-09-17 10:38:04,542 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05684815', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5593022220159634654', 'uuid-lslong': '12097198884411541221'}, 'enable': 'true', 'created': '2024-09-17T10:38:01', 'last-modified': '2024-09-17T10:38:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585555'} 2024-09-17 10:38:04,549 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 10:38:04,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44990531 passed 2024-09-17 10:38:04,549 - DEBUG - ====Verifying policy data for ctest-vn-44990531 in API_Server ====== 2024-09-17 10:38:04,549 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:04,555 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf 2024-09-17 10:38:04,568 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:04,646 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 2024-09-17 10:38:04,660 - DEBUG - ==>Verifying data for policy with id: 8550623f-257c-460a-b4e7-a8c5bd5fe5d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-05684815', 'ctest-policy-allow-all-72097399'] 2024-09-17 10:38:04,660 - INFO - VN ctest-vn-44990531 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 10:38:04,660 - DEBUG - Verifying the vn in opserver 2024-09-17 10:38:04,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531 virtual network link through opserver 10.0.0.33 2024-09-17 10:38:04,660 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-17 10:38:04,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531?flat'} 2024-09-17 10:38:04,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-44990531 is found in opserver 2024-09-17 10:38:04,684 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 10:38:04,689 - DEBUG - VRF ids for VN ctest-vn-44990531: {} 2024-09-17 10:38:04,753 - DEBUG - Services list from nova: [, , ] 2024-09-17 10:38:05,806 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1960-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1960-1) 2024-09-17 10:38:07,145 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1960-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1960-1) 2024-09-17 10:38:07,146 - INFO - Waiting for VM ctest-TestBasicPolicy-05684815-56447889 to be up.. 2024-09-17 10:38:07,241 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 10:38:12,337 - DEBUG - VM is in ACTIVE state now 2024-09-17 10:38:12,337 - INFO - VM name : ctest-TestBasicPolicy-05684815-56447889 2024-09-17 10:38:12,443 - DEBUG - VM ctest-TestBasicPolicy-05684815-56447889 ID is 6dc96532-9e9f-4bce-8079-a67e583b2701 2024-09-17 10:38:12,466 - DEBUG - VM ctest-TestBasicPolicy-05684815-56447889 launched on Node cn-jenkins-deploy-platform-ansible-os-1960-1 2024-09-17 10:38:12,550 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/6dc96532-9e9f-4bce-8079-a67e583b2701 2024-09-17 10:38:12,564 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/cc610152-b499-44a4-9f02-83413ebedeee 2024-09-17 10:38:15,830 - 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 1007ms') 2024-09-17 10:38:15,830 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05684815-56447889 failed! 2024-09-17 10:38:15,889 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-05684815:ctest-vn-67290418 is 54.142.153.1 and allocation pool is NOT set 2024-09-17 10:38:17,947 - 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.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.445 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.445/2.360/4.276/1.915 ms') 2024-09-17 10:38:17,947 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05684815-56447889 passed 2024-09-17 10:38:18,105 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:38:18,105 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05684815-56447889, IP 54.142.153.3, Port 22 2024-09-17 10:38:18,260 - DEBUG - VM ctest-TestBasicPolicy-05684815-56447889 is ready for SSH connections 2024-09-17 10:38:18,261 - INFO - Waiting for VM ctest-TestBasicPolicy-05684815-58262461 to be up.. 2024-09-17 10:38:18,354 - DEBUG - VM is in ACTIVE state now 2024-09-17 10:38:18,355 - INFO - VM name : ctest-TestBasicPolicy-05684815-58262461 2024-09-17 10:38:18,436 - DEBUG - VM ctest-TestBasicPolicy-05684815-58262461 ID is 25bd71db-a6de-4b56-a80f-355b9c9a2eb0 2024-09-17 10:38:18,437 - DEBUG - VM ctest-TestBasicPolicy-05684815-58262461 launched on Node cn-jenkins-deploy-platform-ansible-os-1960-1 2024-09-17 10:38:18,559 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/25bd71db-a6de-4b56-a80f-355b9c9a2eb0 2024-09-17 10:38:18,576 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/2653aef2-28d9-465b-a0dc-04071d248167 2024-09-17 10:38:19,837 - 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.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.451 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.451/1.944/3.437/1.493 ms') 2024-09-17 10:38:19,837 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-05684815-58262461 passed 2024-09-17 10:38:19,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:38:19,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05684815-58262461, IP 106.196.222.67, Port 22 2024-09-17 10:38:20,153 - DEBUG - VM ctest-TestBasicPolicy-05684815-58262461 is ready for SSH connections 2024-09-17 10:38:20,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:38:20,153 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.196.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-17 10:38:20,153 - DEBUG - ping -s 56 -c 3 -W 1 106.196.222.67 2024-09-17 10:38:24,148 - DEBUG - PING 106.196.222.67 (106.196.222.67): 56 data bytes 64 bytes from 106.196.222.67: seq=0 ttl=63 time=3.189 ms 64 bytes from 106.196.222.67: seq=1 ttl=63 time=1.154 ms 64 bytes from 106.196.222.67: seq=2 ttl=63 time=0.787 ms --- 106.196.222.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.787/1.710/3.189 ms 2024-09-17 10:38:24,148 - INFO - Ping to IP 106.196.222.67 from VM ctest-TestBasicPolicy-05684815-56447889 passed 2024-09-17 10:38:24,340 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8550623f-257c-460a-b4e7-a8c5bd5fe5d6", "href": "http://10.0.0.33:8082/network-policy/8550623f-257c-460a-b4e7-a8c5bd5fe5d6"}} 2024-09-17 10:38:24,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 10:38:24,340 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.196.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-17 10:38:24,341 - DEBUG - ping -s 56 -c 3 -W 1 106.196.222.67 2024-09-17 10:38:27,564 - DEBUG - PING 106.196.222.67 (106.196.222.67): 56 data bytes 64 bytes from 106.196.222.67: seq=0 ttl=63 time=2.004 ms --- 106.196.222.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.004/2.004/2.004 ms 2024-09-17 10:38:27,565 - WARNING - Ping to IP 106.196.222.67 from VM ctest-TestBasicPolicy-05684815-56447889 failed 2024-09-17 10:38:27,565 - INFO - Deleting VM ctest-TestBasicPolicy-05684815-58262461 2024-09-17 10:38:27,632 - INFO - Deleting VM ctest-TestBasicPolicy-05684815-56447889 2024-09-17 10:38:28,067 - INFO - Deleted policy ctest-policy-allow-all-72097399 2024-09-17 10:38:28,067 - INFO - Deleting VN ctest-vn-44990531 2024-09-17 10:38:28,108 - DEBUG - VN 4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5 still in use: Unable to complete operation on network 4d9e6813-7d7b-4cde-a7e1-e24aaa9a06e5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b52a0a0b-03df-41c5-97f8-c943929975ca'] 2024-09-17 10:38:28,108 - WARNING - Deleting VN ctest-vn-44990531 failed..Will retry 2024-09-17 10:38:30,209 - DEBUG - Response for deleting network () 2024-09-17 10:38:30,210 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67a88b11-6737-47f3-a66a-6a0511e33b5e 2024-09-17 10:38:30,215 - DEBUG - Response Code: 404 2024-09-17 10:38:30,215 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:30,220 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf 2024-09-17 10:38:30,276 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:30,354 - INFO - Validated that VN ctest-vn-44990531 is not found in API Server 2024-09-17 10:38:30,366 - DEBUG - VN ctest-vn-44990531 is not present in Agent 10.0.0.33 2024-09-17 10:38:30,366 - INFO - Validated that VN ctest-vn-44990531 is not in any agent 2024-09-17 10:38:30,383 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44990531 info 2024-09-17 10:38:30,383 - INFO - Deleting VN ctest-vn-67290418 2024-09-17 10:38:30,490 - DEBUG - Response for deleting network () 2024-09-17 10:38:30,490 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89ae6cf7-474c-4968-8ab0-13813f53476d 2024-09-17 10:38:30,496 - DEBUG - Response Code: 404 2024-09-17 10:38:30,497 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-17 10:38:30,503 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2642e4d-8548-4485-a2f2-01267c16b0cf 2024-09-17 10:38:30,563 - DEBUG - Requesting: http://10.0.0.33:8082/project/d0338d06-5d7d-448c-99f9-d661c929b846 2024-09-17 10:38:30,645 - INFO - Validated that VN ctest-vn-67290418 is not found in API Server 2024-09-17 10:38:30,658 - DEBUG - VN ctest-vn-67290418 is not present in Agent 10.0.0.33 2024-09-17 10:38:30,658 - INFO - Validated that VN ctest-vn-67290418 is not in any agent 2024-09-17 10:38:30,677 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67290418 info 2024-09-17 10:38:30,932 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 10:38:30,932 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-17 10:38:30,932 - INFO - -------------------------------------------------------------------------------- 2024-09-17 10:38:31,674 - INFO - Deleted project: ctest-TestBasicPolicy-05684815, ID : d0338d06-5d7d-448c-99f9-d661c929b846