2025-04-15 10:31:16,299 - INFO - Domain Default found not creating 2025-04-15 10:31:16,469 - INFO - Project ctest-TestBasicPolicy-19970347 not found, creating it 2025-04-15 10:31:16,987 - INFO - Created Project:ctest-TestBasicPolicy-19970347, ID : 7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:18,620 - INFO - ================================================================================ 2025-04-15 10:31:18,620 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-15 10:31:18,620 - 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-15 10:31:18,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-15 10:31:18,888 - INFO - Initial checks done. Running the testcase now 2025-04-15 10:31:18,888 - INFO - 2025-04-15 10:31:19,501 - DEBUG - Response for create_network : {'network': {'id': 'fb498045-e726-4b47-a16b-7269d4eacbf4', 'name': 'ctest-vn-11105047', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-11105047'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 10:31:19,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fc4b6e4-aece-4b1e-a3e2-6752e58d0dcf', 'name': '', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'network_id': 'fb498045-e726-4b47-a16b-7269d4eacbf4', 'ip_version': 4, 'cidr': '19.20.77.128/26', 'allocation_pools': [{'start': '19.20.77.130', 'end': '19.20.77.190'}], 'gateway_ip': '19.20.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.20.77.130', 'tags': [], 'project_id': '7b9c0105deb347f88ae40ef7076b6445'}} 2025-04-15 10:31:19,705 - INFO - Created VN ctest-vn-11105047 2025-04-15 10:31:19,763 - DEBUG - VN ctest-vn-11105047 UUID is fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:20,102 - DEBUG - Response for create_network : {'network': {'id': '435b4136-14fd-4e8f-81b9-440c9936fb15', 'name': 'ctest-vn-12494014', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-12494014'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 10:31:20,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a1c5608-6ae1-4ec8-a960-06a92e78d925', 'name': '', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'network_id': '435b4136-14fd-4e8f-81b9-440c9936fb15', 'ip_version': 4, 'cidr': '76.237.104.64/26', 'allocation_pools': [{'start': '76.237.104.66', 'end': '76.237.104.126'}], 'gateway_ip': '76.237.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.237.104.66', 'tags': [], 'project_id': '7b9c0105deb347f88ae40ef7076b6445'}} 2025-04-15 10:31:20,367 - INFO - Created VN ctest-vn-12494014 2025-04-15 10:31:20,419 - DEBUG - VN ctest-vn-12494014 UUID is 435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:20,541 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047, 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-19970347:ctest-vn-12494014, 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-15 10:31:20,855 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb498045-e726-4b47-a16b-7269d4eacbf4', 'name': 'ctest-vn-11105047', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fc4b6e4-aece-4b1e-a3e2-6752e58d0dcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-11105047'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861']], 'subnet_ipam': [{'subnet_cidr': '19.20.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 10:31:21,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '435b4136-14fd-4e8f-81b9-440c9936fb15', 'name': 'ctest-vn-12494014', 'tenant_id': '7b9c0105deb347f88ae40ef7076b6445', 'project_id': '7b9c0105deb347f88ae40ef7076b6445', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a1c5608-6ae1-4ec8-a960-06a92e78d925'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-vn-12494014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861']], 'subnet_ipam': [{'subnet_cidr': '76.237.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 10:31:21,271 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:21,623 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:21,653 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718 2025-04-15 10:31:21,667 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:21,742 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:21,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:21,766 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d 2025-04-15 10:31:21,776 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d 2025-04-15 10:31:21,784 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/216df393-cce7-4d05-8588-e1b64a0a3cc3 2025-04-15 10:31:21,792 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 10:31:21,792 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:21,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d 2025-04-15 10:31:21,818 - INFO - Verified VN network id 9 for VN fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:21,818 - INFO - Verifications in API Server for VN ctest-vn-11105047 passed 2025-04-15 10:31:21,818 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:21,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d 2025-04-15 10:31:21,838 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d 2025-04-15 10:31:21,847 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/216df393-cce7-4d05-8588-e1b64a0a3cc3 2025-04-15 10:31:21,860 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19970347', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18107144814538935111', 'uuid-lslong': '11631516261483727860'}, 'enable': 'true', 'created': '2025-04-15T10:31:19', 'last-modified': '2025-04-15T10:31:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033866'} 2025-04-15 10:31:21,867 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 10:31:21,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11105047 passed 2025-04-15 10:31:21,868 - DEBUG - ====Verifying policy data for ctest-vn-11105047 in API_Server ====== 2025-04-15 10:31:21,868 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:21,874 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718 2025-04-15 10:31:21,887 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:21,966 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb498045-e726-4b47-a16b-7269d4eacbf4 2025-04-15 10:31:21,977 - DEBUG - ==>Verifying data for policy with id: 191a7e98-a627-4f91-9e71-aa44851a5ce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861'] 2025-04-15 10:31:21,977 - INFO - VN ctest-vn-11105047 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 10:31:21,977 - DEBUG - Verifying the vn in opserver 2025-04-15 10:31:21,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047 virtual network link through opserver 10.0.0.254 2025-04-15 10:31:21,977 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-15 10:31:22,330 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-15 10:31:22,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047?flat'} 2025-04-15 10:31:22,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047 is found in opserver 2025-04-15 10:31:22,410 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 10:31:22,416 - DEBUG - VRF ids for VN ctest-vn-11105047: {} 2025-04-15 10:31:22,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:22,423 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718 2025-04-15 10:31:22,439 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:22,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:22,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:22,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e 2025-04-15 10:31:22,554 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e 2025-04-15 10:31:22,562 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04d469ba-9d52-4ae2-967f-0bc33f913dbb 2025-04-15 10:31:22,569 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 10:31:22,569 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:22,578 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e 2025-04-15 10:31:22,593 - INFO - Verified VN network id 10 for VN 435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:22,593 - INFO - Verifications in API Server for VN ctest-vn-12494014 passed 2025-04-15 10:31:22,593 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:22,603 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e 2025-04-15 10:31:22,612 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e 2025-04-15 10:31:22,619 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04d469ba-9d52-4ae2-967f-0bc33f913dbb 2025-04-15 10:31:22,633 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19970347', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4853544723958025871', 'uuid-lslong': '9347577322484988693'}, 'enable': 'true', 'created': '2025-04-15T10:31:20', 'last-modified': '2025-04-15T10:31:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.554066'} 2025-04-15 10:31:22,640 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 10:31:22,640 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12494014 passed 2025-04-15 10:31:22,640 - DEBUG - ====Verifying policy data for ctest-vn-12494014 in API_Server ====== 2025-04-15 10:31:22,640 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:22,647 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718 2025-04-15 10:31:22,660 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:22,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/435b4136-14fd-4e8f-81b9-440c9936fb15 2025-04-15 10:31:22,755 - DEBUG - ==>Verifying data for policy with id: 191a7e98-a627-4f91-9e71-aa44851a5ce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-19970347', 'ctest-policy-allow-all-40589861'] 2025-04-15 10:31:22,755 - INFO - VN ctest-vn-12494014 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 10:31:22,755 - DEBUG - Verifying the vn in opserver 2025-04-15 10:31:22,755 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014 virtual network link through opserver 10.0.0.254 2025-04-15 10:31:22,755 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-15 10:31:22,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014?flat'} 2025-04-15 10:31:22,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-12494014 is found in opserver 2025-04-15 10:31:22,780 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 10:31:22,786 - DEBUG - VRF ids for VN ctest-vn-12494014: {} 2025-04-15 10:31:22,847 - DEBUG - Services list from nova: [, , ] 2025-04-15 10:31:23,986 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3115-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3115-1) 2025-04-15 10:31:25,360 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3115-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3115-1) 2025-04-15 10:31:25,360 - INFO - Waiting for VM ctest-TestBasicPolicy-19970347-07714135 to be up.. 2025-04-15 10:31:25,449 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-15 10:31:30,539 - DEBUG - VM is in ACTIVE state now 2025-04-15 10:31:30,539 - INFO - VM name : ctest-TestBasicPolicy-19970347-07714135 2025-04-15 10:31:30,619 - DEBUG - VM ctest-TestBasicPolicy-19970347-07714135 ID is f3970952-4a13-4987-bc15-7e3112ab1ec4 2025-04-15 10:31:30,643 - DEBUG - VM ctest-TestBasicPolicy-19970347-07714135 launched on Node cn-jenkins-deploy-platform-ansible-os-3115-1 2025-04-15 10:31:30,727 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/f3970952-4a13-4987-bc15-7e3112ab1ec4 2025-04-15 10:31:30,738 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e701c63c-0812-4a88-8a74-d81f0d25fc72 2025-04-15 10:31:34,012 - 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 1030ms') 2025-04-15 10:31:34,013 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19970347-07714135 failed! 2025-04-15 10:31:34,071 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19970347:ctest-vn-11105047 is 19.20.77.129 and allocation pool is NOT set 2025-04-15 10:31:36,136 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.60 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 = 2.602/3.325/4.048/0.723 ms') 2025-04-15 10:31:36,136 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19970347-07714135 passed 2025-04-15 10:31:36,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 10:31:36,291 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19970347-07714135, IP 19.20.77.131, Port 22 2025-04-15 10:31:36,461 - DEBUG - VM ctest-TestBasicPolicy-19970347-07714135 is ready for SSH connections 2025-04-15 10:31:36,461 - INFO - Waiting for VM ctest-TestBasicPolicy-19970347-31868133 to be up.. 2025-04-15 10:31:36,548 - DEBUG - VM is in ACTIVE state now 2025-04-15 10:31:36,548 - INFO - VM name : ctest-TestBasicPolicy-19970347-31868133 2025-04-15 10:31:36,644 - DEBUG - VM ctest-TestBasicPolicy-19970347-31868133 ID is 38441fad-351c-41c2-babd-7da15079a08d 2025-04-15 10:31:36,644 - DEBUG - VM ctest-TestBasicPolicy-19970347-31868133 launched on Node cn-jenkins-deploy-platform-ansible-os-3115-1 2025-04-15 10:31:36,726 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/38441fad-351c-41c2-babd-7da15079a08d 2025-04-15 10:31:36,735 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/f7d013d8-16fe-41f4-90f1-540b5ea44ea1 2025-04-15 10:31:37,976 - 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=4.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.15 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.147/2.718/4.290/1.571 ms') 2025-04-15 10:31:37,976 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-19970347-31868133 passed 2025-04-15 10:31:38,132 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 10:31:38,132 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19970347-31868133, IP 76.237.104.67, Port 22 2025-04-15 10:31:38,286 - DEBUG - VM ctest-TestBasicPolicy-19970347-31868133 is ready for SSH connections 2025-04-15 10:31:38,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 10:31:38,287 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 76.237.104.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-15 10:31:38,287 - DEBUG - ping -s 56 -c 3 -W 1 76.237.104.67 2025-04-15 10:31:42,035 - DEBUG - PING 76.237.104.67 (76.237.104.67): 56 data bytes 64 bytes from 76.237.104.67: seq=0 ttl=63 time=5.542 ms 64 bytes from 76.237.104.67: seq=1 ttl=63 time=0.967 ms 64 bytes from 76.237.104.67: seq=2 ttl=63 time=0.956 ms --- 76.237.104.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.956/2.488/5.542 ms 2025-04-15 10:31:42,035 - INFO - Ping to IP 76.237.104.67 from VM ctest-TestBasicPolicy-19970347-07714135 passed 2025-04-15 10:31:42,219 - DEBUG - Policy Update Response {"network-policy": {"uuid": "191a7e98-a627-4f91-9e71-aa44851a5ce4", "href": "http://10.0.0.254:8082/network-policy/191a7e98-a627-4f91-9e71-aa44851a5ce4"}} 2025-04-15 10:31:42,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 10:31:42,219 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 76.237.104.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-15 10:31:42,219 - DEBUG - ping -s 56 -c 3 -W 1 76.237.104.67 2025-04-15 10:31:45,440 - DEBUG - PING 76.237.104.67 (76.237.104.67): 56 data bytes 64 bytes from 76.237.104.67: seq=0 ttl=63 time=1.572 ms --- 76.237.104.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.572/1.572/1.572 ms 2025-04-15 10:31:45,440 - WARNING - Ping to IP 76.237.104.67 from VM ctest-TestBasicPolicy-19970347-07714135 failed 2025-04-15 10:31:45,440 - INFO - Deleting VM ctest-TestBasicPolicy-19970347-31868133 2025-04-15 10:31:45,513 - INFO - Deleting VM ctest-TestBasicPolicy-19970347-07714135 2025-04-15 10:31:45,947 - INFO - Deleted policy ctest-policy-allow-all-40589861 2025-04-15 10:31:45,947 - INFO - Deleting VN ctest-vn-12494014 2025-04-15 10:31:45,998 - DEBUG - VN 435b4136-14fd-4e8f-81b9-440c9936fb15 still in use: Unable to complete operation on network 435b4136-14fd-4e8f-81b9-440c9936fb15. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-55dcba20-900a-4823-a2f8-244f387018ef'] 2025-04-15 10:31:45,998 - WARNING - Deleting VN ctest-vn-12494014 failed..Will retry 2025-04-15 10:31:48,112 - DEBUG - Response for deleting network () 2025-04-15 10:31:48,112 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/38b3185d-4af9-433d-92e3-b3c8dab32a3e 2025-04-15 10:31:48,123 - DEBUG - Response Code: 404 2025-04-15 10:31:48,124 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:48,130 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718 2025-04-15 10:31:48,186 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:48,269 - INFO - Validated that VN ctest-vn-12494014 is not found in API Server 2025-04-15 10:31:48,288 - DEBUG - VN ctest-vn-12494014 is not present in Agent 10.0.0.254 2025-04-15 10:31:48,288 - INFO - Validated that VN ctest-vn-12494014 is not in any agent 2025-04-15 10:31:48,309 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12494014 info 2025-04-15 10:31:48,309 - INFO - Deleting VN ctest-vn-11105047 2025-04-15 10:31:48,430 - DEBUG - Response for deleting network () 2025-04-15 10:31:48,430 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf6f24cb-1fa4-43dd-9f06-4a28e827e93d 2025-04-15 10:31:48,439 - DEBUG - Response Code: 404 2025-04-15 10:31:48,439 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-15 10:31:48,445 - DEBUG - Requesting: http://10.0.0.254:8082/domain/367c57a4-b403-4ca5-a977-18622745b718 2025-04-15 10:31:48,501 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b9c0105-deb3-47f8-8ae4-0ef7076b6445 2025-04-15 10:31:48,580 - INFO - Validated that VN ctest-vn-11105047 is not found in API Server 2025-04-15 10:31:48,593 - DEBUG - VN ctest-vn-11105047 is not present in Agent 10.0.0.254 2025-04-15 10:31:48,593 - INFO - Validated that VN ctest-vn-11105047 is not in any agent 2025-04-15 10:31:48,612 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11105047 info 2025-04-15 10:31:48,866 - DEBUG - No XMPP flaps were noticed during the test 2025-04-15 10:31:48,866 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-04-15 10:31:48,866 - INFO - -------------------------------------------------------------------------------- 2025-04-15 10:31:49,633 - INFO - Deleted project: ctest-TestBasicPolicy-19970347, ID : 7b9c0105-deb3-47f8-8ae4-0ef7076b6445