2026-01-29 21:38:11,746 - INFO - Domain Default found not creating 2026-01-29 21:38:11,910 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23500676 not found, creating it 2026-01-29 21:38:12,369 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23500676, ID : f2aa87fb-da0d-4d63-a84f-df33f071a70c 2026-01-29 21:38:13,854 - INFO - ================================================================================ 2026-01-29 21:38:13,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 21:38:14,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-29 21:38:14,112 - INFO - Initial checks done. Running the testcase now 2026-01-29 21:38:14,112 - INFO - 2026-01-29 21:38:14,112 - INFO - ================================================================================ 2026-01-29 21:38:14,112 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 21:38:14,112 - 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-01-29 21:38:14,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-29 21:38:14,406 - INFO - Initial checks done. Running the testcase now 2026-01-29 21:38:14,406 - INFO - 2026-01-29 21:38:14,811 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23500676:ctest-vn4-37232892, 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-23500676:ctest-vn4-37232892, 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-23500676:ctest-vn4-37232892, 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-23500676:ctest-vn4-37232892, 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-01-29 21:38:15,325 - DEBUG - Response for create_network : {'network': {'id': '89814b3e-8477-447f-99d7-a9e0e2723d1b', 'name': 'ctest-vn4-37232892', 'tenant_id': 'f2aa87fbda0d4d63a84fdf33f071a70c', 'project_id': 'f2aa87fbda0d4d63a84fdf33f071a70c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23500676', 'ctest-vn4-37232892'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 21:38:15,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '611f7798-6fd8-407d-8e56-234d0a2e78c3', 'name': '', 'tenant_id': 'f2aa87fbda0d4d63a84fdf33f071a70c', 'network_id': '89814b3e-8477-447f-99d7-a9e0e2723d1b', 'ip_version': 4, 'cidr': '217.90.117.0/26', 'allocation_pools': [{'start': '217.90.117.2', 'end': '217.90.117.62'}], 'gateway_ip': '217.90.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.90.117.2', 'tags': [], 'project_id': 'f2aa87fbda0d4d63a84fdf33f071a70c'}} 2026-01-29 21:38:15,695 - DEBUG - Response for create_subnet : {'subnet': {'id': '115be8b5-7ac5-45a1-9408-12400eaee7d5', 'name': '', 'tenant_id': 'f2aa87fbda0d4d63a84fdf33f071a70c', 'network_id': '89814b3e-8477-447f-99d7-a9e0e2723d1b', 'ip_version': 6, 'cidr': '222b:c788:b1f2:9058:2133:ac32::/96', 'allocation_pools': [{'start': '222b:c788:b1f2:9058:2133:ac32:0:2', 'end': '222b:c788:b1f2:9058:2133:ac32:ffff:fffe'}], 'gateway_ip': '222b:c788:b1f2:9058:2133:ac32:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222b:c788:b1f2:9058:2133:ac32:0:2', 'tags': [], 'project_id': 'f2aa87fbda0d4d63a84fdf33f071a70c'}} 2026-01-29 21:38:15,712 - INFO - Created VN ctest-vn4-37232892 2026-01-29 21:38:15,763 - DEBUG - VN ctest-vn4-37232892 UUID is 89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:15,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89814b3e-8477-447f-99d7-a9e0e2723d1b', 'name': 'ctest-vn4-37232892', 'tenant_id': 'f2aa87fbda0d4d63a84fdf33f071a70c', 'project_id': 'f2aa87fbda0d4d63a84fdf33f071a70c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['611f7798-6fd8-407d-8e56-234d0a2e78c3', '115be8b5-7ac5-45a1-9408-12400eaee7d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23500676', 'ctest-vn4-37232892'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23500676', 'ctest-policy1-04136022']], 'subnet_ipam': [{'subnet_cidr': '217.90.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '222b:c788:b1f2:9058:2133:ac32::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 21:38:16,107 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-29 21:38:16,400 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-29 21:38:16,432 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f5d0b84-ad51-437f-9e31-5d906a602ac9 2026-01-29 21:38:16,443 - DEBUG - Requesting: http://10.0.0.33:8082/project/f2aa87fb-da0d-4d63-a84f-df33f071a70c 2026-01-29 21:38:16,516 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:16,526 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:16,536 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2e00f22e-d6ab-4664-9b2a-d2f7be6eab48 2026-01-29 21:38:16,543 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2e00f22e-d6ab-4664-9b2a-d2f7be6eab48 2026-01-29 21:38:16,550 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dd5179e2-394b-4fae-8505-76d7eb596c31 2026-01-29 21:38:16,556 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 21:38:16,556 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:16,564 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2e00f22e-d6ab-4664-9b2a-d2f7be6eab48 2026-01-29 21:38:16,578 - INFO - Verified VN network id 11 for VN 89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:16,578 - INFO - Verifications in API Server for VN ctest-vn4-37232892 passed 2026-01-29 21:38:16,578 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:16,587 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2e00f22e-d6ab-4664-9b2a-d2f7be6eab48 2026-01-29 21:38:16,593 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2e00f22e-d6ab-4664-9b2a-d2f7be6eab48 2026-01-29 21:38:16,599 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dd5179e2-394b-4fae-8505-76d7eb596c31 2026-01-29 21:38:16,609 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23500676:ctest-vn4-37232892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23500676', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9908283387074266239', 'uuid-lslong': '11085515791132671259'}, 'enable': 'true', 'created': '2026-01-29T21:38:15', 'last-modified': '2026-01-29T21:38:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687394'} 2026-01-29 21:38:16,615 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 21:38:16,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37232892 passed 2026-01-29 21:38:16,615 - DEBUG - ====Verifying policy data for ctest-vn4-37232892 in API_Server ====== 2026-01-29 21:38:16,615 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-29 21:38:16,619 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f5d0b84-ad51-437f-9e31-5d906a602ac9 2026-01-29 21:38:16,630 - DEBUG - Requesting: http://10.0.0.33:8082/project/f2aa87fb-da0d-4d63-a84f-df33f071a70c 2026-01-29 21:38:16,699 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89814b3e-8477-447f-99d7-a9e0e2723d1b 2026-01-29 21:38:16,707 - DEBUG - ==>Verifying data for policy with id: 495b1250-5c06-4ed2-9ab7-d16e264ec7c2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23500676', 'ctest-policy1-04136022'] 2026-01-29 21:38:16,707 - INFO - VN ctest-vn4-37232892 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 21:38:16,707 - DEBUG - Verifying the vn in opserver 2026-01-29 21:38:16,707 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23500676:ctest-vn4-37232892 virtual network link through opserver 10.0.0.33 2026-01-29 21:38:16,707 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-29 21:38:16,998 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-29 21:38:17,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23500676:ctest-vn4-37232892', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23500676:ctest-vn4-37232892?flat'} 2026-01-29 21:38:17,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23500676:ctest-vn4-37232892 is found in opserver 2026-01-29 21:38:17,067 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 21:38:17,071 - DEBUG - VRF ids for VN ctest-vn4-37232892: {} 2026-01-29 21:38:17,071 - DEBUG - ====Verifying data for ctest-policy1-04136022 in API_Server ====== 2026-01-29 21:38:17,071 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-29 21:38:17,076 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f5d0b84-ad51-437f-9e31-5d906a602ac9 2026-01-29 21:38:17,086 - DEBUG - Requesting: http://10.0.0.33:8082/project/f2aa87fb-da0d-4d63-a84f-df33f071a70c 2026-01-29 21:38:17,154 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/495b1250-5c06-4ed2-9ab7-d16e264ec7c2 2026-01-29 21:38:17,163 - INFO - Verified policy ctest-policy1-04136022 in API Server, Result: True 2026-01-29 21:38:17,163 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 21:38:17,169 - INFO - Deleting VN ctest-vn4-37232892 2026-01-29 21:38:17,273 - DEBUG - Response for deleting network () 2026-01-29 21:38:17,273 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2e00f22e-d6ab-4664-9b2a-d2f7be6eab48 2026-01-29 21:38:17,277 - DEBUG - Response Code: 404 2026-01-29 21:38:17,277 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-29 21:38:17,282 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f5d0b84-ad51-437f-9e31-5d906a602ac9 2026-01-29 21:38:17,335 - DEBUG - Requesting: http://10.0.0.33:8082/project/f2aa87fb-da0d-4d63-a84f-df33f071a70c 2026-01-29 21:38:17,406 - INFO - Validated that VN ctest-vn4-37232892 is not found in API Server 2026-01-29 21:38:17,416 - DEBUG - VN ctest-vn4-37232892 is not present in Agent 10.0.0.33 2026-01-29 21:38:17,416 - INFO - Validated that VN ctest-vn4-37232892 is not in any agent 2026-01-29 21:38:17,431 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37232892 info 2026-01-29 21:38:17,456 - INFO - Deleted policy ctest-policy1-04136022 2026-01-29 21:38:17,615 - DEBUG - policy ctest-policy1-04136022 is not found in API Server 2026-01-29 21:38:17,867 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 21:38:17,868 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-01-29 21:38:17,868 - INFO - -------------------------------------------------------------------------------- 2026-01-29 21:38:18,156 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 21:38:18,156 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-29 21:38:18,156 - INFO - -------------------------------------------------------------------------------- 2026-01-29 21:38:18,814 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23500676, ID : f2aa87fb-da0d-4d63-a84f-df33f071a70c