2026-01-29 16:55:33,200 - INFO - Domain Default found not creating 2026-01-29 16:55:33,359 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78258380 not found, creating it 2026-01-29 16:55:33,812 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78258380, ID : eb025b24-48ac-4e9d-8c72-07fe27b44151 2026-01-29 16:55:35,234 - INFO - ================================================================================ 2026-01-29 16:55:35,235 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 16:55:35,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.254': '0'}} with 2026-01-29 16:55:35,488 - INFO - Initial checks done. Running the testcase now 2026-01-29 16:55:35,488 - INFO - 2026-01-29 16:55:35,488 - INFO - ================================================================================ 2026-01-29 16:55:35,488 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 16:55:35,488 - 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-01-29 16:55:35,779 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.254': '0'}} with 2026-01-29 16:55:35,779 - INFO - Initial checks done. Running the testcase now 2026-01-29 16:55:35,779 - INFO - 2026-01-29 16:55:36,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78258380:ctest-vn4-06591158, 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-78258380:ctest-vn4-06591158, 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-78258380:ctest-vn4-06591158, 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-78258380:ctest-vn4-06591158, 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-01-29 16:55:36,644 - DEBUG - Response for create_network : {'network': {'id': 'ff99a0ce-a470-4cc3-abfa-8b419801cf09', 'name': 'ctest-vn4-06591158', 'tenant_id': 'eb025b2448ac4e9d8c7207fe27b44151', 'project_id': 'eb025b2448ac4e9d8c7207fe27b44151', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78258380', 'ctest-vn4-06591158'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 16:55:36,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e3d1c8a-9a5e-46e8-adda-a09ff2efe1d9', 'name': '', 'tenant_id': 'eb025b2448ac4e9d8c7207fe27b44151', 'network_id': 'ff99a0ce-a470-4cc3-abfa-8b419801cf09', 'ip_version': 4, 'cidr': '19.34.242.64/26', 'allocation_pools': [{'start': '19.34.242.66', 'end': '19.34.242.126'}], 'gateway_ip': '19.34.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.34.242.66', 'tags': [], 'project_id': 'eb025b2448ac4e9d8c7207fe27b44151'}} 2026-01-29 16:55:37,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a0d066e-7542-4cf6-b72c-bfd6cd084b66', 'name': '', 'tenant_id': 'eb025b2448ac4e9d8c7207fe27b44151', 'network_id': 'ff99a0ce-a470-4cc3-abfa-8b419801cf09', 'ip_version': 6, 'cidr': '2efd:79cd:5318:4dc:ef80:f972::/96', 'allocation_pools': [{'start': '2efd:79cd:5318:4dc:ef80:f972:0:2', 'end': '2efd:79cd:5318:4dc:ef80:f972:ffff:fffe'}], 'gateway_ip': '2efd:79cd:5318:4dc:ef80:f972:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2efd:79cd:5318:4dc:ef80:f972:0:2', 'tags': [], 'project_id': 'eb025b2448ac4e9d8c7207fe27b44151'}} 2026-01-29 16:55:37,081 - INFO - Created VN ctest-vn4-06591158 2026-01-29 16:55:37,135 - DEBUG - VN ctest-vn4-06591158 UUID is ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:37,334 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff99a0ce-a470-4cc3-abfa-8b419801cf09', 'name': 'ctest-vn4-06591158', 'tenant_id': 'eb025b2448ac4e9d8c7207fe27b44151', 'project_id': 'eb025b2448ac4e9d8c7207fe27b44151', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e3d1c8a-9a5e-46e8-adda-a09ff2efe1d9', '8a0d066e-7542-4cf6-b72c-bfd6cd084b66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78258380', 'ctest-vn4-06591158'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78258380', 'ctest-policy1-74866044']], 'subnet_ipam': [{'subnet_cidr': '19.34.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2efd:79cd:5318:4dc:ef80:f972::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 16:55:37,503 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 16:55:37,856 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 16:55:37,897 - DEBUG - Requesting: http://10.0.0.133:8082/domain/66d34dca-63af-445e-aecf-244a1d5946ef 2026-01-29 16:55:37,909 - DEBUG - Requesting: http://10.0.0.133:8082/project/eb025b24-48ac-4e9d-8c72-07fe27b44151 2026-01-29 16:55:37,983 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:37,994 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:38,002 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/d94b5183-d39b-4d3e-b0b1-56b8e6abce3a 2026-01-29 16:55:38,008 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/d94b5183-d39b-4d3e-b0b1-56b8e6abce3a 2026-01-29 16:55:38,015 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/ccc80c9b-75dc-4057-8311-8ebf9752ea5c 2026-01-29 16:55:38,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 16:55:38,021 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:38,032 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/d94b5183-d39b-4d3e-b0b1-56b8e6abce3a 2026-01-29 16:55:38,044 - INFO - Verified VN network id 11 for VN ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:38,044 - INFO - Verifications in API Server for VN ctest-vn4-06591158 passed 2026-01-29 16:55:38,044 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:38,054 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/d94b5183-d39b-4d3e-b0b1-56b8e6abce3a 2026-01-29 16:55:38,061 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/d94b5183-d39b-4d3e-b0b1-56b8e6abce3a 2026-01-29 16:55:38,067 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/ccc80c9b-75dc-4057-8311-8ebf9752ea5c 2026-01-29 16:55:38,079 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78258380:ctest-vn4-06591158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78258380', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18417928960490884291', 'uuid-lslong': '12392370438502731529'}, 'enable': 'true', 'created': '2026-01-29T16:55:36', 'last-modified': '2026-01-29T16:55:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770174'} 2026-01-29 16:55:38,084 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 16:55:38,084 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06591158 passed 2026-01-29 16:55:38,085 - DEBUG - ====Verifying policy data for ctest-vn4-06591158 in API_Server ====== 2026-01-29 16:55:38,085 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 16:55:38,090 - DEBUG - Requesting: http://10.0.0.133:8082/domain/66d34dca-63af-445e-aecf-244a1d5946ef 2026-01-29 16:55:38,101 - DEBUG - Requesting: http://10.0.0.133:8082/project/eb025b24-48ac-4e9d-8c72-07fe27b44151 2026-01-29 16:55:38,176 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ff99a0ce-a470-4cc3-abfa-8b419801cf09 2026-01-29 16:55:38,187 - DEBUG - ==>Verifying data for policy with id: f0f0ecf1-4385-4b58-95ac-528223d50b46, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78258380', 'ctest-policy1-74866044'] 2026-01-29 16:55:38,187 - INFO - VN ctest-vn4-06591158 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 16:55:38,187 - DEBUG - Verifying the vn in opserver 2026-01-29 16:55:38,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78258380:ctest-vn4-06591158 virtual network link through opserver 10.0.0.133 2026-01-29 16:55:38,187 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-01-29 16:55:38,479 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-01-29 16:55:38,550 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78258380:ctest-vn4-06591158', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78258380:ctest-vn4-06591158?flat'} 2026-01-29 16:55:38,550 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78258380:ctest-vn4-06591158 is found in opserver 2026-01-29 16:55:38,559 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 16:55:38,564 - DEBUG - VRF ids for VN ctest-vn4-06591158: {} 2026-01-29 16:55:38,565 - DEBUG - ====Verifying data for ctest-policy1-74866044 in API_Server ====== 2026-01-29 16:55:38,565 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 16:55:38,570 - DEBUG - Requesting: http://10.0.0.133:8082/domain/66d34dca-63af-445e-aecf-244a1d5946ef 2026-01-29 16:55:38,581 - DEBUG - Requesting: http://10.0.0.133:8082/project/eb025b24-48ac-4e9d-8c72-07fe27b44151 2026-01-29 16:55:38,649 - DEBUG - Requesting: http://10.0.0.133:8082/network-policy/f0f0ecf1-4385-4b58-95ac-528223d50b46 2026-01-29 16:55:38,657 - INFO - Verified policy ctest-policy1-74866044 in API Server, Result: True 2026-01-29 16:55:38,657 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 16:55:38,664 - INFO - Deleting VN ctest-vn4-06591158 2026-01-29 16:55:38,774 - DEBUG - Response for deleting network () 2026-01-29 16:55:38,774 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/d94b5183-d39b-4d3e-b0b1-56b8e6abce3a 2026-01-29 16:55:38,778 - DEBUG - Response Code: 404 2026-01-29 16:55:38,778 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 16:55:38,783 - DEBUG - Requesting: http://10.0.0.133:8082/domain/66d34dca-63af-445e-aecf-244a1d5946ef 2026-01-29 16:55:38,835 - DEBUG - Requesting: http://10.0.0.133:8082/project/eb025b24-48ac-4e9d-8c72-07fe27b44151 2026-01-29 16:55:38,916 - INFO - Validated that VN ctest-vn4-06591158 is not found in API Server 2026-01-29 16:55:38,925 - DEBUG - VN ctest-vn4-06591158 is not present in Agent 10.0.0.133 2026-01-29 16:55:38,925 - INFO - Validated that VN ctest-vn4-06591158 is not in any agent 2026-01-29 16:55:38,937 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06591158 info 2026-01-29 16:55:38,963 - INFO - Deleted policy ctest-policy1-74866044 2026-01-29 16:55:39,126 - DEBUG - policy ctest-policy1-74866044 is not found in API Server 2026-01-29 16:55:39,379 - DEBUG - No XMPP flaps were noticed during the test