2026-11-02 14:19:53,940 - INFO - Domain Default found not creating 2026-11-02 14:19:54,174 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71504840 not found, creating it 2026-11-02 14:19:54,701 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71504840, ID : 7edf1544-a9ad-4996-8459-6503f520c58b 2026-11-02 14:19:56,661 - INFO - ================================================================================ 2026-11-02 14:19:56,661 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 14:19:56,933 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-11-02 14:19:56,933 - INFO - Initial checks done. Running the testcase now 2026-11-02 14:19:56,933 - INFO - 2026-11-02 14:19:56,933 - INFO - ================================================================================ 2026-11-02 14:19:56,933 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 14:19:56,933 - 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-11-02 14:19:57,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-11-02 14:19:57,232 - INFO - Initial checks done. Running the testcase now 2026-11-02 14:19:57,233 - INFO - 2026-11-02 14:19:57,686 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71504840:ctest-vn4-02770794, 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-71504840:ctest-vn4-02770794, 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-71504840:ctest-vn4-02770794, 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-71504840:ctest-vn4-02770794, 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-11-02 14:19:58,245 - DEBUG - Response for create_network : {'network': {'id': 'a9a37105-828e-418c-82dc-7320952194f2', 'name': 'ctest-vn4-02770794', 'tenant_id': '7edf1544a9ad499684596503f520c58b', 'project_id': '7edf1544a9ad499684596503f520c58b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71504840', 'ctest-vn4-02770794'], 'port_security_enabled': True, 'description': ''}} 2026-11-02 14:19:58,420 - DEBUG - Response for create_subnet : {'subnet': {'id': '28950981-0f8a-48a4-addd-50bc535705c3', 'name': '', 'tenant_id': '7edf1544a9ad499684596503f520c58b', 'network_id': 'a9a37105-828e-418c-82dc-7320952194f2', 'ip_version': 4, 'cidr': '8.26.197.64/26', 'allocation_pools': [{'start': '8.26.197.66', 'end': '8.26.197.126'}], 'gateway_ip': '8.26.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.26.197.66', 'tags': [], 'project_id': '7edf1544a9ad499684596503f520c58b'}} 2026-11-02 14:19:58,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '74a3f087-2f89-4e91-90aa-39dd768ff47b', 'name': '', 'tenant_id': '7edf1544a9ad499684596503f520c58b', 'network_id': 'a9a37105-828e-418c-82dc-7320952194f2', 'ip_version': 6, 'cidr': '3cb4:f6bf:4c37:4aff:84c1:72f0::/96', 'allocation_pools': [{'start': '3cb4:f6bf:4c37:4aff:84c1:72f0:0:2', 'end': '3cb4:f6bf:4c37:4aff:84c1:72f0:ffff:fffe'}], 'gateway_ip': '3cb4:f6bf:4c37:4aff:84c1:72f0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cb4:f6bf:4c37:4aff:84c1:72f0:0:2', 'tags': [], 'project_id': '7edf1544a9ad499684596503f520c58b'}} 2026-11-02 14:19:58,645 - INFO - Created VN ctest-vn4-02770794 2026-11-02 14:19:58,703 - DEBUG - VN ctest-vn4-02770794 UUID is a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:58,927 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9a37105-828e-418c-82dc-7320952194f2', 'name': 'ctest-vn4-02770794', 'tenant_id': '7edf1544a9ad499684596503f520c58b', 'project_id': '7edf1544a9ad499684596503f520c58b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['28950981-0f8a-48a4-addd-50bc535705c3', '74a3f087-2f89-4e91-90aa-39dd768ff47b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71504840', 'ctest-vn4-02770794'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71504840', 'ctest-policy1-73241876']], 'subnet_ipam': [{'subnet_cidr': '8.26.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cb4:f6bf:4c37:4aff:84c1:72f0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-02 14:19:59,107 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-02 14:19:59,486 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-02 14:19:59,516 - DEBUG - Requesting: http://10.0.0.190:8082/domain/f42ed83e-dbec-4dc1-b001-fad876572e69 2026-11-02 14:19:59,531 - DEBUG - Requesting: http://10.0.0.190:8082/project/7edf1544-a9ad-4996-8459-6503f520c58b 2026-11-02 14:19:59,617 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:59,632 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:59,641 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a44697b3-52d2-4649-8d70-ce04e0d0e345 2026-11-02 14:19:59,650 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a44697b3-52d2-4649-8d70-ce04e0d0e345 2026-11-02 14:19:59,657 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/524a9ee1-0315-44d6-8871-c2a3d0c6ef03 2026-11-02 14:19:59,666 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 14:19:59,666 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:59,678 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a44697b3-52d2-4649-8d70-ce04e0d0e345 2026-11-02 14:19:59,694 - INFO - Verified VN network id 12 for VN a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:59,694 - INFO - Verifications in API Server for VN ctest-vn4-02770794 passed 2026-11-02 14:19:59,694 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:59,706 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a44697b3-52d2-4649-8d70-ce04e0d0e345 2026-11-02 14:19:59,714 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a44697b3-52d2-4649-8d70-ce04e0d0e345 2026-11-02 14:19:59,721 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/524a9ee1-0315-44d6-8871-c2a3d0c6ef03 2026-11-02 14:19:59,735 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71504840:ctest-vn4-02770794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71504840', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12223738082092794252', 'uuid-lslong': '9429538303585129714'}, 'enable': 'true', 'created': '2026-11-02T14:19:58', 'last-modified': '2026-11-02T14:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.838008'} 2026-11-02 14:19:59,743 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 14:19:59,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02770794 passed 2026-11-02 14:19:59,743 - DEBUG - ====Verifying policy data for ctest-vn4-02770794 in API_Server ====== 2026-11-02 14:19:59,743 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-02 14:19:59,749 - DEBUG - Requesting: http://10.0.0.190:8082/domain/f42ed83e-dbec-4dc1-b001-fad876572e69 2026-11-02 14:19:59,760 - DEBUG - Requesting: http://10.0.0.190:8082/project/7edf1544-a9ad-4996-8459-6503f520c58b 2026-11-02 14:19:59,835 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a9a37105-828e-418c-82dc-7320952194f2 2026-11-02 14:19:59,848 - DEBUG - ==>Verifying data for policy with id: c42fd8e9-1e06-46de-ac25-b6b16861dc29, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71504840', 'ctest-policy1-73241876'] 2026-11-02 14:19:59,848 - INFO - VN ctest-vn4-02770794 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 14:19:59,848 - DEBUG - Verifying the vn in opserver 2026-11-02 14:19:59,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71504840:ctest-vn4-02770794 virtual network link through opserver 10.0.0.190 2026-11-02 14:19:59,848 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-11-02 14:20:00,223 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-11-02 14:20:00,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71504840:ctest-vn4-02770794', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71504840:ctest-vn4-02770794?flat'} 2026-11-02 14:20:00,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71504840:ctest-vn4-02770794 is found in opserver 2026-11-02 14:20:00,301 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 14:20:00,307 - DEBUG - VRF ids for VN ctest-vn4-02770794: {} 2026-11-02 14:20:00,308 - DEBUG - ====Verifying data for ctest-policy1-73241876 in API_Server ====== 2026-11-02 14:20:00,308 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-02 14:20:00,314 - DEBUG - Requesting: http://10.0.0.190:8082/domain/f42ed83e-dbec-4dc1-b001-fad876572e69 2026-11-02 14:20:00,327 - DEBUG - Requesting: http://10.0.0.190:8082/project/7edf1544-a9ad-4996-8459-6503f520c58b 2026-11-02 14:20:00,418 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/c42fd8e9-1e06-46de-ac25-b6b16861dc29 2026-11-02 14:20:00,429 - INFO - Verified policy ctest-policy1-73241876 in API Server, Result: True 2026-11-02 14:20:00,429 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 14:20:00,437 - INFO - Deleting VN ctest-vn4-02770794 2026-11-02 14:20:00,577 - DEBUG - Response for deleting network () 2026-11-02 14:20:00,577 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/a44697b3-52d2-4649-8d70-ce04e0d0e345 2026-11-02 14:20:00,585 - DEBUG - Response Code: 404 2026-11-02 14:20:00,585 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-02 14:20:00,592 - DEBUG - Requesting: http://10.0.0.190:8082/domain/f42ed83e-dbec-4dc1-b001-fad876572e69 2026-11-02 14:20:00,649 - DEBUG - Requesting: http://10.0.0.190:8082/project/7edf1544-a9ad-4996-8459-6503f520c58b 2026-11-02 14:20:00,731 - INFO - Validated that VN ctest-vn4-02770794 is not found in API Server 2026-11-02 14:20:00,745 - DEBUG - VN ctest-vn4-02770794 is not present in Agent 10.0.0.190 2026-11-02 14:20:00,745 - INFO - Validated that VN ctest-vn4-02770794 is not in any agent 2026-11-02 14:20:00,766 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02770794 info 2026-11-02 14:20:00,801 - INFO - Deleted policy ctest-policy1-73241876 2026-11-02 14:20:00,971 - DEBUG - policy ctest-policy1-73241876 is not found in API Server 2026-11-02 14:20:01,245 - DEBUG - No XMPP flaps were noticed during the test 2026-11-02 14:20:01,245 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-02 14:20:01,245 - INFO - -------------------------------------------------------------------------------- 2026-11-02 14:20:01,545 - DEBUG - No XMPP flaps were noticed during the test 2026-11-02 14:20:01,546 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-02 14:20:01,546 - INFO - -------------------------------------------------------------------------------- 2026-11-02 14:20:02,338 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71504840, ID : 7edf1544-a9ad-4996-8459-6503f520c58b