2026-02-06 17:19:14,071 - INFO - Domain Default found not creating 2026-02-06 17:19:14,271 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54737433 not found, creating it 2026-02-06 17:19:14,775 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54737433, ID : 0286856b-9c93-4f3d-986a-25c83022887a 2026-02-06 17:19:16,327 - INFO - ================================================================================ 2026-02-06 17:19:16,327 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-06 17:19:16,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-06 17:19:16,581 - INFO - Initial checks done. Running the testcase now 2026-02-06 17:19:16,582 - INFO - 2026-02-06 17:19:16,582 - INFO - ================================================================================ 2026-02-06 17:19:16,582 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-06 17:19:16,582 - 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-06 17:19:16,868 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-06 17:19:16,868 - INFO - Initial checks done. Running the testcase now 2026-02-06 17:19:16,868 - INFO - 2026-02-06 17:19:17,238 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54737433:ctest-vn4-08852797, 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-54737433:ctest-vn4-08852797, 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-54737433:ctest-vn4-08852797, 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-54737433:ctest-vn4-08852797, 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-06 17:19:17,747 - DEBUG - Response for create_network : {'network': {'id': '0c490f61-bcb5-43c1-8482-26ce35746b5c', 'name': 'ctest-vn4-08852797', 'tenant_id': '0286856b9c934f3d986a25c83022887a', 'project_id': '0286856b9c934f3d986a25c83022887a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54737433', 'ctest-vn4-08852797'], 'port_security_enabled': True, 'description': ''}} 2026-02-06 17:19:17,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6b89f78-fb2b-41db-ac63-9816085c9de0', 'name': '', 'tenant_id': '0286856b9c934f3d986a25c83022887a', 'network_id': '0c490f61-bcb5-43c1-8482-26ce35746b5c', 'ip_version': 4, 'cidr': '134.227.118.128/26', 'allocation_pools': [{'start': '134.227.118.130', 'end': '134.227.118.190'}], 'gateway_ip': '134.227.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.227.118.130', 'tags': [], 'project_id': '0286856b9c934f3d986a25c83022887a'}} 2026-02-06 17:19:18,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '75329418-d249-417e-a843-bd81d9f7fea0', 'name': '', 'tenant_id': '0286856b9c934f3d986a25c83022887a', 'network_id': '0c490f61-bcb5-43c1-8482-26ce35746b5c', 'ip_version': 6, 'cidr': '2a64:8401:e686:58a2:e0ef:1b37::/96', 'allocation_pools': [{'start': '2a64:8401:e686:58a2:e0ef:1b37:0:2', 'end': '2a64:8401:e686:58a2:e0ef:1b37:ffff:fffe'}], 'gateway_ip': '2a64:8401:e686:58a2:e0ef:1b37:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a64:8401:e686:58a2:e0ef:1b37:0:2', 'tags': [], 'project_id': '0286856b9c934f3d986a25c83022887a'}} 2026-02-06 17:19:18,099 - INFO - Created VN ctest-vn4-08852797 2026-02-06 17:19:18,152 - DEBUG - VN ctest-vn4-08852797 UUID is 0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:18,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c490f61-bcb5-43c1-8482-26ce35746b5c', 'name': 'ctest-vn4-08852797', 'tenant_id': '0286856b9c934f3d986a25c83022887a', 'project_id': '0286856b9c934f3d986a25c83022887a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6b89f78-fb2b-41db-ac63-9816085c9de0', '75329418-d249-417e-a843-bd81d9f7fea0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54737433', 'ctest-vn4-08852797'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54737433', 'ctest-policy1-84487570']], 'subnet_ipam': [{'subnet_cidr': '134.227.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a64:8401:e686:58a2:e0ef:1b37::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-06 17:19:18,515 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 17:19:18,811 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 17:19:18,845 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7bdb2152-9f5f-486a-81a1-7ad4efdb6865 2026-02-06 17:19:18,857 - DEBUG - Requesting: http://10.0.0.50:8082/project/0286856b-9c93-4f3d-986a-25c83022887a 2026-02-06 17:19:18,938 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:18,950 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:18,961 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4c4bc525-e624-4015-9e42-345a54962443 2026-02-06 17:19:18,969 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4c4bc525-e624-4015-9e42-345a54962443 2026-02-06 17:19:18,976 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3f7a8c3-4774-4a08-b89a-fd2352f21d3d 2026-02-06 17:19:18,984 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-06 17:19:18,984 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:18,994 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4c4bc525-e624-4015-9e42-345a54962443 2026-02-06 17:19:19,009 - INFO - Verified VN network id 9 for VN 0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:19,009 - INFO - Verifications in API Server for VN ctest-vn4-08852797 passed 2026-02-06 17:19:19,009 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:19,018 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4c4bc525-e624-4015-9e42-345a54962443 2026-02-06 17:19:19,026 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4c4bc525-e624-4015-9e42-345a54962443 2026-02-06 17:19:19,033 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3f7a8c3-4774-4a08-b89a-fd2352f21d3d 2026-02-06 17:19:19,045 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54737433:ctest-vn4-08852797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54737433', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '885255714207253441', 'uuid-lslong': '9548236827080813404'}, 'enable': 'true', 'created': '2026-02-06T17:19:17', 'last-modified': '2026-02-06T17:19:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711468'} 2026-02-06 17:19:19,051 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-06 17:19:19,051 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08852797 passed 2026-02-06 17:19:19,051 - DEBUG - ====Verifying policy data for ctest-vn4-08852797 in API_Server ====== 2026-02-06 17:19:19,051 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 17:19:19,057 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7bdb2152-9f5f-486a-81a1-7ad4efdb6865 2026-02-06 17:19:19,068 - DEBUG - Requesting: http://10.0.0.50:8082/project/0286856b-9c93-4f3d-986a-25c83022887a 2026-02-06 17:19:19,153 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c490f61-bcb5-43c1-8482-26ce35746b5c 2026-02-06 17:19:19,166 - DEBUG - ==>Verifying data for policy with id: 8eeb8527-275a-420c-9c00-3835566a4517, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54737433', 'ctest-policy1-84487570'] 2026-02-06 17:19:19,166 - INFO - VN ctest-vn4-08852797 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-06 17:19:19,166 - DEBUG - Verifying the vn in opserver 2026-02-06 17:19:19,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54737433:ctest-vn4-08852797 virtual network link through opserver 10.0.0.50 2026-02-06 17:19:19,166 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-06 17:19:19,474 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-06 17:19:19,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54737433:ctest-vn4-08852797', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54737433:ctest-vn4-08852797?flat'} 2026-02-06 17:19:19,541 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54737433:ctest-vn4-08852797 is found in opserver 2026-02-06 17:19:19,551 - DEBUG - Do not have enough data to verify VN in agent 2026-02-06 17:19:19,556 - DEBUG - VRF ids for VN ctest-vn4-08852797: {} 2026-02-06 17:19:19,556 - DEBUG - ====Verifying data for ctest-policy1-84487570 in API_Server ====== 2026-02-06 17:19:19,556 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 17:19:19,562 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7bdb2152-9f5f-486a-81a1-7ad4efdb6865 2026-02-06 17:19:19,574 - DEBUG - Requesting: http://10.0.0.50:8082/project/0286856b-9c93-4f3d-986a-25c83022887a 2026-02-06 17:19:19,649 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/8eeb8527-275a-420c-9c00-3835566a4517 2026-02-06 17:19:19,660 - INFO - Verified policy ctest-policy1-84487570 in API Server, Result: True 2026-02-06 17:19:19,660 - INFO - Done with setup and verification, moving onto test .. 2026-02-06 17:19:19,669 - INFO - Deleting VN ctest-vn4-08852797 2026-02-06 17:19:19,873 - DEBUG - Response for deleting network () 2026-02-06 17:19:19,873 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4c4bc525-e624-4015-9e42-345a54962443 2026-02-06 17:19:19,879 - DEBUG - Response Code: 404 2026-02-06 17:19:19,879 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 17:19:19,884 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7bdb2152-9f5f-486a-81a1-7ad4efdb6865 2026-02-06 17:19:19,937 - DEBUG - Requesting: http://10.0.0.50:8082/project/0286856b-9c93-4f3d-986a-25c83022887a 2026-02-06 17:19:20,013 - INFO - Validated that VN ctest-vn4-08852797 is not found in API Server 2026-02-06 17:19:20,022 - DEBUG - VN ctest-vn4-08852797 is not present in Agent 10.0.0.50 2026-02-06 17:19:20,022 - INFO - Validated that VN ctest-vn4-08852797 is not in any agent 2026-02-06 17:19:20,038 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08852797 info 2026-02-06 17:19:20,065 - INFO - Deleted policy ctest-policy1-84487570 2026-02-06 17:19:20,227 - DEBUG - policy ctest-policy1-84487570 is not found in API Server 2026-02-06 17:19:20,481 - DEBUG - No XMPP flaps were noticed during the test