2026-02-19 16:11:33,868 - INFO - Domain Default found not creating 2026-02-19 16:11:34,036 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92376226 not found, creating it 2026-02-19 16:11:34,479 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92376226, ID : 7517bd5f-4333-4628-bb7f-41bddd108055 2026-02-19 16:11:35,920 - INFO - ================================================================================ 2026-02-19 16:11:35,920 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 16:11:36,177 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2026-02-19 16:11:36,177 - INFO - Initial checks done. Running the testcase now 2026-02-19 16:11:36,177 - INFO - 2026-02-19 16:11:36,177 - INFO - ================================================================================ 2026-02-19 16:11:36,177 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 16:11:36,177 - 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-19 16:11:36,473 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2026-02-19 16:11:36,473 - INFO - Initial checks done. Running the testcase now 2026-02-19 16:11:36,473 - INFO - 2026-02-19 16:11:36,843 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92376226:ctest-vn4-20746224, 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-92376226:ctest-vn4-20746224, 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-92376226:ctest-vn4-20746224, 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-92376226:ctest-vn4-20746224, 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-19 16:11:37,355 - DEBUG - Response for create_network : {'network': {'id': 'b1f627b7-b5de-49a9-9605-1f0061210bbf', 'name': 'ctest-vn4-20746224', 'tenant_id': '7517bd5f43334628bb7f41bddd108055', 'project_id': '7517bd5f43334628bb7f41bddd108055', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92376226', 'ctest-vn4-20746224'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 16:11:37,489 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d75ff7b-acf3-4129-b0b4-bb693113692a', 'name': '', 'tenant_id': '7517bd5f43334628bb7f41bddd108055', 'network_id': 'b1f627b7-b5de-49a9-9605-1f0061210bbf', 'ip_version': 4, 'cidr': '168.76.211.64/26', 'allocation_pools': [{'start': '168.76.211.66', 'end': '168.76.211.126'}], 'gateway_ip': '168.76.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.76.211.66', 'tags': [], 'project_id': '7517bd5f43334628bb7f41bddd108055'}} 2026-02-19 16:11:37,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e32f7f0-4c44-4aea-82ac-48626d5b7c58', 'name': '', 'tenant_id': '7517bd5f43334628bb7f41bddd108055', 'network_id': 'b1f627b7-b5de-49a9-9605-1f0061210bbf', 'ip_version': 6, 'cidr': '27d9:8a56:98fd:ddab:acb7:2a2d::/96', 'allocation_pools': [{'start': '27d9:8a56:98fd:ddab:acb7:2a2d:0:2', 'end': '27d9:8a56:98fd:ddab:acb7:2a2d:ffff:fffe'}], 'gateway_ip': '27d9:8a56:98fd:ddab:acb7:2a2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27d9:8a56:98fd:ddab:acb7:2a2d:0:2', 'tags': [], 'project_id': '7517bd5f43334628bb7f41bddd108055'}} 2026-02-19 16:11:37,665 - INFO - Created VN ctest-vn4-20746224 2026-02-19 16:11:37,716 - DEBUG - VN ctest-vn4-20746224 UUID is b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:37,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1f627b7-b5de-49a9-9605-1f0061210bbf', 'name': 'ctest-vn4-20746224', 'tenant_id': '7517bd5f43334628bb7f41bddd108055', 'project_id': '7517bd5f43334628bb7f41bddd108055', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d75ff7b-acf3-4129-b0b4-bb693113692a', '0e32f7f0-4c44-4aea-82ac-48626d5b7c58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92376226', 'ctest-vn4-20746224'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92376226', 'ctest-policy1-84259094']], 'subnet_ipam': [{'subnet_cidr': '168.76.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27d9:8a56:98fd:ddab:acb7:2a2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 16:11:38,092 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-19 16:11:38,382 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-19 16:11:38,411 - DEBUG - Requesting: http://10.0.0.241:8082/domain/8e16f32f-fb12-4cdd-b9de-74578914a785 2026-02-19 16:11:38,423 - DEBUG - Requesting: http://10.0.0.241:8082/project/7517bd5f-4333-4628-bb7f-41bddd108055 2026-02-19 16:11:38,495 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:38,507 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:38,515 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9fd14deb-85d7-48df-aab8-687d0866efa0 2026-02-19 16:11:38,521 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9fd14deb-85d7-48df-aab8-687d0866efa0 2026-02-19 16:11:38,527 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/74727df6-ee80-4d5d-b141-8eb35eb0f8b3 2026-02-19 16:11:38,533 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 16:11:38,533 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:38,543 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9fd14deb-85d7-48df-aab8-687d0866efa0 2026-02-19 16:11:38,557 - INFO - Verified VN network id 11 for VN b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:38,557 - INFO - Verifications in API Server for VN ctest-vn4-20746224 passed 2026-02-19 16:11:38,557 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:38,565 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9fd14deb-85d7-48df-aab8-687d0866efa0 2026-02-19 16:11:38,571 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9fd14deb-85d7-48df-aab8-687d0866efa0 2026-02-19 16:11:38,576 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/74727df6-ee80-4d5d-b141-8eb35eb0f8b3 2026-02-19 16:11:38,585 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92376226:ctest-vn4-20746224', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92376226', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12823480658967808425', 'uuid-lslong': '10810080567062760383'}, 'enable': 'true', 'created': '2026-02-19T16:11:37', 'last-modified': '2026-02-19T16:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692502'} 2026-02-19 16:11:38,590 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 16:11:38,590 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20746224 passed 2026-02-19 16:11:38,590 - DEBUG - ====Verifying policy data for ctest-vn4-20746224 in API_Server ====== 2026-02-19 16:11:38,590 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-19 16:11:38,594 - DEBUG - Requesting: http://10.0.0.241:8082/domain/8e16f32f-fb12-4cdd-b9de-74578914a785 2026-02-19 16:11:38,603 - DEBUG - Requesting: http://10.0.0.241:8082/project/7517bd5f-4333-4628-bb7f-41bddd108055 2026-02-19 16:11:38,674 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b1f627b7-b5de-49a9-9605-1f0061210bbf 2026-02-19 16:11:38,684 - DEBUG - ==>Verifying data for policy with id: 9b2065c0-ffea-4725-bbff-b13ada89bb3c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92376226', 'ctest-policy1-84259094'] 2026-02-19 16:11:38,684 - INFO - VN ctest-vn4-20746224 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 16:11:38,684 - DEBUG - Verifying the vn in opserver 2026-02-19 16:11:38,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92376226:ctest-vn4-20746224 virtual network link through opserver 10.0.0.241 2026-02-19 16:11:38,685 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-19 16:11:38,974 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-19 16:11:39,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92376226:ctest-vn4-20746224', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92376226:ctest-vn4-20746224?flat'} 2026-02-19 16:11:39,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92376226:ctest-vn4-20746224 is found in opserver 2026-02-19 16:11:39,047 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 16:11:39,051 - DEBUG - VRF ids for VN ctest-vn4-20746224: {} 2026-02-19 16:11:39,051 - DEBUG - ====Verifying data for ctest-policy1-84259094 in API_Server ====== 2026-02-19 16:11:39,051 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-19 16:11:39,056 - DEBUG - Requesting: http://10.0.0.241:8082/domain/8e16f32f-fb12-4cdd-b9de-74578914a785 2026-02-19 16:11:39,065 - DEBUG - Requesting: http://10.0.0.241:8082/project/7517bd5f-4333-4628-bb7f-41bddd108055 2026-02-19 16:11:39,131 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/9b2065c0-ffea-4725-bbff-b13ada89bb3c 2026-02-19 16:11:39,139 - INFO - Verified policy ctest-policy1-84259094 in API Server, Result: True 2026-02-19 16:11:39,139 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 16:11:39,145 - INFO - Deleting VN ctest-vn4-20746224 2026-02-19 16:11:39,249 - DEBUG - Response for deleting network () 2026-02-19 16:11:39,249 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9fd14deb-85d7-48df-aab8-687d0866efa0 2026-02-19 16:11:39,253 - DEBUG - Response Code: 404 2026-02-19 16:11:39,253 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-19 16:11:39,258 - DEBUG - Requesting: http://10.0.0.241:8082/domain/8e16f32f-fb12-4cdd-b9de-74578914a785 2026-02-19 16:11:39,308 - DEBUG - Requesting: http://10.0.0.241:8082/project/7517bd5f-4333-4628-bb7f-41bddd108055 2026-02-19 16:11:39,378 - INFO - Validated that VN ctest-vn4-20746224 is not found in API Server 2026-02-19 16:11:39,386 - DEBUG - VN ctest-vn4-20746224 is not present in Agent 10.0.0.241 2026-02-19 16:11:39,386 - INFO - Validated that VN ctest-vn4-20746224 is not in any agent 2026-02-19 16:11:39,398 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20746224 info 2026-02-19 16:11:39,421 - INFO - Deleted policy ctest-policy1-84259094 2026-02-19 16:11:39,584 - DEBUG - policy ctest-policy1-84259094 is not found in API Server 2026-02-19 16:11:39,837 - DEBUG - No XMPP flaps were noticed during the test