2026-02-04 12:26:14,287 - INFO - Domain Default found not creating 2026-02-04 12:26:14,467 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22348585 not found, creating it 2026-02-04 12:26:14,945 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22348585, ID : 1cfb6ca1-11fd-41e1-af6f-3c7dfe7ba013 2026-02-04 12:26:16,571 - INFO - ================================================================================ 2026-02-04 12:26:16,571 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 12:26:16,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-02-04 12:26:16,832 - INFO - Initial checks done. Running the testcase now 2026-02-04 12:26:16,832 - INFO - 2026-02-04 12:26:16,832 - INFO - ================================================================================ 2026-02-04 12:26:16,832 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 12:26:16,833 - 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-04 12:26:17,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-02-04 12:26:17,120 - INFO - Initial checks done. Running the testcase now 2026-02-04 12:26:17,120 - INFO - 2026-02-04 12:26:17,485 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22348585:ctest-vn4-39046238, 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-22348585:ctest-vn4-39046238, 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-22348585:ctest-vn4-39046238, 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-22348585:ctest-vn4-39046238, 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-04 12:26:18,037 - DEBUG - Response for create_network : {'network': {'id': '5c6f2335-835d-4ac1-b344-ad8bfe4525e6', 'name': 'ctest-vn4-39046238', 'tenant_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013', 'project_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22348585', 'ctest-vn4-39046238'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 12:26:18,193 - DEBUG - Response for create_subnet : {'subnet': {'id': '0db5a275-994f-4b9e-bd3a-34e603c96804', 'name': '', 'tenant_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013', 'network_id': '5c6f2335-835d-4ac1-b344-ad8bfe4525e6', 'ip_version': 4, 'cidr': '30.215.206.192/26', 'allocation_pools': [{'start': '30.215.206.194', 'end': '30.215.206.254'}], 'gateway_ip': '30.215.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.215.206.194', 'tags': [], 'project_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013'}} 2026-02-04 12:26:18,385 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c30958e8-b740-476e-8242-4cace6d0a7c4', 'name': '', 'tenant_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013', 'network_id': '5c6f2335-835d-4ac1-b344-ad8bfe4525e6', 'ip_version': 6, 'cidr': '21f6:b810:7496:bf83:7baf:7230::/96', 'allocation_pools': [{'start': '21f6:b810:7496:bf83:7baf:7230:0:2', 'end': '21f6:b810:7496:bf83:7baf:7230:ffff:fffe'}], 'gateway_ip': '21f6:b810:7496:bf83:7baf:7230:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21f6:b810:7496:bf83:7baf:7230:0:2', 'tags': [], 'project_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013'}} 2026-02-04 12:26:18,406 - INFO - Created VN ctest-vn4-39046238 2026-02-04 12:26:18,465 - DEBUG - VN ctest-vn4-39046238 UUID is 5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:18,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c6f2335-835d-4ac1-b344-ad8bfe4525e6', 'name': 'ctest-vn4-39046238', 'tenant_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013', 'project_id': '1cfb6ca111fd41e1af6f3c7dfe7ba013', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0db5a275-994f-4b9e-bd3a-34e603c96804', 'c30958e8-b740-476e-8242-4cace6d0a7c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22348585', 'ctest-vn4-39046238'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22348585', 'ctest-policy1-87486823']], 'subnet_ipam': [{'subnet_cidr': '30.215.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21f6:b810:7496:bf83:7baf:7230::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 12:26:18,853 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 12:26:19,175 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 12:26:19,208 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca164b36-13e7-4168-b12c-78af24e3d5bb 2026-02-04 12:26:19,221 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cfb6ca1-11fd-41e1-af6f-3c7dfe7ba013 2026-02-04 12:26:19,295 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:19,307 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:19,318 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e62979e-b578-46cf-82d5-b91d4f00a2b8 2026-02-04 12:26:19,327 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e62979e-b578-46cf-82d5-b91d4f00a2b8 2026-02-04 12:26:19,335 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c666c3d-243b-4016-8f57-0a455807d075 2026-02-04 12:26:19,343 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 12:26:19,343 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:19,354 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e62979e-b578-46cf-82d5-b91d4f00a2b8 2026-02-04 12:26:19,368 - INFO - Verified VN network id 11 for VN 5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:19,369 - INFO - Verifications in API Server for VN ctest-vn4-39046238 passed 2026-02-04 12:26:19,369 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:19,379 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e62979e-b578-46cf-82d5-b91d4f00a2b8 2026-02-04 12:26:19,387 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e62979e-b578-46cf-82d5-b91d4f00a2b8 2026-02-04 12:26:19,395 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c666c3d-243b-4016-8f57-0a455807d075 2026-02-04 12:26:19,407 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22348585:ctest-vn4-39046238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22348585', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6660581086648421057', 'uuid-lslong': '12917640447983429094'}, 'enable': 'true', 'created': '2026-02-04T12:26:17', 'last-modified': '2026-02-04T12:26:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752924'} 2026-02-04 12:26:19,414 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 12:26:19,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39046238 passed 2026-02-04 12:26:19,414 - DEBUG - ====Verifying policy data for ctest-vn4-39046238 in API_Server ====== 2026-02-04 12:26:19,414 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 12:26:19,421 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca164b36-13e7-4168-b12c-78af24e3d5bb 2026-02-04 12:26:19,435 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cfb6ca1-11fd-41e1-af6f-3c7dfe7ba013 2026-02-04 12:26:19,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c6f2335-835d-4ac1-b344-ad8bfe4525e6 2026-02-04 12:26:19,522 - DEBUG - ==>Verifying data for policy with id: c97e43bc-8019-4f0e-97c8-0ed1a5293cf9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22348585', 'ctest-policy1-87486823'] 2026-02-04 12:26:19,522 - INFO - VN ctest-vn4-39046238 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 12:26:19,522 - DEBUG - Verifying the vn in opserver 2026-02-04 12:26:19,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22348585:ctest-vn4-39046238 virtual network link through opserver 10.0.0.50 2026-02-04 12:26:19,523 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-04 12:26:19,831 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-04 12:26:19,903 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22348585:ctest-vn4-39046238', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22348585:ctest-vn4-39046238?flat'} 2026-02-04 12:26:19,903 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22348585:ctest-vn4-39046238 is found in opserver 2026-02-04 12:26:19,915 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 12:26:19,920 - DEBUG - VRF ids for VN ctest-vn4-39046238: {} 2026-02-04 12:26:19,920 - DEBUG - ====Verifying data for ctest-policy1-87486823 in API_Server ====== 2026-02-04 12:26:19,920 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 12:26:19,926 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca164b36-13e7-4168-b12c-78af24e3d5bb 2026-02-04 12:26:19,939 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cfb6ca1-11fd-41e1-af6f-3c7dfe7ba013 2026-02-04 12:26:20,015 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/c97e43bc-8019-4f0e-97c8-0ed1a5293cf9 2026-02-04 12:26:20,026 - INFO - Verified policy ctest-policy1-87486823 in API Server, Result: True 2026-02-04 12:26:20,026 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 12:26:20,034 - INFO - Deleting VN ctest-vn4-39046238 2026-02-04 12:26:20,156 - DEBUG - Response for deleting network () 2026-02-04 12:26:20,156 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e62979e-b578-46cf-82d5-b91d4f00a2b8 2026-02-04 12:26:20,162 - DEBUG - Response Code: 404 2026-02-04 12:26:20,163 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 12:26:20,170 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca164b36-13e7-4168-b12c-78af24e3d5bb 2026-02-04 12:26:20,222 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cfb6ca1-11fd-41e1-af6f-3c7dfe7ba013 2026-02-04 12:26:20,297 - INFO - Validated that VN ctest-vn4-39046238 is not found in API Server 2026-02-04 12:26:20,307 - DEBUG - VN ctest-vn4-39046238 is not present in Agent 10.0.0.50 2026-02-04 12:26:20,307 - INFO - Validated that VN ctest-vn4-39046238 is not in any agent 2026-02-04 12:26:20,321 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39046238 info 2026-02-04 12:26:20,345 - INFO - Deleted policy ctest-policy1-87486823 2026-02-04 12:26:20,513 - DEBUG - policy ctest-policy1-87486823 is not found in API Server 2026-02-04 12:26:20,771 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 12:26:20,771 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-04 12:26:20,771 - INFO - -------------------------------------------------------------------------------- 2026-02-04 12:26:21,059 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 12:26:21,059 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-04 12:26:21,059 - INFO - -------------------------------------------------------------------------------- 2026-02-04 12:26:21,775 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22348585, ID : 1cfb6ca1-11fd-41e1-af6f-3c7dfe7ba013