2026-01-30 21:24:13,106 - INFO - Domain Default found not creating 2026-01-30 21:24:13,250 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53583655 not found, creating it 2026-01-30 21:24:13,680 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53583655, ID : ed5e1e8b-d92d-41ea-a7fe-5341beda5254 2026-01-30 21:24:15,070 - INFO - ================================================================================ 2026-01-30 21:24:15,070 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 21:24:15,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-30 21:24:15,333 - INFO - Initial checks done. Running the testcase now 2026-01-30 21:24:15,333 - INFO - 2026-01-30 21:24:15,334 - INFO - ================================================================================ 2026-01-30 21:24:15,334 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 21:24:15,334 - 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-30 21:24:15,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-30 21:24:15,625 - INFO - Initial checks done. Running the testcase now 2026-01-30 21:24:15,625 - INFO - 2026-01-30 21:24:15,955 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53583655:ctest-vn4-70219523, 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-53583655:ctest-vn4-70219523, 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-53583655:ctest-vn4-70219523, 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-53583655:ctest-vn4-70219523, 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-30 21:24:16,446 - DEBUG - Response for create_network : {'network': {'id': '673dea70-a832-459e-b7cf-db4ebf049f1c', 'name': 'ctest-vn4-70219523', 'tenant_id': 'ed5e1e8bd92d41eaa7fe5341beda5254', 'project_id': 'ed5e1e8bd92d41eaa7fe5341beda5254', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53583655', 'ctest-vn4-70219523'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 21:24:16,647 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef1610d0-8042-4784-9033-839e0c0fc581', 'name': '', 'tenant_id': 'ed5e1e8bd92d41eaa7fe5341beda5254', 'network_id': '673dea70-a832-459e-b7cf-db4ebf049f1c', 'ip_version': 4, 'cidr': '5.56.143.0/26', 'allocation_pools': [{'start': '5.56.143.2', 'end': '5.56.143.62'}], 'gateway_ip': '5.56.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.56.143.2', 'tags': [], 'project_id': 'ed5e1e8bd92d41eaa7fe5341beda5254'}} 2026-01-30 21:24:16,856 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de1cb4e5-5d53-4a4d-aa78-4ce160378d44', 'name': '', 'tenant_id': 'ed5e1e8bd92d41eaa7fe5341beda5254', 'network_id': '673dea70-a832-459e-b7cf-db4ebf049f1c', 'ip_version': 6, 'cidr': '31e1:57c4:fdae:7573:e24a:2cd1::/96', 'allocation_pools': [{'start': '31e1:57c4:fdae:7573:e24a:2cd1:0:2', 'end': '31e1:57c4:fdae:7573:e24a:2cd1:ffff:fffe'}], 'gateway_ip': '31e1:57c4:fdae:7573:e24a:2cd1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31e1:57c4:fdae:7573:e24a:2cd1:0:2', 'tags': [], 'project_id': 'ed5e1e8bd92d41eaa7fe5341beda5254'}} 2026-01-30 21:24:16,873 - INFO - Created VN ctest-vn4-70219523 2026-01-30 21:24:16,924 - DEBUG - VN ctest-vn4-70219523 UUID is 673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '673dea70-a832-459e-b7cf-db4ebf049f1c', 'name': 'ctest-vn4-70219523', 'tenant_id': 'ed5e1e8bd92d41eaa7fe5341beda5254', 'project_id': 'ed5e1e8bd92d41eaa7fe5341beda5254', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef1610d0-8042-4784-9033-839e0c0fc581', 'de1cb4e5-5d53-4a4d-aa78-4ce160378d44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53583655', 'ctest-vn4-70219523'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53583655', 'ctest-policy1-58038073']], 'subnet_ipam': [{'subnet_cidr': '5.56.143.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31e1:57c4:fdae:7573:e24a:2cd1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 21:24:17,272 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 21:24:17,561 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 21:24:17,590 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0 2026-01-30 21:24:17,600 - DEBUG - Requesting: http://10.0.0.38:8082/project/ed5e1e8b-d92d-41ea-a7fe-5341beda5254 2026-01-30 21:24:17,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/466ea813-cef2-4d07-ab05-5958f4af9bf2 2026-01-30 21:24:17,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/466ea813-cef2-4d07-ab05-5958f4af9bf2 2026-01-30 21:24:17,698 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e3b917b7-f66c-4cab-87c4-57717ad2fc1f 2026-01-30 21:24:17,703 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 21:24:17,703 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,712 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/466ea813-cef2-4d07-ab05-5958f4af9bf2 2026-01-30 21:24:17,723 - INFO - Verified VN network id 11 for VN 673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,724 - INFO - Verifications in API Server for VN ctest-vn4-70219523 passed 2026-01-30 21:24:17,724 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/466ea813-cef2-4d07-ab05-5958f4af9bf2 2026-01-30 21:24:17,737 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/466ea813-cef2-4d07-ab05-5958f4af9bf2 2026-01-30 21:24:17,742 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e3b917b7-f66c-4cab-87c4-57717ad2fc1f 2026-01-30 21:24:17,751 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53583655:ctest-vn4-70219523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53583655', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7439359929065031070', 'uuid-lslong': '13245046160378601244'}, 'enable': 'true', 'created': '2026-01-30T21:24:16', 'last-modified': '2026-01-30T21:24:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.666732'} 2026-01-30 21:24:17,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 21:24:17,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70219523 passed 2026-01-30 21:24:17,757 - DEBUG - ====Verifying policy data for ctest-vn4-70219523 in API_Server ====== 2026-01-30 21:24:17,757 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 21:24:17,762 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0 2026-01-30 21:24:17,771 - DEBUG - Requesting: http://10.0.0.38:8082/project/ed5e1e8b-d92d-41ea-a7fe-5341beda5254 2026-01-30 21:24:17,835 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/673dea70-a832-459e-b7cf-db4ebf049f1c 2026-01-30 21:24:17,844 - DEBUG - ==>Verifying data for policy with id: aec50012-02f1-4f06-819d-85cc2584cf8e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53583655', 'ctest-policy1-58038073'] 2026-01-30 21:24:17,844 - INFO - VN ctest-vn4-70219523 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 21:24:17,844 - DEBUG - Verifying the vn in opserver 2026-01-30 21:24:17,844 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53583655:ctest-vn4-70219523 virtual network link through opserver 10.0.0.38 2026-01-30 21:24:17,844 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-30 21:24:18,132 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-30 21:24:18,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53583655:ctest-vn4-70219523', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53583655:ctest-vn4-70219523?flat'} 2026-01-30 21:24:18,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53583655:ctest-vn4-70219523 is found in opserver 2026-01-30 21:24:18,195 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 21:24:18,198 - DEBUG - VRF ids for VN ctest-vn4-70219523: {} 2026-01-30 21:24:18,198 - DEBUG - ====Verifying data for ctest-policy1-58038073 in API_Server ====== 2026-01-30 21:24:18,199 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 21:24:18,203 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0 2026-01-30 21:24:18,212 - DEBUG - Requesting: http://10.0.0.38:8082/project/ed5e1e8b-d92d-41ea-a7fe-5341beda5254 2026-01-30 21:24:18,280 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/aec50012-02f1-4f06-819d-85cc2584cf8e 2026-01-30 21:24:18,288 - INFO - Verified policy ctest-policy1-58038073 in API Server, Result: True 2026-01-30 21:24:18,288 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 21:24:18,295 - INFO - Deleting VN ctest-vn4-70219523 2026-01-30 21:24:18,398 - DEBUG - Response for deleting network () 2026-01-30 21:24:18,399 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/466ea813-cef2-4d07-ab05-5958f4af9bf2 2026-01-30 21:24:18,403 - DEBUG - Response Code: 404 2026-01-30 21:24:18,403 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 21:24:18,407 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0 2026-01-30 21:24:18,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/ed5e1e8b-d92d-41ea-a7fe-5341beda5254 2026-01-30 21:24:18,524 - INFO - Validated that VN ctest-vn4-70219523 is not found in API Server 2026-01-30 21:24:18,533 - DEBUG - VN ctest-vn4-70219523 is not present in Agent 10.0.0.38 2026-01-30 21:24:18,533 - INFO - Validated that VN ctest-vn4-70219523 is not in any agent 2026-01-30 21:24:18,545 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70219523 info 2026-01-30 21:24:18,567 - INFO - Deleted policy ctest-policy1-58038073 2026-01-30 21:24:18,724 - DEBUG - policy ctest-policy1-58038073 is not found in API Server 2026-01-30 21:24:18,977 - DEBUG - No XMPP flaps were noticed during the test