2026-11-01 00:53:49,976 - INFO - Domain Default found not creating 2026-11-01 00:53:50,132 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73933026 not found, creating it 2026-11-01 00:53:50,605 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73933026, ID : 56c03bcd-9465-4487-9bbc-d2ef07c52abb 2026-11-01 00:53:52,223 - INFO - ================================================================================ 2026-11-01 00:53:52,223 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-01 00:53:52,479 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-11-01 00:53:52,479 - INFO - Initial checks done. Running the testcase now 2026-11-01 00:53:52,479 - INFO - 2026-11-01 00:53:52,479 - INFO - ================================================================================ 2026-11-01 00:53:52,479 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-01 00:53:52,479 - 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-01 00:53:52,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-11-01 00:53:52,770 - INFO - Initial checks done. Running the testcase now 2026-11-01 00:53:52,770 - INFO - 2026-11-01 00:53:53,181 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73933026:ctest-vn4-27806922, 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-73933026:ctest-vn4-27806922, 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-73933026:ctest-vn4-27806922, 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-73933026:ctest-vn4-27806922, 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-01 00:53:53,717 - DEBUG - Response for create_network : {'network': {'id': '6d03b703-c35d-41ee-bc3d-2fec66cad14c', 'name': 'ctest-vn4-27806922', 'tenant_id': '56c03bcd946544879bbcd2ef07c52abb', 'project_id': '56c03bcd946544879bbcd2ef07c52abb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73933026', 'ctest-vn4-27806922'], 'port_security_enabled': True, 'description': ''}} 2026-11-01 00:53:53,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '897a42ee-6295-449c-b583-c2189164d287', 'name': '', 'tenant_id': '56c03bcd946544879bbcd2ef07c52abb', 'network_id': '6d03b703-c35d-41ee-bc3d-2fec66cad14c', 'ip_version': 4, 'cidr': '187.135.98.192/26', 'allocation_pools': [{'start': '187.135.98.194', 'end': '187.135.98.254'}], 'gateway_ip': '187.135.98.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.135.98.194', 'tags': [], 'project_id': '56c03bcd946544879bbcd2ef07c52abb'}} 2026-11-01 00:53:54,030 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf3cd89e-aaab-4879-a888-432a021028d6', 'name': '', 'tenant_id': '56c03bcd946544879bbcd2ef07c52abb', 'network_id': '6d03b703-c35d-41ee-bc3d-2fec66cad14c', 'ip_version': 6, 'cidr': '3f48:2f1e:4eea:b0fe:c77a:c97::/96', 'allocation_pools': [{'start': '3f48:2f1e:4eea:b0fe:c77a:c97:0:2', 'end': '3f48:2f1e:4eea:b0fe:c77a:c97:ffff:fffe'}], 'gateway_ip': '3f48:2f1e:4eea:b0fe:c77a:c97:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f48:2f1e:4eea:b0fe:c77a:c97:0:2', 'tags': [], 'project_id': '56c03bcd946544879bbcd2ef07c52abb'}} 2026-11-01 00:53:54,046 - INFO - Created VN ctest-vn4-27806922 2026-11-01 00:53:54,097 - DEBUG - VN ctest-vn4-27806922 UUID is 6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:54,287 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d03b703-c35d-41ee-bc3d-2fec66cad14c', 'name': 'ctest-vn4-27806922', 'tenant_id': '56c03bcd946544879bbcd2ef07c52abb', 'project_id': '56c03bcd946544879bbcd2ef07c52abb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['897a42ee-6295-449c-b583-c2189164d287', 'bf3cd89e-aaab-4879-a888-432a021028d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73933026', 'ctest-vn4-27806922'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73933026', 'ctest-policy1-90193746']], 'subnet_ipam': [{'subnet_cidr': '187.135.98.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f48:2f1e:4eea:b0fe:c77a:c97::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-01 00:53:54,449 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-01 00:53:54,807 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-01 00:53:54,836 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e5ea63c-1e1e-4e45-a3b8-04755df0e67b 2026-11-01 00:53:54,848 - DEBUG - Requesting: http://10.0.0.33:8082/project/56c03bcd-9465-4487-9bbc-d2ef07c52abb 2026-11-01 00:53:54,927 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:54,938 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:54,947 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4f6535-1e6d-4552-8d72-0644e4e2f42a 2026-11-01 00:53:54,953 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4f6535-1e6d-4552-8d72-0644e4e2f42a 2026-11-01 00:53:54,959 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9f1416d3-a248-47eb-b8ae-932a7e7c389d 2026-11-01 00:53:54,964 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-01 00:53:54,964 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:54,973 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4f6535-1e6d-4552-8d72-0644e4e2f42a 2026-11-01 00:53:54,985 - INFO - Verified VN network id 11 for VN 6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:54,985 - INFO - Verifications in API Server for VN ctest-vn4-27806922 passed 2026-11-01 00:53:54,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:54,994 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4f6535-1e6d-4552-8d72-0644e4e2f42a 2026-11-01 00:53:54,999 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4f6535-1e6d-4552-8d72-0644e4e2f42a 2026-11-01 00:53:55,004 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9f1416d3-a248-47eb-b8ae-932a7e7c389d 2026-11-01 00:53:55,015 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73933026:ctest-vn4-27806922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73933026', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7855323401854730734', 'uuid-lslong': '13564050345093157196'}, 'enable': 'true', 'created': '2026-11-01T00:53:53', 'last-modified': '2026-11-01T00:53:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.758533'} 2026-11-01 00:53:55,021 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-01 00:53:55,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27806922 passed 2026-11-01 00:53:55,021 - DEBUG - ====Verifying policy data for ctest-vn4-27806922 in API_Server ====== 2026-11-01 00:53:55,021 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-01 00:53:55,026 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e5ea63c-1e1e-4e45-a3b8-04755df0e67b 2026-11-01 00:53:55,035 - DEBUG - Requesting: http://10.0.0.33:8082/project/56c03bcd-9465-4487-9bbc-d2ef07c52abb 2026-11-01 00:53:55,108 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6d03b703-c35d-41ee-bc3d-2fec66cad14c 2026-11-01 00:53:55,117 - DEBUG - ==>Verifying data for policy with id: 5212aecc-a096-4f83-b83d-12d8a2167c36, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73933026', 'ctest-policy1-90193746'] 2026-11-01 00:53:55,117 - INFO - VN ctest-vn4-27806922 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-01 00:53:55,117 - DEBUG - Verifying the vn in opserver 2026-11-01 00:53:55,117 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73933026:ctest-vn4-27806922 virtual network link through opserver 10.0.0.33 2026-11-01 00:53:55,117 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-11-01 00:53:55,481 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-11-01 00:53:55,530 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73933026:ctest-vn4-27806922', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73933026:ctest-vn4-27806922?flat'} 2026-11-01 00:53:55,530 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73933026:ctest-vn4-27806922 is found in opserver 2026-11-01 00:53:55,540 - DEBUG - Do not have enough data to verify VN in agent 2026-11-01 00:53:55,544 - DEBUG - VRF ids for VN ctest-vn4-27806922: {} 2026-11-01 00:53:55,545 - DEBUG - ====Verifying data for ctest-policy1-90193746 in API_Server ====== 2026-11-01 00:53:55,545 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-01 00:53:55,550 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e5ea63c-1e1e-4e45-a3b8-04755df0e67b 2026-11-01 00:53:55,559 - DEBUG - Requesting: http://10.0.0.33:8082/project/56c03bcd-9465-4487-9bbc-d2ef07c52abb 2026-11-01 00:53:55,629 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/5212aecc-a096-4f83-b83d-12d8a2167c36 2026-11-01 00:53:55,638 - INFO - Verified policy ctest-policy1-90193746 in API Server, Result: True 2026-11-01 00:53:55,638 - INFO - Done with setup and verification, moving onto test .. 2026-11-01 00:53:55,645 - INFO - Deleting VN ctest-vn4-27806922 2026-11-01 00:53:55,745 - DEBUG - Response for deleting network () 2026-11-01 00:53:55,745 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b4f6535-1e6d-4552-8d72-0644e4e2f42a 2026-11-01 00:53:55,750 - DEBUG - Response Code: 404 2026-11-01 00:53:55,750 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-01 00:53:55,754 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e5ea63c-1e1e-4e45-a3b8-04755df0e67b 2026-11-01 00:53:55,805 - DEBUG - Requesting: http://10.0.0.33:8082/project/56c03bcd-9465-4487-9bbc-d2ef07c52abb 2026-11-01 00:53:55,882 - INFO - Validated that VN ctest-vn4-27806922 is not found in API Server 2026-11-01 00:53:55,893 - DEBUG - VN ctest-vn4-27806922 is not present in Agent 10.0.0.33 2026-11-01 00:53:55,893 - INFO - Validated that VN ctest-vn4-27806922 is not in any agent 2026-11-01 00:53:55,906 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27806922 info 2026-11-01 00:53:55,937 - INFO - Deleted policy ctest-policy1-90193746 2026-11-01 00:53:56,109 - DEBUG - policy ctest-policy1-90193746 is not found in API Server 2026-11-01 00:53:56,371 - DEBUG - No XMPP flaps were noticed during the test 2026-11-01 00:53:56,371 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-01 00:53:56,371 - INFO - -------------------------------------------------------------------------------- 2026-11-01 00:53:56,678 - DEBUG - No XMPP flaps were noticed during the test 2026-11-01 00:53:56,678 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-01 00:53:56,678 - INFO - -------------------------------------------------------------------------------- 2026-11-01 00:53:57,426 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73933026, ID : 56c03bcd-9465-4487-9bbc-d2ef07c52abb