2026-09-23 16:16:14,413 - INFO - Domain Default found not creating 2026-09-23 16:16:14,672 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83492221 not found, creating it 2026-09-23 16:16:15,223 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83492221, ID : bd9debdd-ce5e-4523-8a2e-3f612270018c 2026-09-23 16:16:17,211 - INFO - ================================================================================ 2026-09-23 16:16:17,211 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-23 16:16:17,493 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-09-23 16:16:17,494 - INFO - Initial checks done. Running the testcase now 2026-09-23 16:16:17,494 - INFO - 2026-09-23 16:16:17,494 - INFO - ================================================================================ 2026-09-23 16:16:17,494 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-23 16:16:17,494 - 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-23 16:16:17,806 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-09-23 16:16:17,806 - INFO - Initial checks done. Running the testcase now 2026-09-23 16:16:17,807 - INFO - 2026-09-23 16:16:18,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83492221:ctest-vn4-34449294, 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-83492221:ctest-vn4-34449294, 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-83492221:ctest-vn4-34449294, 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-83492221:ctest-vn4-34449294, 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-23 16:16:18,961 - DEBUG - Response for create_network : {'network': {'id': '55c94a81-6af6-4d69-8881-10e2a6a52f8f', 'name': 'ctest-vn4-34449294', 'tenant_id': 'bd9debddce5e45238a2e3f612270018c', 'project_id': 'bd9debddce5e45238a2e3f612270018c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83492221', 'ctest-vn4-34449294'], 'port_security_enabled': True, 'description': ''}} 2026-09-23 16:16:19,204 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a473d8b1-9bf0-4903-b4c9-124391fb8176', 'name': '', 'tenant_id': 'bd9debddce5e45238a2e3f612270018c', 'network_id': '55c94a81-6af6-4d69-8881-10e2a6a52f8f', 'ip_version': 4, 'cidr': '144.85.30.192/26', 'allocation_pools': [{'start': '144.85.30.194', 'end': '144.85.30.254'}], 'gateway_ip': '144.85.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.85.30.194', 'tags': [], 'project_id': 'bd9debddce5e45238a2e3f612270018c'}} 2026-09-23 16:16:19,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a04c8b4-f0eb-49e6-a1fd-e519ed552a94', 'name': '', 'tenant_id': 'bd9debddce5e45238a2e3f612270018c', 'network_id': '55c94a81-6af6-4d69-8881-10e2a6a52f8f', 'ip_version': 6, 'cidr': '22eb:cf02:6912:3e46:f6b9:44fb::/96', 'allocation_pools': [{'start': '22eb:cf02:6912:3e46:f6b9:44fb:0:2', 'end': '22eb:cf02:6912:3e46:f6b9:44fb:ffff:fffe'}], 'gateway_ip': '22eb:cf02:6912:3e46:f6b9:44fb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22eb:cf02:6912:3e46:f6b9:44fb:0:2', 'tags': [], 'project_id': 'bd9debddce5e45238a2e3f612270018c'}} 2026-09-23 16:16:19,488 - INFO - Created VN ctest-vn4-34449294 2026-09-23 16:16:19,550 - DEBUG - VN ctest-vn4-34449294 UUID is 55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:19,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55c94a81-6af6-4d69-8881-10e2a6a52f8f', 'name': 'ctest-vn4-34449294', 'tenant_id': 'bd9debddce5e45238a2e3f612270018c', 'project_id': 'bd9debddce5e45238a2e3f612270018c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a473d8b1-9bf0-4903-b4c9-124391fb8176', '6a04c8b4-f0eb-49e6-a1fd-e519ed552a94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83492221', 'ctest-vn4-34449294'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83492221', 'ctest-policy1-00788273']], 'subnet_ipam': [{'subnet_cidr': '144.85.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22eb:cf02:6912:3e46:f6b9:44fb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-23 16:16:20,022 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-23 16:16:20,436 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-23 16:16:20,482 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d 2026-09-23 16:16:20,499 - DEBUG - Requesting: http://10.0.0.161:8082/project/bd9debdd-ce5e-4523-8a2e-3f612270018c 2026-09-23 16:16:20,600 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:20,620 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:20,633 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/95fb833b-d70b-49cf-b708-4620a59e73c9 2026-09-23 16:16:20,646 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/95fb833b-d70b-49cf-b708-4620a59e73c9 2026-09-23 16:16:20,655 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/73e186f3-1482-4819-a3c1-8e892280b686 2026-09-23 16:16:20,666 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-23 16:16:20,666 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:20,681 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/95fb833b-d70b-49cf-b708-4620a59e73c9 2026-09-23 16:16:20,700 - INFO - Verified VN network id 12 for VN 55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:20,701 - INFO - Verifications in API Server for VN ctest-vn4-34449294 passed 2026-09-23 16:16:20,701 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:20,717 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/95fb833b-d70b-49cf-b708-4620a59e73c9 2026-09-23 16:16:20,727 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/95fb833b-d70b-49cf-b708-4620a59e73c9 2026-09-23 16:16:20,737 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/73e186f3-1482-4819-a3c1-8e892280b686 2026-09-23 16:16:20,756 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83492221:ctest-vn4-34449294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83492221', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6181553883248479593', 'uuid-lslong': '9836161626798370703'}, 'enable': 'true', 'created': '2026-09-23T16:16:18', 'last-modified': '2026-09-23T16:16:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960524'} 2026-09-23 16:16:20,767 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-23 16:16:20,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34449294 passed 2026-09-23 16:16:20,767 - DEBUG - ====Verifying policy data for ctest-vn4-34449294 in API_Server ====== 2026-09-23 16:16:20,768 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-23 16:16:20,776 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d 2026-09-23 16:16:20,793 - DEBUG - Requesting: http://10.0.0.161:8082/project/bd9debdd-ce5e-4523-8a2e-3f612270018c 2026-09-23 16:16:20,891 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/55c94a81-6af6-4d69-8881-10e2a6a52f8f 2026-09-23 16:16:20,906 - DEBUG - ==>Verifying data for policy with id: 142dd0c1-fc05-4c95-9860-27ea20c4c67f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83492221', 'ctest-policy1-00788273'] 2026-09-23 16:16:20,906 - INFO - VN ctest-vn4-34449294 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-23 16:16:20,906 - DEBUG - Verifying the vn in opserver 2026-09-23 16:16:20,907 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83492221:ctest-vn4-34449294 virtual network link through opserver 10.0.0.161 2026-09-23 16:16:20,907 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-23 16:16:21,310 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-23 16:16:21,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83492221:ctest-vn4-34449294', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83492221:ctest-vn4-34449294?flat'} 2026-09-23 16:16:21,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83492221:ctest-vn4-34449294 is found in opserver 2026-09-23 16:16:21,408 - DEBUG - Do not have enough data to verify VN in agent 2026-09-23 16:16:21,414 - DEBUG - VRF ids for VN ctest-vn4-34449294: {} 2026-09-23 16:16:21,415 - DEBUG - ====Verifying data for ctest-policy1-00788273 in API_Server ====== 2026-09-23 16:16:21,415 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-23 16:16:21,422 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d 2026-09-23 16:16:21,436 - DEBUG - Requesting: http://10.0.0.161:8082/project/bd9debdd-ce5e-4523-8a2e-3f612270018c 2026-09-23 16:16:21,540 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/142dd0c1-fc05-4c95-9860-27ea20c4c67f 2026-09-23 16:16:21,558 - INFO - Verified policy ctest-policy1-00788273 in API Server, Result: True 2026-09-23 16:16:21,558 - INFO - Done with setup and verification, moving onto test .. 2026-09-23 16:16:21,574 - INFO - Deleting VN ctest-vn4-34449294 2026-09-23 16:16:21,802 - DEBUG - Response for deleting network () 2026-09-23 16:16:21,803 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/95fb833b-d70b-49cf-b708-4620a59e73c9 2026-09-23 16:16:21,811 - DEBUG - Response Code: 404 2026-09-23 16:16:21,811 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-23 16:16:21,819 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d 2026-09-23 16:16:21,887 - DEBUG - Requesting: http://10.0.0.161:8082/project/bd9debdd-ce5e-4523-8a2e-3f612270018c 2026-09-23 16:16:21,990 - INFO - Validated that VN ctest-vn4-34449294 is not found in API Server 2026-09-23 16:16:22,007 - DEBUG - VN ctest-vn4-34449294 is not present in Agent 10.0.0.161 2026-09-23 16:16:22,007 - INFO - Validated that VN ctest-vn4-34449294 is not in any agent 2026-09-23 16:16:22,034 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34449294 info 2026-09-23 16:16:22,101 - INFO - Deleted policy ctest-policy1-00788273 2026-09-23 16:16:22,302 - DEBUG - policy ctest-policy1-00788273 is not found in API Server 2026-09-23 16:16:22,588 - DEBUG - No XMPP flaps were noticed during the test
2026-09-23 16:16:22,588 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-23 16:16:22,588 - INFO - -------------------------------------------------------------------------------- 2026-09-23 16:16:22,905 - DEBUG - No XMPP flaps were noticed during the test
2026-09-23 16:16:22,905 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-23 16:16:22,905 - INFO - -------------------------------------------------------------------------------- 2026-09-23 16:16:23,804 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83492221, ID : bd9debdd-ce5e-4523-8a2e-3f612270018c