2026-06-22 15:55:29,133 - INFO - Domain Default found not creating 2026-06-22 15:55:29,304 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17986182 not found, creating it 2026-06-22 15:55:29,753 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17986182, ID : 00f53e85-9b93-43fe-8f14-3208c56ffcc1 2026-06-22 15:55:31,254 - INFO - ================================================================================ 2026-06-22 15:55:31,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 15:55:31,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-22 15:55:31,510 - INFO - Initial checks done. Running the testcase now 2026-06-22 15:55:31,510 - INFO - 2026-06-22 15:55:31,510 - INFO - ================================================================================ 2026-06-22 15:55:31,510 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 15:55:31,510 - 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-06-22 15:55:31,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-22 15:55:31,797 - INFO - Initial checks done. Running the testcase now 2026-06-22 15:55:31,797 - INFO - 2026-06-22 15:55:32,182 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17986182:ctest-vn4-25177227, 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-17986182:ctest-vn4-25177227, 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-17986182:ctest-vn4-25177227, 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-17986182:ctest-vn4-25177227, 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-06-22 15:55:32,682 - DEBUG - Response for create_network : {'network': {'id': 'b65661ed-e56b-4d43-b54f-0c70f7726bfb', 'name': 'ctest-vn4-25177227', 'tenant_id': '00f53e859b9343fe8f143208c56ffcc1', 'project_id': '00f53e859b9343fe8f143208c56ffcc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17986182', 'ctest-vn4-25177227'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 15:55:32,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a0a78d7-26b2-4918-9907-0e92e619f55f', 'name': '', 'tenant_id': '00f53e859b9343fe8f143208c56ffcc1', 'network_id': 'b65661ed-e56b-4d43-b54f-0c70f7726bfb', 'ip_version': 4, 'cidr': '38.77.23.0/26', 'allocation_pools': [{'start': '38.77.23.2', 'end': '38.77.23.62'}], 'gateway_ip': '38.77.23.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.77.23.2', 'tags': [], 'project_id': '00f53e859b9343fe8f143208c56ffcc1'}} 2026-06-22 15:55:33,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f5f000-7795-4a90-9388-ff4a53df6144', 'name': '', 'tenant_id': '00f53e859b9343fe8f143208c56ffcc1', 'network_id': 'b65661ed-e56b-4d43-b54f-0c70f7726bfb', 'ip_version': 6, 'cidr': '2980:22b7:47ce:ffc2:1684:21aa::/96', 'allocation_pools': [{'start': '2980:22b7:47ce:ffc2:1684:21aa:0:2', 'end': '2980:22b7:47ce:ffc2:1684:21aa:ffff:fffe'}], 'gateway_ip': '2980:22b7:47ce:ffc2:1684:21aa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2980:22b7:47ce:ffc2:1684:21aa:0:2', 'tags': [], 'project_id': '00f53e859b9343fe8f143208c56ffcc1'}} 2026-06-22 15:55:33,081 - INFO - Created VN ctest-vn4-25177227 2026-06-22 15:55:33,132 - DEBUG - VN ctest-vn4-25177227 UUID is b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:33,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b65661ed-e56b-4d43-b54f-0c70f7726bfb', 'name': 'ctest-vn4-25177227', 'tenant_id': '00f53e859b9343fe8f143208c56ffcc1', 'project_id': '00f53e859b9343fe8f143208c56ffcc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a0a78d7-26b2-4918-9907-0e92e619f55f', '30f5f000-7795-4a90-9388-ff4a53df6144'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17986182', 'ctest-vn4-25177227'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17986182', 'ctest-policy1-82548216']], 'subnet_ipam': [{'subnet_cidr': '38.77.23.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2980:22b7:47ce:ffc2:1684:21aa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 15:55:33,489 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 15:55:33,818 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 15:55:33,847 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9049b04-a46e-46e0-8dc5-f4e71fd58b26 2026-06-22 15:55:33,859 - DEBUG - Requesting: http://10.0.0.38:8082/project/00f53e85-9b93-43fe-8f14-3208c56ffcc1 2026-06-22 15:55:33,933 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:33,944 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:33,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5dfbb726-4d12-40b3-8c06-ce5fe8a455ad 2026-06-22 15:55:33,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5dfbb726-4d12-40b3-8c06-ce5fe8a455ad 2026-06-22 15:55:33,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/382c3dd5-8720-4395-92f7-4a7efe015c22 2026-06-22 15:55:33,974 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 15:55:33,974 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:33,982 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5dfbb726-4d12-40b3-8c06-ce5fe8a455ad 2026-06-22 15:55:33,998 - INFO - Verified VN network id 11 for VN b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:33,998 - INFO - Verifications in API Server for VN ctest-vn4-25177227 passed 2026-06-22 15:55:33,998 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:34,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5dfbb726-4d12-40b3-8c06-ce5fe8a455ad 2026-06-22 15:55:34,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5dfbb726-4d12-40b3-8c06-ce5fe8a455ad 2026-06-22 15:55:34,026 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/382c3dd5-8720-4395-92f7-4a7efe015c22 2026-06-22 15:55:34,037 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17986182:ctest-vn4-25177227', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17986182', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13138796637284158787', 'uuid-lslong': '13064674723352439803'}, 'enable': 'true', 'created': '2026-06-22T15:55:32', 'last-modified': '2026-06-22T15:55:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741099'} 2026-06-22 15:55:34,043 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 15:55:34,043 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25177227 passed 2026-06-22 15:55:34,044 - DEBUG - ====Verifying policy data for ctest-vn4-25177227 in API_Server ====== 2026-06-22 15:55:34,044 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 15:55:34,050 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9049b04-a46e-46e0-8dc5-f4e71fd58b26 2026-06-22 15:55:34,060 - DEBUG - Requesting: http://10.0.0.38:8082/project/00f53e85-9b93-43fe-8f14-3208c56ffcc1 2026-06-22 15:55:34,128 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b65661ed-e56b-4d43-b54f-0c70f7726bfb 2026-06-22 15:55:34,137 - DEBUG - ==>Verifying data for policy with id: c3c759aa-b322-4e32-b243-a286d39bd61b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17986182', 'ctest-policy1-82548216'] 2026-06-22 15:55:34,138 - INFO - VN ctest-vn4-25177227 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 15:55:34,138 - DEBUG - Verifying the vn in opserver 2026-06-22 15:55:34,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17986182:ctest-vn4-25177227 virtual network link through opserver 10.0.0.38 2026-06-22 15:55:34,138 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 15:55:34,456 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 15:55:34,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17986182:ctest-vn4-25177227', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17986182:ctest-vn4-25177227?flat'} 2026-06-22 15:55:34,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17986182:ctest-vn4-25177227 is found in opserver 2026-06-22 15:55:34,513 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 15:55:34,517 - DEBUG - VRF ids for VN ctest-vn4-25177227: {} 2026-06-22 15:55:34,517 - DEBUG - ====Verifying data for ctest-policy1-82548216 in API_Server ====== 2026-06-22 15:55:34,517 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 15:55:34,523 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9049b04-a46e-46e0-8dc5-f4e71fd58b26 2026-06-22 15:55:34,532 - DEBUG - Requesting: http://10.0.0.38:8082/project/00f53e85-9b93-43fe-8f14-3208c56ffcc1 2026-06-22 15:55:34,603 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c3c759aa-b322-4e32-b243-a286d39bd61b 2026-06-22 15:55:34,612 - INFO - Verified policy ctest-policy1-82548216 in API Server, Result: True 2026-06-22 15:55:34,612 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 15:55:34,619 - INFO - Deleting VN ctest-vn4-25177227 2026-06-22 15:55:34,726 - DEBUG - Response for deleting network () 2026-06-22 15:55:34,726 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5dfbb726-4d12-40b3-8c06-ce5fe8a455ad 2026-06-22 15:55:34,731 - DEBUG - Response Code: 404 2026-06-22 15:55:34,731 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 15:55:34,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9049b04-a46e-46e0-8dc5-f4e71fd58b26 2026-06-22 15:55:34,789 - DEBUG - Requesting: http://10.0.0.38:8082/project/00f53e85-9b93-43fe-8f14-3208c56ffcc1 2026-06-22 15:55:34,856 - INFO - Validated that VN ctest-vn4-25177227 is not found in API Server 2026-06-22 15:55:34,865 - DEBUG - VN ctest-vn4-25177227 is not present in Agent 10.0.0.38 2026-06-22 15:55:34,865 - INFO - Validated that VN ctest-vn4-25177227 is not in any agent 2026-06-22 15:55:34,878 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25177227 info 2026-06-22 15:55:34,903 - INFO - Deleted policy ctest-policy1-82548216 2026-06-22 15:55:35,068 - DEBUG - policy ctest-policy1-82548216 is not found in API Server 2026-06-22 15:55:35,329 - DEBUG - No XMPP flaps were noticed during the test