2025-04-08 16:11:43,812 - INFO - Domain Default found not creating 2025-04-08 16:11:44,228 - INFO - Project ctest-TestBasicPolicy-00084498 not found, creating it 2025-04-08 16:11:44,987 - INFO - Created Project:ctest-TestBasicPolicy-00084498, ID : a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:11:47,563 - INFO - ================================================================================ 2025-04-08 16:11:47,563 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-08 16:11:47,564 - 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 2025-04-08 16:11:47,912 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.12': '0'}} with 2025-04-08 16:11:47,912 - INFO - Initial checks done. Running the testcase now 2025-04-08 16:11:47,912 - INFO - 2025-04-08 16:11:48,713 - DEBUG - Response for create_network : {'network': {'id': 'f585efe2-a588-4f10-ad7f-ffe0618d11c8', 'name': 'ctest-vn-17296800', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-17296800'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 16:11:48,968 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c168f1a-4545-4d30-b5f6-96a009878cad', 'name': '', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'network_id': 'f585efe2-a588-4f10-ad7f-ffe0618d11c8', 'ip_version': 4, 'cidr': '221.74.110.192/26', 'allocation_pools': [{'start': '221.74.110.194', 'end': '221.74.110.254'}], 'gateway_ip': '221.74.110.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.74.110.194', 'tags': [], 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33'}} 2025-04-08 16:11:48,986 - INFO - Created VN ctest-vn-17296800 2025-04-08 16:11:49,039 - DEBUG - VN ctest-vn-17296800 UUID is f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:49,560 - DEBUG - Response for create_network : {'network': {'id': 'b5d80e93-5355-4382-b131-43d0595189e3', 'name': 'ctest-vn-75669533', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-75669533'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 16:11:49,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c0a9f22-d9eb-463b-840a-8f14ef94d91e', 'name': '', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'network_id': 'b5d80e93-5355-4382-b131-43d0595189e3', 'ip_version': 4, 'cidr': '199.252.102.192/26', 'allocation_pools': [{'start': '199.252.102.194', 'end': '199.252.102.254'}], 'gateway_ip': '199.252.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.252.102.194', 'tags': [], 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33'}} 2025-04-08 16:11:49,762 - INFO - Created VN ctest-vn-75669533 2025-04-08 16:11:49,819 - DEBUG - VN ctest-vn-75669533 UUID is b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:50,039 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800, 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-00084498:ctest-vn-75669533, 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] 2025-04-08 16:11:50,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f585efe2-a588-4f10-ad7f-ffe0618d11c8', 'name': 'ctest-vn-17296800', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c168f1a-4545-4d30-b5f6-96a009878cad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-17296800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867']], 'subnet_ipam': [{'subnet_cidr': '221.74.110.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 16:11:50,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5d80e93-5355-4382-b131-43d0595189e3', 'name': 'ctest-vn-75669533', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c0a9f22-d9eb-463b-840a-8f14ef94d91e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-75669533'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867']], 'subnet_ipam': [{'subnet_cidr': '199.252.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 16:11:50,986 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:11:51,295 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:11:51,365 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f 2025-04-08 16:11:51,397 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:11:51,515 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:51,544 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:51,564 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4 2025-04-08 16:11:51,579 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4 2025-04-08 16:11:51,593 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/42f863e3-1751-4395-913d-4e5d0948b8c2 2025-04-08 16:11:51,607 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-08 16:11:51,608 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:51,628 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4 2025-04-08 16:11:51,658 - INFO - Verified VN network id 8 for VN f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:51,658 - INFO - Verifications in API Server for VN ctest-vn-17296800 passed 2025-04-08 16:11:51,658 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:51,683 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4 2025-04-08 16:11:51,697 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4 2025-04-08 16:11:51,711 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/42f863e3-1751-4395-913d-4e5d0948b8c2 2025-04-08 16:11:51,735 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17691810467913682704', 'uuid-lslong': '12501992429778178504'}, 'enable': 'true', 'created': '2025-04-08T16:11:48', 'last-modified': '2025-04-08T16:11:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299531'} 2025-04-08 16:11:51,748 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-08 16:11:51,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17296800 passed 2025-04-08 16:11:51,748 - DEBUG - ====Verifying policy data for ctest-vn-17296800 in API_Server ====== 2025-04-08 16:11:51,749 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:11:51,758 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f 2025-04-08 16:11:51,777 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:11:51,886 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8 2025-04-08 16:11:51,901 - DEBUG - ==>Verifying data for policy with id: 969bb2e5-16a4-41b5-a9d3-14fb3be6c74d, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867'] 2025-04-08 16:11:51,902 - INFO - VN ctest-vn-17296800 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 16:11:51,902 - DEBUG - Verifying the vn in opserver 2025-04-08 16:11:51,902 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800 virtual network link through opserver 10.0.0.28 2025-04-08 16:11:51,902 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-04-08 16:11:52,223 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-04-08 16:11:52,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800?flat'} 2025-04-08 16:11:52,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800 is found in opserver 2025-04-08 16:11:52,354 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 16:11:52,365 - DEBUG - VRF ids for VN ctest-vn-17296800: {} 2025-04-08 16:11:52,365 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:11:52,379 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f 2025-04-08 16:11:52,407 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:11:52,530 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:52,559 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:52,588 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6 2025-04-08 16:11:52,613 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6 2025-04-08 16:11:52,633 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/ea4639c7-e0f1-4e15-8547-8b6c1b2d20cd 2025-04-08 16:11:52,654 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 16:11:52,655 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:52,681 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6 2025-04-08 16:11:52,717 - INFO - Verified VN network id 9 for VN b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:52,718 - INFO - Verifications in API Server for VN ctest-vn-75669533 passed 2025-04-08 16:11:52,718 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:52,743 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6 2025-04-08 16:11:52,763 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6 2025-04-08 16:11:52,782 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/ea4639c7-e0f1-4e15-8547-8b6c1b2d20cd 2025-04-08 16:11:52,814 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13103239141755536258', 'uuid-lslong': '12768060980702841315'}, 'enable': 'true', 'created': '2025-04-08T16:11:49', 'last-modified': '2025-04-08T16:11:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.072787'} 2025-04-08 16:11:52,833 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 16:11:52,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75669533 passed 2025-04-08 16:11:52,834 - DEBUG - ====Verifying policy data for ctest-vn-75669533 in API_Server ====== 2025-04-08 16:11:52,834 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:11:52,849 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f 2025-04-08 16:11:52,880 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:11:52,999 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3 2025-04-08 16:11:53,021 - DEBUG - ==>Verifying data for policy with id: 969bb2e5-16a4-41b5-a9d3-14fb3be6c74d, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867'] 2025-04-08 16:11:53,021 - INFO - VN ctest-vn-75669533 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 16:11:53,021 - DEBUG - Verifying the vn in opserver 2025-04-08 16:11:53,021 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533 virtual network link through opserver 10.0.0.28 2025-04-08 16:11:53,021 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-04-08 16:11:53,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533?flat'} 2025-04-08 16:11:53,039 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533 is found in opserver 2025-04-08 16:11:53,062 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 16:11:53,074 - DEBUG - VRF ids for VN ctest-vn-75669533: {} 2025-04-08 16:11:53,168 - DEBUG - Services list from nova: [, , ] 2025-04-08 16:11:54,855 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3055-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3055-1) 2025-04-08 16:11:56,462 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3055-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3055-1) 2025-04-08 16:11:56,463 - INFO - Waiting for VM ctest-TestBasicPolicy-00084498-53004389 to be up.. 2025-04-08 16:11:56,568 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 16:12:01,726 - DEBUG - VM is in ACTIVE state now 2025-04-08 16:12:01,726 - INFO - VM name : ctest-TestBasicPolicy-00084498-53004389 2025-04-08 16:12:01,863 - DEBUG - VM ctest-TestBasicPolicy-00084498-53004389 ID is 5fa68955-ebf6-41ea-9966-b2c40e74bd8a 2025-04-08 16:12:01,887 - DEBUG - VM ctest-TestBasicPolicy-00084498-53004389 launched on Node cn-jenkins-deploy-platform-ansible-os-3055-1 2025-04-08 16:12:01,972 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/5fa68955-ebf6-41ea-9966-b2c40e74bd8a 2025-04-08 16:12:01,983 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/3c675bcb-d629-40b4-ba73-7113885c9637 2025-04-08 16:12:05,271 - 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 1010ms') 2025-04-08 16:12:05,271 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00084498-53004389 failed! 2025-04-08 16:12:05,343 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800 is 221.74.110.193 and allocation pool is NOT set 2025-04-08 16:12:09,437 - 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=2 ttl=63 time=6.03 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1009ms\r\nrtt min/avg/max/mdev = 6.032/6.032/6.032/0.000 ms') 2025-04-08 16:12:09,438 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00084498-53004389 passed 2025-04-08 16:12:09,643 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:12:09,644 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00084498-53004389, IP 221.74.110.195, Port 22 2025-04-08 16:12:09,857 - DEBUG - VM ctest-TestBasicPolicy-00084498-53004389 is ready for SSH connections 2025-04-08 16:12:09,858 - INFO - Waiting for VM ctest-TestBasicPolicy-00084498-33991104 to be up.. 2025-04-08 16:12:10,086 - DEBUG - VM is in ACTIVE state now 2025-04-08 16:12:10,086 - INFO - VM name : ctest-TestBasicPolicy-00084498-33991104 2025-04-08 16:12:10,244 - DEBUG - VM ctest-TestBasicPolicy-00084498-33991104 ID is 0eae6bc2-4002-4ef0-bdc0-30d561b92533 2025-04-08 16:12:10,244 - DEBUG - VM ctest-TestBasicPolicy-00084498-33991104 launched on Node cn-jenkins-deploy-platform-ansible-os-3055-1 2025-04-08 16:12:10,461 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/0eae6bc2-4002-4ef0-bdc0-30d561b92533 2025-04-08 16:12:10,489 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/3ec82a5c-355d-4b4f-936c-6e551af6e589 2025-04-08 16:12:11,840 - 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=7.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.613 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.613/4.275/7.938/3.662 ms') 2025-04-08 16:12:11,841 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00084498-33991104 passed 2025-04-08 16:12:12,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:12:12,040 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00084498-33991104, IP 199.252.102.195, Port 22 2025-04-08 16:12:12,251 - DEBUG - VM ctest-TestBasicPolicy-00084498-33991104 is ready for SSH connections 2025-04-08 16:12:12,252 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:12:12,252 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.252.102.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-04-08 16:12:12,252 - DEBUG - ping -s 56 -c 3 -W 1 199.252.102.195 2025-04-08 16:12:16,538 - DEBUG - PING 199.252.102.195 (199.252.102.195): 56 data bytes 64 bytes from 199.252.102.195: seq=0 ttl=63 time=3.843 ms 64 bytes from 199.252.102.195: seq=1 ttl=63 time=1.113 ms 64 bytes from 199.252.102.195: seq=2 ttl=63 time=1.282 ms --- 199.252.102.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.113/2.079/3.843 ms 2025-04-08 16:12:16,538 - INFO - Ping to IP 199.252.102.195 from VM ctest-TestBasicPolicy-00084498-53004389 passed 2025-04-08 16:12:16,770 - DEBUG - Policy Update Response {"network-policy": {"uuid": "969bb2e5-16a4-41b5-a9d3-14fb3be6c74d", "href": "http://10.0.0.28:8082/network-policy/969bb2e5-16a4-41b5-a9d3-14fb3be6c74d"}} 2025-04-08 16:12:16,770 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 16:12:16,771 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.252.102.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-04-08 16:12:16,771 - DEBUG - ping -s 56 -c 3 -W 1 199.252.102.195 2025-04-08 16:12:19,989 - DEBUG - PING 199.252.102.195 (199.252.102.195): 56 data bytes --- 199.252.102.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-08 16:12:19,989 - WARNING - Ping to IP 199.252.102.195 from VM ctest-TestBasicPolicy-00084498-53004389 failed 2025-04-08 16:12:19,990 - INFO - Deleting VM ctest-TestBasicPolicy-00084498-33991104 2025-04-08 16:12:20,180 - INFO - Deleting VM ctest-TestBasicPolicy-00084498-53004389 2025-04-08 16:12:20,826 - INFO - Deleted policy ctest-policy-allow-all-33940867 2025-04-08 16:12:20,826 - INFO - Deleting VN ctest-vn-75669533 2025-04-08 16:12:20,901 - DEBUG - VN b5d80e93-5355-4382-b131-43d0595189e3 still in use: Unable to complete operation on network b5d80e93-5355-4382-b131-43d0595189e3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9d92cc4e-d4be-440a-b25e-d1d3b334b486'] 2025-04-08 16:12:20,901 - WARNING - Deleting VN ctest-vn-75669533 failed..Will retry 2025-04-08 16:12:23,212 - DEBUG - Response for deleting network () 2025-04-08 16:12:23,212 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6 2025-04-08 16:12:23,220 - DEBUG - Response Code: 404 2025-04-08 16:12:23,220 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:12:23,229 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f 2025-04-08 16:12:23,290 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:12:23,399 - INFO - Validated that VN ctest-vn-75669533 is not found in API Server 2025-04-08 16:12:23,417 - DEBUG - VN ctest-vn-75669533 is not present in Agent 10.0.0.28 2025-04-08 16:12:23,417 - INFO - Validated that VN ctest-vn-75669533 is not in any agent 2025-04-08 16:12:23,448 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75669533 info 2025-04-08 16:12:23,448 - INFO - Deleting VN ctest-vn-17296800 2025-04-08 16:12:23,653 - DEBUG - Response for deleting network () 2025-04-08 16:12:23,653 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4 2025-04-08 16:12:23,660 - DEBUG - Response Code: 404 2025-04-08 16:12:23,661 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-04-08 16:12:23,669 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f 2025-04-08 16:12:23,735 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33 2025-04-08 16:12:23,859 - INFO - Validated that VN ctest-vn-17296800 is not found in API Server 2025-04-08 16:12:23,880 - DEBUG - VN ctest-vn-17296800 is not present in Agent 10.0.0.28 2025-04-08 16:12:23,880 - INFO - Validated that VN ctest-vn-17296800 is not in any agent 2025-04-08 16:12:23,918 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17296800 info 2025-04-08 16:12:24,225 - DEBUG - No XMPP flaps were noticed during the test
2025-04-08 16:12:24,225 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-04-08 16:12:24,225 - INFO - -------------------------------------------------------------------------------- 2025-04-08 16:12:25,278 - INFO - Deleted project: ctest-TestBasicPolicy-00084498, ID : a1ee242d-3b65-4fd9-adca-c6d9e43a0b33