2026-02-05 20:45:20,155 - INFO - Domain Default found not creating 2026-02-05 20:45:20,351 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25598077 not found, creating it 2026-02-05 20:45:20,847 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25598077, ID : a811e279-b8fb-4ceb-b428-f9a92d889f31 2026-02-05 20:45:22,366 - INFO - ================================================================================ 2026-02-05 20:45:22,366 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 20:45:22,621 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-05 20:45:22,621 - INFO - Initial checks done. Running the testcase now 2026-02-05 20:45:22,621 - INFO - 2026-02-05 20:45:22,621 - INFO - ================================================================================ 2026-02-05 20:45:22,621 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 20:45:22,621 - 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-05 20:45:22,917 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-05 20:45:22,917 - INFO - Initial checks done. Running the testcase now 2026-02-05 20:45:22,917 - INFO - 2026-02-05 20:45:23,276 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25598077:ctest-vn4-55036614, 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-25598077:ctest-vn4-55036614, 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-25598077:ctest-vn4-55036614, 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-25598077:ctest-vn4-55036614, 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-05 20:45:23,793 - DEBUG - Response for create_network : {'network': {'id': 'c69832ce-c8fc-4920-9bfd-4249016b90e5', 'name': 'ctest-vn4-55036614', 'tenant_id': 'a811e279b8fb4cebb428f9a92d889f31', 'project_id': 'a811e279b8fb4cebb428f9a92d889f31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25598077', 'ctest-vn4-55036614'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 20:45:24,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c322c7f-3835-45ea-ad6e-1b5b4c578e4a', 'name': '', 'tenant_id': 'a811e279b8fb4cebb428f9a92d889f31', 'network_id': 'c69832ce-c8fc-4920-9bfd-4249016b90e5', 'ip_version': 4, 'cidr': '197.100.95.192/26', 'allocation_pools': [{'start': '197.100.95.194', 'end': '197.100.95.254'}], 'gateway_ip': '197.100.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.100.95.194', 'tags': [], 'project_id': 'a811e279b8fb4cebb428f9a92d889f31'}} 2026-02-05 20:45:24,160 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa15e7a9-53d0-4b46-9d0b-91d4e21c3d22', 'name': '', 'tenant_id': 'a811e279b8fb4cebb428f9a92d889f31', 'network_id': 'c69832ce-c8fc-4920-9bfd-4249016b90e5', 'ip_version': 6, 'cidr': '30fe:3e8a:1ca7:f7:cfc2:4ea6::/96', 'allocation_pools': [{'start': '30fe:3e8a:1ca7:f7:cfc2:4ea6:0:2', 'end': '30fe:3e8a:1ca7:f7:cfc2:4ea6:ffff:fffe'}], 'gateway_ip': '30fe:3e8a:1ca7:f7:cfc2:4ea6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30fe:3e8a:1ca7:f7:cfc2:4ea6:0:2', 'tags': [], 'project_id': 'a811e279b8fb4cebb428f9a92d889f31'}} 2026-02-05 20:45:24,180 - INFO - Created VN ctest-vn4-55036614 2026-02-05 20:45:24,230 - DEBUG - VN ctest-vn4-55036614 UUID is c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:24,417 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c69832ce-c8fc-4920-9bfd-4249016b90e5', 'name': 'ctest-vn4-55036614', 'tenant_id': 'a811e279b8fb4cebb428f9a92d889f31', 'project_id': 'a811e279b8fb4cebb428f9a92d889f31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c322c7f-3835-45ea-ad6e-1b5b4c578e4a', 'aa15e7a9-53d0-4b46-9d0b-91d4e21c3d22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25598077', 'ctest-vn4-55036614'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25598077', 'ctest-policy1-93884483']], 'subnet_ipam': [{'subnet_cidr': '197.100.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30fe:3e8a:1ca7:f7:cfc2:4ea6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 20:45:24,578 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 20:45:24,879 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 20:45:24,909 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860 2026-02-05 20:45:24,921 - DEBUG - Requesting: http://10.0.0.22:8082/project/a811e279-b8fb-4ceb-b428-f9a92d889f31 2026-02-05 20:45:24,994 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:25,008 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:25,020 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/691a7a8c-7b54-42eb-ad2f-a686dddbf5c6 2026-02-05 20:45:25,027 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/691a7a8c-7b54-42eb-ad2f-a686dddbf5c6 2026-02-05 20:45:25,033 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2ab089a-7e78-4462-aaf3-21a856f522ba 2026-02-05 20:45:25,040 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 20:45:25,040 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:25,050 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/691a7a8c-7b54-42eb-ad2f-a686dddbf5c6 2026-02-05 20:45:25,066 - INFO - Verified VN network id 11 for VN c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:25,066 - INFO - Verifications in API Server for VN ctest-vn4-55036614 passed 2026-02-05 20:45:25,066 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:25,077 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/691a7a8c-7b54-42eb-ad2f-a686dddbf5c6 2026-02-05 20:45:25,084 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/691a7a8c-7b54-42eb-ad2f-a686dddbf5c6 2026-02-05 20:45:25,092 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a2ab089a-7e78-4462-aaf3-21a856f522ba 2026-02-05 20:45:25,103 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25598077:ctest-vn4-55036614', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25598077', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14310243679686379808', 'uuid-lslong': '11240213126310498533'}, 'enable': 'true', 'created': '2026-02-05T20:45:23', 'last-modified': '2026-02-05T20:45:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709471'} 2026-02-05 20:45:25,109 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 20:45:25,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55036614 passed 2026-02-05 20:45:25,109 - DEBUG - ====Verifying policy data for ctest-vn4-55036614 in API_Server ====== 2026-02-05 20:45:25,109 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 20:45:25,114 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860 2026-02-05 20:45:25,125 - DEBUG - Requesting: http://10.0.0.22:8082/project/a811e279-b8fb-4ceb-b428-f9a92d889f31 2026-02-05 20:45:25,197 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c69832ce-c8fc-4920-9bfd-4249016b90e5 2026-02-05 20:45:25,206 - DEBUG - ==>Verifying data for policy with id: ad4f753a-3d49-4186-9954-342790e2fca1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25598077', 'ctest-policy1-93884483'] 2026-02-05 20:45:25,207 - INFO - VN ctest-vn4-55036614 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 20:45:25,207 - DEBUG - Verifying the vn in opserver 2026-02-05 20:45:25,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25598077:ctest-vn4-55036614 virtual network link through opserver 10.0.0.22 2026-02-05 20:45:25,207 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-05 20:45:25,502 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-05 20:45:25,564 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25598077:ctest-vn4-55036614', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25598077:ctest-vn4-55036614?flat'} 2026-02-05 20:45:25,564 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25598077:ctest-vn4-55036614 is found in opserver 2026-02-05 20:45:25,575 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 20:45:25,580 - DEBUG - VRF ids for VN ctest-vn4-55036614: {} 2026-02-05 20:45:25,580 - DEBUG - ====Verifying data for ctest-policy1-93884483 in API_Server ====== 2026-02-05 20:45:25,580 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 20:45:25,586 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860 2026-02-05 20:45:25,597 - DEBUG - Requesting: http://10.0.0.22:8082/project/a811e279-b8fb-4ceb-b428-f9a92d889f31 2026-02-05 20:45:25,662 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ad4f753a-3d49-4186-9954-342790e2fca1 2026-02-05 20:45:25,670 - INFO - Verified policy ctest-policy1-93884483 in API Server, Result: True 2026-02-05 20:45:25,670 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 20:45:25,678 - INFO - Deleting VN ctest-vn4-55036614 2026-02-05 20:45:25,791 - DEBUG - Response for deleting network () 2026-02-05 20:45:25,791 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/691a7a8c-7b54-42eb-ad2f-a686dddbf5c6 2026-02-05 20:45:25,795 - DEBUG - Response Code: 404 2026-02-05 20:45:25,796 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 20:45:25,864 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860 2026-02-05 20:45:25,874 - DEBUG - Requesting: http://10.0.0.22:8082/project/a811e279-b8fb-4ceb-b428-f9a92d889f31 2026-02-05 20:45:25,949 - INFO - Validated that VN ctest-vn4-55036614 is not found in API Server 2026-02-05 20:45:25,958 - DEBUG - VN ctest-vn4-55036614 is not present in Agent 10.0.0.22 2026-02-05 20:45:25,958 - INFO - Validated that VN ctest-vn4-55036614 is not in any agent 2026-02-05 20:45:25,971 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55036614 info 2026-02-05 20:45:25,991 - INFO - Deleted policy ctest-policy1-93884483 2026-02-05 20:45:26,154 - DEBUG - policy ctest-policy1-93884483 is not found in API Server 2026-02-05 20:45:26,422 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 20:45:26,422 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-05 20:45:26,422 - INFO - -------------------------------------------------------------------------------- 2026-02-05 20:45:26,704 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 20:45:26,705 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-05 20:45:26,705 - INFO - -------------------------------------------------------------------------------- 2026-02-05 20:45:27,411 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25598077, ID : a811e279-b8fb-4ceb-b428-f9a92d889f31