2026-02-05 10:29:56,856 - INFO - Domain Default found not creating 2026-02-05 10:29:57,019 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84166302 not found, creating it 2026-02-05 10:29:57,487 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84166302, ID : 26b252c1-2371-4534-ae13-8321fe1a96e3 2026-02-05 10:29:58,961 - INFO - ================================================================================ 2026-02-05 10:29:58,961 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 10:29:59,217 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-02-05 10:29:59,217 - INFO - Initial checks done. Running the testcase now 2026-02-05 10:29:59,217 - INFO - 2026-02-05 10:29:59,218 - INFO - ================================================================================ 2026-02-05 10:29:59,218 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 10:29:59,218 - 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. 2026-02-05 10:29:59,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-02-05 10:29:59,507 - INFO - Initial checks done. Running the testcase now 2026-02-05 10:29:59,507 - INFO - 2026-02-05 10:29:59,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84166302:ctest-vn4-23843856, 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-84166302:ctest-vn4-23843856, 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-84166302:ctest-vn4-23843856, 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-84166302:ctest-vn4-23843856, 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] 2026-02-05 10:30:00,361 - DEBUG - Response for create_network : {'network': {'id': 'cc3134fd-7f0a-4f7b-8d87-2e320b7b5640', 'name': 'ctest-vn4-23843856', 'tenant_id': '26b252c123714534ae138321fe1a96e3', 'project_id': '26b252c123714534ae138321fe1a96e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84166302', 'ctest-vn4-23843856'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 10:30:00,561 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd638554-b240-440f-b398-62e3e0f68a1e', 'name': '', 'tenant_id': '26b252c123714534ae138321fe1a96e3', 'network_id': 'cc3134fd-7f0a-4f7b-8d87-2e320b7b5640', 'ip_version': 4, 'cidr': '36.132.235.0/26', 'allocation_pools': [{'start': '36.132.235.2', 'end': '36.132.235.62'}], 'gateway_ip': '36.132.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.132.235.2', 'tags': [], 'project_id': '26b252c123714534ae138321fe1a96e3'}} 2026-02-05 10:30:00,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '80faacaa-2b20-4bbf-9be3-405485560298', 'name': '', 'tenant_id': '26b252c123714534ae138321fe1a96e3', 'network_id': 'cc3134fd-7f0a-4f7b-8d87-2e320b7b5640', 'ip_version': 6, 'cidr': '2932:4eb2:28a2:62ea:d5d0:9a89::/96', 'allocation_pools': [{'start': '2932:4eb2:28a2:62ea:d5d0:9a89:0:2', 'end': '2932:4eb2:28a2:62ea:d5d0:9a89:ffff:fffe'}], 'gateway_ip': '2932:4eb2:28a2:62ea:d5d0:9a89:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2932:4eb2:28a2:62ea:d5d0:9a89:0:2', 'tags': [], 'project_id': '26b252c123714534ae138321fe1a96e3'}} 2026-02-05 10:30:00,779 - INFO - Created VN ctest-vn4-23843856 2026-02-05 10:30:00,831 - DEBUG - VN ctest-vn4-23843856 UUID is cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc3134fd-7f0a-4f7b-8d87-2e320b7b5640', 'name': 'ctest-vn4-23843856', 'tenant_id': '26b252c123714534ae138321fe1a96e3', 'project_id': '26b252c123714534ae138321fe1a96e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd638554-b240-440f-b398-62e3e0f68a1e', '80faacaa-2b20-4bbf-9be3-405485560298'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84166302', 'ctest-vn4-23843856'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84166302', 'ctest-policy1-81488083']], 'subnet_ipam': [{'subnet_cidr': '36.132.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2932:4eb2:28a2:62ea:d5d0:9a89::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 10:30:01,215 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-05 10:30:01,509 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-05 10:30:01,540 - DEBUG - Requesting: http://10.0.0.33:8082/domain/84a78138-762a-4f45-ab17-31d4ff645ab1 2026-02-05 10:30:01,551 - DEBUG - Requesting: http://10.0.0.33:8082/project/26b252c1-2371-4534-ae13-8321fe1a96e3 2026-02-05 10:30:01,626 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,638 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,648 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ede99b96-9576-46f2-94eb-88e66ae2289f 2026-02-05 10:30:01,655 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ede99b96-9576-46f2-94eb-88e66ae2289f 2026-02-05 10:30:01,662 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/29531c18-7da5-4836-b0e9-12fc05ec7e97 2026-02-05 10:30:01,669 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 10:30:01,669 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,680 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ede99b96-9576-46f2-94eb-88e66ae2289f 2026-02-05 10:30:01,697 - INFO - Verified VN network id 12 for VN cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,697 - INFO - Verifications in API Server for VN ctest-vn4-23843856 passed 2026-02-05 10:30:01,697 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ede99b96-9576-46f2-94eb-88e66ae2289f 2026-02-05 10:30:01,712 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ede99b96-9576-46f2-94eb-88e66ae2289f 2026-02-05 10:30:01,718 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/29531c18-7da5-4836-b0e9-12fc05ec7e97 2026-02-05 10:30:01,728 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84166302:ctest-vn4-23843856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84166302', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14713599720958873467', 'uuid-lslong': '10198170673679652416'}, 'enable': 'true', 'created': '2026-02-05T10:30:00', 'last-modified': '2026-02-05T10:30:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695883'} 2026-02-05 10:30:01,734 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 10:30:01,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23843856 passed 2026-02-05 10:30:01,735 - DEBUG - ====Verifying policy data for ctest-vn4-23843856 in API_Server ====== 2026-02-05 10:30:01,735 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-05 10:30:01,740 - DEBUG - Requesting: http://10.0.0.33:8082/domain/84a78138-762a-4f45-ab17-31d4ff645ab1 2026-02-05 10:30:01,750 - DEBUG - Requesting: http://10.0.0.33:8082/project/26b252c1-2371-4534-ae13-8321fe1a96e3 2026-02-05 10:30:01,820 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc3134fd-7f0a-4f7b-8d87-2e320b7b5640 2026-02-05 10:30:01,829 - DEBUG - ==>Verifying data for policy with id: 84b48f7d-0cc2-4694-90e9-41a15f0cc2e9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84166302', 'ctest-policy1-81488083'] 2026-02-05 10:30:01,829 - INFO - VN ctest-vn4-23843856 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 10:30:01,829 - DEBUG - Verifying the vn in opserver 2026-02-05 10:30:01,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84166302:ctest-vn4-23843856 virtual network link through opserver 10.0.0.33 2026-02-05 10:30:01,829 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-05 10:30:02,118 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-05 10:30:02,177 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84166302:ctest-vn4-23843856', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84166302:ctest-vn4-23843856?flat'} 2026-02-05 10:30:02,177 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84166302:ctest-vn4-23843856 is found in opserver 2026-02-05 10:30:02,187 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 10:30:02,193 - DEBUG - VRF ids for VN ctest-vn4-23843856: {} 2026-02-05 10:30:02,193 - DEBUG - ====Verifying data for ctest-policy1-81488083 in API_Server ====== 2026-02-05 10:30:02,193 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-05 10:30:02,198 - DEBUG - Requesting: http://10.0.0.33:8082/domain/84a78138-762a-4f45-ab17-31d4ff645ab1 2026-02-05 10:30:02,210 - DEBUG - Requesting: http://10.0.0.33:8082/project/26b252c1-2371-4534-ae13-8321fe1a96e3 2026-02-05 10:30:02,279 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/84b48f7d-0cc2-4694-90e9-41a15f0cc2e9 2026-02-05 10:30:02,287 - INFO - Verified policy ctest-policy1-81488083 in API Server, Result: True 2026-02-05 10:30:02,287 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 10:30:02,294 - INFO - Deleting VN ctest-vn4-23843856 2026-02-05 10:30:02,417 - DEBUG - Response for deleting network () 2026-02-05 10:30:02,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ede99b96-9576-46f2-94eb-88e66ae2289f 2026-02-05 10:30:02,423 - DEBUG - Response Code: 404 2026-02-05 10:30:02,423 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-05 10:30:02,429 - DEBUG - Requesting: http://10.0.0.33:8082/domain/84a78138-762a-4f45-ab17-31d4ff645ab1 2026-02-05 10:30:02,479 - DEBUG - Requesting: http://10.0.0.33:8082/project/26b252c1-2371-4534-ae13-8321fe1a96e3 2026-02-05 10:30:02,546 - INFO - Validated that VN ctest-vn4-23843856 is not found in API Server 2026-02-05 10:30:02,555 - DEBUG - VN ctest-vn4-23843856 is not present in Agent 10.0.0.33 2026-02-05 10:30:02,555 - INFO - Validated that VN ctest-vn4-23843856 is not in any agent 2026-02-05 10:30:02,567 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23843856 info 2026-02-05 10:30:02,593 - INFO - Deleted policy ctest-policy1-81488083 2026-02-05 10:30:02,751 - DEBUG - policy ctest-policy1-81488083 is not found in API Server 2026-02-05 10:30:03,004 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 10:30:03,004 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-05 10:30:03,004 - INFO - -------------------------------------------------------------------------------- 2026-02-05 10:30:03,293 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 10:30:03,293 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-05 10:30:03,294 - INFO - -------------------------------------------------------------------------------- 2026-02-05 10:30:03,991 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84166302, ID : 26b252c1-2371-4534-ae13-8321fe1a96e3