2026-01-28 21:03:48,976 - INFO - Domain Default found not creating 2026-01-28 21:03:49,196 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35319256 not found, creating it 2026-01-28 21:03:49,682 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35319256, ID : 517f7b26-fa4e-4813-9849-63b85b089b17 2026-01-28 21:03:51,358 - INFO - ================================================================================ 2026-01-28 21:03:51,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:03:51,627 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-28 21:03:51,627 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:03:51,627 - INFO - 2026-01-28 21:03:51,627 - INFO - ================================================================================ 2026-01-28 21:03:51,627 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:03:51,627 - 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-28 21:03:51,919 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-28 21:03:51,919 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:03:51,919 - INFO - 2026-01-28 21:03:52,328 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35319256:ctest-vn4-99313968, 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-35319256:ctest-vn4-99313968, 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-35319256:ctest-vn4-99313968, 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-35319256:ctest-vn4-99313968, 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-28 21:03:52,885 - DEBUG - Response for create_network : {'network': {'id': '9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e', 'name': 'ctest-vn4-99313968', 'tenant_id': '517f7b26fa4e4813984963b85b089b17', 'project_id': '517f7b26fa4e4813984963b85b089b17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35319256', 'ctest-vn4-99313968'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:03:53,127 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f57de71d-47ec-4c25-a887-e220373597af', 'name': '', 'tenant_id': '517f7b26fa4e4813984963b85b089b17', 'network_id': '9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e', 'ip_version': 4, 'cidr': '199.48.161.64/26', 'allocation_pools': [{'start': '199.48.161.66', 'end': '199.48.161.126'}], 'gateway_ip': '199.48.161.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.48.161.66', 'tags': [], 'project_id': '517f7b26fa4e4813984963b85b089b17'}} 2026-01-28 21:03:53,306 - DEBUG - Response for create_subnet : {'subnet': {'id': '9da8fecf-130e-49f9-8321-fd45e71061bd', 'name': '', 'tenant_id': '517f7b26fa4e4813984963b85b089b17', 'network_id': '9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e', 'ip_version': 6, 'cidr': '3605:5455:e89a:a70f:5720:686a::/96', 'allocation_pools': [{'start': '3605:5455:e89a:a70f:5720:686a:0:2', 'end': '3605:5455:e89a:a70f:5720:686a:ffff:fffe'}], 'gateway_ip': '3605:5455:e89a:a70f:5720:686a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3605:5455:e89a:a70f:5720:686a:0:2', 'tags': [], 'project_id': '517f7b26fa4e4813984963b85b089b17'}} 2026-01-28 21:03:53,331 - INFO - Created VN ctest-vn4-99313968 2026-01-28 21:03:53,390 - DEBUG - VN ctest-vn4-99313968 UUID is 9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:53,628 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e', 'name': 'ctest-vn4-99313968', 'tenant_id': '517f7b26fa4e4813984963b85b089b17', 'project_id': '517f7b26fa4e4813984963b85b089b17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f57de71d-47ec-4c25-a887-e220373597af', '9da8fecf-130e-49f9-8321-fd45e71061bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35319256', 'ctest-vn4-99313968'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35319256', 'ctest-policy1-28482964']], 'subnet_ipam': [{'subnet_cidr': '199.48.161.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3605:5455:e89a:a70f:5720:686a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:03:53,805 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 21:03:54,143 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 21:03:54,177 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e 2026-01-28 21:03:54,191 - DEBUG - Requesting: http://10.0.0.22:8082/project/517f7b26-fa4e-4813-9849-63b85b089b17 2026-01-28 21:03:54,266 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:54,279 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:54,289 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f464d59c-c96e-4685-a74e-04cd0a985901 2026-01-28 21:03:54,296 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f464d59c-c96e-4685-a74e-04cd0a985901 2026-01-28 21:03:54,304 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3422758a-5994-49d4-81b5-1882d0ef3567 2026-01-28 21:03:54,311 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:03:54,311 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:54,322 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f464d59c-c96e-4685-a74e-04cd0a985901 2026-01-28 21:03:54,338 - INFO - Verified VN network id 12 for VN 9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:54,338 - INFO - Verifications in API Server for VN ctest-vn4-99313968 passed 2026-01-28 21:03:54,338 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:54,349 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f464d59c-c96e-4685-a74e-04cd0a985901 2026-01-28 21:03:54,357 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f464d59c-c96e-4685-a74e-04cd0a985901 2026-01-28 21:03:54,367 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3422758a-5994-49d4-81b5-1882d0ef3567 2026-01-28 21:03:54,379 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35319256:ctest-vn4-99313968', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35319256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11208996706260044849', 'uuid-lslong': '13113291033578777198'}, 'enable': 'true', 'created': '2026-01-28T21:03:52', 'last-modified': '2026-01-28T21:03:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785357'} 2026-01-28 21:03:54,385 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:03:54,385 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99313968 passed 2026-01-28 21:03:54,386 - DEBUG - ====Verifying policy data for ctest-vn4-99313968 in API_Server ====== 2026-01-28 21:03:54,386 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 21:03:54,392 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e 2026-01-28 21:03:54,405 - DEBUG - Requesting: http://10.0.0.22:8082/project/517f7b26-fa4e-4813-9849-63b85b089b17 2026-01-28 21:03:54,476 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9b8e5b1d-d527-4c31-b5fb-c4b7c4c72a6e 2026-01-28 21:03:54,487 - DEBUG - ==>Verifying data for policy with id: 7e0c6a24-82ce-490e-ae73-88441130f1b2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35319256', 'ctest-policy1-28482964'] 2026-01-28 21:03:54,487 - INFO - VN ctest-vn4-99313968 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 21:03:54,487 - DEBUG - Verifying the vn in opserver 2026-01-28 21:03:54,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35319256:ctest-vn4-99313968 virtual network link through opserver 10.0.0.22 2026-01-28 21:03:54,487 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-28 21:03:54,828 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-28 21:03:55,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35319256:ctest-vn4-99313968', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35319256:ctest-vn4-99313968?flat'} 2026-01-28 21:03:55,245 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35319256:ctest-vn4-99313968 is found in opserver 2026-01-28 21:03:55,255 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 21:03:55,262 - DEBUG - VRF ids for VN ctest-vn4-99313968: {} 2026-01-28 21:03:55,262 - DEBUG - ====Verifying data for ctest-policy1-28482964 in API_Server ====== 2026-01-28 21:03:55,262 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 21:03:55,269 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e 2026-01-28 21:03:55,281 - DEBUG - Requesting: http://10.0.0.22:8082/project/517f7b26-fa4e-4813-9849-63b85b089b17 2026-01-28 21:03:55,366 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/7e0c6a24-82ce-490e-ae73-88441130f1b2 2026-01-28 21:03:55,384 - INFO - Verified policy ctest-policy1-28482964 in API Server, Result: True 2026-01-28 21:03:55,384 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 21:03:55,399 - INFO - Deleting VN ctest-vn4-99313968 2026-01-28 21:03:55,541 - DEBUG - Response for deleting network () 2026-01-28 21:03:55,542 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f464d59c-c96e-4685-a74e-04cd0a985901 2026-01-28 21:03:55,548 - DEBUG - Response Code: 404 2026-01-28 21:03:55,548 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 21:03:55,554 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e 2026-01-28 21:03:55,607 - DEBUG - Requesting: http://10.0.0.22:8082/project/517f7b26-fa4e-4813-9849-63b85b089b17 2026-01-28 21:03:55,707 - INFO - Validated that VN ctest-vn4-99313968 is not found in API Server 2026-01-28 21:03:55,722 - DEBUG - VN ctest-vn4-99313968 is not present in Agent 10.0.0.22 2026-01-28 21:03:55,722 - INFO - Validated that VN ctest-vn4-99313968 is not in any agent 2026-01-28 21:03:55,743 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99313968 info 2026-01-28 21:03:55,776 - INFO - Deleted policy ctest-policy1-28482964 2026-01-28 21:03:55,949 - DEBUG - policy ctest-policy1-28482964 is not found in API Server 2026-01-28 21:03:56,203 - DEBUG - No XMPP flaps were noticed during the test