2026-04-02 12:59:13,895 - INFO - Domain Default found not creating 2026-04-02 12:59:14,048 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58005773 not found, creating it 2026-04-02 12:59:14,504 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58005773, ID : 3c62b61f-5d3e-4e6b-9834-b0de289f72f3 2026-04-02 12:59:15,947 - INFO - ================================================================================ 2026-04-02 12:59:15,947 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 12:59:16,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-04-02 12:59:16,200 - INFO - Initial checks done. Running the testcase now 2026-04-02 12:59:16,200 - INFO - 2026-04-02 12:59:16,200 - INFO - ================================================================================ 2026-04-02 12:59:16,200 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 12:59:16,200 - 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-04-02 12:59:16,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-04-02 12:59:16,491 - INFO - Initial checks done. Running the testcase now 2026-04-02 12:59:16,491 - INFO - 2026-04-02 12:59:16,979 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58005773:ctest-vn4-07121607, 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-58005773:ctest-vn4-07121607, 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-58005773:ctest-vn4-07121607, 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-58005773:ctest-vn4-07121607, 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-04-02 12:59:17,477 - DEBUG - Response for create_network : {'network': {'id': '9c5e1b96-85ac-40ff-a104-333760d4270d', 'name': 'ctest-vn4-07121607', 'tenant_id': '3c62b61f5d3e4e6b9834b0de289f72f3', 'project_id': '3c62b61f5d3e4e6b9834b0de289f72f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58005773', 'ctest-vn4-07121607'], 'port_security_enabled': True, 'description': ''}} 2026-04-02 12:59:17,645 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9acb27b-bcb6-4bbb-85b5-64f36b282ad4', 'name': '', 'tenant_id': '3c62b61f5d3e4e6b9834b0de289f72f3', 'network_id': '9c5e1b96-85ac-40ff-a104-333760d4270d', 'ip_version': 4, 'cidr': '165.174.70.192/26', 'allocation_pools': [{'start': '165.174.70.194', 'end': '165.174.70.254'}], 'gateway_ip': '165.174.70.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.174.70.194', 'tags': [], 'project_id': '3c62b61f5d3e4e6b9834b0de289f72f3'}} 2026-04-02 12:59:17,796 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8f3887f-dfae-48e2-8470-5578afdcff3c', 'name': '', 'tenant_id': '3c62b61f5d3e4e6b9834b0de289f72f3', 'network_id': '9c5e1b96-85ac-40ff-a104-333760d4270d', 'ip_version': 6, 'cidr': '2028:cd48:5b69:24f0:79f8:1fa3::/96', 'allocation_pools': [{'start': '2028:cd48:5b69:24f0:79f8:1fa3:0:2', 'end': '2028:cd48:5b69:24f0:79f8:1fa3:ffff:fffe'}], 'gateway_ip': '2028:cd48:5b69:24f0:79f8:1fa3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2028:cd48:5b69:24f0:79f8:1fa3:0:2', 'tags': [], 'project_id': '3c62b61f5d3e4e6b9834b0de289f72f3'}} 2026-04-02 12:59:17,815 - INFO - Created VN ctest-vn4-07121607 2026-04-02 12:59:17,867 - DEBUG - VN ctest-vn4-07121607 UUID is 9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c5e1b96-85ac-40ff-a104-333760d4270d', 'name': 'ctest-vn4-07121607', 'tenant_id': '3c62b61f5d3e4e6b9834b0de289f72f3', 'project_id': '3c62b61f5d3e4e6b9834b0de289f72f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9acb27b-bcb6-4bbb-85b5-64f36b282ad4', 'a8f3887f-dfae-48e2-8470-5578afdcff3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58005773', 'ctest-vn4-07121607'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58005773', 'ctest-policy1-04862911']], 'subnet_ipam': [{'subnet_cidr': '165.174.70.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2028:cd48:5b69:24f0:79f8:1fa3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-02 12:59:18,219 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-02 12:59:18,514 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-02 12:59:18,541 - DEBUG - Requesting: http://10.0.0.33:8082/domain/95f1b365-d4cc-4bf0-97dc-f2583afcb290 2026-04-02 12:59:18,551 - DEBUG - Requesting: http://10.0.0.33:8082/project/3c62b61f-5d3e-4e6b-9834-b0de289f72f3 2026-04-02 12:59:18,627 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,638 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,647 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f72e8db5-61e5-442b-a14b-da4fa5ab061f 2026-04-02 12:59:18,653 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f72e8db5-61e5-442b-a14b-da4fa5ab061f 2026-04-02 12:59:18,661 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/819a1d1b-a227-4a52-842b-c7bc89e0f860 2026-04-02 12:59:18,667 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 12:59:18,667 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,677 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f72e8db5-61e5-442b-a14b-da4fa5ab061f 2026-04-02 12:59:18,693 - INFO - Verified VN network id 11 for VN 9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,693 - INFO - Verifications in API Server for VN ctest-vn4-07121607 passed 2026-04-02 12:59:18,693 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,704 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f72e8db5-61e5-442b-a14b-da4fa5ab061f 2026-04-02 12:59:18,711 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f72e8db5-61e5-442b-a14b-da4fa5ab061f 2026-04-02 12:59:18,719 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/819a1d1b-a227-4a52-842b-c7bc89e0f860 2026-04-02 12:59:18,731 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58005773:ctest-vn4-07121607', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58005773', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11267473651029262591', 'uuid-lslong': '11602454852953974541'}, 'enable': 'true', 'created': '2026-04-02T12:59:17', 'last-modified': '2026-04-02T12:59:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697081'} 2026-04-02 12:59:18,738 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 12:59:18,738 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07121607 passed 2026-04-02 12:59:18,738 - DEBUG - ====Verifying policy data for ctest-vn4-07121607 in API_Server ====== 2026-04-02 12:59:18,738 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-02 12:59:18,744 - DEBUG - Requesting: http://10.0.0.33:8082/domain/95f1b365-d4cc-4bf0-97dc-f2583afcb290 2026-04-02 12:59:18,756 - DEBUG - Requesting: http://10.0.0.33:8082/project/3c62b61f-5d3e-4e6b-9834-b0de289f72f3 2026-04-02 12:59:18,834 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9c5e1b96-85ac-40ff-a104-333760d4270d 2026-04-02 12:59:18,845 - DEBUG - ==>Verifying data for policy with id: 04b98bfa-c970-48bc-9126-14e1f436a819, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58005773', 'ctest-policy1-04862911'] 2026-04-02 12:59:18,845 - INFO - VN ctest-vn4-07121607 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-02 12:59:18,845 - DEBUG - Verifying the vn in opserver 2026-04-02 12:59:18,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58005773:ctest-vn4-07121607 virtual network link through opserver 10.0.0.33 2026-04-02 12:59:18,845 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-02 12:59:19,140 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-02 12:59:19,196 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58005773:ctest-vn4-07121607', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58005773:ctest-vn4-07121607?flat'} 2026-04-02 12:59:19,196 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58005773:ctest-vn4-07121607 is found in opserver 2026-04-02 12:59:19,204 - DEBUG - Do not have enough data to verify VN in agent 2026-04-02 12:59:19,208 - DEBUG - VRF ids for VN ctest-vn4-07121607: {} 2026-04-02 12:59:19,209 - DEBUG - ====Verifying data for ctest-policy1-04862911 in API_Server ====== 2026-04-02 12:59:19,209 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-02 12:59:19,214 - DEBUG - Requesting: http://10.0.0.33:8082/domain/95f1b365-d4cc-4bf0-97dc-f2583afcb290 2026-04-02 12:59:19,224 - DEBUG - Requesting: http://10.0.0.33:8082/project/3c62b61f-5d3e-4e6b-9834-b0de289f72f3 2026-04-02 12:59:19,290 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/04b98bfa-c970-48bc-9126-14e1f436a819 2026-04-02 12:59:19,299 - INFO - Verified policy ctest-policy1-04862911 in API Server, Result: True 2026-04-02 12:59:19,299 - INFO - Done with setup and verification, moving onto test .. 2026-04-02 12:59:19,307 - INFO - Deleting VN ctest-vn4-07121607 2026-04-02 12:59:19,413 - DEBUG - Response for deleting network () 2026-04-02 12:59:19,413 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f72e8db5-61e5-442b-a14b-da4fa5ab061f 2026-04-02 12:59:19,418 - DEBUG - Response Code: 404 2026-04-02 12:59:19,418 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-02 12:59:19,424 - DEBUG - Requesting: http://10.0.0.33:8082/domain/95f1b365-d4cc-4bf0-97dc-f2583afcb290 2026-04-02 12:59:19,476 - DEBUG - Requesting: http://10.0.0.33:8082/project/3c62b61f-5d3e-4e6b-9834-b0de289f72f3 2026-04-02 12:59:19,548 - INFO - Validated that VN ctest-vn4-07121607 is not found in API Server 2026-04-02 12:59:19,558 - DEBUG - VN ctest-vn4-07121607 is not present in Agent 10.0.0.33 2026-04-02 12:59:19,558 - INFO - Validated that VN ctest-vn4-07121607 is not in any agent 2026-04-02 12:59:19,571 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07121607 info 2026-04-02 12:59:19,598 - INFO - Deleted policy ctest-policy1-04862911 2026-04-02 12:59:19,759 - DEBUG - policy ctest-policy1-04862911 is not found in API Server 2026-04-02 12:59:20,013 - DEBUG - No XMPP flaps were noticed during the test