2026-01-15 02:09:14,363 - INFO - Domain Default found not creating 2026-01-15 02:09:14,557 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07638982 not found, creating it 2026-01-15 02:09:15,025 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07638982, ID : a34b57e6-002e-4683-8677-871303eeb541 2026-01-15 02:09:16,538 - INFO - ================================================================================ 2026-01-15 02:09:16,539 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 02:09:16,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0'}} with 2026-01-15 02:09:16,800 - INFO - Initial checks done. Running the testcase now 2026-01-15 02:09:16,800 - INFO - 2026-01-15 02:09:16,801 - INFO - ================================================================================ 2026-01-15 02:09:16,801 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 02:09:16,801 - 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-15 02:09:17,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0'}} with 2026-01-15 02:09:17,093 - INFO - Initial checks done. Running the testcase now 2026-01-15 02:09:17,093 - INFO - 2026-01-15 02:09:17,475 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07638982:ctest-vn4-51395428, 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-07638982:ctest-vn4-51395428, 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-07638982:ctest-vn4-51395428, 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-07638982:ctest-vn4-51395428, 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-15 02:09:18,021 - DEBUG - Response for create_network : {'network': {'id': 'b7e9449b-9f01-4949-8fd3-031dcc8319a6', 'name': 'ctest-vn4-51395428', 'tenant_id': 'a34b57e6002e46838677871303eeb541', 'project_id': 'a34b57e6002e46838677871303eeb541', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07638982', 'ctest-vn4-51395428'], 'port_security_enabled': True, 'description': ''}} 2026-01-15 02:09:18,251 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9cb6ed2-6786-4c84-9aea-13929c6d8c4b', 'name': '', 'tenant_id': 'a34b57e6002e46838677871303eeb541', 'network_id': 'b7e9449b-9f01-4949-8fd3-031dcc8319a6', 'ip_version': 4, 'cidr': '209.200.181.64/26', 'allocation_pools': [{'start': '209.200.181.66', 'end': '209.200.181.126'}], 'gateway_ip': '209.200.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.200.181.66', 'tags': [], 'project_id': 'a34b57e6002e46838677871303eeb541'}} 2026-01-15 02:09:18,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d20204e-aade-440d-a62e-6689e241a775', 'name': '', 'tenant_id': 'a34b57e6002e46838677871303eeb541', 'network_id': 'b7e9449b-9f01-4949-8fd3-031dcc8319a6', 'ip_version': 6, 'cidr': '2507:5693:d778:f250:5a63:f5cf::/96', 'allocation_pools': [{'start': '2507:5693:d778:f250:5a63:f5cf:0:2', 'end': '2507:5693:d778:f250:5a63:f5cf:ffff:fffe'}], 'gateway_ip': '2507:5693:d778:f250:5a63:f5cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2507:5693:d778:f250:5a63:f5cf:0:2', 'tags': [], 'project_id': 'a34b57e6002e46838677871303eeb541'}} 2026-01-15 02:09:18,428 - INFO - Created VN ctest-vn4-51395428 2026-01-15 02:09:18,479 - DEBUG - VN ctest-vn4-51395428 UUID is b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:18,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7e9449b-9f01-4949-8fd3-031dcc8319a6', 'name': 'ctest-vn4-51395428', 'tenant_id': 'a34b57e6002e46838677871303eeb541', 'project_id': 'a34b57e6002e46838677871303eeb541', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9cb6ed2-6786-4c84-9aea-13929c6d8c4b', '3d20204e-aade-440d-a62e-6689e241a775'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07638982', 'ctest-vn4-51395428'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07638982', 'ctest-policy1-39417200']], 'subnet_ipam': [{'subnet_cidr': '209.200.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2507:5693:d778:f250:5a63:f5cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-15 02:09:18,859 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-15 02:09:19,166 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-15 02:09:19,203 - DEBUG - Requesting: http://10.0.0.240:8082/domain/2b19168e-0afd-472a-bce0-903310b4dcbf 2026-01-15 02:09:19,216 - DEBUG - Requesting: http://10.0.0.240:8082/project/a34b57e6-002e-4683-8677-871303eeb541 2026-01-15 02:09:19,286 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:19,298 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:19,308 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/79f813dc-b88c-4672-8bfa-2e0b5dbde2c6 2026-01-15 02:09:19,314 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/79f813dc-b88c-4672-8bfa-2e0b5dbde2c6 2026-01-15 02:09:19,321 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/fed56368-0071-4118-94a4-f46d9cc38fc7 2026-01-15 02:09:19,328 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:09:19,328 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:19,337 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/79f813dc-b88c-4672-8bfa-2e0b5dbde2c6 2026-01-15 02:09:19,352 - INFO - Verified VN network id 11 for VN b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:19,352 - INFO - Verifications in API Server for VN ctest-vn4-51395428 passed 2026-01-15 02:09:19,352 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:19,361 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/79f813dc-b88c-4672-8bfa-2e0b5dbde2c6 2026-01-15 02:09:19,369 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/79f813dc-b88c-4672-8bfa-2e0b5dbde2c6 2026-01-15 02:09:19,376 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/fed56368-0071-4118-94a4-f46d9cc38fc7 2026-01-15 02:09:19,388 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07638982:ctest-vn4-51395428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07638982', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13252198813692676425', 'uuid-lslong': '10363630594029722022'}, 'enable': 'true', 'created': '2026-01-15T02:09:17', 'last-modified': '2026-01-15T02:09:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719559'} 2026-01-15 02:09:19,394 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:09:19,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51395428 passed 2026-01-15 02:09:19,395 - DEBUG - ====Verifying policy data for ctest-vn4-51395428 in API_Server ====== 2026-01-15 02:09:19,395 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-15 02:09:19,401 - DEBUG - Requesting: http://10.0.0.240:8082/domain/2b19168e-0afd-472a-bce0-903310b4dcbf 2026-01-15 02:09:19,411 - DEBUG - Requesting: http://10.0.0.240:8082/project/a34b57e6-002e-4683-8677-871303eeb541 2026-01-15 02:09:19,496 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7e9449b-9f01-4949-8fd3-031dcc8319a6 2026-01-15 02:09:19,509 - DEBUG - ==>Verifying data for policy with id: 28d17409-1964-40a6-932c-a7b9c7cb1f3c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07638982', 'ctest-policy1-39417200'] 2026-01-15 02:09:19,509 - INFO - VN ctest-vn4-51395428 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-15 02:09:19,509 - DEBUG - Verifying the vn in opserver 2026-01-15 02:09:19,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07638982:ctest-vn4-51395428 virtual network link through opserver 10.0.0.240 2026-01-15 02:09:19,510 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-15 02:09:19,827 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-15 02:09:19,900 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07638982:ctest-vn4-51395428', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07638982:ctest-vn4-51395428?flat'} 2026-01-15 02:09:19,900 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07638982:ctest-vn4-51395428 is found in opserver 2026-01-15 02:09:19,910 - DEBUG - Do not have enough data to verify VN in agent 2026-01-15 02:09:19,915 - DEBUG - VRF ids for VN ctest-vn4-51395428: {} 2026-01-15 02:09:19,916 - DEBUG - ====Verifying data for ctest-policy1-39417200 in API_Server ====== 2026-01-15 02:09:19,916 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-15 02:09:19,921 - DEBUG - Requesting: http://10.0.0.240:8082/domain/2b19168e-0afd-472a-bce0-903310b4dcbf 2026-01-15 02:09:19,932 - DEBUG - Requesting: http://10.0.0.240:8082/project/a34b57e6-002e-4683-8677-871303eeb541 2026-01-15 02:09:20,010 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/28d17409-1964-40a6-932c-a7b9c7cb1f3c 2026-01-15 02:09:20,022 - INFO - Verified policy ctest-policy1-39417200 in API Server, Result: True 2026-01-15 02:09:20,022 - INFO - Done with setup and verification, moving onto test .. 2026-01-15 02:09:20,033 - INFO - Deleting VN ctest-vn4-51395428 2026-01-15 02:09:20,156 - DEBUG - Response for deleting network () 2026-01-15 02:09:20,156 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/79f813dc-b88c-4672-8bfa-2e0b5dbde2c6 2026-01-15 02:09:20,162 - DEBUG - Response Code: 404 2026-01-15 02:09:20,163 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-15 02:09:20,169 - DEBUG - Requesting: http://10.0.0.240:8082/domain/2b19168e-0afd-472a-bce0-903310b4dcbf 2026-01-15 02:09:20,224 - DEBUG - Requesting: http://10.0.0.240:8082/project/a34b57e6-002e-4683-8677-871303eeb541 2026-01-15 02:09:20,306 - INFO - Validated that VN ctest-vn4-51395428 is not found in API Server 2026-01-15 02:09:20,316 - DEBUG - VN ctest-vn4-51395428 is not present in Agent 10.0.0.240 2026-01-15 02:09:20,316 - INFO - Validated that VN ctest-vn4-51395428 is not in any agent 2026-01-15 02:09:20,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51395428 info 2026-01-15 02:09:20,354 - INFO - Deleted policy ctest-policy1-39417200 2026-01-15 02:09:20,527 - DEBUG - policy ctest-policy1-39417200 is not found in API Server 2026-01-15 02:09:20,781 - DEBUG - No XMPP flaps were noticed during the test