2025-04-11 11:37:38,298 - INFO - Domain Default found not creating 2025-04-11 11:37:38,473 - INFO - Project ctest-TestBasicPolicy-53487322 not found, creating it 2025-04-11 11:37:38,964 - INFO - Created Project:ctest-TestBasicPolicy-53487322, ID : 7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:37:40,472 - INFO - ================================================================================ 2025-04-11 11:37:40,472 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-11 11:37:40,472 - 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-11 11:37:40,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-11 11:37:40,729 - INFO - Initial checks done. Running the testcase now 2025-04-11 11:37:40,729 - INFO - 2025-04-11 11:37:41,294 - DEBUG - Response for create_network : {'network': {'id': '74a9a5e5-cbe4-4cf5-a58c-f6020425a08f', 'name': 'ctest-vn-74179216', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-74179216'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 11:37:41,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '4859e60b-341b-416e-8558-cf8ca7008501', 'name': '', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'network_id': '74a9a5e5-cbe4-4cf5-a58c-f6020425a08f', 'ip_version': 4, 'cidr': '189.112.64.128/26', 'allocation_pools': [{'start': '189.112.64.130', 'end': '189.112.64.190'}], 'gateway_ip': '189.112.64.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.112.64.130', 'tags': [], 'project_id': '7de4afd11cc34b348389ec284e15f3d0'}} 2025-04-11 11:37:41,484 - INFO - Created VN ctest-vn-74179216 2025-04-11 11:37:41,538 - DEBUG - VN ctest-vn-74179216 UUID is 74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:41,857 - DEBUG - Response for create_network : {'network': {'id': '54820620-bc4c-4b74-a66a-cec595acb95d', 'name': 'ctest-vn-09855234', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-09855234'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 11:37:42,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e3ff281-da57-463d-a3c5-e864ea2fb2c0', 'name': '', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'network_id': '54820620-bc4c-4b74-a66a-cec595acb95d', 'ip_version': 4, 'cidr': '7.170.222.64/26', 'allocation_pools': [{'start': '7.170.222.66', 'end': '7.170.222.126'}], 'gateway_ip': '7.170.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.170.222.66', 'tags': [], 'project_id': '7de4afd11cc34b348389ec284e15f3d0'}} 2025-04-11 11:37:42,091 - INFO - Created VN ctest-vn-09855234 2025-04-11 11:37:42,146 - DEBUG - VN ctest-vn-09855234 UUID is 54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:42,262 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216, 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-53487322:ctest-vn-09855234, 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-11 11:37:42,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74a9a5e5-cbe4-4cf5-a58c-f6020425a08f', 'name': 'ctest-vn-74179216', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4859e60b-341b-416e-8558-cf8ca7008501'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-74179216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550']], 'subnet_ipam': [{'subnet_cidr': '189.112.64.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-11 11:37:42,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54820620-bc4c-4b74-a66a-cec595acb95d', 'name': 'ctest-vn-09855234', 'tenant_id': '7de4afd11cc34b348389ec284e15f3d0', 'project_id': '7de4afd11cc34b348389ec284e15f3d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e3ff281-da57-463d-a3c5-e864ea2fb2c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-vn-09855234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550']], 'subnet_ipam': [{'subnet_cidr': '7.170.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-11 11:37:43,030 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:37:43,328 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:37:43,362 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886 2025-04-11 11:37:43,378 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:37:43,473 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:43,489 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:43,503 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0 2025-04-11 11:37:43,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0 2025-04-11 11:37:43,523 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b8139b5-14d7-439c-bfdf-2a8214ddce88 2025-04-11 11:37:43,533 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-11 11:37:43,533 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:43,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0 2025-04-11 11:37:43,566 - INFO - Verified VN network id 8 for VN 74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:43,566 - INFO - Verifications in API Server for VN ctest-vn-74179216 passed 2025-04-11 11:37:43,566 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:43,577 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0 2025-04-11 11:37:43,586 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0 2025-04-11 11:37:43,594 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7b8139b5-14d7-439c-bfdf-2a8214ddce88 2025-04-11 11:37:43,608 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53487322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8406432585850572021', 'uuid-lslong': '11929180001517543567'}, 'enable': 'true', 'created': '2025-04-11T11:37:41', 'last-modified': '2025-04-11T11:37:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.055032'} 2025-04-11 11:37:43,616 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-11 11:37:43,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74179216 passed 2025-04-11 11:37:43,617 - DEBUG - ====Verifying policy data for ctest-vn-74179216 in API_Server ====== 2025-04-11 11:37:43,617 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:37:43,623 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886 2025-04-11 11:37:43,637 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:37:43,719 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/74a9a5e5-cbe4-4cf5-a58c-f6020425a08f 2025-04-11 11:37:43,730 - DEBUG - ==>Verifying data for policy with id: 421f8283-d079-405c-95aa-6384fb61c3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550'] 2025-04-11 11:37:43,730 - INFO - VN ctest-vn-74179216 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-11 11:37:43,730 - DEBUG - Verifying the vn in opserver 2025-04-11 11:37:43,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216 virtual network link through opserver 10.0.0.254 2025-04-11 11:37:43,731 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-11 11:37:44,038 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-11 11:37:44,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216?flat'} 2025-04-11 11:37:44,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216 is found in opserver 2025-04-11 11:37:44,109 - DEBUG - Do not have enough data to verify VN in agent 2025-04-11 11:37:44,115 - DEBUG - VRF ids for VN ctest-vn-74179216: {} 2025-04-11 11:37:44,115 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:37:44,121 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886 2025-04-11 11:37:44,135 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:37:44,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:44,227 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:44,241 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1 2025-04-11 11:37:44,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1 2025-04-11 11:37:44,261 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/969709b3-7622-4fe5-a6f3-418342f78766 2025-04-11 11:37:44,272 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-11 11:37:44,272 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:44,286 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1 2025-04-11 11:37:44,305 - INFO - Verified VN network id 9 for VN 54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:44,306 - INFO - Verifications in API Server for VN ctest-vn-09855234 passed 2025-04-11 11:37:44,306 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:44,317 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1 2025-04-11 11:37:44,326 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1 2025-04-11 11:37:44,334 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/969709b3-7622-4fe5-a6f3-418342f78766 2025-04-11 11:37:44,348 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53487322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6089436383826168692', 'uuid-lslong': '11991624305842370909'}, 'enable': 'true', 'created': '2025-04-11T11:37:41', 'last-modified': '2025-04-11T11:37:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531490'} 2025-04-11 11:37:44,355 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-11 11:37:44,355 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09855234 passed 2025-04-11 11:37:44,356 - DEBUG - ====Verifying policy data for ctest-vn-09855234 in API_Server ====== 2025-04-11 11:37:44,356 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:37:44,363 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886 2025-04-11 11:37:44,379 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:37:44,461 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54820620-bc4c-4b74-a66a-cec595acb95d 2025-04-11 11:37:44,476 - DEBUG - ==>Verifying data for policy with id: 421f8283-d079-405c-95aa-6384fb61c3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-53487322', 'ctest-policy-allow-all-34466550'] 2025-04-11 11:37:44,476 - INFO - VN ctest-vn-09855234 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-11 11:37:44,476 - DEBUG - Verifying the vn in opserver 2025-04-11 11:37:44,476 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234 virtual network link through opserver 10.0.0.254 2025-04-11 11:37:44,476 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-11 11:37:44,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234?flat'} 2025-04-11 11:37:44,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-09855234 is found in opserver 2025-04-11 11:37:44,503 - DEBUG - Do not have enough data to verify VN in agent 2025-04-11 11:37:44,509 - DEBUG - VRF ids for VN ctest-vn-09855234: {} 2025-04-11 11:37:44,604 - DEBUG - Services list from nova: [, , ] 2025-04-11 11:37:45,639 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3078-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3078-1) 2025-04-11 11:37:46,924 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3078-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3078-1) 2025-04-11 11:37:46,926 - INFO - Waiting for VM ctest-TestBasicPolicy-53487322-00504560 to be up.. 2025-04-11 11:37:47,018 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-11 11:37:52,114 - DEBUG - VM is in ACTIVE state now 2025-04-11 11:37:52,114 - INFO - VM name : ctest-TestBasicPolicy-53487322-00504560 2025-04-11 11:37:52,215 - DEBUG - VM ctest-TestBasicPolicy-53487322-00504560 ID is 97f87439-b87e-4621-9e24-72acb17b228d 2025-04-11 11:37:52,237 - DEBUG - VM ctest-TestBasicPolicy-53487322-00504560 launched on Node cn-jenkins-deploy-platform-ansible-os-3078-1 2025-04-11 11:37:52,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/97f87439-b87e-4621-9e24-72acb17b228d 2025-04-11 11:37:52,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/dfc1b5f4-6c09-4df2-9cd4-b82da9d5164c 2025-04-11 11:37:55,632 - 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 1020ms') 2025-04-11 11:37:55,632 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53487322-00504560 failed! 2025-04-11 11:37:55,690 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53487322:ctest-vn-74179216 is 189.112.64.129 and allocation pool is NOT set 2025-04-11 11:37:57,753 - 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=8.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.417 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.417/4.547/8.677/4.130 ms') 2025-04-11 11:37:57,753 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53487322-00504560 passed 2025-04-11 11:37:57,914 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 11:37:57,915 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53487322-00504560, IP 189.112.64.131, Port 22 2025-04-11 11:37:58,074 - DEBUG - VM ctest-TestBasicPolicy-53487322-00504560 is ready for SSH connections 2025-04-11 11:37:58,074 - INFO - Waiting for VM ctest-TestBasicPolicy-53487322-77001553 to be up.. 2025-04-11 11:37:58,156 - DEBUG - VM is in ACTIVE state now 2025-04-11 11:37:58,156 - INFO - VM name : ctest-TestBasicPolicy-53487322-77001553 2025-04-11 11:37:58,236 - DEBUG - VM ctest-TestBasicPolicy-53487322-77001553 ID is 55dfd23b-394e-404b-98ce-800dd0235099 2025-04-11 11:37:58,236 - DEBUG - VM ctest-TestBasicPolicy-53487322-77001553 launched on Node cn-jenkins-deploy-platform-ansible-os-3078-1 2025-04-11 11:37:58,319 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/55dfd23b-394e-404b-98ce-800dd0235099 2025-04-11 11:37:58,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ae0913ae-5a77-4ee8-a461-a76953588843 2025-04-11 11:37:59,567 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.482 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.482/1.621/2.760/1.139 ms') 2025-04-11 11:37:59,567 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-53487322-77001553 passed 2025-04-11 11:37:59,718 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 11:37:59,719 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53487322-77001553, IP 7.170.222.67, Port 22 2025-04-11 11:37:59,885 - DEBUG - VM ctest-TestBasicPolicy-53487322-77001553 is ready for SSH connections 2025-04-11 11:37:59,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 11:37:59,886 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.170.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-11 11:37:59,886 - DEBUG - ping -s 56 -c 3 -W 1 7.170.222.67 2025-04-11 11:38:03,562 - DEBUG - PING 7.170.222.67 (7.170.222.67): 56 data bytes 64 bytes from 7.170.222.67: seq=0 ttl=63 time=4.183 ms 64 bytes from 7.170.222.67: seq=1 ttl=63 time=1.089 ms 64 bytes from 7.170.222.67: seq=2 ttl=63 time=1.408 ms --- 7.170.222.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.089/2.226/4.183 ms 2025-04-11 11:38:03,562 - INFO - Ping to IP 7.170.222.67 from VM ctest-TestBasicPolicy-53487322-00504560 passed 2025-04-11 11:38:03,758 - DEBUG - Policy Update Response {"network-policy": {"uuid": "421f8283-d079-405c-95aa-6384fb61c3b1", "href": "http://10.0.0.254:8082/network-policy/421f8283-d079-405c-95aa-6384fb61c3b1"}} 2025-04-11 11:38:03,758 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 11:38:03,758 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.170.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-11 11:38:03,759 - DEBUG - ping -s 56 -c 3 -W 1 7.170.222.67 2025-04-11 11:38:06,967 - DEBUG - PING 7.170.222.67 (7.170.222.67): 56 data bytes 64 bytes from 7.170.222.67: seq=0 ttl=63 time=1.338 ms --- 7.170.222.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.338/1.338/1.338 ms 2025-04-11 11:38:06,967 - WARNING - Ping to IP 7.170.222.67 from VM ctest-TestBasicPolicy-53487322-00504560 failed 2025-04-11 11:38:06,967 - INFO - Deleting VM ctest-TestBasicPolicy-53487322-77001553 2025-04-11 11:38:07,040 - INFO - Deleting VM ctest-TestBasicPolicy-53487322-00504560 2025-04-11 11:38:07,433 - INFO - Deleted policy ctest-policy-allow-all-34466550 2025-04-11 11:38:07,433 - INFO - Deleting VN ctest-vn-09855234 2025-04-11 11:38:07,470 - DEBUG - VN 54820620-bc4c-4b74-a66a-cec595acb95d still in use: Unable to complete operation on network 54820620-bc4c-4b74-a66a-cec595acb95d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-274a8fd9-0143-4f70-8bdf-282ac145bfc0'] 2025-04-11 11:38:07,470 - WARNING - Deleting VN ctest-vn-09855234 failed..Will retry 2025-04-11 11:38:09,578 - DEBUG - Response for deleting network () 2025-04-11 11:38:09,578 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f133c15-c353-416c-9add-a2f0481d06b1 2025-04-11 11:38:09,590 - DEBUG - Response Code: 404 2025-04-11 11:38:09,591 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:38:09,599 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886 2025-04-11 11:38:09,659 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:38:09,740 - INFO - Validated that VN ctest-vn-09855234 is not found in API Server 2025-04-11 11:38:09,753 - DEBUG - VN ctest-vn-09855234 is not present in Agent 10.0.0.254 2025-04-11 11:38:09,753 - INFO - Validated that VN ctest-vn-09855234 is not in any agent 2025-04-11 11:38:09,772 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09855234 info 2025-04-11 11:38:09,772 - INFO - Deleting VN ctest-vn-74179216 2025-04-11 11:38:09,890 - DEBUG - Response for deleting network () 2025-04-11 11:38:09,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f67857b3-cad4-41f4-9ee2-72fe42b4bfd0 2025-04-11 11:38:09,895 - DEBUG - Response Code: 404 2025-04-11 11:38:09,895 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 11:38:09,905 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d643cfb0-bb04-46d5-b142-206cbd726886 2025-04-11 11:38:09,960 - DEBUG - Requesting: http://10.0.0.254:8082/project/7de4afd1-1cc3-4b34-8389-ec284e15f3d0 2025-04-11 11:38:10,039 - INFO - Validated that VN ctest-vn-74179216 is not found in API Server 2025-04-11 11:38:10,054 - DEBUG - VN ctest-vn-74179216 is not present in Agent 10.0.0.254 2025-04-11 11:38:10,054 - INFO - Validated that VN ctest-vn-74179216 is not in any agent 2025-04-11 11:38:10,076 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74179216 info 2025-04-11 11:38:10,341 - DEBUG - No XMPP flaps were noticed during the test
2025-04-11 11:38:10,341 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-11 11:38:10,341 - INFO - -------------------------------------------------------------------------------- 2025-04-11 11:38:11,045 - INFO - Deleted project: ctest-TestBasicPolicy-53487322, ID : 7de4afd1-1cc3-4b34-8389-ec284e15f3d0