2026-02-12 12:24:31,945 - INFO - Domain Default found not creating 2026-02-12 12:24:32,193 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28165518 not found, creating it 2026-02-12 12:24:32,717 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28165518, ID : dab757e6-c500-4d4a-ba47-5f26088d9ab4 2026-02-12 12:24:34,560 - INFO - ================================================================================ 2026-02-12 12:24:34,560 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 12:24:34,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.17': '0'}} with 2026-02-12 12:24:34,824 - INFO - Initial checks done. Running the testcase now 2026-02-12 12:24:34,824 - INFO - 2026-02-12 12:24:34,824 - INFO - ================================================================================ 2026-02-12 12:24:34,824 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 12:24:34,824 - 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-12 12:24:35,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.17': '0'}} with 2026-02-12 12:24:35,126 - INFO - Initial checks done. Running the testcase now 2026-02-12 12:24:35,126 - INFO - 2026-02-12 12:24:35,532 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28165518:ctest-vn4-30850931, 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-28165518:ctest-vn4-30850931, 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-28165518:ctest-vn4-30850931, 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-28165518:ctest-vn4-30850931, 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-12 12:24:36,117 - DEBUG - Response for create_network : {'network': {'id': 'fc92ec70-0caf-4e7b-84d9-ab6250250d4b', 'name': 'ctest-vn4-30850931', 'tenant_id': 'dab757e6c5004d4aba475f26088d9ab4', 'project_id': 'dab757e6c5004d4aba475f26088d9ab4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28165518', 'ctest-vn4-30850931'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 12:24:36,340 - DEBUG - Response for create_subnet : {'subnet': {'id': '72fe02d7-58f1-470d-b7f4-65f86afcbfc1', 'name': '', 'tenant_id': 'dab757e6c5004d4aba475f26088d9ab4', 'network_id': 'fc92ec70-0caf-4e7b-84d9-ab6250250d4b', 'ip_version': 4, 'cidr': '85.76.234.192/26', 'allocation_pools': [{'start': '85.76.234.194', 'end': '85.76.234.254'}], 'gateway_ip': '85.76.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.76.234.194', 'tags': [], 'project_id': 'dab757e6c5004d4aba475f26088d9ab4'}} 2026-02-12 12:24:36,573 - DEBUG - Response for create_subnet : {'subnet': {'id': '4030ae81-a78e-452d-8c93-b594ab13885a', 'name': '', 'tenant_id': 'dab757e6c5004d4aba475f26088d9ab4', 'network_id': 'fc92ec70-0caf-4e7b-84d9-ab6250250d4b', 'ip_version': 6, 'cidr': '3eeb:1910:be12:c7d2:45d8:75e3::/96', 'allocation_pools': [{'start': '3eeb:1910:be12:c7d2:45d8:75e3:0:2', 'end': '3eeb:1910:be12:c7d2:45d8:75e3:ffff:fffe'}], 'gateway_ip': '3eeb:1910:be12:c7d2:45d8:75e3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3eeb:1910:be12:c7d2:45d8:75e3:0:2', 'tags': [], 'project_id': 'dab757e6c5004d4aba475f26088d9ab4'}} 2026-02-12 12:24:36,603 - INFO - Created VN ctest-vn4-30850931 2026-02-12 12:24:36,661 - DEBUG - VN ctest-vn4-30850931 UUID is fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:36,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc92ec70-0caf-4e7b-84d9-ab6250250d4b', 'name': 'ctest-vn4-30850931', 'tenant_id': 'dab757e6c5004d4aba475f26088d9ab4', 'project_id': 'dab757e6c5004d4aba475f26088d9ab4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72fe02d7-58f1-470d-b7f4-65f86afcbfc1', '4030ae81-a78e-452d-8c93-b594ab13885a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28165518', 'ctest-vn4-30850931'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28165518', 'ctest-policy1-64371118']], 'subnet_ipam': [{'subnet_cidr': '85.76.234.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3eeb:1910:be12:c7d2:45d8:75e3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 12:24:37,090 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-02-12 12:24:37,406 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-02-12 12:24:37,454 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e154da90-033d-463e-adeb-1c933a0ec6d0 2026-02-12 12:24:37,474 - DEBUG - Requesting: http://10.0.0.73:8082/project/dab757e6-c500-4d4a-ba47-5f26088d9ab4 2026-02-12 12:24:37,578 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:37,609 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:37,627 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/48ac1132-d86b-456a-bfb3-0aa49c14ca80 2026-02-12 12:24:37,639 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/48ac1132-d86b-456a-bfb3-0aa49c14ca80 2026-02-12 12:24:37,651 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/643201a5-a5f3-42d6-a9de-e98eb7272915 2026-02-12 12:24:37,662 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 12:24:37,662 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:37,675 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/48ac1132-d86b-456a-bfb3-0aa49c14ca80 2026-02-12 12:24:37,697 - INFO - Verified VN network id 11 for VN fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:37,697 - INFO - Verifications in API Server for VN ctest-vn4-30850931 passed 2026-02-12 12:24:37,698 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:37,712 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/48ac1132-d86b-456a-bfb3-0aa49c14ca80 2026-02-12 12:24:37,731 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/48ac1132-d86b-456a-bfb3-0aa49c14ca80 2026-02-12 12:24:37,741 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/643201a5-a5f3-42d6-a9de-e98eb7272915 2026-02-12 12:24:37,757 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28165518:ctest-vn4-30850931', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28165518', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18199869010150903419', 'uuid-lslong': '9572870921692450123'}, 'enable': 'true', 'created': '2026-02-12T12:24:36', 'last-modified': '2026-02-12T12:24:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880156'} 2026-02-12 12:24:37,766 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 12:24:37,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30850931 passed 2026-02-12 12:24:37,766 - DEBUG - ====Verifying policy data for ctest-vn4-30850931 in API_Server ====== 2026-02-12 12:24:37,766 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-02-12 12:24:37,774 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e154da90-033d-463e-adeb-1c933a0ec6d0 2026-02-12 12:24:37,786 - DEBUG - Requesting: http://10.0.0.73:8082/project/dab757e6-c500-4d4a-ba47-5f26088d9ab4 2026-02-12 12:24:37,874 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/fc92ec70-0caf-4e7b-84d9-ab6250250d4b 2026-02-12 12:24:37,890 - DEBUG - ==>Verifying data for policy with id: 7da9d79f-af8b-4393-9527-71c8ec6eb9cc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28165518', 'ctest-policy1-64371118'] 2026-02-12 12:24:37,890 - INFO - VN ctest-vn4-30850931 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 12:24:37,890 - DEBUG - Verifying the vn in opserver 2026-02-12 12:24:37,891 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28165518:ctest-vn4-30850931 virtual network link through opserver 10.0.0.73 2026-02-12 12:24:37,891 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-02-12 12:24:38,205 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-02-12 12:24:38,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28165518:ctest-vn4-30850931', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28165518:ctest-vn4-30850931?flat'} 2026-02-12 12:24:38,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28165518:ctest-vn4-30850931 is found in opserver 2026-02-12 12:24:38,304 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 12:24:38,309 - DEBUG - VRF ids for VN ctest-vn4-30850931: {} 2026-02-12 12:24:38,310 - DEBUG - ====Verifying data for ctest-policy1-64371118 in API_Server ====== 2026-02-12 12:24:38,310 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-02-12 12:24:38,318 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e154da90-033d-463e-adeb-1c933a0ec6d0 2026-02-12 12:24:38,335 - DEBUG - Requesting: http://10.0.0.73:8082/project/dab757e6-c500-4d4a-ba47-5f26088d9ab4 2026-02-12 12:24:38,418 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/7da9d79f-af8b-4393-9527-71c8ec6eb9cc 2026-02-12 12:24:38,433 - INFO - Verified policy ctest-policy1-64371118 in API Server, Result: True 2026-02-12 12:24:38,433 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 12:24:38,444 - INFO - Deleting VN ctest-vn4-30850931 2026-02-12 12:24:38,639 - DEBUG - Response for deleting network () 2026-02-12 12:24:38,640 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/48ac1132-d86b-456a-bfb3-0aa49c14ca80 2026-02-12 12:24:38,646 - DEBUG - Response Code: 404 2026-02-12 12:24:38,646 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-02-12 12:24:38,654 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e154da90-033d-463e-adeb-1c933a0ec6d0 2026-02-12 12:24:38,712 - DEBUG - Requesting: http://10.0.0.73:8082/project/dab757e6-c500-4d4a-ba47-5f26088d9ab4 2026-02-12 12:24:38,791 - INFO - Validated that VN ctest-vn4-30850931 is not found in API Server 2026-02-12 12:24:38,803 - DEBUG - VN ctest-vn4-30850931 is not present in Agent 10.0.0.73 2026-02-12 12:24:38,803 - INFO - Validated that VN ctest-vn4-30850931 is not in any agent 2026-02-12 12:24:38,821 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30850931 info 2026-02-12 12:24:38,853 - INFO - Deleted policy ctest-policy1-64371118 2026-02-12 12:24:39,033 - DEBUG - policy ctest-policy1-64371118 is not found in API Server 2026-02-12 12:24:39,296 - DEBUG - No XMPP flaps were noticed during the test