2026-09-17 13:16:19,370 - INFO - Domain Default found not creating 2026-09-17 13:16:19,555 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65238598 not found, creating it 2026-09-17 13:16:20,104 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65238598, ID : 8de40d96-f435-4371-b415-6da457fff1b3 2026-09-17 13:16:22,402 - INFO - ================================================================================ 2026-09-17 13:16:22,403 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 13:16:22,675 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-17 13:16:22,675 - INFO - Initial checks done. Running the testcase now 2026-09-17 13:16:22,675 - INFO - 2026-09-17 13:16:22,676 - INFO - ================================================================================ 2026-09-17 13:16:22,676 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 13:16:22,676 - 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-09-17 13:16:22,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-17 13:16:22,983 - INFO - Initial checks done. Running the testcase now 2026-09-17 13:16:22,983 - INFO - 2026-09-17 13:16:23,390 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65238598:ctest-vn4-95854158, 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-65238598:ctest-vn4-95854158, 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-65238598:ctest-vn4-95854158, 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-65238598:ctest-vn4-95854158, 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-09-17 13:16:23,960 - DEBUG - Response for create_network : {'network': {'id': '2db0a9e3-a8ad-4dab-abb4-3d2a3721100b', 'name': 'ctest-vn4-95854158', 'tenant_id': '8de40d96f4354371b4156da457fff1b3', 'project_id': '8de40d96f4354371b4156da457fff1b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65238598', 'ctest-vn4-95854158'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 13:16:24,195 - DEBUG - Response for create_subnet : {'subnet': {'id': '086b89c7-8cc1-4c5a-a82d-38fb18ac5925', 'name': '', 'tenant_id': '8de40d96f4354371b4156da457fff1b3', 'network_id': '2db0a9e3-a8ad-4dab-abb4-3d2a3721100b', 'ip_version': 4, 'cidr': '50.193.254.128/26', 'allocation_pools': [{'start': '50.193.254.130', 'end': '50.193.254.190'}], 'gateway_ip': '50.193.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.193.254.130', 'tags': [], 'project_id': '8de40d96f4354371b4156da457fff1b3'}} 2026-09-17 13:16:24,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '05d61fc3-d12b-42cf-bd18-3ff5fcae306e', 'name': '', 'tenant_id': '8de40d96f4354371b4156da457fff1b3', 'network_id': '2db0a9e3-a8ad-4dab-abb4-3d2a3721100b', 'ip_version': 6, 'cidr': '29d5:7c2a:26f7:4157:a4cd:33d9::/96', 'allocation_pools': [{'start': '29d5:7c2a:26f7:4157:a4cd:33d9:0:2', 'end': '29d5:7c2a:26f7:4157:a4cd:33d9:ffff:fffe'}], 'gateway_ip': '29d5:7c2a:26f7:4157:a4cd:33d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29d5:7c2a:26f7:4157:a4cd:33d9:0:2', 'tags': [], 'project_id': '8de40d96f4354371b4156da457fff1b3'}} 2026-09-17 13:16:24,393 - INFO - Created VN ctest-vn4-95854158 2026-09-17 13:16:24,448 - DEBUG - VN ctest-vn4-95854158 UUID is 2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:24,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2db0a9e3-a8ad-4dab-abb4-3d2a3721100b', 'name': 'ctest-vn4-95854158', 'tenant_id': '8de40d96f4354371b4156da457fff1b3', 'project_id': '8de40d96f4354371b4156da457fff1b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['086b89c7-8cc1-4c5a-a82d-38fb18ac5925', '05d61fc3-d12b-42cf-bd18-3ff5fcae306e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65238598', 'ctest-vn4-95854158'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65238598', 'ctest-policy1-76806737']], 'subnet_ipam': [{'subnet_cidr': '50.193.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29d5:7c2a:26f7:4157:a4cd:33d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 13:16:24,880 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-17 13:16:25,261 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-17 13:16:25,295 - DEBUG - Requesting: http://10.0.0.189:8082/domain/f7642baa-681c-45ce-a03f-8275518f8166 2026-09-17 13:16:25,311 - DEBUG - Requesting: http://10.0.0.189:8082/project/8de40d96-f435-4371-b415-6da457fff1b3 2026-09-17 13:16:25,397 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:25,415 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:25,428 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e4cf1087-821f-411d-aef2-c76e2ab6c0da 2026-09-17 13:16:25,439 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e4cf1087-821f-411d-aef2-c76e2ab6c0da 2026-09-17 13:16:25,448 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/f160e19f-6123-4a3d-8870-8fad7cd0bda2 2026-09-17 13:16:25,458 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 13:16:25,458 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:25,472 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e4cf1087-821f-411d-aef2-c76e2ab6c0da 2026-09-17 13:16:25,495 - INFO - Verified VN network id 11 for VN 2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:25,495 - INFO - Verifications in API Server for VN ctest-vn4-95854158 passed 2026-09-17 13:16:25,495 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:25,507 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e4cf1087-821f-411d-aef2-c76e2ab6c0da 2026-09-17 13:16:25,517 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e4cf1087-821f-411d-aef2-c76e2ab6c0da 2026-09-17 13:16:25,526 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/f160e19f-6123-4a3d-8870-8fad7cd0bda2 2026-09-17 13:16:25,542 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65238598:ctest-vn4-95854158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65238598', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3292318122860432811', 'uuid-lslong': '12372581327816429579'}, 'enable': 'true', 'created': '2026-09-17T13:16:23', 'last-modified': '2026-09-17T13:16:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891788'} 2026-09-17 13:16:25,552 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 13:16:25,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95854158 passed 2026-09-17 13:16:25,552 - DEBUG - ====Verifying policy data for ctest-vn4-95854158 in API_Server ====== 2026-09-17 13:16:25,552 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-17 13:16:25,560 - DEBUG - Requesting: http://10.0.0.189:8082/domain/f7642baa-681c-45ce-a03f-8275518f8166 2026-09-17 13:16:25,574 - DEBUG - Requesting: http://10.0.0.189:8082/project/8de40d96-f435-4371-b415-6da457fff1b3 2026-09-17 13:16:25,658 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/2db0a9e3-a8ad-4dab-abb4-3d2a3721100b 2026-09-17 13:16:25,671 - DEBUG - ==>Verifying data for policy with id: 4bf0dd0e-a22f-463f-a15a-4405b1767be9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65238598', 'ctest-policy1-76806737'] 2026-09-17 13:16:25,671 - INFO - VN ctest-vn4-95854158 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 13:16:25,671 - DEBUG - Verifying the vn in opserver 2026-09-17 13:16:25,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65238598:ctest-vn4-95854158 virtual network link through opserver 10.0.0.189 2026-09-17 13:16:25,671 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-17 13:16:26,068 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-17 13:16:26,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65238598:ctest-vn4-95854158', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65238598:ctest-vn4-95854158?flat'} 2026-09-17 13:16:26,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65238598:ctest-vn4-95854158 is found in opserver 2026-09-17 13:16:26,147 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 13:16:26,153 - DEBUG - VRF ids for VN ctest-vn4-95854158: {} 2026-09-17 13:16:26,153 - DEBUG - ====Verifying data for ctest-policy1-76806737 in API_Server ====== 2026-09-17 13:16:26,153 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-17 13:16:26,160 - DEBUG - Requesting: http://10.0.0.189:8082/domain/f7642baa-681c-45ce-a03f-8275518f8166 2026-09-17 13:16:26,173 - DEBUG - Requesting: http://10.0.0.189:8082/project/8de40d96-f435-4371-b415-6da457fff1b3 2026-09-17 13:16:26,255 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/4bf0dd0e-a22f-463f-a15a-4405b1767be9 2026-09-17 13:16:26,272 - INFO - Verified policy ctest-policy1-76806737 in API Server, Result: True 2026-09-17 13:16:26,272 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 13:16:26,285 - INFO - Deleting VN ctest-vn4-95854158 2026-09-17 13:16:26,447 - DEBUG - Response for deleting network () 2026-09-17 13:16:26,447 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e4cf1087-821f-411d-aef2-c76e2ab6c0da 2026-09-17 13:16:26,454 - DEBUG - Response Code: 404 2026-09-17 13:16:26,455 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-17 13:16:26,462 - DEBUG - Requesting: http://10.0.0.189:8082/domain/f7642baa-681c-45ce-a03f-8275518f8166 2026-09-17 13:16:26,523 - DEBUG - Requesting: http://10.0.0.189:8082/project/8de40d96-f435-4371-b415-6da457fff1b3 2026-09-17 13:16:26,604 - INFO - Validated that VN ctest-vn4-95854158 is not found in API Server 2026-09-17 13:16:26,618 - DEBUG - VN ctest-vn4-95854158 is not present in Agent 10.0.0.189 2026-09-17 13:16:26,618 - INFO - Validated that VN ctest-vn4-95854158 is not in any agent 2026-09-17 13:16:26,639 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95854158 info 2026-09-17 13:16:26,674 - INFO - Deleted policy ctest-policy1-76806737 2026-09-17 13:16:26,864 - DEBUG - policy ctest-policy1-76806737 is not found in API Server 2026-09-17 13:16:27,150 - DEBUG - No XMPP flaps were noticed during the test 2026-09-17 13:16:27,151 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-17 13:16:27,151 - INFO - -------------------------------------------------------------------------------- 2026-09-17 13:16:27,450 - DEBUG - No XMPP flaps were noticed during the test 2026-09-17 13:16:27,450 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-17 13:16:27,450 - INFO - -------------------------------------------------------------------------------- 2026-09-17 13:16:28,247 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65238598, ID : 8de40d96-f435-4371-b415-6da457fff1b3