2025-05-14 09:55:07,468 - INFO - Domain Default found not creating 2025-05-14 09:55:07,621 - INFO - Project ctest-TestBasicPolicy-05044398 not found, creating it 2025-05-14 09:55:08,116 - INFO - Created Project:ctest-TestBasicPolicy-05044398, ID : dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:09,905 - INFO - ================================================================================ 2025-05-14 09:55:09,905 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-14 09:55:09,905 - 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-05-14 09:55:10,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-05-14 09:55:10,165 - INFO - Initial checks done. Running the testcase now 2025-05-14 09:55:10,165 - INFO - 2025-05-14 09:55:10,822 - DEBUG - Response for create_network : {'network': {'id': 'b327677f-a046-4c55-9bfe-23db4ba8aa7d', 'name': 'ctest-vn-78421500', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-78421500'], 'port_security_enabled': True, 'description': ''}} 2025-05-14 09:55:11,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '93c612de-08c6-4809-8be6-859902d0a392', 'name': '', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'network_id': 'b327677f-a046-4c55-9bfe-23db4ba8aa7d', 'ip_version': 4, 'cidr': '211.120.16.0/26', 'allocation_pools': [{'start': '211.120.16.2', 'end': '211.120.16.62'}], 'gateway_ip': '211.120.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.120.16.2', 'tags': [], 'project_id': 'dc0bfc31998b42db9016760debf3adb4'}} 2025-05-14 09:55:11,116 - INFO - Created VN ctest-vn-78421500 2025-05-14 09:55:11,174 - DEBUG - VN ctest-vn-78421500 UUID is b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:11,504 - DEBUG - Response for create_network : {'network': {'id': 'a7ddd16d-30f5-4471-9605-10890bdfbeb9', 'name': 'ctest-vn-12347904', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-12347904'], 'port_security_enabled': True, 'description': ''}} 2025-05-14 09:55:11,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '180247a9-5101-470e-a496-49cb9e335239', 'name': '', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'network_id': 'a7ddd16d-30f5-4471-9605-10890bdfbeb9', 'ip_version': 4, 'cidr': '1.97.180.128/26', 'allocation_pools': [{'start': '1.97.180.130', 'end': '1.97.180.190'}], 'gateway_ip': '1.97.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.97.180.130', 'tags': [], 'project_id': 'dc0bfc31998b42db9016760debf3adb4'}} 2025-05-14 09:55:12,027 - INFO - Created VN ctest-vn-12347904 2025-05-14 09:55:12,086 - DEBUG - VN ctest-vn-12347904 UUID is a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:12,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500, 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-05044398:ctest-vn-12347904, 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-05-14 09:55:12,675 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b327677f-a046-4c55-9bfe-23db4ba8aa7d', 'name': 'ctest-vn-78421500', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93c612de-08c6-4809-8be6-859902d0a392'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-78421500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807']], 'subnet_ipam': [{'subnet_cidr': '211.120.16.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-14 09:55:12,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7ddd16d-30f5-4471-9605-10890bdfbeb9', 'name': 'ctest-vn-12347904', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['180247a9-5101-470e-a496-49cb9e335239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-12347904'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807']], 'subnet_ipam': [{'subnet_cidr': '1.97.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-14 09:55:13,090 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:13,435 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:13,466 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead 2025-05-14 09:55:13,483 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:13,566 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:13,581 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:13,593 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2 2025-05-14 09:55:13,601 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2 2025-05-14 09:55:13,610 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0ac2ee97-4c5d-4308-87a4-fe376c5440b2 2025-05-14 09:55:13,617 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-14 09:55:13,617 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:13,628 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2 2025-05-14 09:55:13,644 - INFO - Verified VN network id 9 for VN b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:13,644 - INFO - Verifications in API Server for VN ctest-vn-78421500 passed 2025-05-14 09:55:13,644 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:13,656 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2 2025-05-14 09:55:13,664 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2 2025-05-14 09:55:13,672 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0ac2ee97-4c5d-4308-87a4-fe376c5440b2 2025-05-14 09:55:13,686 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05044398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12909400654728285269', 'uuid-lslong': '11240461144737491581'}, 'enable': 'true', 'created': '2025-05-14T09:55:10', 'last-modified': '2025-05-14T09:55:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039042'} 2025-05-14 09:55:13,693 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-14 09:55:13,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78421500 passed 2025-05-14 09:55:13,693 - DEBUG - ====Verifying policy data for ctest-vn-78421500 in API_Server ====== 2025-05-14 09:55:13,693 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:13,700 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead 2025-05-14 09:55:13,712 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:13,810 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d 2025-05-14 09:55:13,823 - DEBUG - ==>Verifying data for policy with id: be76b073-a153-4d2e-940e-1667b6a54077, fqn: ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807'] 2025-05-14 09:55:13,823 - INFO - VN ctest-vn-78421500 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-14 09:55:13,823 - DEBUG - Verifying the vn in opserver 2025-05-14 09:55:13,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500 virtual network link through opserver 10.0.0.22 2025-05-14 09:55:13,823 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-05-14 09:55:14,164 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-05-14 09:55:14,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500?flat'} 2025-05-14 09:55:14,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500 is found in opserver 2025-05-14 09:55:14,258 - DEBUG - Do not have enough data to verify VN in agent 2025-05-14 09:55:14,265 - DEBUG - VRF ids for VN ctest-vn-78421500: {} 2025-05-14 09:55:14,265 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:14,272 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead 2025-05-14 09:55:14,285 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:14,367 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:14,382 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:14,394 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada 2025-05-14 09:55:14,404 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada 2025-05-14 09:55:14,411 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/33569121-b8d8-495f-9166-23389e5e57c9 2025-05-14 09:55:14,418 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-14 09:55:14,419 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:14,431 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada 2025-05-14 09:55:14,447 - INFO - Verified VN network id 10 for VN a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:14,447 - INFO - Verifications in API Server for VN ctest-vn-12347904 passed 2025-05-14 09:55:14,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:14,460 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada 2025-05-14 09:55:14,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada 2025-05-14 09:55:14,480 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/33569121-b8d8-495f-9166-23389e5e57c9 2025-05-14 09:55:14,496 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05044398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12096054441090040945', 'uuid-lslong': '10810064661368520377'}, 'enable': 'true', 'created': '2025-05-14T09:55:11', 'last-modified': '2025-05-14T09:55:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.604759'} 2025-05-14 09:55:14,503 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-14 09:55:14,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12347904 passed 2025-05-14 09:55:14,504 - DEBUG - ====Verifying policy data for ctest-vn-12347904 in API_Server ====== 2025-05-14 09:55:14,504 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:14,511 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead 2025-05-14 09:55:14,523 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:14,606 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9 2025-05-14 09:55:14,617 - DEBUG - ==>Verifying data for policy with id: be76b073-a153-4d2e-940e-1667b6a54077, fqn: ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807'] 2025-05-14 09:55:14,617 - INFO - VN ctest-vn-12347904 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-14 09:55:14,617 - DEBUG - Verifying the vn in opserver 2025-05-14 09:55:14,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904 virtual network link through opserver 10.0.0.22 2025-05-14 09:55:14,617 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-05-14 09:55:14,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904?flat'} 2025-05-14 09:55:14,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904 is found in opserver 2025-05-14 09:55:14,643 - DEBUG - Do not have enough data to verify VN in agent 2025-05-14 09:55:14,648 - DEBUG - VRF ids for VN ctest-vn-12347904: {} 2025-05-14 09:55:14,708 - DEBUG - Services list from nova: [, , ] 2025-05-14 09:55:15,915 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3308-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3308-1) 2025-05-14 09:55:17,262 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3308-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3308-1) 2025-05-14 09:55:17,262 - INFO - Waiting for VM ctest-TestBasicPolicy-05044398-70736809 to be up.. 2025-05-14 09:55:17,355 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-14 09:55:22,439 - DEBUG - VM is in ACTIVE state now 2025-05-14 09:55:22,439 - INFO - VM name : ctest-TestBasicPolicy-05044398-70736809 2025-05-14 09:55:22,522 - DEBUG - VM ctest-TestBasicPolicy-05044398-70736809 ID is e73ba83d-6d53-4855-820f-cc4dd9b29da2 2025-05-14 09:55:22,542 - DEBUG - VM ctest-TestBasicPolicy-05044398-70736809 launched on Node cn-jenkins-deploy-platform-ansible-os-3308-1 2025-05-14 09:55:22,622 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e73ba83d-6d53-4855-820f-cc4dd9b29da2 2025-05-14 09:55:22,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/525d34ea-449f-4d5e-bbc6-c844671b20ae 2025-05-14 09:55:25,915 - 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-05-14 09:55:25,916 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05044398-70736809 failed! 2025-05-14 09:55:25,974 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500 is 211.120.16.1 and allocation pool is NOT set 2025-05-14 09:55:28,032 - 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=10.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.679 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.679/5.685/10.691/5.006 ms') 2025-05-14 09:55:28,032 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05044398-70736809 passed 2025-05-14 09:55:28,190 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:55:28,190 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05044398-70736809, IP 211.120.16.3, Port 22 2025-05-14 09:55:28,346 - DEBUG - VM ctest-TestBasicPolicy-05044398-70736809 is ready for SSH connections 2025-05-14 09:55:28,346 - INFO - Waiting for VM ctest-TestBasicPolicy-05044398-64277657 to be up.. 2025-05-14 09:55:28,426 - DEBUG - VM is in ACTIVE state now 2025-05-14 09:55:28,426 - INFO - VM name : ctest-TestBasicPolicy-05044398-64277657 2025-05-14 09:55:28,502 - DEBUG - VM ctest-TestBasicPolicy-05044398-64277657 ID is 9059e47f-8b6d-4f8c-ae74-3ba4cc5f0c78 2025-05-14 09:55:28,502 - DEBUG - VM ctest-TestBasicPolicy-05044398-64277657 launched on Node cn-jenkins-deploy-platform-ansible-os-3308-1 2025-05-14 09:55:28,584 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9059e47f-8b6d-4f8c-ae74-3ba4cc5f0c78 2025-05-14 09:55:28,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/f79d79aa-1292-4af7-8004-82356d124505 2025-05-14 09:55:29,845 - 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.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.695 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.695/2.050/3.405/1.355 ms') 2025-05-14 09:55:29,846 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-05044398-64277657 passed 2025-05-14 09:55:30,002 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:55:30,002 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05044398-64277657, IP 1.97.180.131, Port 22 2025-05-14 09:55:30,161 - DEBUG - VM ctest-TestBasicPolicy-05044398-64277657 is ready for SSH connections 2025-05-14 09:55:30,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:55:30,162 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.97.180.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-05-14 09:55:30,162 - DEBUG - ping -s 56 -c 3 -W 1 1.97.180.131 2025-05-14 09:55:34,267 - DEBUG - PING 1.97.180.131 (1.97.180.131): 56 data bytes 64 bytes from 1.97.180.131: seq=0 ttl=63 time=4.567 ms 64 bytes from 1.97.180.131: seq=1 ttl=63 time=0.979 ms 64 bytes from 1.97.180.131: seq=2 ttl=63 time=0.798 ms --- 1.97.180.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.798/2.114/4.567 ms 2025-05-14 09:55:34,267 - INFO - Ping to IP 1.97.180.131 from VM ctest-TestBasicPolicy-05044398-70736809 passed 2025-05-14 09:55:34,450 - DEBUG - Policy Update Response {"network-policy": {"uuid": "be76b073-a153-4d2e-940e-1667b6a54077", "href": "http://10.0.0.22:8082/network-policy/be76b073-a153-4d2e-940e-1667b6a54077"}} 2025-05-14 09:55:34,450 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-14 09:55:34,450 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.97.180.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-05-14 09:55:34,450 - DEBUG - ping -s 56 -c 3 -W 1 1.97.180.131 2025-05-14 09:55:37,676 - DEBUG - PING 1.97.180.131 (1.97.180.131): 56 data bytes 64 bytes from 1.97.180.131: seq=0 ttl=63 time=1.456 ms --- 1.97.180.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.456/1.456/1.456 ms 2025-05-14 09:55:37,676 - WARNING - Ping to IP 1.97.180.131 from VM ctest-TestBasicPolicy-05044398-70736809 failed 2025-05-14 09:55:37,676 - INFO - Deleting VM ctest-TestBasicPolicy-05044398-64277657 2025-05-14 09:55:37,750 - INFO - Deleting VM ctest-TestBasicPolicy-05044398-70736809 2025-05-14 09:55:38,163 - INFO - Deleted policy ctest-policy-allow-all-22592807 2025-05-14 09:55:38,163 - INFO - Deleting VN ctest-vn-12347904 2025-05-14 09:55:38,204 - DEBUG - VN a7ddd16d-30f5-4471-9605-10890bdfbeb9 still in use: Unable to complete operation on network a7ddd16d-30f5-4471-9605-10890bdfbeb9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3a77f6b6-88ca-4ede-ac8a-24dc2f058a99'] 2025-05-14 09:55:38,204 - WARNING - Deleting VN ctest-vn-12347904 failed..Will retry 2025-05-14 09:55:40,321 - DEBUG - Response for deleting network () 2025-05-14 09:55:40,321 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada 2025-05-14 09:55:40,327 - DEBUG - Response Code: 404 2025-05-14 09:55:40,327 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:40,334 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead 2025-05-14 09:55:40,391 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:40,470 - INFO - Validated that VN ctest-vn-12347904 is not found in API Server 2025-05-14 09:55:40,482 - DEBUG - VN ctest-vn-12347904 is not present in Agent 10.0.0.22 2025-05-14 09:55:40,482 - INFO - Validated that VN ctest-vn-12347904 is not in any agent 2025-05-14 09:55:40,500 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12347904 info 2025-05-14 09:55:40,500 - INFO - Deleting VN ctest-vn-78421500 2025-05-14 09:55:40,616 - DEBUG - Response for deleting network () 2025-05-14 09:55:40,616 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2 2025-05-14 09:55:40,627 - DEBUG - Response Code: 404 2025-05-14 09:55:40,629 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-05-14 09:55:40,637 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead 2025-05-14 09:55:40,692 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4 2025-05-14 09:55:40,772 - INFO - Validated that VN ctest-vn-78421500 is not found in API Server 2025-05-14 09:55:40,787 - DEBUG - VN ctest-vn-78421500 is not present in Agent 10.0.0.22 2025-05-14 09:55:40,787 - INFO - Validated that VN ctest-vn-78421500 is not in any agent 2025-05-14 09:55:40,807 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78421500 info 2025-05-14 09:55:41,064 - DEBUG - No XMPP flaps were noticed during the test
2025-05-14 09:55:41,064 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32]
2025-05-14 09:55:41,065 - INFO - -------------------------------------------------------------------------------- 2025-05-14 09:55:41,808 - INFO - Deleted project: ctest-TestBasicPolicy-05044398, ID : dc0bfc31-998b-42db-9016-760debf3adb4