2026-02-17 15:58:17,191 - INFO - Domain Default found not creating 2026-02-17 15:58:17,318 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15369594 not found, creating it 2026-02-17 15:58:17,737 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15369594, ID : c3817cd3-20e0-4caf-950a-7e8d33e9da28 2026-02-17 15:58:19,108 - INFO - ================================================================================ 2026-02-17 15:58:19,108 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 15:58:19,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-17 15:58:19,365 - INFO - Initial checks done. Running the testcase now 2026-02-17 15:58:19,365 - INFO - 2026-02-17 15:58:19,365 - INFO - ================================================================================ 2026-02-17 15:58:19,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 15:58:19,365 - 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-17 15:58:19,652 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-17 15:58:19,652 - INFO - Initial checks done. Running the testcase now 2026-02-17 15:58:19,652 - INFO - 2026-02-17 15:58:19,994 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15369594:ctest-vn4-67583497, 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-15369594:ctest-vn4-67583497, 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-15369594:ctest-vn4-67583497, 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-15369594:ctest-vn4-67583497, 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-17 15:58:20,490 - DEBUG - Response for create_network : {'network': {'id': '177f2553-e8d0-4e93-af2b-f96d97b14126', 'name': 'ctest-vn4-67583497', 'tenant_id': 'c3817cd320e04caf950a7e8d33e9da28', 'project_id': 'c3817cd320e04caf950a7e8d33e9da28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15369594', 'ctest-vn4-67583497'], 'port_security_enabled': True, 'description': ''}} 2026-02-17 15:58:20,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a6c886c-75f8-42be-bff1-91ca78777cf1', 'name': '', 'tenant_id': 'c3817cd320e04caf950a7e8d33e9da28', 'network_id': '177f2553-e8d0-4e93-af2b-f96d97b14126', 'ip_version': 4, 'cidr': '40.187.197.64/26', 'allocation_pools': [{'start': '40.187.197.66', 'end': '40.187.197.126'}], 'gateway_ip': '40.187.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.187.197.66', 'tags': [], 'project_id': 'c3817cd320e04caf950a7e8d33e9da28'}} 2026-02-17 15:58:20,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '509b95c4-fd5a-4eeb-b59e-2e5fe91d8042', 'name': '', 'tenant_id': 'c3817cd320e04caf950a7e8d33e9da28', 'network_id': '177f2553-e8d0-4e93-af2b-f96d97b14126', 'ip_version': 6, 'cidr': '31e8:3c8:77c1:8cf2:2e47:8789::/96', 'allocation_pools': [{'start': '31e8:3c8:77c1:8cf2:2e47:8789:0:2', 'end': '31e8:3c8:77c1:8cf2:2e47:8789:ffff:fffe'}], 'gateway_ip': '31e8:3c8:77c1:8cf2:2e47:8789:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31e8:3c8:77c1:8cf2:2e47:8789:0:2', 'tags': [], 'project_id': 'c3817cd320e04caf950a7e8d33e9da28'}} 2026-02-17 15:58:20,858 - INFO - Created VN ctest-vn4-67583497 2026-02-17 15:58:20,912 - DEBUG - VN ctest-vn4-67583497 UUID is 177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '177f2553-e8d0-4e93-af2b-f96d97b14126', 'name': 'ctest-vn4-67583497', 'tenant_id': 'c3817cd320e04caf950a7e8d33e9da28', 'project_id': 'c3817cd320e04caf950a7e8d33e9da28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a6c886c-75f8-42be-bff1-91ca78777cf1', '509b95c4-fd5a-4eeb-b59e-2e5fe91d8042'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15369594', 'ctest-vn4-67583497'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15369594', 'ctest-policy1-04568577']], 'subnet_ipam': [{'subnet_cidr': '40.187.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31e8:3c8:77c1:8cf2:2e47:8789::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-17 15:58:21,252 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 15:58:21,543 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 15:58:21,570 - DEBUG - Requesting: http://10.0.0.38:8082/domain/762c6e0d-ddfe-461c-9c39-da5a2348af47 2026-02-17 15:58:21,580 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3817cd3-20e0-4caf-950a-7e8d33e9da28 2026-02-17 15:58:21,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,671 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b2fbc92c-6e6e-4343-99df-a723f1206f83 2026-02-17 15:58:21,677 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b2fbc92c-6e6e-4343-99df-a723f1206f83 2026-02-17 15:58:21,682 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/051e4538-cda2-4baf-b00e-103ec2c07600 2026-02-17 15:58:21,688 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 15:58:21,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,697 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b2fbc92c-6e6e-4343-99df-a723f1206f83 2026-02-17 15:58:21,707 - INFO - Verified VN network id 11 for VN 177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,708 - INFO - Verifications in API Server for VN ctest-vn4-67583497 passed 2026-02-17 15:58:21,708 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,716 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b2fbc92c-6e6e-4343-99df-a723f1206f83 2026-02-17 15:58:21,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b2fbc92c-6e6e-4343-99df-a723f1206f83 2026-02-17 15:58:21,727 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/051e4538-cda2-4baf-b00e-103ec2c07600 2026-02-17 15:58:21,737 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15369594:ctest-vn4-67583497', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15369594', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1693113027233074835', 'uuid-lslong': '12622456629727674662'}, 'enable': 'true', 'created': '2026-02-17T15:58:20', 'last-modified': '2026-02-17T15:58:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669598'} 2026-02-17 15:58:21,742 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 15:58:21,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67583497 passed 2026-02-17 15:58:21,742 - DEBUG - ====Verifying policy data for ctest-vn4-67583497 in API_Server ====== 2026-02-17 15:58:21,742 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 15:58:21,747 - DEBUG - Requesting: http://10.0.0.38:8082/domain/762c6e0d-ddfe-461c-9c39-da5a2348af47 2026-02-17 15:58:21,757 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3817cd3-20e0-4caf-950a-7e8d33e9da28 2026-02-17 15:58:21,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/177f2553-e8d0-4e93-af2b-f96d97b14126 2026-02-17 15:58:21,836 - DEBUG - ==>Verifying data for policy with id: 2542f698-5b62-4873-b1a8-f7c0a1748712, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15369594', 'ctest-policy1-04568577'] 2026-02-17 15:58:21,836 - INFO - VN ctest-vn4-67583497 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-17 15:58:21,836 - DEBUG - Verifying the vn in opserver 2026-02-17 15:58:21,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15369594:ctest-vn4-67583497 virtual network link through opserver 10.0.0.38 2026-02-17 15:58:21,836 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-17 15:58:22,124 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-17 15:58:22,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15369594:ctest-vn4-67583497', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15369594:ctest-vn4-67583497?flat'} 2026-02-17 15:58:22,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15369594:ctest-vn4-67583497 is found in opserver 2026-02-17 15:58:22,188 - DEBUG - Do not have enough data to verify VN in agent 2026-02-17 15:58:22,192 - DEBUG - VRF ids for VN ctest-vn4-67583497: {} 2026-02-17 15:58:22,193 - DEBUG - ====Verifying data for ctest-policy1-04568577 in API_Server ====== 2026-02-17 15:58:22,193 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 15:58:22,202 - DEBUG - Requesting: http://10.0.0.38:8082/domain/762c6e0d-ddfe-461c-9c39-da5a2348af47 2026-02-17 15:58:22,210 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3817cd3-20e0-4caf-950a-7e8d33e9da28 2026-02-17 15:58:22,275 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2542f698-5b62-4873-b1a8-f7c0a1748712 2026-02-17 15:58:22,284 - INFO - Verified policy ctest-policy1-04568577 in API Server, Result: True 2026-02-17 15:58:22,284 - INFO - Done with setup and verification, moving onto test .. 2026-02-17 15:58:22,291 - INFO - Deleting VN ctest-vn4-67583497 2026-02-17 15:58:22,391 - DEBUG - Response for deleting network () 2026-02-17 15:58:22,392 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b2fbc92c-6e6e-4343-99df-a723f1206f83 2026-02-17 15:58:22,396 - DEBUG - Response Code: 404 2026-02-17 15:58:22,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 15:58:22,401 - DEBUG - Requesting: http://10.0.0.38:8082/domain/762c6e0d-ddfe-461c-9c39-da5a2348af47 2026-02-17 15:58:22,456 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3817cd3-20e0-4caf-950a-7e8d33e9da28 2026-02-17 15:58:22,523 - INFO - Validated that VN ctest-vn4-67583497 is not found in API Server 2026-02-17 15:58:22,531 - DEBUG - VN ctest-vn4-67583497 is not present in Agent 10.0.0.38 2026-02-17 15:58:22,531 - INFO - Validated that VN ctest-vn4-67583497 is not in any agent 2026-02-17 15:58:22,543 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67583497 info 2026-02-17 15:58:22,561 - INFO - Deleted policy ctest-policy1-04568577 2026-02-17 15:58:22,720 - DEBUG - policy ctest-policy1-04568577 is not found in API Server 2026-02-17 15:58:22,972 - DEBUG - No XMPP flaps were noticed during the test