2025-02-06 17:45:23,895 - INFO - Domain Default found not creating 2025-02-06 17:45:24,021 - INFO - Project ctest-TestBasicPolicy-71273088 not found, creating it 2025-02-06 17:45:24,449 - INFO - Created Project:ctest-TestBasicPolicy-71273088, ID : 78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:25,798 - INFO - ================================================================================ 2025-02-06 17:45:25,798 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-06 17:45:25,798 - 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-02-06 17:45:26,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.5': '0'}} with 2025-02-06 17:45:26,051 - INFO - Initial checks done. Running the testcase now 2025-02-06 17:45:26,052 - INFO - 2025-02-06 17:45:26,589 - DEBUG - Response for create_network : {'network': {'id': 'b0b7014f-5191-4e37-b007-ac8a6f1d7884', 'name': 'ctest-vn-75491327', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-75491327'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 17:45:26,767 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2a18ba9-1caa-485c-90e8-648f8767d1f6', 'name': '', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'network_id': 'b0b7014f-5191-4e37-b007-ac8a6f1d7884', 'ip_version': 4, 'cidr': '191.46.71.128/26', 'allocation_pools': [{'start': '191.46.71.130', 'end': '191.46.71.190'}], 'gateway_ip': '191.46.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.46.71.130', 'tags': [], 'project_id': '78beadd0409e46db8acd72e6468fb6a6'}} 2025-02-06 17:45:26,784 - INFO - Created VN ctest-vn-75491327 2025-02-06 17:45:26,837 - DEBUG - VN ctest-vn-75491327 UUID is b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:27,162 - DEBUG - Response for create_network : {'network': {'id': '1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7', 'name': 'ctest-vn-32105757', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-32105757'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 17:45:27,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ae175e1-ee08-425a-a5ad-baf8f0e1710b', 'name': '', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'network_id': '1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7', 'ip_version': 4, 'cidr': '158.87.138.128/26', 'allocation_pools': [{'start': '158.87.138.130', 'end': '158.87.138.190'}], 'gateway_ip': '158.87.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.87.138.130', 'tags': [], 'project_id': '78beadd0409e46db8acd72e6468fb6a6'}} 2025-02-06 17:45:27,359 - INFO - Created VN ctest-vn-32105757 2025-02-06 17:45:27,409 - DEBUG - VN ctest-vn-32105757 UUID is 1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:27,561 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327, 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-71273088:ctest-vn-32105757, 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-02-06 17:45:27,861 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0b7014f-5191-4e37-b007-ac8a6f1d7884', 'name': 'ctest-vn-75491327', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2a18ba9-1caa-485c-90e8-648f8767d1f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-75491327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506']], 'subnet_ipam': [{'subnet_cidr': '191.46.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 17:45:28,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7', 'name': 'ctest-vn-32105757', 'tenant_id': '78beadd0409e46db8acd72e6468fb6a6', 'project_id': '78beadd0409e46db8acd72e6468fb6a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ae175e1-ee08-425a-a5ad-baf8f0e1710b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-vn-32105757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506']], 'subnet_ipam': [{'subnet_cidr': '158.87.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 17:45:28,249 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:28,537 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:28,563 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83 2025-02-06 17:45:28,577 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:28,648 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:28,659 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:28,668 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791 2025-02-06 17:45:28,676 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791 2025-02-06 17:45:28,683 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4f9db017-fbc6-47e0-bd32-396c5c914ef1 2025-02-06 17:45:28,689 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-06 17:45:28,689 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:28,700 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791 2025-02-06 17:45:28,715 - INFO - Verified VN network id 9 for VN b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:28,715 - INFO - Verifications in API Server for VN ctest-vn-75491327 passed 2025-02-06 17:45:28,715 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:28,724 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791 2025-02-06 17:45:28,731 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791 2025-02-06 17:45:28,738 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4f9db017-fbc6-47e0-bd32-396c5c914ef1 2025-02-06 17:45:28,751 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71273088', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12733647911595888183', 'uuid-lslong': '12684296586081958020'}, 'enable': 'true', 'created': '2025-02-06T17:45:26', 'last-modified': '2025-02-06T17:45:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916167'} 2025-02-06 17:45:28,759 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-06 17:45:28,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75491327 passed 2025-02-06 17:45:28,759 - DEBUG - ====Verifying policy data for ctest-vn-75491327 in API_Server ====== 2025-02-06 17:45:28,759 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:28,766 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83 2025-02-06 17:45:28,778 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:28,847 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b0b7014f-5191-4e37-b007-ac8a6f1d7884 2025-02-06 17:45:28,856 - DEBUG - ==>Verifying data for policy with id: 4374e472-f58b-497b-902d-4f5761e8417f, fqn: ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506'] 2025-02-06 17:45:28,856 - INFO - VN ctest-vn-75491327 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 17:45:28,856 - DEBUG - Verifying the vn in opserver 2025-02-06 17:45:28,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327 virtual network link through opserver 10.0.0.24 2025-02-06 17:45:28,856 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-06 17:45:29,145 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-06 17:45:29,196 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327?flat'} 2025-02-06 17:45:29,196 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327 is found in opserver 2025-02-06 17:45:29,207 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 17:45:29,212 - DEBUG - VRF ids for VN ctest-vn-75491327: {} 2025-02-06 17:45:29,212 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:29,218 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83 2025-02-06 17:45:29,228 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:29,306 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:29,318 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:29,327 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b 2025-02-06 17:45:29,333 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b 2025-02-06 17:45:29,340 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4761ed62-2cf6-4892-bba6-9c0c8a80faf2 2025-02-06 17:45:29,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 17:45:29,345 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:29,354 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b 2025-02-06 17:45:29,366 - INFO - Verified VN network id 10 for VN 1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:29,366 - INFO - Verifications in API Server for VN ctest-vn-32105757 passed 2025-02-06 17:45:29,366 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:29,375 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b 2025-02-06 17:45:29,381 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b 2025-02-06 17:45:29,387 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4761ed62-2cf6-4892-bba6-9c0c8a80faf2 2025-02-06 17:45:29,398 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71273088', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2296477063214156414', 'uuid-lslong': '12343750527649359559'}, 'enable': 'true', 'created': '2025-02-06T17:45:27', 'last-modified': '2025-02-06T17:45:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338135'} 2025-02-06 17:45:29,404 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 17:45:29,404 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32105757 passed 2025-02-06 17:45:29,404 - DEBUG - ====Verifying policy data for ctest-vn-32105757 in API_Server ====== 2025-02-06 17:45:29,404 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:29,409 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83 2025-02-06 17:45:29,420 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:29,498 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 2025-02-06 17:45:29,508 - DEBUG - ==>Verifying data for policy with id: 4374e472-f58b-497b-902d-4f5761e8417f, fqn: ['default-domain', 'ctest-TestBasicPolicy-71273088', 'ctest-policy-allow-all-20676506'] 2025-02-06 17:45:29,508 - INFO - VN ctest-vn-32105757 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 17:45:29,508 - DEBUG - Verifying the vn in opserver 2025-02-06 17:45:29,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757 virtual network link through opserver 10.0.0.24 2025-02-06 17:45:29,508 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-06 17:45:29,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757?flat'} 2025-02-06 17:45:29,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-32105757 is found in opserver 2025-02-06 17:45:29,528 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 17:45:29,533 - DEBUG - VRF ids for VN ctest-vn-32105757: {} 2025-02-06 17:45:29,584 - DEBUG - Services list from nova: [, , ] 2025-02-06 17:45:30,540 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2703-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2703-1) 2025-02-06 17:45:31,749 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2703-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2703-1) 2025-02-06 17:45:31,750 - INFO - Waiting for VM ctest-TestBasicPolicy-71273088-19984699 to be up.. 2025-02-06 17:45:31,833 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-06 17:45:36,907 - DEBUG - VM is in ACTIVE state now 2025-02-06 17:45:36,907 - INFO - VM name : ctest-TestBasicPolicy-71273088-19984699 2025-02-06 17:45:36,984 - DEBUG - VM ctest-TestBasicPolicy-71273088-19984699 ID is 2b83ee69-1445-4349-acfc-e2f94269a4b5 2025-02-06 17:45:37,003 - DEBUG - VM ctest-TestBasicPolicy-71273088-19984699 launched on Node cn-jenkins-deploy-platform-ansible-os-2703-1 2025-02-06 17:45:37,080 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/2b83ee69-1445-4349-acfc-e2f94269a4b5 2025-02-06 17:45:37,089 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/362022b8-3c87-41e7-bc70-815b3237212f 2025-02-06 17:45:40,335 - 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 1015ms') 2025-02-06 17:45:40,335 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71273088-19984699 failed! 2025-02-06 17:45:40,389 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-71273088:ctest-vn-75491327 is 191.46.71.129 and allocation pool is NOT set 2025-02-06 17:45:42,447 - 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=3.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.459 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.459/1.782/3.106/1.323 ms') 2025-02-06 17:45:42,447 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71273088-19984699 passed 2025-02-06 17:45:42,597 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 17:45:42,598 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71273088-19984699, IP 191.46.71.131, Port 22 2025-02-06 17:45:42,757 - DEBUG - VM ctest-TestBasicPolicy-71273088-19984699 is ready for SSH connections 2025-02-06 17:45:42,757 - INFO - Waiting for VM ctest-TestBasicPolicy-71273088-11178041 to be up.. 2025-02-06 17:45:42,834 - DEBUG - VM is in ACTIVE state now 2025-02-06 17:45:42,834 - INFO - VM name : ctest-TestBasicPolicy-71273088-11178041 2025-02-06 17:45:42,904 - DEBUG - VM ctest-TestBasicPolicy-71273088-11178041 ID is 690622e4-5152-4e8e-a681-d486581b7e8d 2025-02-06 17:45:42,905 - DEBUG - VM ctest-TestBasicPolicy-71273088-11178041 launched on Node cn-jenkins-deploy-platform-ansible-os-2703-1 2025-02-06 17:45:42,977 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/690622e4-5152-4e8e-a681-d486581b7e8d 2025-02-06 17:45:42,985 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/bcaa1873-e786-4d73-b379-b461b55df321 2025-02-06 17:45:44,223 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.21 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 = 1.211/2.958/4.706/1.747 ms') 2025-02-06 17:45:44,223 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-71273088-11178041 passed 2025-02-06 17:45:44,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 17:45:44,369 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71273088-11178041, IP 158.87.138.131, Port 22 2025-02-06 17:45:44,521 - DEBUG - VM ctest-TestBasicPolicy-71273088-11178041 is ready for SSH connections 2025-02-06 17:45:44,521 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 17:45:44,521 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.87.138.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-06 17:45:44,521 - DEBUG - ping -s 56 -c 3 -W 1 158.87.138.131 2025-02-06 17:45:48,178 - DEBUG - PING 158.87.138.131 (158.87.138.131): 56 data bytes 64 bytes from 158.87.138.131: seq=0 ttl=63 time=3.336 ms 64 bytes from 158.87.138.131: seq=1 ttl=63 time=0.872 ms 64 bytes from 158.87.138.131: seq=2 ttl=63 time=0.876 ms --- 158.87.138.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.872/1.694/3.336 ms 2025-02-06 17:45:48,178 - INFO - Ping to IP 158.87.138.131 from VM ctest-TestBasicPolicy-71273088-19984699 passed 2025-02-06 17:45:48,369 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4374e472-f58b-497b-902d-4f5761e8417f", "href": "http://10.0.0.24:8082/network-policy/4374e472-f58b-497b-902d-4f5761e8417f"}} 2025-02-06 17:45:48,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 17:45:48,369 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.87.138.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-06 17:45:48,369 - DEBUG - ping -s 56 -c 3 -W 1 158.87.138.131 2025-02-06 17:45:51,574 - DEBUG - PING 158.87.138.131 (158.87.138.131): 56 data bytes --- 158.87.138.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-02-06 17:45:51,574 - WARNING - Ping to IP 158.87.138.131 from VM ctest-TestBasicPolicy-71273088-19984699 failed 2025-02-06 17:45:51,574 - INFO - Deleting VM ctest-TestBasicPolicy-71273088-11178041 2025-02-06 17:45:51,644 - INFO - Deleting VM ctest-TestBasicPolicy-71273088-19984699 2025-02-06 17:45:52,013 - INFO - Deleted policy ctest-policy-allow-all-20676506 2025-02-06 17:45:52,013 - INFO - Deleting VN ctest-vn-32105757 2025-02-06 17:45:52,046 - DEBUG - VN 1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7 still in use: Unable to complete operation on network 1fdeb9b8-c3b6-4a7e-ab4d-cfb47494a6c7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-36b38760-5d46-4ae4-848e-418527e8db0a'] 2025-02-06 17:45:52,046 - WARNING - Deleting VN ctest-vn-32105757 failed..Will retry 2025-02-06 17:45:54,157 - DEBUG - Response for deleting network () 2025-02-06 17:45:54,157 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0a58ee45-4a07-4e87-9300-1286b1ce453b 2025-02-06 17:45:54,163 - DEBUG - Response Code: 404 2025-02-06 17:45:54,163 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:54,170 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83 2025-02-06 17:45:54,224 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:54,297 - INFO - Validated that VN ctest-vn-32105757 is not found in API Server 2025-02-06 17:45:54,308 - DEBUG - VN ctest-vn-32105757 is not present in Agent 10.0.0.24 2025-02-06 17:45:54,308 - INFO - Validated that VN ctest-vn-32105757 is not in any agent 2025-02-06 17:45:54,323 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32105757 info 2025-02-06 17:45:54,323 - INFO - Deleting VN ctest-vn-75491327 2025-02-06 17:45:54,431 - DEBUG - Response for deleting network () 2025-02-06 17:45:54,431 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/39c3c201-23aa-4a2c-abb5-b6e0e310a791 2025-02-06 17:45:54,438 - DEBUG - Response Code: 404 2025-02-06 17:45:54,438 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-06 17:45:54,445 - DEBUG - Requesting: http://10.0.0.24:8082/domain/b55e8a78-b2c6-4c2e-9f3d-26a4d7f9ef83 2025-02-06 17:45:54,499 - DEBUG - Requesting: http://10.0.0.24:8082/project/78beadd0-409e-46db-8acd-72e6468fb6a6 2025-02-06 17:45:54,583 - INFO - Validated that VN ctest-vn-75491327 is not found in API Server 2025-02-06 17:45:54,598 - DEBUG - VN ctest-vn-75491327 is not present in Agent 10.0.0.24 2025-02-06 17:45:54,598 - INFO - Validated that VN ctest-vn-75491327 is not in any agent 2025-02-06 17:45:54,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75491327 info 2025-02-06 17:45:54,870 - DEBUG - No XMPP flaps were noticed during the test
2025-02-06 17:45:54,871 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-02-06 17:45:54,871 - INFO - -------------------------------------------------------------------------------- 2025-02-06 17:45:55,539 - INFO - Deleted project: ctest-TestBasicPolicy-71273088, ID : 78beadd0-409e-46db-8acd-72e6468fb6a6