2026-03-25 13:21:14,891 - INFO - Domain Default found not creating 2026-03-25 13:21:15,168 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85754096 not found, creating it 2026-03-25 13:21:15,710 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85754096, ID : 4e72b0f3-99ab-4039-841f-417aa16344e2 2026-03-25 13:21:17,690 - INFO - ================================================================================ 2026-03-25 13:21:17,691 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-25 13:21:17,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-03-25 13:21:17,976 - INFO - Initial checks done. Running the testcase now 2026-03-25 13:21:17,976 - INFO - 2026-03-25 13:21:17,976 - INFO - ================================================================================ 2026-03-25 13:21:17,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-25 13:21:17,976 - 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-03-25 13:21:18,302 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-03-25 13:21:18,302 - INFO - Initial checks done. Running the testcase now 2026-03-25 13:21:18,302 - INFO - 2026-03-25 13:21:18,687 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85754096:ctest-vn4-44718671, 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-85754096:ctest-vn4-44718671, 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-85754096:ctest-vn4-44718671, 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-85754096:ctest-vn4-44718671, 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-03-25 13:21:19,295 - DEBUG - Response for create_network : {'network': {'id': 'ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe', 'name': 'ctest-vn4-44718671', 'tenant_id': '4e72b0f399ab4039841f417aa16344e2', 'project_id': '4e72b0f399ab4039841f417aa16344e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85754096', 'ctest-vn4-44718671'], 'port_security_enabled': True, 'description': ''}} 2026-03-25 13:21:19,511 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a752cade-348f-4ad2-9e57-9dfa200d27c7', 'name': '', 'tenant_id': '4e72b0f399ab4039841f417aa16344e2', 'network_id': 'ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe', 'ip_version': 4, 'cidr': '176.7.137.192/26', 'allocation_pools': [{'start': '176.7.137.194', 'end': '176.7.137.254'}], 'gateway_ip': '176.7.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.7.137.194', 'tags': [], 'project_id': '4e72b0f399ab4039841f417aa16344e2'}} 2026-03-25 13:21:19,690 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ac6d71d-8ef3-4dac-ac61-7c29cc31a711', 'name': '', 'tenant_id': '4e72b0f399ab4039841f417aa16344e2', 'network_id': 'ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe', 'ip_version': 6, 'cidr': '2099:771d:38ff:4b06:e9f8:980b::/96', 'allocation_pools': [{'start': '2099:771d:38ff:4b06:e9f8:980b:0:2', 'end': '2099:771d:38ff:4b06:e9f8:980b:ffff:fffe'}], 'gateway_ip': '2099:771d:38ff:4b06:e9f8:980b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2099:771d:38ff:4b06:e9f8:980b:0:2', 'tags': [], 'project_id': '4e72b0f399ab4039841f417aa16344e2'}} 2026-03-25 13:21:19,715 - INFO - Created VN ctest-vn4-44718671 2026-03-25 13:21:19,771 - DEBUG - VN ctest-vn4-44718671 UUID is ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,023 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe', 'name': 'ctest-vn4-44718671', 'tenant_id': '4e72b0f399ab4039841f417aa16344e2', 'project_id': '4e72b0f399ab4039841f417aa16344e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a752cade-348f-4ad2-9e57-9dfa200d27c7', '9ac6d71d-8ef3-4dac-ac61-7c29cc31a711'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85754096', 'ctest-vn4-44718671'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85754096', 'ctest-policy1-00196477']], 'subnet_ipam': [{'subnet_cidr': '176.7.137.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2099:771d:38ff:4b06:e9f8:980b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-25 13:21:20,195 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-25 13:21:20,512 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-25 13:21:20,564 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e 2026-03-25 13:21:20,581 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e72b0f3-99ab-4039-841f-417aa16344e2 2026-03-25 13:21:20,664 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,691 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,710 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3031c5e8-50d0-4ecc-b2e3-3fff9b97661b 2026-03-25 13:21:20,724 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3031c5e8-50d0-4ecc-b2e3-3fff9b97661b 2026-03-25 13:21:20,735 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9eccae75-facf-4063-a08a-6af2d7fde03b 2026-03-25 13:21:20,744 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-25 13:21:20,744 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,754 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3031c5e8-50d0-4ecc-b2e3-3fff9b97661b 2026-03-25 13:21:20,776 - INFO - Verified VN network id 11 for VN ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,777 - INFO - Verifications in API Server for VN ctest-vn4-44718671 passed 2026-03-25 13:21:20,777 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,791 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3031c5e8-50d0-4ecc-b2e3-3fff9b97661b 2026-03-25 13:21:20,799 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3031c5e8-50d0-4ecc-b2e3-3fff9b97661b 2026-03-25 13:21:20,808 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9eccae75-facf-4063-a08a-6af2d7fde03b 2026-03-25 13:21:20,824 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85754096:ctest-vn4-44718671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85754096', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13442007157728037499', 'uuid-lslong': '13203285534124309438'}, 'enable': 'true', 'created': '2026-03-25T13:21:19', 'last-modified': '2026-03-25T13:21:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.831164'} 2026-03-25 13:21:20,831 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-25 13:21:20,831 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44718671 passed 2026-03-25 13:21:20,831 - DEBUG - ====Verifying policy data for ctest-vn4-44718671 in API_Server ====== 2026-03-25 13:21:20,831 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-25 13:21:20,838 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e 2026-03-25 13:21:20,853 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e72b0f3-99ab-4039-841f-417aa16344e2 2026-03-25 13:21:20,938 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ba8b9a4a-88a3-4a7b-b73b-7e3d41887bbe 2026-03-25 13:21:20,956 - DEBUG - ==>Verifying data for policy with id: 305639f2-da5c-4bf6-8338-bf4aae18db6a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85754096', 'ctest-policy1-00196477'] 2026-03-25 13:21:20,956 - INFO - VN ctest-vn4-44718671 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-25 13:21:20,956 - DEBUG - Verifying the vn in opserver 2026-03-25 13:21:20,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85754096:ctest-vn4-44718671 virtual network link through opserver 10.0.0.22 2026-03-25 13:21:20,956 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-25 13:21:21,278 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-25 13:21:21,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85754096:ctest-vn4-44718671', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85754096:ctest-vn4-44718671?flat'} 2026-03-25 13:21:21,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85754096:ctest-vn4-44718671 is found in opserver 2026-03-25 13:21:21,416 - DEBUG - Do not have enough data to verify VN in agent 2026-03-25 13:21:21,424 - DEBUG - VRF ids for VN ctest-vn4-44718671: {} 2026-03-25 13:21:21,424 - DEBUG - ====Verifying data for ctest-policy1-00196477 in API_Server ====== 2026-03-25 13:21:21,425 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-25 13:21:21,431 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e 2026-03-25 13:21:21,445 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e72b0f3-99ab-4039-841f-417aa16344e2 2026-03-25 13:21:21,527 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/305639f2-da5c-4bf6-8338-bf4aae18db6a 2026-03-25 13:21:21,544 - INFO - Verified policy ctest-policy1-00196477 in API Server, Result: True 2026-03-25 13:21:21,544 - INFO - Done with setup and verification, moving onto test .. 2026-03-25 13:21:21,555 - INFO - Deleting VN ctest-vn4-44718671 2026-03-25 13:21:21,697 - DEBUG - Response for deleting network () 2026-03-25 13:21:21,697 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3031c5e8-50d0-4ecc-b2e3-3fff9b97661b 2026-03-25 13:21:21,703 - DEBUG - Response Code: 404 2026-03-25 13:21:21,704 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-25 13:21:21,710 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e 2026-03-25 13:21:21,765 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e72b0f3-99ab-4039-841f-417aa16344e2 2026-03-25 13:21:21,860 - INFO - Validated that VN ctest-vn4-44718671 is not found in API Server 2026-03-25 13:21:21,875 - DEBUG - VN ctest-vn4-44718671 is not present in Agent 10.0.0.22 2026-03-25 13:21:21,875 - INFO - Validated that VN ctest-vn4-44718671 is not in any agent 2026-03-25 13:21:21,899 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44718671 info 2026-03-25 13:21:21,930 - INFO - Deleted policy ctest-policy1-00196477 2026-03-25 13:21:22,111 - DEBUG - policy ctest-policy1-00196477 is not found in API Server 2026-03-25 13:21:22,385 - DEBUG - No XMPP flaps were noticed during the test
2026-03-25 13:21:22,386 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-25 13:21:22,386 - INFO - -------------------------------------------------------------------------------- 2026-03-25 13:21:22,674 - DEBUG - No XMPP flaps were noticed during the test
2026-03-25 13:21:22,674 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-25 13:21:22,674 - INFO - -------------------------------------------------------------------------------- 2026-03-25 13:21:23,608 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85754096, ID : 4e72b0f3-99ab-4039-841f-417aa16344e2