2025-03-17 02:21:06,802 - INFO - Domain Default found not creating 2025-03-17 02:21:06,955 - INFO - Project ctest-TestBasicPolicy-73759065 not found, creating it 2025-03-17 02:21:07,410 - INFO - Created Project:ctest-TestBasicPolicy-73759065, ID : 0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:08,876 - INFO - ================================================================================ 2025-03-17 02:21:08,876 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-17 02:21:08,876 - 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-03-17 02:21:09,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.23': '0'}} with 2025-03-17 02:21:09,149 - INFO - Initial checks done. Running the testcase now 2025-03-17 02:21:09,149 - INFO - 2025-03-17 02:21:10,223 - DEBUG - Response for create_network : {'network': {'id': 'effe8f89-939e-4a24-bbf9-49a88768794c', 'name': 'ctest-vn-48274290', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-48274290'], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:21:10,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '71cdcc62-4c94-4fc3-967e-18deb2ed2129', 'name': '', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'network_id': 'effe8f89-939e-4a24-bbf9-49a88768794c', 'ip_version': 4, 'cidr': '88.75.9.128/26', 'allocation_pools': [{'start': '88.75.9.130', 'end': '88.75.9.190'}], 'gateway_ip': '88.75.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.75.9.130', 'tags': [], 'project_id': '0ace061a614e479db0a29f9bbfd1507a'}} 2025-03-17 02:21:10,441 - INFO - Created VN ctest-vn-48274290 2025-03-17 02:21:10,494 - DEBUG - VN ctest-vn-48274290 UUID is effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:10,775 - DEBUG - Response for create_network : {'network': {'id': 'ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5', 'name': 'ctest-vn-27886632', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-27886632'], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:21:11,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba2adbf7-3947-4903-9ec9-e614eee9e6a3', 'name': '', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'network_id': 'ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5', 'ip_version': 4, 'cidr': '49.185.6.0/26', 'allocation_pools': [{'start': '49.185.6.2', 'end': '49.185.6.62'}], 'gateway_ip': '49.185.6.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.185.6.2', 'tags': [], 'project_id': '0ace061a614e479db0a29f9bbfd1507a'}} 2025-03-17 02:21:11,025 - INFO - Created VN ctest-vn-27886632 2025-03-17 02:21:11,078 - DEBUG - VN ctest-vn-27886632 UUID is ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:11,273 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290, 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-73759065:ctest-vn-27886632, 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-03-17 02:21:11,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'effe8f89-939e-4a24-bbf9-49a88768794c', 'name': 'ctest-vn-48274290', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71cdcc62-4c94-4fc3-967e-18deb2ed2129'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-48274290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861']], 'subnet_ipam': [{'subnet_cidr': '88.75.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:21:11,803 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5', 'name': 'ctest-vn-27886632', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba2adbf7-3947-4903-9ec9-e614eee9e6a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-27886632'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861']], 'subnet_ipam': [{'subnet_cidr': '49.185.6.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-17 02:21:11,970 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:12,266 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:12,295 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639 2025-03-17 02:21:12,309 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:12,379 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:12,390 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:12,401 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c 2025-03-17 02:21:12,410 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c 2025-03-17 02:21:12,420 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c8e56dcd-5896-4162-a014-dc254c74dcfc 2025-03-17 02:21:12,428 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-17 02:21:12,429 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:12,438 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c 2025-03-17 02:21:12,450 - INFO - Verified VN network id 8 for VN effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:12,450 - INFO - Verifications in API Server for VN ctest-vn-48274290 passed 2025-03-17 02:21:12,451 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:12,459 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c 2025-03-17 02:21:12,466 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c 2025-03-17 02:21:12,473 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c8e56dcd-5896-4162-a014-dc254c74dcfc 2025-03-17 02:21:12,488 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73759065', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17293417440199199268', 'uuid-lslong': '13544938342468581708'}, 'enable': 'true', 'created': '2025-03-17T02:21:10', 'last-modified': '2025-03-17T02:21:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937547'} 2025-03-17 02:21:12,495 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-17 02:21:12,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48274290 passed 2025-03-17 02:21:12,495 - DEBUG - ====Verifying policy data for ctest-vn-48274290 in API_Server ====== 2025-03-17 02:21:12,495 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:12,503 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639 2025-03-17 02:21:12,516 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:12,584 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c 2025-03-17 02:21:12,592 - DEBUG - ==>Verifying data for policy with id: dac09d8f-9a12-4ec6-8223-21ecdb911eee, fqn: ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861'] 2025-03-17 02:21:12,592 - INFO - VN ctest-vn-48274290 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-17 02:21:12,592 - DEBUG - Verifying the vn in opserver 2025-03-17 02:21:12,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290 virtual network link through opserver 10.0.0.44 2025-03-17 02:21:12,592 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2025-03-17 02:21:12,888 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2025-03-17 02:21:12,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290?flat'} 2025-03-17 02:21:12,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290 is found in opserver 2025-03-17 02:21:12,956 - DEBUG - Do not have enough data to verify VN in agent 2025-03-17 02:21:12,962 - DEBUG - VRF ids for VN ctest-vn-48274290: {} 2025-03-17 02:21:12,962 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:12,968 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639 2025-03-17 02:21:12,981 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:13,049 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:13,063 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:13,074 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c 2025-03-17 02:21:13,083 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c 2025-03-17 02:21:13,092 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/f844b63a-b364-4eff-b222-8df380fabfa7 2025-03-17 02:21:13,099 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-17 02:21:13,100 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:13,109 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c 2025-03-17 02:21:13,124 - INFO - Verified VN network id 9 for VN ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:13,124 - INFO - Verifications in API Server for VN ctest-vn-27886632 passed 2025-03-17 02:21:13,124 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:13,134 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c 2025-03-17 02:21:13,141 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c 2025-03-17 02:21:13,149 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/f844b63a-b364-4eff-b222-8df380fabfa7 2025-03-17 02:21:13,163 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73759065', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14597816889359748194', 'uuid-lslong': '11594045897216552357'}, 'enable': 'true', 'created': '2025-03-17T02:21:10', 'last-modified': '2025-03-17T02:21:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382773'} 2025-03-17 02:21:13,169 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-17 02:21:13,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27886632 passed 2025-03-17 02:21:13,170 - DEBUG - ====Verifying policy data for ctest-vn-27886632 in API_Server ====== 2025-03-17 02:21:13,170 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:13,176 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639 2025-03-17 02:21:13,190 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:13,266 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 2025-03-17 02:21:13,276 - DEBUG - ==>Verifying data for policy with id: dac09d8f-9a12-4ec6-8223-21ecdb911eee, fqn: ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861'] 2025-03-17 02:21:13,276 - INFO - VN ctest-vn-27886632 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-17 02:21:13,276 - DEBUG - Verifying the vn in opserver 2025-03-17 02:21:13,276 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632 virtual network link through opserver 10.0.0.44 2025-03-17 02:21:13,276 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2025-03-17 02:21:13,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632?flat'} 2025-03-17 02:21:13,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632 is found in opserver 2025-03-17 02:21:13,300 - DEBUG - Do not have enough data to verify VN in agent 2025-03-17 02:21:13,305 - DEBUG - VRF ids for VN ctest-vn-27886632: {} 2025-03-17 02:21:13,360 - DEBUG - Services list from nova: [, , ] 2025-03-17 02:21:14,368 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2888-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2888-1) 2025-03-17 02:21:15,591 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2888-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2888-1) 2025-03-17 02:21:15,591 - INFO - Waiting for VM ctest-TestBasicPolicy-73759065-46094996 to be up.. 2025-03-17 02:21:15,665 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-17 02:21:20,742 - DEBUG - VM is in ACTIVE state now 2025-03-17 02:21:20,743 - INFO - VM name : ctest-TestBasicPolicy-73759065-46094996 2025-03-17 02:21:20,819 - DEBUG - VM ctest-TestBasicPolicy-73759065-46094996 ID is 47638991-d48c-494c-ab21-06b93e79f9e0 2025-03-17 02:21:20,838 - DEBUG - VM ctest-TestBasicPolicy-73759065-46094996 launched on Node cn-jenkins-deploy-platform-ansible-os-2888-1 2025-03-17 02:21:20,913 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/47638991-d48c-494c-ab21-06b93e79f9e0 2025-03-17 02:21:20,921 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/1f98c19f-d724-4668-b2fd-83893cd40118 2025-03-17 02:21:24,179 - 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 1023ms') 2025-03-17 02:21:24,179 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73759065-46094996 failed! 2025-03-17 02:21:24,238 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290 is 88.75.9.129 and allocation pool is NOT set 2025-03-17 02:21:26,298 - 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=7.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.785 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.785/3.948/7.112/3.163 ms') 2025-03-17 02:21:26,298 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73759065-46094996 passed 2025-03-17 02:21:26,446 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:21:26,446 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73759065-46094996, IP 88.75.9.131, Port 22 2025-03-17 02:21:26,601 - DEBUG - VM ctest-TestBasicPolicy-73759065-46094996 is ready for SSH connections 2025-03-17 02:21:26,601 - INFO - Waiting for VM ctest-TestBasicPolicy-73759065-55470316 to be up.. 2025-03-17 02:21:26,681 - DEBUG - VM is in ACTIVE state now 2025-03-17 02:21:26,681 - INFO - VM name : ctest-TestBasicPolicy-73759065-55470316 2025-03-17 02:21:26,757 - DEBUG - VM ctest-TestBasicPolicy-73759065-55470316 ID is e09722b7-2207-4061-ad78-86f8f14402d9 2025-03-17 02:21:26,757 - DEBUG - VM ctest-TestBasicPolicy-73759065-55470316 launched on Node cn-jenkins-deploy-platform-ansible-os-2888-1 2025-03-17 02:21:26,830 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/e09722b7-2207-4061-ad78-86f8f14402d9 2025-03-17 02:21:26,839 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/57a5885f-ab50-4933-ae30-825ecc6c2151 2025-03-17 02:21:28,075 - 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.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.450 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.450/1.609/2.769/1.159 ms') 2025-03-17 02:21:28,075 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73759065-55470316 passed 2025-03-17 02:21:28,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:21:28,226 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73759065-55470316, IP 49.185.6.3, Port 22 2025-03-17 02:21:28,382 - DEBUG - VM ctest-TestBasicPolicy-73759065-55470316 is ready for SSH connections 2025-03-17 02:21:28,382 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:21:28,382 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.185.6.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2025-03-17 02:21:28,382 - DEBUG - ping -s 56 -c 3 -W 1 49.185.6.3 2025-03-17 02:21:32,371 - DEBUG - PING 49.185.6.3 (49.185.6.3): 56 data bytes 64 bytes from 49.185.6.3: seq=0 ttl=63 time=3.732 ms 64 bytes from 49.185.6.3: seq=1 ttl=63 time=0.789 ms 64 bytes from 49.185.6.3: seq=2 ttl=63 time=0.800 ms --- 49.185.6.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/1.773/3.732 ms 2025-03-17 02:21:32,371 - INFO - Ping to IP 49.185.6.3 from VM ctest-TestBasicPolicy-73759065-46094996 passed 2025-03-17 02:21:32,546 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dac09d8f-9a12-4ec6-8223-21ecdb911eee", "href": "http://10.0.0.44:8082/network-policy/dac09d8f-9a12-4ec6-8223-21ecdb911eee"}} 2025-03-17 02:21:32,546 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-17 02:21:32,546 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.185.6.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2025-03-17 02:21:32,546 - DEBUG - ping -s 56 -c 3 -W 1 49.185.6.3 2025-03-17 02:21:35,746 - DEBUG - PING 49.185.6.3 (49.185.6.3): 56 data bytes --- 49.185.6.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-17 02:21:35,746 - WARNING - Ping to IP 49.185.6.3 from VM ctest-TestBasicPolicy-73759065-46094996 failed 2025-03-17 02:21:35,746 - INFO - Deleting VM ctest-TestBasicPolicy-73759065-55470316 2025-03-17 02:21:35,813 - INFO - Deleting VM ctest-TestBasicPolicy-73759065-46094996 2025-03-17 02:21:36,158 - INFO - Deleted policy ctest-policy-allow-all-59798861 2025-03-17 02:21:36,158 - INFO - Deleting VN ctest-vn-27886632 2025-03-17 02:21:36,200 - DEBUG - VN ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5 still in use: Unable to complete operation on network ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-57ce3d24-19de-4725-ad9a-ecdf3e7cf717'] 2025-03-17 02:21:36,200 - WARNING - Deleting VN ctest-vn-27886632 failed..Will retry 2025-03-17 02:21:38,308 - DEBUG - Response for deleting network () 2025-03-17 02:21:38,309 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c 2025-03-17 02:21:38,315 - DEBUG - Response Code: 404 2025-03-17 02:21:38,315 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:38,323 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639 2025-03-17 02:21:38,381 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:38,452 - INFO - Validated that VN ctest-vn-27886632 is not found in API Server 2025-03-17 02:21:38,463 - DEBUG - VN ctest-vn-27886632 is not present in Agent 10.0.0.44 2025-03-17 02:21:38,463 - INFO - Validated that VN ctest-vn-27886632 is not in any agent 2025-03-17 02:21:38,483 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27886632 info 2025-03-17 02:21:38,483 - INFO - Deleting VN ctest-vn-48274290 2025-03-17 02:21:38,583 - DEBUG - Response for deleting network () 2025-03-17 02:21:38,584 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c 2025-03-17 02:21:38,590 - DEBUG - Response Code: 404 2025-03-17 02:21:38,591 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-03-17 02:21:38,596 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639 2025-03-17 02:21:38,651 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a 2025-03-17 02:21:38,720 - INFO - Validated that VN ctest-vn-48274290 is not found in API Server 2025-03-17 02:21:38,732 - DEBUG - VN ctest-vn-48274290 is not present in Agent 10.0.0.44 2025-03-17 02:21:38,732 - INFO - Validated that VN ctest-vn-48274290 is not in any agent 2025-03-17 02:21:38,748 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48274290 info 2025-03-17 02:21:39,014 - DEBUG - No XMPP flaps were noticed during the test
2025-03-17 02:21:39,014 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-03-17 02:21:39,014 - INFO - -------------------------------------------------------------------------------- 2025-03-17 02:21:39,691 - INFO - Deleted project: ctest-TestBasicPolicy-73759065, ID : 0ace061a-614e-479d-b0a2-9f9bbfd1507a