2026-05-25 02:08:16,230 - INFO - Domain Default found not creating 2026-05-25 02:08:16,439 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39912534 not found, creating it 2026-05-25 02:08:16,969 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39912534, ID : c6996282-63e9-41fb-9560-d3bc9378871c 2026-05-25 02:08:18,590 - INFO - ================================================================================ 2026-05-25 02:08:18,591 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:08:18,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2026-05-25 02:08:18,863 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:08:18,863 - INFO - 2026-05-25 02:08:18,863 - INFO - ================================================================================ 2026-05-25 02:08:18,863 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:08:18,863 - 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-05-25 02:08:19,154 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2026-05-25 02:08:19,154 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:08:19,154 - INFO - 2026-05-25 02:08:19,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39912534:ctest-vn4-18605368, 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-39912534:ctest-vn4-18605368, 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-39912534:ctest-vn4-18605368, 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-39912534:ctest-vn4-18605368, 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-05-25 02:08:20,113 - DEBUG - Response for create_network : {'network': {'id': 'b4e3bf3f-6b3f-4659-ae0f-db510e1573ed', 'name': 'ctest-vn4-18605368', 'tenant_id': 'c699628263e941fb9560d3bc9378871c', 'project_id': 'c699628263e941fb9560d3bc9378871c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39912534', 'ctest-vn4-18605368'], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:08:20,287 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b98162d-67a3-465a-8074-95dbe9a8eeae', 'name': '', 'tenant_id': 'c699628263e941fb9560d3bc9378871c', 'network_id': 'b4e3bf3f-6b3f-4659-ae0f-db510e1573ed', 'ip_version': 4, 'cidr': '166.84.227.0/26', 'allocation_pools': [{'start': '166.84.227.2', 'end': '166.84.227.62'}], 'gateway_ip': '166.84.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.84.227.2', 'tags': [], 'project_id': 'c699628263e941fb9560d3bc9378871c'}} 2026-05-25 02:08:20,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a135c926-1739-43b0-9196-1f9593ad32ec', 'name': '', 'tenant_id': 'c699628263e941fb9560d3bc9378871c', 'network_id': 'b4e3bf3f-6b3f-4659-ae0f-db510e1573ed', 'ip_version': 6, 'cidr': '3a2d:5b09:b390:f0f:19f1:3e48::/96', 'allocation_pools': [{'start': '3a2d:5b09:b390:f0f:19f1:3e48:0:2', 'end': '3a2d:5b09:b390:f0f:19f1:3e48:ffff:fffe'}], 'gateway_ip': '3a2d:5b09:b390:f0f:19f1:3e48:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a2d:5b09:b390:f0f:19f1:3e48:0:2', 'tags': [], 'project_id': 'c699628263e941fb9560d3bc9378871c'}} 2026-05-25 02:08:20,487 - INFO - Created VN ctest-vn4-18605368 2026-05-25 02:08:20,541 - DEBUG - VN ctest-vn4-18605368 UUID is b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:20,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4e3bf3f-6b3f-4659-ae0f-db510e1573ed', 'name': 'ctest-vn4-18605368', 'tenant_id': 'c699628263e941fb9560d3bc9378871c', 'project_id': 'c699628263e941fb9560d3bc9378871c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b98162d-67a3-465a-8074-95dbe9a8eeae', 'a135c926-1739-43b0-9196-1f9593ad32ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39912534', 'ctest-vn4-18605368'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39912534', 'ctest-policy1-58558173']], 'subnet_ipam': [{'subnet_cidr': '166.84.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a2d:5b09:b390:f0f:19f1:3e48::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:08:20,921 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-25 02:08:21,226 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-25 02:08:21,261 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92 2026-05-25 02:08:21,273 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6996282-63e9-41fb-9560-d3bc9378871c 2026-05-25 02:08:21,346 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:21,358 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:21,368 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3e101359-c5c7-4890-a0d3-2f11f76b3929 2026-05-25 02:08:21,377 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3e101359-c5c7-4890-a0d3-2f11f76b3929 2026-05-25 02:08:21,384 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c1f94767-45c9-4678-b33c-55eb05663abc 2026-05-25 02:08:21,393 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:08:21,393 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:21,404 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3e101359-c5c7-4890-a0d3-2f11f76b3929 2026-05-25 02:08:21,422 - INFO - Verified VN network id 11 for VN b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:21,422 - INFO - Verifications in API Server for VN ctest-vn4-18605368 passed 2026-05-25 02:08:21,422 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:21,432 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3e101359-c5c7-4890-a0d3-2f11f76b3929 2026-05-25 02:08:21,440 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3e101359-c5c7-4890-a0d3-2f11f76b3929 2026-05-25 02:08:21,447 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c1f94767-45c9-4678-b33c-55eb05663abc 2026-05-25 02:08:21,458 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39912534:ctest-vn4-18605368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39912534', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13034472025643501145', 'uuid-lslong': '12542484628425241581'}, 'enable': 'true', 'created': '2026-05-25T02:08:20', 'last-modified': '2026-05-25T02:08:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736415'} 2026-05-25 02:08:21,463 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:08:21,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18605368 passed 2026-05-25 02:08:21,464 - DEBUG - ====Verifying policy data for ctest-vn4-18605368 in API_Server ====== 2026-05-25 02:08:21,464 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-25 02:08:21,472 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92 2026-05-25 02:08:21,482 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6996282-63e9-41fb-9560-d3bc9378871c 2026-05-25 02:08:21,557 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b4e3bf3f-6b3f-4659-ae0f-db510e1573ed 2026-05-25 02:08:21,567 - DEBUG - ==>Verifying data for policy with id: 0fc0e55d-2eb6-434a-a50e-48a97392a755, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39912534', 'ctest-policy1-58558173'] 2026-05-25 02:08:21,567 - INFO - VN ctest-vn4-18605368 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-25 02:08:21,567 - DEBUG - Verifying the vn in opserver 2026-05-25 02:08:21,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39912534:ctest-vn4-18605368 virtual network link through opserver 10.0.0.41 2026-05-25 02:08:21,567 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-25 02:08:21,863 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-25 02:08:21,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39912534:ctest-vn4-18605368', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39912534:ctest-vn4-18605368?flat'} 2026-05-25 02:08:21,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39912534:ctest-vn4-18605368 is found in opserver 2026-05-25 02:08:21,952 - DEBUG - Do not have enough data to verify VN in agent 2026-05-25 02:08:21,957 - DEBUG - VRF ids for VN ctest-vn4-18605368: {} 2026-05-25 02:08:21,957 - DEBUG - ====Verifying data for ctest-policy1-58558173 in API_Server ====== 2026-05-25 02:08:21,957 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-25 02:08:21,963 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92 2026-05-25 02:08:21,973 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6996282-63e9-41fb-9560-d3bc9378871c 2026-05-25 02:08:22,052 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/0fc0e55d-2eb6-434a-a50e-48a97392a755 2026-05-25 02:08:22,062 - INFO - Verified policy ctest-policy1-58558173 in API Server, Result: True 2026-05-25 02:08:22,062 - INFO - Done with setup and verification, moving onto test .. 2026-05-25 02:08:22,072 - INFO - Deleting VN ctest-vn4-18605368 2026-05-25 02:08:22,209 - DEBUG - Response for deleting network () 2026-05-25 02:08:22,209 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3e101359-c5c7-4890-a0d3-2f11f76b3929 2026-05-25 02:08:22,215 - DEBUG - Response Code: 404 2026-05-25 02:08:22,215 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-25 02:08:22,221 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92 2026-05-25 02:08:22,280 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6996282-63e9-41fb-9560-d3bc9378871c 2026-05-25 02:08:22,365 - INFO - Validated that VN ctest-vn4-18605368 is not found in API Server 2026-05-25 02:08:22,376 - DEBUG - VN ctest-vn4-18605368 is not present in Agent 10.0.0.41 2026-05-25 02:08:22,376 - INFO - Validated that VN ctest-vn4-18605368 is not in any agent 2026-05-25 02:08:22,396 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18605368 info 2026-05-25 02:08:22,434 - INFO - Deleted policy ctest-policy1-58558173 2026-05-25 02:08:22,612 - DEBUG - policy ctest-policy1-58558173 is not found in API Server 2026-05-25 02:08:22,884 - DEBUG - No XMPP flaps were noticed during the test 2026-05-25 02:08:22,884 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-25 02:08:22,884 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:08:23,185 - DEBUG - No XMPP flaps were noticed during the test 2026-05-25 02:08:23,185 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-25 02:08:23,185 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:08:23,904 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39912534, ID : c6996282-63e9-41fb-9560-d3bc9378871c