2026-01-06 21:30:49,709 - INFO - Domain Default found not creating 2026-01-06 21:30:49,856 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88765899 not found, creating it 2026-01-06 21:30:50,296 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88765899, ID : 8401edc2-e1f7-4bf7-909c-8e59234e0c0f 2026-01-06 21:30:51,739 - INFO - ================================================================================ 2026-01-06 21:30:51,739 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 21:30:51,996 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-01-06 21:30:51,996 - INFO - Initial checks done. Running the testcase now 2026-01-06 21:30:51,996 - INFO - 2026-01-06 21:30:51,996 - INFO - ================================================================================ 2026-01-06 21:30:51,996 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 21:30:51,996 - 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-01-06 21:30:52,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-01-06 21:30:52,283 - INFO - Initial checks done. Running the testcase now 2026-01-06 21:30:52,283 - INFO - 2026-01-06 21:30:52,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88765899:ctest-vn4-93497908, 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-88765899:ctest-vn4-93497908, 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-88765899:ctest-vn4-93497908, 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-88765899:ctest-vn4-93497908, 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-01-06 21:30:53,131 - DEBUG - Response for create_network : {'network': {'id': 'e10958e8-df2a-4ccb-a594-ac801d901863', 'name': 'ctest-vn4-93497908', 'tenant_id': '8401edc2e1f74bf7909c8e59234e0c0f', 'project_id': '8401edc2e1f74bf7909c8e59234e0c0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88765899', 'ctest-vn4-93497908'], 'port_security_enabled': True, 'description': ''}} 2026-01-06 21:30:53,288 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcaf1d24-5dfc-4fb9-aa4f-56f9ea76ca8b', 'name': '', 'tenant_id': '8401edc2e1f74bf7909c8e59234e0c0f', 'network_id': 'e10958e8-df2a-4ccb-a594-ac801d901863', 'ip_version': 4, 'cidr': '70.43.70.0/26', 'allocation_pools': [{'start': '70.43.70.2', 'end': '70.43.70.62'}], 'gateway_ip': '70.43.70.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.43.70.2', 'tags': [], 'project_id': '8401edc2e1f74bf7909c8e59234e0c0f'}} 2026-01-06 21:30:53,428 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f37e9d79-69df-47d2-8a64-9b898c2f0edf', 'name': '', 'tenant_id': '8401edc2e1f74bf7909c8e59234e0c0f', 'network_id': 'e10958e8-df2a-4ccb-a594-ac801d901863', 'ip_version': 6, 'cidr': '3302:6fde:86fe:22dc:3048:76e9::/96', 'allocation_pools': [{'start': '3302:6fde:86fe:22dc:3048:76e9:0:2', 'end': '3302:6fde:86fe:22dc:3048:76e9:ffff:fffe'}], 'gateway_ip': '3302:6fde:86fe:22dc:3048:76e9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3302:6fde:86fe:22dc:3048:76e9:0:2', 'tags': [], 'project_id': '8401edc2e1f74bf7909c8e59234e0c0f'}} 2026-01-06 21:30:53,448 - INFO - Created VN ctest-vn4-93497908 2026-01-06 21:30:53,498 - DEBUG - VN ctest-vn4-93497908 UUID is e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:53,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e10958e8-df2a-4ccb-a594-ac801d901863', 'name': 'ctest-vn4-93497908', 'tenant_id': '8401edc2e1f74bf7909c8e59234e0c0f', 'project_id': '8401edc2e1f74bf7909c8e59234e0c0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcaf1d24-5dfc-4fb9-aa4f-56f9ea76ca8b', 'f37e9d79-69df-47d2-8a64-9b898c2f0edf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88765899', 'ctest-vn4-93497908'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88765899', 'ctest-policy1-55967989']], 'subnet_ipam': [{'subnet_cidr': '70.43.70.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3302:6fde:86fe:22dc:3048:76e9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-06 21:30:53,842 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-06 21:30:54,142 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-06 21:30:54,169 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852 2026-01-06 21:30:54,180 - DEBUG - Requesting: http://10.0.0.249:8082/project/8401edc2-e1f7-4bf7-909c-8e59234e0c0f 2026-01-06 21:30:54,247 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:54,258 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:54,266 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7deac128-163c-4dd3-baa9-392dd09e021c 2026-01-06 21:30:54,272 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7deac128-163c-4dd3-baa9-392dd09e021c 2026-01-06 21:30:54,278 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d5470e4b-79e9-473a-9957-a47697937ec5 2026-01-06 21:30:54,283 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 21:30:54,283 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:54,291 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7deac128-163c-4dd3-baa9-392dd09e021c 2026-01-06 21:30:54,303 - INFO - Verified VN network id 12 for VN e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:54,303 - INFO - Verifications in API Server for VN ctest-vn4-93497908 passed 2026-01-06 21:30:54,303 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:54,312 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7deac128-163c-4dd3-baa9-392dd09e021c 2026-01-06 21:30:54,318 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7deac128-163c-4dd3-baa9-392dd09e021c 2026-01-06 21:30:54,324 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d5470e4b-79e9-473a-9957-a47697937ec5 2026-01-06 21:30:54,334 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88765899:ctest-vn4-93497908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88765899', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16215589690523929803', 'uuid-lslong': '11931350979063060579'}, 'enable': 'true', 'created': '2026-01-06T21:30:53', 'last-modified': '2026-01-06T21:30:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674000'} 2026-01-06 21:30:54,340 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 21:30:54,340 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93497908 passed 2026-01-06 21:30:54,340 - DEBUG - ====Verifying policy data for ctest-vn4-93497908 in API_Server ====== 2026-01-06 21:30:54,340 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-06 21:30:54,345 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852 2026-01-06 21:30:54,355 - DEBUG - Requesting: http://10.0.0.249:8082/project/8401edc2-e1f7-4bf7-909c-8e59234e0c0f 2026-01-06 21:30:54,422 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e10958e8-df2a-4ccb-a594-ac801d901863 2026-01-06 21:30:54,431 - DEBUG - ==>Verifying data for policy with id: 6d233f42-7214-46c3-ae28-cdecd5d023aa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88765899', 'ctest-policy1-55967989'] 2026-01-06 21:30:54,431 - INFO - VN ctest-vn4-93497908 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-06 21:30:54,431 - DEBUG - Verifying the vn in opserver 2026-01-06 21:30:54,431 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88765899:ctest-vn4-93497908 virtual network link through opserver 10.0.0.249 2026-01-06 21:30:54,431 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-06 21:30:54,719 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-06 21:30:54,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88765899:ctest-vn4-93497908', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88765899:ctest-vn4-93497908?flat'} 2026-01-06 21:30:54,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88765899:ctest-vn4-93497908 is found in opserver 2026-01-06 21:30:54,781 - DEBUG - Do not have enough data to verify VN in agent 2026-01-06 21:30:54,785 - DEBUG - VRF ids for VN ctest-vn4-93497908: {} 2026-01-06 21:30:54,786 - DEBUG - ====Verifying data for ctest-policy1-55967989 in API_Server ====== 2026-01-06 21:30:54,786 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-06 21:30:54,790 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852 2026-01-06 21:30:54,800 - DEBUG - Requesting: http://10.0.0.249:8082/project/8401edc2-e1f7-4bf7-909c-8e59234e0c0f 2026-01-06 21:30:54,867 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/6d233f42-7214-46c3-ae28-cdecd5d023aa 2026-01-06 21:30:54,875 - INFO - Verified policy ctest-policy1-55967989 in API Server, Result: True 2026-01-06 21:30:54,875 - INFO - Done with setup and verification, moving onto test .. 2026-01-06 21:30:54,881 - INFO - Deleting VN ctest-vn4-93497908 2026-01-06 21:30:54,978 - DEBUG - Response for deleting network () 2026-01-06 21:30:54,978 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7deac128-163c-4dd3-baa9-392dd09e021c 2026-01-06 21:30:54,983 - DEBUG - Response Code: 404 2026-01-06 21:30:54,984 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-06 21:30:54,990 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fbcdf6be-b5f8-431e-a264-092baff9d852 2026-01-06 21:30:55,043 - DEBUG - Requesting: http://10.0.0.249:8082/project/8401edc2-e1f7-4bf7-909c-8e59234e0c0f 2026-01-06 21:30:55,109 - INFO - Validated that VN ctest-vn4-93497908 is not found in API Server 2026-01-06 21:30:55,120 - DEBUG - VN ctest-vn4-93497908 is not present in Agent 10.0.0.249 2026-01-06 21:30:55,120 - INFO - Validated that VN ctest-vn4-93497908 is not in any agent 2026-01-06 21:30:55,133 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93497908 info 2026-01-06 21:30:55,159 - INFO - Deleted policy ctest-policy1-55967989 2026-01-06 21:30:55,318 - DEBUG - policy ctest-policy1-55967989 is not found in API Server 2026-01-06 21:30:55,571 - DEBUG - No XMPP flaps were noticed during the test 2026-01-06 21:30:55,571 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-06 21:30:55,571 - INFO - -------------------------------------------------------------------------------- 2026-01-06 21:30:55,859 - DEBUG - No XMPP flaps were noticed during the test 2026-01-06 21:30:55,859 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-06 21:30:55,859 - INFO - -------------------------------------------------------------------------------- 2026-01-06 21:30:56,529 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88765899, ID : 8401edc2-e1f7-4bf7-909c-8e59234e0c0f