2025-10-29 19:37:06,024 - INFO - Domain Default found not creating 2025-10-29 19:37:06,181 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33393881 not found, creating it 2025-10-29 19:37:06,658 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33393881, ID : d353a011-bcc8-4655-9fda-568249535f44 2025-10-29 19:37:08,191 - INFO - ================================================================================ 2025-10-29 19:37:08,191 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 19:37:08,446 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.130': '0'}} with 2025-10-29 19:37:08,446 - INFO - Initial checks done. Running the testcase now 2025-10-29 19:37:08,446 - INFO - 2025-10-29 19:37:08,446 - INFO - ================================================================================ 2025-10-29 19:37:08,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 19:37:08,446 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-10-29 19:37:08,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.130': '0'}} with 2025-10-29 19:37:08,733 - INFO - Initial checks done. Running the testcase now 2025-10-29 19:37:08,733 - INFO - 2025-10-29 19:37:09,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273, 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-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273, 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-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273, 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-10-29 19:37:09,655 - DEBUG - Response for create_network : {'network': {'id': '647495d6-0c93-49c3-a705-9ab967c50b0a', 'name': 'ctest-vn4-43510273', 'tenant_id': 'd353a011bcc846559fda568249535f44', 'project_id': 'd353a011bcc846559fda568249535f44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33393881', 'ctest-vn4-43510273'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 19:37:09,830 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e57569fc-c2e1-4d45-a0df-f438099afb40', 'name': '', 'tenant_id': 'd353a011bcc846559fda568249535f44', 'network_id': '647495d6-0c93-49c3-a705-9ab967c50b0a', 'ip_version': 4, 'cidr': '146.151.182.64/26', 'allocation_pools': [{'start': '146.151.182.66', 'end': '146.151.182.126'}], 'gateway_ip': '146.151.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.151.182.66', 'tags': [], 'project_id': 'd353a011bcc846559fda568249535f44'}} 2025-10-29 19:37:09,974 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa4bc78c-310a-4de1-92e3-cb4ac6bd717a', 'name': '', 'tenant_id': 'd353a011bcc846559fda568249535f44', 'network_id': '647495d6-0c93-49c3-a705-9ab967c50b0a', 'ip_version': 6, 'cidr': '2a73:4341:a82e:d60:12f6:39fa::/96', 'allocation_pools': [{'start': '2a73:4341:a82e:d60:12f6:39fa:0:2', 'end': '2a73:4341:a82e:d60:12f6:39fa:ffff:fffe'}], 'gateway_ip': '2a73:4341:a82e:d60:12f6:39fa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a73:4341:a82e:d60:12f6:39fa:0:2', 'tags': [], 'project_id': 'd353a011bcc846559fda568249535f44'}} 2025-10-29 19:37:09,994 - INFO - Created VN ctest-vn4-43510273 2025-10-29 19:37:10,047 - DEBUG - VN ctest-vn4-43510273 UUID is 647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:10,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '647495d6-0c93-49c3-a705-9ab967c50b0a', 'name': 'ctest-vn4-43510273', 'tenant_id': 'd353a011bcc846559fda568249535f44', 'project_id': 'd353a011bcc846559fda568249535f44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e57569fc-c2e1-4d45-a0df-f438099afb40', 'aa4bc78c-310a-4de1-92e3-cb4ac6bd717a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33393881', 'ctest-vn4-43510273'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33393881', 'ctest-policy1-77608173']], 'subnet_ipam': [{'subnet_cidr': '146.151.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a73:4341:a82e:d60:12f6:39fa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 19:37:10,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-29 19:37:10,727 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-29 19:37:10,755 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e531fae8-a385-4292-8a5a-7ace844e0ea2 2025-10-29 19:37:10,767 - DEBUG - Requesting: http://10.0.0.50:8082/project/d353a011-bcc8-4655-9fda-568249535f44 2025-10-29 19:37:10,839 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:10,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:10,860 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0a0d293-acbb-42b0-af10-8004f097b4bf 2025-10-29 19:37:10,866 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0a0d293-acbb-42b0-af10-8004f097b4bf 2025-10-29 19:37:10,871 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/deb9dd1a-c17e-451e-a6a1-249794d8721c 2025-10-29 19:37:10,876 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 19:37:10,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:10,885 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0a0d293-acbb-42b0-af10-8004f097b4bf 2025-10-29 19:37:10,898 - INFO - Verified VN network id 11 for VN 647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:10,898 - INFO - Verifications in API Server for VN ctest-vn4-43510273 passed 2025-10-29 19:37:10,898 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:10,906 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0a0d293-acbb-42b0-af10-8004f097b4bf 2025-10-29 19:37:10,911 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0a0d293-acbb-42b0-af10-8004f097b4bf 2025-10-29 19:37:10,917 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/deb9dd1a-c17e-451e-a6a1-249794d8721c 2025-10-29 19:37:10,926 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33393881', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7238575247657748931', 'uuid-lslong': '12035195700318112522'}, 'enable': 'true', 'created': '2025-10-29T19:37:09', 'last-modified': '2025-10-29T19:37:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715046'} 2025-10-29 19:37:10,932 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 19:37:10,932 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43510273 passed 2025-10-29 19:37:10,932 - DEBUG - ====Verifying policy data for ctest-vn4-43510273 in API_Server ====== 2025-10-29 19:37:10,932 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-29 19:37:10,937 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e531fae8-a385-4292-8a5a-7ace844e0ea2 2025-10-29 19:37:11,011 - DEBUG - Requesting: http://10.0.0.50:8082/project/d353a011-bcc8-4655-9fda-568249535f44 2025-10-29 19:37:11,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/647495d6-0c93-49c3-a705-9ab967c50b0a 2025-10-29 19:37:11,091 - DEBUG - ==>Verifying data for policy with id: 4a0d8004-e561-4971-9119-f66abaa137f9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33393881', 'ctest-policy1-77608173'] 2025-10-29 19:37:11,091 - INFO - VN ctest-vn4-43510273 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 19:37:11,091 - DEBUG - Verifying the vn in opserver 2025-10-29 19:37:11,091 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273 virtual network link through opserver 10.0.0.50 2025-10-29 19:37:11,091 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-29 19:37:11,423 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-29 19:37:11,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273?flat'} 2025-10-29 19:37:11,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33393881:ctest-vn4-43510273 is found in opserver 2025-10-29 19:37:11,504 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 19:37:11,509 - DEBUG - VRF ids for VN ctest-vn4-43510273: {} 2025-10-29 19:37:11,509 - DEBUG - ====Verifying data for ctest-policy1-77608173 in API_Server ====== 2025-10-29 19:37:11,509 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-29 19:37:11,515 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e531fae8-a385-4292-8a5a-7ace844e0ea2 2025-10-29 19:37:11,526 - DEBUG - Requesting: http://10.0.0.50:8082/project/d353a011-bcc8-4655-9fda-568249535f44 2025-10-29 19:37:11,603 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/4a0d8004-e561-4971-9119-f66abaa137f9 2025-10-29 19:37:11,613 - INFO - Verified policy ctest-policy1-77608173 in API Server, Result: True 2025-10-29 19:37:11,613 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 19:37:11,621 - INFO - Deleting VN ctest-vn4-43510273 2025-10-29 19:37:11,742 - DEBUG - Response for deleting network () 2025-10-29 19:37:11,743 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0a0d293-acbb-42b0-af10-8004f097b4bf 2025-10-29 19:37:11,747 - DEBUG - Response Code: 404 2025-10-29 19:37:11,747 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-29 19:37:11,752 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e531fae8-a385-4292-8a5a-7ace844e0ea2 2025-10-29 19:37:11,808 - DEBUG - Requesting: http://10.0.0.50:8082/project/d353a011-bcc8-4655-9fda-568249535f44 2025-10-29 19:37:11,882 - INFO - Validated that VN ctest-vn4-43510273 is not found in API Server 2025-10-29 19:37:11,892 - DEBUG - VN ctest-vn4-43510273 is not present in Agent 10.0.0.50 2025-10-29 19:37:11,892 - INFO - Validated that VN ctest-vn4-43510273 is not in any agent 2025-10-29 19:37:11,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43510273 info 2025-10-29 19:37:11,924 - INFO - Deleted policy ctest-policy1-77608173 2025-10-29 19:37:12,083 - DEBUG - policy ctest-policy1-77608173 is not found in API Server 2025-10-29 19:37:12,340 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 19:37:12,340 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-29 19:37:12,340 - INFO - -------------------------------------------------------------------------------- 2025-10-29 19:37:12,632 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 19:37:12,632 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-29 19:37:12,632 - INFO - -------------------------------------------------------------------------------- 2025-10-29 19:37:13,360 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33393881, ID : d353a011-bcc8-4655-9fda-568249535f44