2026-01-16 15:25:48,525 - INFO - Domain Default found not creating 2026-01-16 15:25:48,719 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86359788 not found, creating it 2026-01-16 15:25:49,202 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86359788, ID : 9e3ee614-e142-459c-9163-7684ef3df3d9 2026-01-16 15:25:50,812 - INFO - ================================================================================ 2026-01-16 15:25:50,812 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-16 15:25:51,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-16 15:25:51,068 - INFO - Initial checks done. Running the testcase now 2026-01-16 15:25:51,069 - INFO - 2026-01-16 15:25:51,069 - INFO - ================================================================================ 2026-01-16 15:25:51,069 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-16 15:25:51,069 - 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-16 15:25:51,360 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-16 15:25:51,360 - INFO - Initial checks done. Running the testcase now 2026-01-16 15:25:51,360 - INFO - 2026-01-16 15:25:51,760 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86359788:ctest-vn4-82214265, 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-86359788:ctest-vn4-82214265, 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-86359788:ctest-vn4-82214265, 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-86359788:ctest-vn4-82214265, 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-16 15:25:52,311 - DEBUG - Response for create_network : {'network': {'id': '2d53beca-9f64-42e3-82f4-b10b0f5aa9e9', 'name': 'ctest-vn4-82214265', 'tenant_id': '9e3ee614e142459c91637684ef3df3d9', 'project_id': '9e3ee614e142459c91637684ef3df3d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86359788', 'ctest-vn4-82214265'], 'port_security_enabled': True, 'description': ''}} 2026-01-16 15:25:52,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a21398a-d34a-46c5-b3ec-16dded42289c', 'name': '', 'tenant_id': '9e3ee614e142459c91637684ef3df3d9', 'network_id': '2d53beca-9f64-42e3-82f4-b10b0f5aa9e9', 'ip_version': 4, 'cidr': '204.185.106.0/26', 'allocation_pools': [{'start': '204.185.106.2', 'end': '204.185.106.62'}], 'gateway_ip': '204.185.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.185.106.2', 'tags': [], 'project_id': '9e3ee614e142459c91637684ef3df3d9'}} 2026-01-16 15:25:52,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '9141f274-ce34-46dc-a318-39c4a5140222', 'name': '', 'tenant_id': '9e3ee614e142459c91637684ef3df3d9', 'network_id': '2d53beca-9f64-42e3-82f4-b10b0f5aa9e9', 'ip_version': 6, 'cidr': '2d7c:f093:8cac:4b8b:4148:8e1c::/96', 'allocation_pools': [{'start': '2d7c:f093:8cac:4b8b:4148:8e1c:0:2', 'end': '2d7c:f093:8cac:4b8b:4148:8e1c:ffff:fffe'}], 'gateway_ip': '2d7c:f093:8cac:4b8b:4148:8e1c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d7c:f093:8cac:4b8b:4148:8e1c:0:2', 'tags': [], 'project_id': '9e3ee614e142459c91637684ef3df3d9'}} 2026-01-16 15:25:52,715 - INFO - Created VN ctest-vn4-82214265 2026-01-16 15:25:52,770 - DEBUG - VN ctest-vn4-82214265 UUID is 2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:52,994 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d53beca-9f64-42e3-82f4-b10b0f5aa9e9', 'name': 'ctest-vn4-82214265', 'tenant_id': '9e3ee614e142459c91637684ef3df3d9', 'project_id': '9e3ee614e142459c91637684ef3df3d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a21398a-d34a-46c5-b3ec-16dded42289c', '9141f274-ce34-46dc-a318-39c4a5140222'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86359788', 'ctest-vn4-82214265'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86359788', 'ctest-policy1-35702548']], 'subnet_ipam': [{'subnet_cidr': '204.185.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d7c:f093:8cac:4b8b:4148:8e1c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-16 15:25:53,170 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-16 15:25:53,468 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-16 15:25:53,504 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1a9d683-bf76-47d7-badc-33d849bb8304 2026-01-16 15:25:53,520 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e3ee614-e142-459c-9163-7684ef3df3d9 2026-01-16 15:25:53,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:53,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:53,632 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80c2ca84-d151-42bb-8a4e-8ae2644d103d 2026-01-16 15:25:53,641 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80c2ca84-d151-42bb-8a4e-8ae2644d103d 2026-01-16 15:25:53,650 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/067d7c50-613c-43e7-a358-14cb6bd9b6ea 2026-01-16 15:25:53,659 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-16 15:25:53,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:53,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80c2ca84-d151-42bb-8a4e-8ae2644d103d 2026-01-16 15:25:53,689 - INFO - Verified VN network id 11 for VN 2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:53,689 - INFO - Verifications in API Server for VN ctest-vn4-82214265 passed 2026-01-16 15:25:53,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:53,700 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80c2ca84-d151-42bb-8a4e-8ae2644d103d 2026-01-16 15:25:53,710 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80c2ca84-d151-42bb-8a4e-8ae2644d103d 2026-01-16 15:25:53,719 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/067d7c50-613c-43e7-a358-14cb6bd9b6ea 2026-01-16 15:25:53,735 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86359788:ctest-vn4-82214265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86359788', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3266163932240560867', 'uuid-lslong': '9436361780308388329'}, 'enable': 'true', 'created': '2026-01-16T15:25:52', 'last-modified': '2026-01-16T15:25:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.771569'} 2026-01-16 15:25:53,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-16 15:25:53,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82214265 passed 2026-01-16 15:25:53,743 - DEBUG - ====Verifying policy data for ctest-vn4-82214265 in API_Server ====== 2026-01-16 15:25:53,744 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-16 15:25:53,751 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1a9d683-bf76-47d7-badc-33d849bb8304 2026-01-16 15:25:53,764 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e3ee614-e142-459c-9163-7684ef3df3d9 2026-01-16 15:25:53,837 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d53beca-9f64-42e3-82f4-b10b0f5aa9e9 2026-01-16 15:25:53,847 - DEBUG - ==>Verifying data for policy with id: 86341573-7ee9-4f0f-9677-625c37ad0e74, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86359788', 'ctest-policy1-35702548'] 2026-01-16 15:25:53,847 - INFO - VN ctest-vn4-82214265 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-16 15:25:53,847 - DEBUG - Verifying the vn in opserver 2026-01-16 15:25:53,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86359788:ctest-vn4-82214265 virtual network link through opserver 10.0.0.38 2026-01-16 15:25:53,847 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-16 15:25:54,152 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-16 15:25:54,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86359788:ctest-vn4-82214265', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86359788:ctest-vn4-82214265?flat'} 2026-01-16 15:25:54,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86359788:ctest-vn4-82214265 is found in opserver 2026-01-16 15:25:54,228 - DEBUG - Do not have enough data to verify VN in agent 2026-01-16 15:25:54,233 - DEBUG - VRF ids for VN ctest-vn4-82214265: {} 2026-01-16 15:25:54,234 - DEBUG - ====Verifying data for ctest-policy1-35702548 in API_Server ====== 2026-01-16 15:25:54,234 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-16 15:25:54,239 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1a9d683-bf76-47d7-badc-33d849bb8304 2026-01-16 15:25:54,251 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e3ee614-e142-459c-9163-7684ef3df3d9 2026-01-16 15:25:54,320 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/86341573-7ee9-4f0f-9677-625c37ad0e74 2026-01-16 15:25:54,331 - INFO - Verified policy ctest-policy1-35702548 in API Server, Result: True 2026-01-16 15:25:54,332 - INFO - Done with setup and verification, moving onto test .. 2026-01-16 15:25:54,341 - INFO - Deleting VN ctest-vn4-82214265 2026-01-16 15:25:54,472 - DEBUG - Response for deleting network () 2026-01-16 15:25:54,473 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80c2ca84-d151-42bb-8a4e-8ae2644d103d 2026-01-16 15:25:54,479 - DEBUG - Response Code: 404 2026-01-16 15:25:54,480 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-16 15:25:54,486 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1a9d683-bf76-47d7-badc-33d849bb8304 2026-01-16 15:25:54,539 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e3ee614-e142-459c-9163-7684ef3df3d9 2026-01-16 15:25:54,616 - INFO - Validated that VN ctest-vn4-82214265 is not found in API Server 2026-01-16 15:25:54,626 - DEBUG - VN ctest-vn4-82214265 is not present in Agent 10.0.0.38 2026-01-16 15:25:54,626 - INFO - Validated that VN ctest-vn4-82214265 is not in any agent 2026-01-16 15:25:54,643 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82214265 info 2026-01-16 15:25:54,678 - INFO - Deleted policy ctest-policy1-35702548 2026-01-16 15:25:54,854 - DEBUG - policy ctest-policy1-35702548 is not found in API Server 2026-01-16 15:25:55,116 - DEBUG - No XMPP flaps were noticed during the test
2026-01-16 15:25:55,116 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-16 15:25:55,116 - INFO - -------------------------------------------------------------------------------- 2026-01-16 15:25:55,404 - DEBUG - No XMPP flaps were noticed during the test
2026-01-16 15:25:55,404 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-16 15:25:55,404 - INFO - -------------------------------------------------------------------------------- 2026-01-16 15:25:56,142 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86359788, ID : 9e3ee614-e142-459c-9163-7684ef3df3d9