2026-10-29 18:42:15,597 - INFO - Domain Default found not creating 2026-10-29 18:42:15,827 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11221833 not found, creating it 2026-10-29 18:42:16,358 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11221833, ID : fb0be96b-df9a-47fd-9489-f2cf8f3a7c8f 2026-10-29 18:42:18,233 - INFO - ================================================================================ 2026-10-29 18:42:18,233 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 18:42:18,504 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.17': '0'}} with 2026-10-29 18:42:18,504 - INFO - Initial checks done. Running the testcase now 2026-10-29 18:42:18,504 - INFO - 2026-10-29 18:42:18,504 - INFO - ================================================================================ 2026-10-29 18:42:18,504 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 18:42:18,504 - 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-10-29 18:42:18,798 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.17': '0'}} with 2026-10-29 18:42:18,798 - INFO - Initial checks done. Running the testcase now 2026-10-29 18:42:18,798 - INFO - 2026-10-29 18:42:19,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11221833:ctest-vn4-46765424, 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-11221833:ctest-vn4-46765424, 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-11221833:ctest-vn4-46765424, 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-11221833:ctest-vn4-46765424, 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-10-29 18:42:19,837 - DEBUG - Response for create_network : {'network': {'id': '4c396824-daec-42e0-8402-b2d85ddc47d6', 'name': 'ctest-vn4-46765424', 'tenant_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f', 'project_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11221833', 'ctest-vn4-46765424'], 'port_security_enabled': True, 'description': ''}} 2026-10-29 18:42:20,040 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffc40ee0-0074-40f2-9efe-ccd29a8fface', 'name': '', 'tenant_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f', 'network_id': '4c396824-daec-42e0-8402-b2d85ddc47d6', 'ip_version': 4, 'cidr': '77.196.114.0/26', 'allocation_pools': [{'start': '77.196.114.2', 'end': '77.196.114.62'}], 'gateway_ip': '77.196.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.196.114.2', 'tags': [], 'project_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f'}} 2026-10-29 18:42:20,218 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8cd4cbb-44d0-42bd-ba6a-0664ab679da3', 'name': '', 'tenant_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f', 'network_id': '4c396824-daec-42e0-8402-b2d85ddc47d6', 'ip_version': 6, 'cidr': '2c63:ce04:566f:e16a:6e05:dcf7::/96', 'allocation_pools': [{'start': '2c63:ce04:566f:e16a:6e05:dcf7:0:2', 'end': '2c63:ce04:566f:e16a:6e05:dcf7:ffff:fffe'}], 'gateway_ip': '2c63:ce04:566f:e16a:6e05:dcf7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c63:ce04:566f:e16a:6e05:dcf7:0:2', 'tags': [], 'project_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f'}} 2026-10-29 18:42:20,242 - INFO - Created VN ctest-vn4-46765424 2026-10-29 18:42:20,297 - DEBUG - VN ctest-vn4-46765424 UUID is 4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:20,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c396824-daec-42e0-8402-b2d85ddc47d6', 'name': 'ctest-vn4-46765424', 'tenant_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f', 'project_id': 'fb0be96bdf9a47fd9489f2cf8f3a7c8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ffc40ee0-0074-40f2-9efe-ccd29a8fface', 'a8cd4cbb-44d0-42bd-ba6a-0664ab679da3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11221833', 'ctest-vn4-46765424'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11221833', 'ctest-policy1-87581152']], 'subnet_ipam': [{'subnet_cidr': '77.196.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c63:ce04:566f:e16a:6e05:dcf7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-29 18:42:20,733 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-29 18:42:21,113 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-29 18:42:21,154 - DEBUG - Requesting: http://10.0.0.250:8082/domain/3b1d0b8d-097f-4ce1-b1e5-633bb3df4fb4 2026-10-29 18:42:21,173 - DEBUG - Requesting: http://10.0.0.250:8082/project/fb0be96b-df9a-47fd-9489-f2cf8f3a7c8f 2026-10-29 18:42:21,264 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:21,281 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:21,295 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/007296e2-4f7a-44dc-a9a5-b9f34122a779 2026-10-29 18:42:21,306 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/007296e2-4f7a-44dc-a9a5-b9f34122a779 2026-10-29 18:42:21,314 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/62b43d39-fadb-4528-aaad-ae3fa8bcfba5 2026-10-29 18:42:21,323 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 18:42:21,323 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:21,337 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/007296e2-4f7a-44dc-a9a5-b9f34122a779 2026-10-29 18:42:21,357 - INFO - Verified VN network id 12 for VN 4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:21,357 - INFO - Verifications in API Server for VN ctest-vn4-46765424 passed 2026-10-29 18:42:21,357 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:21,373 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/007296e2-4f7a-44dc-a9a5-b9f34122a779 2026-10-29 18:42:21,383 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/007296e2-4f7a-44dc-a9a5-b9f34122a779 2026-10-29 18:42:21,392 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/62b43d39-fadb-4528-aaad-ae3fa8bcfba5 2026-10-29 18:42:21,424 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11221833:ctest-vn4-46765424', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11221833', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5492535728056058592', 'uuid-lslong': '9512362005317306326'}, 'enable': 'true', 'created': '2026-10-29T18:42:19', 'last-modified': '2026-10-29T18:42:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902223'} 2026-10-29 18:42:21,439 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 18:42:21,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46765424 passed 2026-10-29 18:42:21,440 - DEBUG - ====Verifying policy data for ctest-vn4-46765424 in API_Server ====== 2026-10-29 18:42:21,440 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-29 18:42:21,452 - DEBUG - Requesting: http://10.0.0.250:8082/domain/3b1d0b8d-097f-4ce1-b1e5-633bb3df4fb4 2026-10-29 18:42:21,470 - DEBUG - Requesting: http://10.0.0.250:8082/project/fb0be96b-df9a-47fd-9489-f2cf8f3a7c8f 2026-10-29 18:42:21,558 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/4c396824-daec-42e0-8402-b2d85ddc47d6 2026-10-29 18:42:21,573 - DEBUG - ==>Verifying data for policy with id: 2d57b75c-e986-45a9-8cc4-e147d6dfc891, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11221833', 'ctest-policy1-87581152'] 2026-10-29 18:42:21,573 - INFO - VN ctest-vn4-46765424 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-29 18:42:21,573 - DEBUG - Verifying the vn in opserver 2026-10-29 18:42:21,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11221833:ctest-vn4-46765424 virtual network link through opserver 10.0.0.250 2026-10-29 18:42:21,573 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-10-29 18:42:21,977 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-10-29 18:42:22,098 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11221833:ctest-vn4-46765424', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11221833:ctest-vn4-46765424?flat'} 2026-10-29 18:42:22,098 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11221833:ctest-vn4-46765424 is found in opserver 2026-10-29 18:42:22,115 - DEBUG - Do not have enough data to verify VN in agent 2026-10-29 18:42:22,128 - DEBUG - VRF ids for VN ctest-vn4-46765424: {} 2026-10-29 18:42:22,131 - DEBUG - ====Verifying data for ctest-policy1-87581152 in API_Server ====== 2026-10-29 18:42:22,131 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-29 18:42:22,173 - DEBUG - Requesting: http://10.0.0.250:8082/domain/3b1d0b8d-097f-4ce1-b1e5-633bb3df4fb4 2026-10-29 18:42:22,247 - DEBUG - Requesting: http://10.0.0.250:8082/project/fb0be96b-df9a-47fd-9489-f2cf8f3a7c8f 2026-10-29 18:42:22,329 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/2d57b75c-e986-45a9-8cc4-e147d6dfc891 2026-10-29 18:42:22,348 - INFO - Verified policy ctest-policy1-87581152 in API Server, Result: True 2026-10-29 18:42:22,348 - INFO - Done with setup and verification, moving onto test .. 2026-10-29 18:42:22,365 - INFO - Deleting VN ctest-vn4-46765424 2026-10-29 18:42:22,691 - DEBUG - Response for deleting network () 2026-10-29 18:42:22,691 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/007296e2-4f7a-44dc-a9a5-b9f34122a779 2026-10-29 18:42:22,698 - DEBUG - Response Code: 404 2026-10-29 18:42:22,698 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-10-29 18:42:22,705 - DEBUG - Requesting: http://10.0.0.250:8082/domain/3b1d0b8d-097f-4ce1-b1e5-633bb3df4fb4 2026-10-29 18:42:22,769 - DEBUG - Requesting: http://10.0.0.250:8082/project/fb0be96b-df9a-47fd-9489-f2cf8f3a7c8f 2026-10-29 18:42:22,858 - INFO - Validated that VN ctest-vn4-46765424 is not found in API Server 2026-10-29 18:42:22,877 - DEBUG - VN ctest-vn4-46765424 is not present in Agent 10.0.0.250 2026-10-29 18:42:22,877 - INFO - Validated that VN ctest-vn4-46765424 is not in any agent 2026-10-29 18:42:22,897 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46765424 info 2026-10-29 18:42:22,935 - INFO - Deleted policy ctest-policy1-87581152 2026-10-29 18:42:23,121 - DEBUG - policy ctest-policy1-87581152 is not found in API Server 2026-10-29 18:42:23,404 - DEBUG - No XMPP flaps were noticed during the test 2026-10-29 18:42:23,404 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-29 18:42:23,404 - INFO - -------------------------------------------------------------------------------- 2026-10-29 18:42:23,709 - DEBUG - No XMPP flaps were noticed during the test 2026-10-29 18:42:23,709 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-29 18:42:23,709 - INFO - -------------------------------------------------------------------------------- 2026-10-29 18:42:24,533 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11221833, ID : fb0be96b-df9a-47fd-9489-f2cf8f3a7c8f