2026-02-11 13:11:22,692 - INFO - Domain Default found not creating 2026-02-11 13:11:22,871 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40176717 not found, creating it 2026-02-11 13:11:23,345 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40176717, ID : 8238e2b7-e034-4ca0-8b84-661e20947cad 2026-02-11 13:11:24,801 - INFO - ================================================================================ 2026-02-11 13:11:24,801 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 13:11:25,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-02-11 13:11:25,056 - INFO - Initial checks done. Running the testcase now 2026-02-11 13:11:25,057 - INFO - 2026-02-11 13:11:25,057 - INFO - ================================================================================ 2026-02-11 13:11:25,057 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 13:11:25,057 - 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-11 13:11:25,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-02-11 13:11:25,348 - INFO - Initial checks done. Running the testcase now 2026-02-11 13:11:25,348 - INFO - 2026-02-11 13:11:25,709 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40176717:ctest-vn4-83601836, 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-40176717:ctest-vn4-83601836, 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-40176717:ctest-vn4-83601836, 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-40176717:ctest-vn4-83601836, 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-11 13:11:26,210 - DEBUG - Response for create_network : {'network': {'id': 'a6de9c7c-4252-4370-ad3a-64cca04ef039', 'name': 'ctest-vn4-83601836', 'tenant_id': '8238e2b7e0344ca08b84661e20947cad', 'project_id': '8238e2b7e0344ca08b84661e20947cad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40176717', 'ctest-vn4-83601836'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 13:11:26,392 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb60a9c6-88dd-4fa1-b145-88f10362a840', 'name': '', 'tenant_id': '8238e2b7e0344ca08b84661e20947cad', 'network_id': 'a6de9c7c-4252-4370-ad3a-64cca04ef039', 'ip_version': 4, 'cidr': '109.162.255.128/26', 'allocation_pools': [{'start': '109.162.255.130', 'end': '109.162.255.190'}], 'gateway_ip': '109.162.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.162.255.130', 'tags': [], 'project_id': '8238e2b7e0344ca08b84661e20947cad'}} 2026-02-11 13:11:26,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '637f36e8-ba8d-477a-8e0a-456e7d051b97', 'name': '', 'tenant_id': '8238e2b7e0344ca08b84661e20947cad', 'network_id': 'a6de9c7c-4252-4370-ad3a-64cca04ef039', 'ip_version': 6, 'cidr': '37c6:1ec2:9371:6945:a190:73f7::/96', 'allocation_pools': [{'start': '37c6:1ec2:9371:6945:a190:73f7:0:2', 'end': '37c6:1ec2:9371:6945:a190:73f7:ffff:fffe'}], 'gateway_ip': '37c6:1ec2:9371:6945:a190:73f7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37c6:1ec2:9371:6945:a190:73f7:0:2', 'tags': [], 'project_id': '8238e2b7e0344ca08b84661e20947cad'}} 2026-02-11 13:11:26,576 - INFO - Created VN ctest-vn4-83601836 2026-02-11 13:11:26,627 - DEBUG - VN ctest-vn4-83601836 UUID is a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:26,821 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6de9c7c-4252-4370-ad3a-64cca04ef039', 'name': 'ctest-vn4-83601836', 'tenant_id': '8238e2b7e0344ca08b84661e20947cad', 'project_id': '8238e2b7e0344ca08b84661e20947cad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb60a9c6-88dd-4fa1-b145-88f10362a840', '637f36e8-ba8d-477a-8e0a-456e7d051b97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40176717', 'ctest-vn4-83601836'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40176717', 'ctest-policy1-56721303']], 'subnet_ipam': [{'subnet_cidr': '109.162.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37c6:1ec2:9371:6945:a190:73f7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 13:11:26,980 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-11 13:11:27,280 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-11 13:11:27,313 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3f35fa34-8928-44db-8bf6-346c4525ac92 2026-02-11 13:11:27,325 - DEBUG - Requesting: http://10.0.0.249:8082/project/8238e2b7-e034-4ca0-8b84-661e20947cad 2026-02-11 13:11:27,392 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:27,403 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:27,414 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/942e3d54-002e-4294-9197-bf290299febc 2026-02-11 13:11:27,421 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/942e3d54-002e-4294-9197-bf290299febc 2026-02-11 13:11:27,427 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2c545447-6a0b-4454-8e03-22f9918b2e5c 2026-02-11 13:11:27,433 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 13:11:27,433 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:27,441 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/942e3d54-002e-4294-9197-bf290299febc 2026-02-11 13:11:27,454 - INFO - Verified VN network id 11 for VN a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:27,454 - INFO - Verifications in API Server for VN ctest-vn4-83601836 passed 2026-02-11 13:11:27,454 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:27,462 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/942e3d54-002e-4294-9197-bf290299febc 2026-02-11 13:11:27,469 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/942e3d54-002e-4294-9197-bf290299febc 2026-02-11 13:11:27,476 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2c545447-6a0b-4454-8e03-22f9918b2e5c 2026-02-11 13:11:27,486 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40176717:ctest-vn4-83601836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40176717', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12024220112628368240', 'uuid-lslong': '12482400147236384825'}, 'enable': 'true', 'created': '2026-02-11T13:11:26', 'last-modified': '2026-02-11T13:11:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692847'} 2026-02-11 13:11:27,493 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 13:11:27,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83601836 passed 2026-02-11 13:11:27,493 - DEBUG - ====Verifying policy data for ctest-vn4-83601836 in API_Server ====== 2026-02-11 13:11:27,493 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-11 13:11:27,499 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3f35fa34-8928-44db-8bf6-346c4525ac92 2026-02-11 13:11:27,508 - DEBUG - Requesting: http://10.0.0.249:8082/project/8238e2b7-e034-4ca0-8b84-661e20947cad 2026-02-11 13:11:27,578 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a6de9c7c-4252-4370-ad3a-64cca04ef039 2026-02-11 13:11:27,589 - DEBUG - ==>Verifying data for policy with id: d36f538d-1324-4e83-b0d7-b7f854db045a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40176717', 'ctest-policy1-56721303'] 2026-02-11 13:11:27,589 - INFO - VN ctest-vn4-83601836 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 13:11:27,589 - DEBUG - Verifying the vn in opserver 2026-02-11 13:11:27,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40176717:ctest-vn4-83601836 virtual network link through opserver 10.0.0.249 2026-02-11 13:11:27,589 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-11 13:11:27,879 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-11 13:11:27,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40176717:ctest-vn4-83601836', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40176717:ctest-vn4-83601836?flat'} 2026-02-11 13:11:27,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40176717:ctest-vn4-83601836 is found in opserver 2026-02-11 13:11:27,945 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 13:11:27,950 - DEBUG - VRF ids for VN ctest-vn4-83601836: {} 2026-02-11 13:11:27,950 - DEBUG - ====Verifying data for ctest-policy1-56721303 in API_Server ====== 2026-02-11 13:11:27,950 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-11 13:11:27,955 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3f35fa34-8928-44db-8bf6-346c4525ac92 2026-02-11 13:11:27,965 - DEBUG - Requesting: http://10.0.0.249:8082/project/8238e2b7-e034-4ca0-8b84-661e20947cad 2026-02-11 13:11:28,029 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/d36f538d-1324-4e83-b0d7-b7f854db045a 2026-02-11 13:11:28,039 - INFO - Verified policy ctest-policy1-56721303 in API Server, Result: True 2026-02-11 13:11:28,039 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 13:11:28,047 - INFO - Deleting VN ctest-vn4-83601836 2026-02-11 13:11:28,152 - DEBUG - Response for deleting network () 2026-02-11 13:11:28,153 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/942e3d54-002e-4294-9197-bf290299febc 2026-02-11 13:11:28,158 - DEBUG - Response Code: 404 2026-02-11 13:11:28,158 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-11 13:11:28,164 - DEBUG - Requesting: http://10.0.0.249:8082/domain/3f35fa34-8928-44db-8bf6-346c4525ac92 2026-02-11 13:11:28,220 - DEBUG - Requesting: http://10.0.0.249:8082/project/8238e2b7-e034-4ca0-8b84-661e20947cad 2026-02-11 13:11:28,286 - INFO - Validated that VN ctest-vn4-83601836 is not found in API Server 2026-02-11 13:11:28,295 - DEBUG - VN ctest-vn4-83601836 is not present in Agent 10.0.0.249 2026-02-11 13:11:28,295 - INFO - Validated that VN ctest-vn4-83601836 is not in any agent 2026-02-11 13:11:28,309 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83601836 info 2026-02-11 13:11:28,331 - INFO - Deleted policy ctest-policy1-56721303 2026-02-11 13:11:28,495 - DEBUG - policy ctest-policy1-56721303 is not found in API Server 2026-02-11 13:11:28,749 - DEBUG - No XMPP flaps were noticed during the test
2026-02-11 13:11:28,749 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-11 13:11:28,749 - INFO - -------------------------------------------------------------------------------- 2026-02-11 13:11:29,040 - DEBUG - No XMPP flaps were noticed during the test
2026-02-11 13:11:29,040 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-11 13:11:29,040 - INFO - -------------------------------------------------------------------------------- 2026-02-11 13:11:29,709 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40176717, ID : 8238e2b7-e034-4ca0-8b84-661e20947cad