2026-02-20 18:47:11,355 - INFO - Domain Default found not creating 2026-02-20 18:47:11,517 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02450139 not found, creating it 2026-02-20 18:47:11,966 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02450139, ID : db1e2bb9-edba-4091-a575-4e8c4d8be98d 2026-02-20 18:47:13,451 - INFO - ================================================================================ 2026-02-20 18:47:13,451 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 18:47:13,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-20 18:47:13,705 - INFO - Initial checks done. Running the testcase now 2026-02-20 18:47:13,705 - INFO - 2026-02-20 18:47:13,705 - INFO - ================================================================================ 2026-02-20 18:47:13,705 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 18:47:13,705 - 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-02-20 18:47:13,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-20 18:47:13,992 - INFO - Initial checks done. Running the testcase now 2026-02-20 18:47:13,992 - INFO - 2026-02-20 18:47:14,341 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02450139:ctest-vn4-83073151, 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-02450139:ctest-vn4-83073151, 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-02450139:ctest-vn4-83073151, 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-02450139:ctest-vn4-83073151, 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-02-20 18:47:14,850 - DEBUG - Response for create_network : {'network': {'id': '9addf3f9-be4b-4657-a967-504b000d6b20', 'name': 'ctest-vn4-83073151', 'tenant_id': 'db1e2bb9edba4091a5754e8c4d8be98d', 'project_id': 'db1e2bb9edba4091a5754e8c4d8be98d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02450139', 'ctest-vn4-83073151'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 18:47:15,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db8fc9e3-9b4c-4ae0-bd8e-39d8ebd06dce', 'name': '', 'tenant_id': 'db1e2bb9edba4091a5754e8c4d8be98d', 'network_id': '9addf3f9-be4b-4657-a967-504b000d6b20', 'ip_version': 4, 'cidr': '153.2.204.128/26', 'allocation_pools': [{'start': '153.2.204.130', 'end': '153.2.204.190'}], 'gateway_ip': '153.2.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.2.204.130', 'tags': [], 'project_id': 'db1e2bb9edba4091a5754e8c4d8be98d'}} 2026-02-20 18:47:15,220 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd57f7064-c803-40ee-8f1b-0b21d78e2a06', 'name': '', 'tenant_id': 'db1e2bb9edba4091a5754e8c4d8be98d', 'network_id': '9addf3f9-be4b-4657-a967-504b000d6b20', 'ip_version': 6, 'cidr': '319a:8adb:e174:172b:d97:bbd6::/96', 'allocation_pools': [{'start': '319a:8adb:e174:172b:d97:bbd6:0:2', 'end': '319a:8adb:e174:172b:d97:bbd6:ffff:fffe'}], 'gateway_ip': '319a:8adb:e174:172b:d97:bbd6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '319a:8adb:e174:172b:d97:bbd6:0:2', 'tags': [], 'project_id': 'db1e2bb9edba4091a5754e8c4d8be98d'}} 2026-02-20 18:47:15,240 - INFO - Created VN ctest-vn4-83073151 2026-02-20 18:47:15,291 - DEBUG - VN ctest-vn4-83073151 UUID is 9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:15,487 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9addf3f9-be4b-4657-a967-504b000d6b20', 'name': 'ctest-vn4-83073151', 'tenant_id': 'db1e2bb9edba4091a5754e8c4d8be98d', 'project_id': 'db1e2bb9edba4091a5754e8c4d8be98d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db8fc9e3-9b4c-4ae0-bd8e-39d8ebd06dce', 'd57f7064-c803-40ee-8f1b-0b21d78e2a06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02450139', 'ctest-vn4-83073151'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02450139', 'ctest-policy1-58117714']], 'subnet_ipam': [{'subnet_cidr': '153.2.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '319a:8adb:e174:172b:d97:bbd6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 18:47:15,652 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 18:47:15,947 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 18:47:15,977 - DEBUG - Requesting: http://10.0.0.38:8082/domain/624b04b5-ee43-4e4b-a77c-a260082ed905 2026-02-20 18:47:15,988 - DEBUG - Requesting: http://10.0.0.38:8082/project/db1e2bb9-edba-4091-a575-4e8c4d8be98d 2026-02-20 18:47:16,057 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:16,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:16,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5c88d9d-51e0-4068-90be-83005d8abcbb 2026-02-20 18:47:16,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5c88d9d-51e0-4068-90be-83005d8abcbb 2026-02-20 18:47:16,092 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/84602bd4-de38-448e-88e8-da97ec41c7a0 2026-02-20 18:47:16,098 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 18:47:16,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:16,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5c88d9d-51e0-4068-90be-83005d8abcbb 2026-02-20 18:47:16,122 - INFO - Verified VN network id 12 for VN 9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:16,122 - INFO - Verifications in API Server for VN ctest-vn4-83073151 passed 2026-02-20 18:47:16,122 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:16,130 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5c88d9d-51e0-4068-90be-83005d8abcbb 2026-02-20 18:47:16,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5c88d9d-51e0-4068-90be-83005d8abcbb 2026-02-20 18:47:16,143 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/84602bd4-de38-448e-88e8-da97ec41c7a0 2026-02-20 18:47:16,155 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02450139:ctest-vn4-83073151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02450139', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11159343705658967639', 'uuid-lslong': '12206813598064667424'}, 'enable': 'true', 'created': '2026-02-20T18:47:14', 'last-modified': '2026-02-20T18:47:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690622'} 2026-02-20 18:47:16,161 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 18:47:16,161 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83073151 passed 2026-02-20 18:47:16,162 - DEBUG - ====Verifying policy data for ctest-vn4-83073151 in API_Server ====== 2026-02-20 18:47:16,162 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 18:47:16,168 - DEBUG - Requesting: http://10.0.0.38:8082/domain/624b04b5-ee43-4e4b-a77c-a260082ed905 2026-02-20 18:47:16,179 - DEBUG - Requesting: http://10.0.0.38:8082/project/db1e2bb9-edba-4091-a575-4e8c4d8be98d 2026-02-20 18:47:16,247 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9addf3f9-be4b-4657-a967-504b000d6b20 2026-02-20 18:47:16,256 - DEBUG - ==>Verifying data for policy with id: 124d2030-79e7-425e-bb41-394f5122f3e2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02450139', 'ctest-policy1-58117714'] 2026-02-20 18:47:16,256 - INFO - VN ctest-vn4-83073151 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 18:47:16,256 - DEBUG - Verifying the vn in opserver 2026-02-20 18:47:16,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02450139:ctest-vn4-83073151 virtual network link through opserver 10.0.0.38 2026-02-20 18:47:16,256 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-20 18:47:16,558 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-20 18:47:16,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02450139:ctest-vn4-83073151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02450139:ctest-vn4-83073151?flat'} 2026-02-20 18:47:16,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02450139:ctest-vn4-83073151 is found in opserver 2026-02-20 18:47:16,627 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 18:47:16,633 - DEBUG - VRF ids for VN ctest-vn4-83073151: {} 2026-02-20 18:47:16,633 - DEBUG - ====Verifying data for ctest-policy1-58117714 in API_Server ====== 2026-02-20 18:47:16,633 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 18:47:16,639 - DEBUG - Requesting: http://10.0.0.38:8082/domain/624b04b5-ee43-4e4b-a77c-a260082ed905 2026-02-20 18:47:16,649 - DEBUG - Requesting: http://10.0.0.38:8082/project/db1e2bb9-edba-4091-a575-4e8c4d8be98d 2026-02-20 18:47:16,716 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/124d2030-79e7-425e-bb41-394f5122f3e2 2026-02-20 18:47:16,725 - INFO - Verified policy ctest-policy1-58117714 in API Server, Result: True 2026-02-20 18:47:16,725 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 18:47:16,732 - INFO - Deleting VN ctest-vn4-83073151 2026-02-20 18:47:16,863 - DEBUG - Response for deleting network () 2026-02-20 18:47:16,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5c88d9d-51e0-4068-90be-83005d8abcbb 2026-02-20 18:47:16,868 - DEBUG - Response Code: 404 2026-02-20 18:47:16,868 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 18:47:16,873 - DEBUG - Requesting: http://10.0.0.38:8082/domain/624b04b5-ee43-4e4b-a77c-a260082ed905 2026-02-20 18:47:16,924 - DEBUG - Requesting: http://10.0.0.38:8082/project/db1e2bb9-edba-4091-a575-4e8c4d8be98d 2026-02-20 18:47:16,993 - INFO - Validated that VN ctest-vn4-83073151 is not found in API Server 2026-02-20 18:47:17,002 - DEBUG - VN ctest-vn4-83073151 is not present in Agent 10.0.0.38 2026-02-20 18:47:17,002 - INFO - Validated that VN ctest-vn4-83073151 is not in any agent 2026-02-20 18:47:17,015 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83073151 info 2026-02-20 18:47:17,042 - INFO - Deleted policy ctest-policy1-58117714 2026-02-20 18:47:17,203 - DEBUG - policy ctest-policy1-58117714 is not found in API Server 2026-02-20 18:47:17,458 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 18:47:17,458 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 18:47:17,458 - INFO - -------------------------------------------------------------------------------- 2026-02-20 18:47:17,749 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 18:47:17,749 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 18:47:17,749 - INFO - -------------------------------------------------------------------------------- 2026-02-20 18:47:18,477 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02450139, ID : db1e2bb9-edba-4091-a575-4e8c4d8be98d