2026-01-22 13:47:24,253 - INFO - Domain Default found not creating 2026-01-22 13:47:24,432 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67648239 not found, creating it 2026-01-22 13:47:24,887 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67648239, ID : db585ff2-426b-4939-8f18-32fc7e8e5a79 2026-01-22 13:47:26,366 - INFO - ================================================================================ 2026-01-22 13:47:26,366 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 13:47:26,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.130': '0'}} with 2026-01-22 13:47:26,618 - INFO - Initial checks done. Running the testcase now 2026-01-22 13:47:26,618 - INFO - 2026-01-22 13:47:26,618 - INFO - ================================================================================ 2026-01-22 13:47:26,618 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 13:47:26,618 - 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-22 13:47:26,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.130': '0'}} with 2026-01-22 13:47:26,906 - INFO - Initial checks done. Running the testcase now 2026-01-22 13:47:26,906 - INFO - 2026-01-22 13:47:27,546 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67648239:ctest-vn4-39421930, 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-67648239:ctest-vn4-39421930, 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-67648239:ctest-vn4-39421930, 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-67648239:ctest-vn4-39421930, 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-22 13:47:28,048 - DEBUG - Response for create_network : {'network': {'id': 'b5673e62-35bc-4006-b8fb-17adfa5bea43', 'name': 'ctest-vn4-39421930', 'tenant_id': 'db585ff2426b49398f1832fc7e8e5a79', 'project_id': 'db585ff2426b49398f1832fc7e8e5a79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67648239', 'ctest-vn4-39421930'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 13:47:28,202 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cea5196-499e-4bdc-915d-2ac22099fadd', 'name': '', 'tenant_id': 'db585ff2426b49398f1832fc7e8e5a79', 'network_id': 'b5673e62-35bc-4006-b8fb-17adfa5bea43', 'ip_version': 4, 'cidr': '50.149.156.192/26', 'allocation_pools': [{'start': '50.149.156.194', 'end': '50.149.156.254'}], 'gateway_ip': '50.149.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.149.156.194', 'tags': [], 'project_id': 'db585ff2426b49398f1832fc7e8e5a79'}} 2026-01-22 13:47:28,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e70aa67e-d50c-4cea-8f30-9b1fce592895', 'name': '', 'tenant_id': 'db585ff2426b49398f1832fc7e8e5a79', 'network_id': 'b5673e62-35bc-4006-b8fb-17adfa5bea43', 'ip_version': 6, 'cidr': '2374:a8fd:138b:955b:ab86:7995::/96', 'allocation_pools': [{'start': '2374:a8fd:138b:955b:ab86:7995:0:2', 'end': '2374:a8fd:138b:955b:ab86:7995:ffff:fffe'}], 'gateway_ip': '2374:a8fd:138b:955b:ab86:7995:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2374:a8fd:138b:955b:ab86:7995:0:2', 'tags': [], 'project_id': 'db585ff2426b49398f1832fc7e8e5a79'}} 2026-01-22 13:47:28,401 - INFO - Created VN ctest-vn4-39421930 2026-01-22 13:47:28,453 - DEBUG - VN ctest-vn4-39421930 UUID is b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:28,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5673e62-35bc-4006-b8fb-17adfa5bea43', 'name': 'ctest-vn4-39421930', 'tenant_id': 'db585ff2426b49398f1832fc7e8e5a79', 'project_id': 'db585ff2426b49398f1832fc7e8e5a79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cea5196-499e-4bdc-915d-2ac22099fadd', 'e70aa67e-d50c-4cea-8f30-9b1fce592895'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67648239', 'ctest-vn4-39421930'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67648239', 'ctest-policy1-09094596']], 'subnet_ipam': [{'subnet_cidr': '50.149.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2374:a8fd:138b:955b:ab86:7995::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 13:47:28,829 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 13:47:29,128 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 13:47:29,166 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356 2026-01-22 13:47:29,179 - DEBUG - Requesting: http://10.0.0.50:8082/project/db585ff2-426b-4939-8f18-32fc7e8e5a79 2026-01-22 13:47:29,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:29,261 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:29,270 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96ff0fe2-45d2-4289-9866-438e10380f75 2026-01-22 13:47:29,276 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96ff0fe2-45d2-4289-9866-438e10380f75 2026-01-22 13:47:29,281 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a8e861a4-08b4-4227-a67f-48996ae0cdef 2026-01-22 13:47:29,286 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 13:47:29,287 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:29,294 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96ff0fe2-45d2-4289-9866-438e10380f75 2026-01-22 13:47:29,306 - INFO - Verified VN network id 11 for VN b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:29,306 - INFO - Verifications in API Server for VN ctest-vn4-39421930 passed 2026-01-22 13:47:29,306 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:29,315 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96ff0fe2-45d2-4289-9866-438e10380f75 2026-01-22 13:47:29,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96ff0fe2-45d2-4289-9866-438e10380f75 2026-01-22 13:47:29,326 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a8e861a4-08b4-4227-a67f-48996ae0cdef 2026-01-22 13:47:29,336 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67648239:ctest-vn4-39421930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67648239', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13071485034995400710', 'uuid-lslong': '13329273558130223683'}, 'enable': 'true', 'created': '2026-01-22T13:47:28', 'last-modified': '2026-01-22T13:47:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696251'} 2026-01-22 13:47:29,342 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 13:47:29,342 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39421930 passed 2026-01-22 13:47:29,342 - DEBUG - ====Verifying policy data for ctest-vn4-39421930 in API_Server ====== 2026-01-22 13:47:29,342 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 13:47:29,347 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356 2026-01-22 13:47:29,357 - DEBUG - Requesting: http://10.0.0.50:8082/project/db585ff2-426b-4939-8f18-32fc7e8e5a79 2026-01-22 13:47:29,427 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5673e62-35bc-4006-b8fb-17adfa5bea43 2026-01-22 13:47:29,436 - DEBUG - ==>Verifying data for policy with id: 5b794999-8646-4cb8-a048-d32e4682dd06, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67648239', 'ctest-policy1-09094596'] 2026-01-22 13:47:29,436 - INFO - VN ctest-vn4-39421930 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 13:47:29,436 - DEBUG - Verifying the vn in opserver 2026-01-22 13:47:29,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67648239:ctest-vn4-39421930 virtual network link through opserver 10.0.0.50 2026-01-22 13:47:29,436 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-22 13:47:29,731 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-22 13:47:29,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67648239:ctest-vn4-39421930', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67648239:ctest-vn4-39421930?flat'} 2026-01-22 13:47:29,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67648239:ctest-vn4-39421930 is found in opserver 2026-01-22 13:47:29,796 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 13:47:29,801 - DEBUG - VRF ids for VN ctest-vn4-39421930: {} 2026-01-22 13:47:29,801 - DEBUG - ====Verifying data for ctest-policy1-09094596 in API_Server ====== 2026-01-22 13:47:29,801 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 13:47:29,806 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356 2026-01-22 13:47:29,815 - DEBUG - Requesting: http://10.0.0.50:8082/project/db585ff2-426b-4939-8f18-32fc7e8e5a79 2026-01-22 13:47:29,884 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5b794999-8646-4cb8-a048-d32e4682dd06 2026-01-22 13:47:29,893 - INFO - Verified policy ctest-policy1-09094596 in API Server, Result: True 2026-01-22 13:47:29,893 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 13:47:29,901 - INFO - Deleting VN ctest-vn4-39421930 2026-01-22 13:47:30,012 - DEBUG - Response for deleting network () 2026-01-22 13:47:30,012 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96ff0fe2-45d2-4289-9866-438e10380f75 2026-01-22 13:47:30,017 - DEBUG - Response Code: 404 2026-01-22 13:47:30,017 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 13:47:30,022 - DEBUG - Requesting: http://10.0.0.50:8082/domain/97d6fd71-e172-4cf1-9c0b-3351b75d6356 2026-01-22 13:47:30,073 - DEBUG - Requesting: http://10.0.0.50:8082/project/db585ff2-426b-4939-8f18-32fc7e8e5a79 2026-01-22 13:47:30,141 - INFO - Validated that VN ctest-vn4-39421930 is not found in API Server 2026-01-22 13:47:30,150 - DEBUG - VN ctest-vn4-39421930 is not present in Agent 10.0.0.50 2026-01-22 13:47:30,150 - INFO - Validated that VN ctest-vn4-39421930 is not in any agent 2026-01-22 13:47:30,162 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39421930 info 2026-01-22 13:47:30,183 - INFO - Deleted policy ctest-policy1-09094596 2026-01-22 13:47:30,345 - DEBUG - policy ctest-policy1-09094596 is not found in API Server 2026-01-22 13:47:30,598 - DEBUG - No XMPP flaps were noticed during the test