2026-02-16 16:22:56,141 - INFO - Domain Default found not creating 2026-02-16 16:22:56,310 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49180984 not found, creating it 2026-02-16 16:22:56,745 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49180984, ID : 7897b335-55ee-42a9-b2d4-daa329796211 2026-02-16 16:22:58,293 - INFO - ================================================================================ 2026-02-16 16:22:58,294 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 16:22:58,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-16 16:22:58,548 - INFO - Initial checks done. Running the testcase now 2026-02-16 16:22:58,548 - INFO - 2026-02-16 16:22:58,548 - INFO - ================================================================================ 2026-02-16 16:22:58,548 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 16:22:58,548 - 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-16 16:22:58,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-16 16:22:58,844 - INFO - Initial checks done. Running the testcase now 2026-02-16 16:22:58,844 - INFO - 2026-02-16 16:22:59,211 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49180984:ctest-vn4-12149298, 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-49180984:ctest-vn4-12149298, 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-49180984:ctest-vn4-12149298, 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-49180984:ctest-vn4-12149298, 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-16 16:22:59,734 - DEBUG - Response for create_network : {'network': {'id': '1aceeac2-8065-43b3-bc40-9e4b77c8b4ff', 'name': 'ctest-vn4-12149298', 'tenant_id': '7897b33555ee42a9b2d4daa329796211', 'project_id': '7897b33555ee42a9b2d4daa329796211', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49180984', 'ctest-vn4-12149298'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 16:22:59,947 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e80ada2d-ee51-46f5-97d5-27133046c7cb', 'name': '', 'tenant_id': '7897b33555ee42a9b2d4daa329796211', 'network_id': '1aceeac2-8065-43b3-bc40-9e4b77c8b4ff', 'ip_version': 4, 'cidr': '90.128.187.64/26', 'allocation_pools': [{'start': '90.128.187.66', 'end': '90.128.187.126'}], 'gateway_ip': '90.128.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.128.187.66', 'tags': [], 'project_id': '7897b33555ee42a9b2d4daa329796211'}} 2026-02-16 16:23:00,121 - DEBUG - Response for create_subnet : {'subnet': {'id': '8229bece-82da-413b-9306-e8eba7402a55', 'name': '', 'tenant_id': '7897b33555ee42a9b2d4daa329796211', 'network_id': '1aceeac2-8065-43b3-bc40-9e4b77c8b4ff', 'ip_version': 6, 'cidr': '220e:f172:79e0:537e:6a8f:8800::/96', 'allocation_pools': [{'start': '220e:f172:79e0:537e:6a8f:8800:0:2', 'end': '220e:f172:79e0:537e:6a8f:8800:ffff:fffe'}], 'gateway_ip': '220e:f172:79e0:537e:6a8f:8800:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220e:f172:79e0:537e:6a8f:8800:0:2', 'tags': [], 'project_id': '7897b33555ee42a9b2d4daa329796211'}} 2026-02-16 16:23:00,144 - INFO - Created VN ctest-vn4-12149298 2026-02-16 16:23:00,199 - DEBUG - VN ctest-vn4-12149298 UUID is 1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:00,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1aceeac2-8065-43b3-bc40-9e4b77c8b4ff', 'name': 'ctest-vn4-12149298', 'tenant_id': '7897b33555ee42a9b2d4daa329796211', 'project_id': '7897b33555ee42a9b2d4daa329796211', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e80ada2d-ee51-46f5-97d5-27133046c7cb', '8229bece-82da-413b-9306-e8eba7402a55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49180984', 'ctest-vn4-12149298'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49180984', 'ctest-policy1-88490687']], 'subnet_ipam': [{'subnet_cidr': '90.128.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '220e:f172:79e0:537e:6a8f:8800::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 16:23:00,567 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 16:23:00,860 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 16:23:00,890 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d39b571e-7302-422e-bde5-fc68691256ab 2026-02-16 16:23:00,902 - DEBUG - Requesting: http://10.0.0.38:8082/project/7897b335-55ee-42a9-b2d4-daa329796211 2026-02-16 16:23:00,977 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:00,988 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:00,998 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ca64f83-b0c4-4057-a0de-4491f135f238 2026-02-16 16:23:01,006 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ca64f83-b0c4-4057-a0de-4491f135f238 2026-02-16 16:23:01,015 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/01b7e321-7445-4267-b1c8-d320e19c26b1 2026-02-16 16:23:01,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 16:23:01,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:01,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ca64f83-b0c4-4057-a0de-4491f135f238 2026-02-16 16:23:01,049 - INFO - Verified VN network id 11 for VN 1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:01,049 - INFO - Verifications in API Server for VN ctest-vn4-12149298 passed 2026-02-16 16:23:01,049 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:01,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ca64f83-b0c4-4057-a0de-4491f135f238 2026-02-16 16:23:01,066 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ca64f83-b0c4-4057-a0de-4491f135f238 2026-02-16 16:23:01,073 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/01b7e321-7445-4267-b1c8-d320e19c26b1 2026-02-16 16:23:01,084 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49180984:ctest-vn4-12149298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49180984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1931739411287196595', 'uuid-lslong': '13565016124609311999'}, 'enable': 'true', 'created': '2026-02-16T16:22:59', 'last-modified': '2026-02-16T16:23:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702016'} 2026-02-16 16:23:01,090 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 16:23:01,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12149298 passed 2026-02-16 16:23:01,091 - DEBUG - ====Verifying policy data for ctest-vn4-12149298 in API_Server ====== 2026-02-16 16:23:01,091 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 16:23:01,096 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d39b571e-7302-422e-bde5-fc68691256ab 2026-02-16 16:23:01,108 - DEBUG - Requesting: http://10.0.0.38:8082/project/7897b335-55ee-42a9-b2d4-daa329796211 2026-02-16 16:23:01,180 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1aceeac2-8065-43b3-bc40-9e4b77c8b4ff 2026-02-16 16:23:01,196 - DEBUG - ==>Verifying data for policy with id: 131b3c63-0b9a-4dc2-9fd8-e836d528c5da, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49180984', 'ctest-policy1-88490687'] 2026-02-16 16:23:01,196 - INFO - VN ctest-vn4-12149298 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 16:23:01,196 - DEBUG - Verifying the vn in opserver 2026-02-16 16:23:01,196 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49180984:ctest-vn4-12149298 virtual network link through opserver 10.0.0.38 2026-02-16 16:23:01,197 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-16 16:23:01,496 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-16 16:23:01,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49180984:ctest-vn4-12149298', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49180984:ctest-vn4-12149298?flat'} 2026-02-16 16:23:01,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49180984:ctest-vn4-12149298 is found in opserver 2026-02-16 16:23:01,585 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 16:23:01,591 - DEBUG - VRF ids for VN ctest-vn4-12149298: {} 2026-02-16 16:23:01,592 - DEBUG - ====Verifying data for ctest-policy1-88490687 in API_Server ====== 2026-02-16 16:23:01,592 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 16:23:01,597 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d39b571e-7302-422e-bde5-fc68691256ab 2026-02-16 16:23:01,611 - DEBUG - Requesting: http://10.0.0.38:8082/project/7897b335-55ee-42a9-b2d4-daa329796211 2026-02-16 16:23:01,679 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/131b3c63-0b9a-4dc2-9fd8-e836d528c5da 2026-02-16 16:23:01,689 - INFO - Verified policy ctest-policy1-88490687 in API Server, Result: True 2026-02-16 16:23:01,689 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 16:23:01,697 - INFO - Deleting VN ctest-vn4-12149298 2026-02-16 16:23:01,825 - DEBUG - Response for deleting network () 2026-02-16 16:23:01,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ca64f83-b0c4-4057-a0de-4491f135f238 2026-02-16 16:23:01,831 - DEBUG - Response Code: 404 2026-02-16 16:23:01,831 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 16:23:01,837 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d39b571e-7302-422e-bde5-fc68691256ab 2026-02-16 16:23:01,891 - DEBUG - Requesting: http://10.0.0.38:8082/project/7897b335-55ee-42a9-b2d4-daa329796211 2026-02-16 16:23:01,963 - INFO - Validated that VN ctest-vn4-12149298 is not found in API Server 2026-02-16 16:23:01,971 - DEBUG - VN ctest-vn4-12149298 is not present in Agent 10.0.0.38 2026-02-16 16:23:01,972 - INFO - Validated that VN ctest-vn4-12149298 is not in any agent 2026-02-16 16:23:01,985 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12149298 info 2026-02-16 16:23:02,005 - INFO - Deleted policy ctest-policy1-88490687 2026-02-16 16:23:02,166 - DEBUG - policy ctest-policy1-88490687 is not found in API Server 2026-02-16 16:23:02,420 - DEBUG - No XMPP flaps were noticed during the test
2026-02-16 16:23:02,420 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-16 16:23:02,420 - INFO - -------------------------------------------------------------------------------- 2026-02-16 16:23:02,709 - DEBUG - No XMPP flaps were noticed during the test
2026-02-16 16:23:02,709 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-16 16:23:02,709 - INFO - -------------------------------------------------------------------------------- 2026-02-16 16:23:03,402 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49180984, ID : 7897b335-55ee-42a9-b2d4-daa329796211