2025-07-04 15:44:58,680 - INFO - Domain Default found not creating 2025-07-04 15:44:58,826 - INFO - Project ctest-TestBasicPolicy-85692962 not found, creating it 2025-07-04 15:44:59,276 - INFO - Created Project:ctest-TestBasicPolicy-85692962, ID : 9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:00,818 - INFO - ================================================================================ 2025-07-04 15:45:00,818 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-04 15:45:00,819 - 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-07-04 15:45:01,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with 2025-07-04 15:45:01,075 - INFO - Initial checks done. Running the testcase now 2025-07-04 15:45:01,075 - INFO - 2025-07-04 15:45:01,659 - DEBUG - Response for create_network : {'network': {'id': '7b276d0e-efb6-47b1-8f03-eb44b82472fc', 'name': 'ctest-vn-21015358', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-21015358'], 'port_security_enabled': True, 'description': ''}} 2025-07-04 15:45:01,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b986bc6-afd4-4ce7-bcdb-d996e22823e6', 'name': '', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'network_id': '7b276d0e-efb6-47b1-8f03-eb44b82472fc', 'ip_version': 4, 'cidr': '54.248.242.128/26', 'allocation_pools': [{'start': '54.248.242.130', 'end': '54.248.242.190'}], 'gateway_ip': '54.248.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.248.242.130', 'tags': [], 'project_id': '9f1a9c2a59454dc68671f7ab5da29129'}} 2025-07-04 15:45:01,891 - INFO - Created VN ctest-vn-21015358 2025-07-04 15:45:01,945 - DEBUG - VN ctest-vn-21015358 UUID is 7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:02,299 - DEBUG - Response for create_network : {'network': {'id': 'd0a3df43-d456-4dc3-a104-cabf2568b8da', 'name': 'ctest-vn-88918047', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-88918047'], 'port_security_enabled': True, 'description': ''}} 2025-07-04 15:45:02,494 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e888029b-86d6-45bf-b0bb-d3192ef5319d', 'name': '', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'network_id': 'd0a3df43-d456-4dc3-a104-cabf2568b8da', 'ip_version': 4, 'cidr': '121.93.7.192/26', 'allocation_pools': [{'start': '121.93.7.194', 'end': '121.93.7.254'}], 'gateway_ip': '121.93.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.93.7.194', 'tags': [], 'project_id': '9f1a9c2a59454dc68671f7ab5da29129'}} 2025-07-04 15:45:02,514 - INFO - Created VN ctest-vn-88918047 2025-07-04 15:45:02,569 - DEBUG - VN ctest-vn-88918047 UUID is d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:02,695 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358, 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-85692962:ctest-vn-88918047, 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-07-04 15:45:03,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b276d0e-efb6-47b1-8f03-eb44b82472fc', 'name': 'ctest-vn-21015358', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b986bc6-afd4-4ce7-bcdb-d996e22823e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-21015358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399']], 'subnet_ipam': [{'subnet_cidr': '54.248.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-04 15:45:03,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0a3df43-d456-4dc3-a104-cabf2568b8da', 'name': 'ctest-vn-88918047', 'tenant_id': '9f1a9c2a59454dc68671f7ab5da29129', 'project_id': '9f1a9c2a59454dc68671f7ab5da29129', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e888029b-86d6-45bf-b0bb-d3192ef5319d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-vn-88918047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399']], 'subnet_ipam': [{'subnet_cidr': '121.93.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-04 15:45:03,413 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:03,713 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:03,744 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224 2025-07-04 15:45:03,760 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:03,833 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:03,845 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:03,855 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b 2025-07-04 15:45:03,864 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b 2025-07-04 15:45:03,872 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6fbcec2c-bb4d-478e-94d8-3b92839e8bbb 2025-07-04 15:45:03,880 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-04 15:45:03,880 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:03,890 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b 2025-07-04 15:45:03,907 - INFO - Verified VN network id 8 for VN 7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:03,907 - INFO - Verifications in API Server for VN ctest-vn-21015358 passed 2025-07-04 15:45:03,907 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:03,917 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b 2025-07-04 15:45:03,925 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b 2025-07-04 15:45:03,933 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6fbcec2c-bb4d-478e-94d8-3b92839e8bbb 2025-07-04 15:45:03,946 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85692962', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8874181501675521969', 'uuid-lslong': '10305339052733526780'}, 'enable': 'true', 'created': '2025-07-04T15:45:01', 'last-modified': '2025-07-04T15:45:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953101'} 2025-07-04 15:45:03,952 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-04 15:45:03,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21015358 passed 2025-07-04 15:45:03,953 - DEBUG - ====Verifying policy data for ctest-vn-21015358 in API_Server ====== 2025-07-04 15:45:03,953 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:03,959 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224 2025-07-04 15:45:03,971 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:04,052 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7b276d0e-efb6-47b1-8f03-eb44b82472fc 2025-07-04 15:45:04,064 - DEBUG - ==>Verifying data for policy with id: 79e5ca9d-95eb-4960-9175-5de44d3f6083, fqn: ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399'] 2025-07-04 15:45:04,064 - INFO - VN ctest-vn-21015358 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-04 15:45:04,064 - DEBUG - Verifying the vn in opserver 2025-07-04 15:45:04,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358 virtual network link through opserver 10.0.0.130 2025-07-04 15:45:04,064 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-07-04 15:45:04,356 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-07-04 15:45:04,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358?flat'} 2025-07-04 15:45:04,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358 is found in opserver 2025-07-04 15:45:04,432 - DEBUG - Do not have enough data to verify VN in agent 2025-07-04 15:45:04,438 - DEBUG - VRF ids for VN ctest-vn-21015358: {} 2025-07-04 15:45:04,438 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:04,444 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224 2025-07-04 15:45:04,458 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:04,547 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:04,561 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:04,573 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5 2025-07-04 15:45:04,584 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5 2025-07-04 15:45:04,592 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/726ea39b-5eda-40f8-be94-475113972c1f 2025-07-04 15:45:04,599 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-04 15:45:04,599 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:04,611 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5 2025-07-04 15:45:04,632 - INFO - Verified VN network id 9 for VN d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:04,632 - INFO - Verifications in API Server for VN ctest-vn-88918047 passed 2025-07-04 15:45:04,632 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:04,646 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5 2025-07-04 15:45:04,655 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5 2025-07-04 15:45:04,665 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/726ea39b-5eda-40f8-be94-475113972c1f 2025-07-04 15:45:04,680 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85692962', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15034105463511076291', 'uuid-lslong': '11602621462328424666'}, 'enable': 'true', 'created': '2025-07-04T15:45:02', 'last-modified': '2025-07-04T15:45:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444786'} 2025-07-04 15:45:04,686 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-04 15:45:04,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88918047 passed 2025-07-04 15:45:04,687 - DEBUG - ====Verifying policy data for ctest-vn-88918047 in API_Server ====== 2025-07-04 15:45:04,687 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:04,693 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224 2025-07-04 15:45:04,707 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:04,788 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d0a3df43-d456-4dc3-a104-cabf2568b8da 2025-07-04 15:45:04,799 - DEBUG - ==>Verifying data for policy with id: 79e5ca9d-95eb-4960-9175-5de44d3f6083, fqn: ['default-domain', 'ctest-TestBasicPolicy-85692962', 'ctest-policy-allow-all-10629399'] 2025-07-04 15:45:04,799 - INFO - VN ctest-vn-88918047 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-04 15:45:04,799 - DEBUG - Verifying the vn in opserver 2025-07-04 15:45:04,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047 virtual network link through opserver 10.0.0.130 2025-07-04 15:45:04,799 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-07-04 15:45:04,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047?flat'} 2025-07-04 15:45:04,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-88918047 is found in opserver 2025-07-04 15:45:04,823 - DEBUG - Do not have enough data to verify VN in agent 2025-07-04 15:45:04,830 - DEBUG - VRF ids for VN ctest-vn-88918047: {} 2025-07-04 15:45:04,890 - DEBUG - Services list from nova: [, , ] 2025-07-04 15:45:06,065 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3599-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3599-1) 2025-07-04 15:45:07,364 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3599-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3599-1) 2025-07-04 15:45:07,365 - INFO - Waiting for VM ctest-TestBasicPolicy-85692962-03982639 to be up.. 2025-07-04 15:45:07,477 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-04 15:45:12,571 - DEBUG - VM is in ACTIVE state now 2025-07-04 15:45:12,571 - INFO - VM name : ctest-TestBasicPolicy-85692962-03982639 2025-07-04 15:45:12,654 - DEBUG - VM ctest-TestBasicPolicy-85692962-03982639 ID is 52b33903-e1f0-4f57-a3b3-50ff5d6df3e0 2025-07-04 15:45:12,683 - DEBUG - VM ctest-TestBasicPolicy-85692962-03982639 launched on Node cn-jenkins-deploy-platform-ansible-os-3599-1 2025-07-04 15:45:12,759 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/52b33903-e1f0-4f57-a3b3-50ff5d6df3e0 2025-07-04 15:45:12,769 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/8d80af1d-f6a9-4f54-afa2-24b726b93dad 2025-07-04 15:45:16,033 - 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 1027ms') 2025-07-04 15:45:16,033 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85692962-03982639 failed! 2025-07-04 15:45:16,089 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85692962:ctest-vn-21015358 is 54.248.242.129 and allocation pool is NOT set 2025-07-04 15:45:18,146 - 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.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.366 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.366/2.852/5.338/2.486 ms') 2025-07-04 15:45:18,146 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85692962-03982639 passed 2025-07-04 15:45:18,301 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:45:18,301 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85692962-03982639, IP 54.248.242.131, Port 22 2025-07-04 15:45:18,457 - DEBUG - VM ctest-TestBasicPolicy-85692962-03982639 is ready for SSH connections 2025-07-04 15:45:18,457 - INFO - Waiting for VM ctest-TestBasicPolicy-85692962-39739288 to be up.. 2025-07-04 15:45:18,543 - DEBUG - VM is in ACTIVE state now 2025-07-04 15:45:18,543 - INFO - VM name : ctest-TestBasicPolicy-85692962-39739288 2025-07-04 15:45:18,617 - DEBUG - VM ctest-TestBasicPolicy-85692962-39739288 ID is cae9f638-aef7-4683-b77a-402f4f2bc607 2025-07-04 15:45:18,617 - DEBUG - VM ctest-TestBasicPolicy-85692962-39739288 launched on Node cn-jenkins-deploy-platform-ansible-os-3599-1 2025-07-04 15:45:18,690 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/cae9f638-aef7-4683-b77a-402f4f2bc607 2025-07-04 15:45:18,705 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/66f3b6bf-ef97-4acc-bcbc-af431e77c265 2025-07-04 15:45:19,942 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.762 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.762/2.283/3.804/1.521 ms') 2025-07-04 15:45:19,942 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85692962-39739288 passed 2025-07-04 15:45:20,097 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:45:20,097 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85692962-39739288, IP 121.93.7.195, Port 22 2025-07-04 15:45:20,257 - DEBUG - VM ctest-TestBasicPolicy-85692962-39739288 is ready for SSH connections 2025-07-04 15:45:20,257 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:45:20,257 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.93.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-07-04 15:45:20,257 - DEBUG - ping -s 56 -c 3 -W 1 121.93.7.195 2025-07-04 15:45:23,921 - DEBUG - PING 121.93.7.195 (121.93.7.195): 56 data bytes 64 bytes from 121.93.7.195: seq=0 ttl=63 time=4.067 ms 64 bytes from 121.93.7.195: seq=1 ttl=63 time=0.790 ms 64 bytes from 121.93.7.195: seq=2 ttl=63 time=1.168 ms --- 121.93.7.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.790/2.008/4.067 ms 2025-07-04 15:45:23,921 - INFO - Ping to IP 121.93.7.195 from VM ctest-TestBasicPolicy-85692962-03982639 passed 2025-07-04 15:45:24,101 - DEBUG - Policy Update Response {"network-policy": {"uuid": "79e5ca9d-95eb-4960-9175-5de44d3f6083", "href": "http://10.0.0.130:8082/network-policy/79e5ca9d-95eb-4960-9175-5de44d3f6083"}} 2025-07-04 15:45:24,101 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:45:24,101 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.93.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-07-04 15:45:24,101 - DEBUG - ping -s 56 -c 3 -W 1 121.93.7.195 2025-07-04 15:45:27,301 - DEBUG - PING 121.93.7.195 (121.93.7.195): 56 data bytes --- 121.93.7.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-04 15:45:27,301 - WARNING - Ping to IP 121.93.7.195 from VM ctest-TestBasicPolicy-85692962-03982639 failed 2025-07-04 15:45:27,302 - INFO - Deleting VM ctest-TestBasicPolicy-85692962-39739288 2025-07-04 15:45:27,367 - INFO - Deleting VM ctest-TestBasicPolicy-85692962-03982639 2025-07-04 15:45:27,723 - INFO - Deleted policy ctest-policy-allow-all-10629399 2025-07-04 15:45:27,724 - INFO - Deleting VN ctest-vn-88918047 2025-07-04 15:45:27,770 - DEBUG - VN d0a3df43-d456-4dc3-a104-cabf2568b8da still in use: Unable to complete operation on network d0a3df43-d456-4dc3-a104-cabf2568b8da. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-29a6d424-3a87-47e1-a33c-f3291fe05262'] 2025-07-04 15:45:27,770 - WARNING - Deleting VN ctest-vn-88918047 failed..Will retry 2025-07-04 15:45:29,883 - DEBUG - Response for deleting network () 2025-07-04 15:45:29,883 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0a2b5f51-0fc8-4d97-b9f4-295d9f8dcbc5 2025-07-04 15:45:29,890 - DEBUG - Response Code: 404 2025-07-04 15:45:29,890 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:29,895 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224 2025-07-04 15:45:29,956 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:30,036 - INFO - Validated that VN ctest-vn-88918047 is not found in API Server 2025-07-04 15:45:30,048 - DEBUG - VN ctest-vn-88918047 is not present in Agent 10.0.0.130 2025-07-04 15:45:30,049 - INFO - Validated that VN ctest-vn-88918047 is not in any agent 2025-07-04 15:45:30,070 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-88918047 info 2025-07-04 15:45:30,070 - INFO - Deleting VN ctest-vn-21015358 2025-07-04 15:45:30,180 - DEBUG - Response for deleting network () 2025-07-04 15:45:30,180 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/58c74710-ccf5-4c29-a780-ed1ddc8ece8b 2025-07-04 15:45:30,192 - DEBUG - Response Code: 404 2025-07-04 15:45:30,192 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-07-04 15:45:30,198 - DEBUG - Requesting: http://10.0.0.130:8082/domain/3d701337-c4a0-468d-8639-16e50d3c5224 2025-07-04 15:45:30,261 - DEBUG - Requesting: http://10.0.0.130:8082/project/9f1a9c2a-5945-4dc6-8671-f7ab5da29129 2025-07-04 15:45:30,337 - INFO - Validated that VN ctest-vn-21015358 is not found in API Server 2025-07-04 15:45:30,347 - DEBUG - VN ctest-vn-21015358 is not present in Agent 10.0.0.130 2025-07-04 15:45:30,347 - INFO - Validated that VN ctest-vn-21015358 is not in any agent 2025-07-04 15:45:30,362 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-21015358 info 2025-07-04 15:45:30,619 - DEBUG - No XMPP flaps were noticed during the test
2025-07-04 15:45:30,619 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-07-04 15:45:30,619 - INFO - -------------------------------------------------------------------------------- 2025-07-04 15:45:31,327 - INFO - Deleted project: ctest-TestBasicPolicy-85692962, ID : 9f1a9c2a-5945-4dc6-8671-f7ab5da29129