2026-06-20 01:23:51,364 - INFO - Domain Default found not creating 2026-06-20 01:23:51,496 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64343056 not found, creating it 2026-06-20 01:23:51,917 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64343056, ID : a59052a0-dbbe-4dab-9ac4-a140e03a1ce8 2026-06-20 01:23:53,390 - INFO - ================================================================================ 2026-06-20 01:23:53,390 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-20 01:23:53,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-06-20 01:23:53,659 - INFO - Initial checks done. Running the testcase now 2026-06-20 01:23:53,659 - INFO - 2026-06-20 01:23:53,659 - INFO - ================================================================================ 2026-06-20 01:23:53,659 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-20 01:23:53,659 - 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-06-20 01:23:53,966 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-06-20 01:23:53,966 - INFO - Initial checks done. Running the testcase now 2026-06-20 01:23:53,966 - INFO - 2026-06-20 01:23:54,333 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64343056:ctest-vn4-33086481, 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-64343056:ctest-vn4-33086481, 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-64343056:ctest-vn4-33086481, 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-64343056:ctest-vn4-33086481, 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-06-20 01:23:54,808 - DEBUG - Response for create_network : {'network': {'id': '46e91173-2619-44af-b3c8-d426abccfa5d', 'name': 'ctest-vn4-33086481', 'tenant_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8', 'project_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64343056', 'ctest-vn4-33086481'], 'port_security_enabled': True, 'description': ''}} 2026-06-20 01:23:55,015 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c2f5b36-f654-4295-9b06-73b3486f8e89', 'name': '', 'tenant_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8', 'network_id': '46e91173-2619-44af-b3c8-d426abccfa5d', 'ip_version': 4, 'cidr': '31.50.157.0/26', 'allocation_pools': [{'start': '31.50.157.2', 'end': '31.50.157.62'}], 'gateway_ip': '31.50.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.50.157.2', 'tags': [], 'project_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8'}} 2026-06-20 01:23:55,198 - DEBUG - Response for create_subnet : {'subnet': {'id': '740a2370-7473-4eff-b60d-1ca74e802ff0', 'name': '', 'tenant_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8', 'network_id': '46e91173-2619-44af-b3c8-d426abccfa5d', 'ip_version': 6, 'cidr': '24e3:8a65:3086:6008:e1a:b844::/96', 'allocation_pools': [{'start': '24e3:8a65:3086:6008:e1a:b844:0:2', 'end': '24e3:8a65:3086:6008:e1a:b844:ffff:fffe'}], 'gateway_ip': '24e3:8a65:3086:6008:e1a:b844:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24e3:8a65:3086:6008:e1a:b844:0:2', 'tags': [], 'project_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8'}} 2026-06-20 01:23:55,213 - INFO - Created VN ctest-vn4-33086481 2026-06-20 01:23:55,261 - DEBUG - VN ctest-vn4-33086481 UUID is 46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:55,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46e91173-2619-44af-b3c8-d426abccfa5d', 'name': 'ctest-vn4-33086481', 'tenant_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8', 'project_id': 'a59052a0dbbe4dab9ac4a140e03a1ce8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c2f5b36-f654-4295-9b06-73b3486f8e89', '740a2370-7473-4eff-b60d-1ca74e802ff0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64343056', 'ctest-vn4-33086481'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64343056', 'ctest-policy1-07266917']], 'subnet_ipam': [{'subnet_cidr': '31.50.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24e3:8a65:3086:6008:e1a:b844::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-20 01:23:55,605 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-20 01:23:55,919 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-20 01:23:55,943 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ffeb8130-d1cb-4e59-98ba-1731818c45d2 2026-06-20 01:23:55,957 - DEBUG - Requesting: http://10.0.0.19:8082/project/a59052a0-dbbe-4dab-9ac4-a140e03a1ce8 2026-06-20 01:23:56,025 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:56,037 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:56,046 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/63604907-6b06-4018-a19d-a31f016eea26 2026-06-20 01:23:56,052 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/63604907-6b06-4018-a19d-a31f016eea26 2026-06-20 01:23:56,058 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/cc098ace-9f05-4310-824b-42cac14f2061 2026-06-20 01:23:56,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-20 01:23:56,063 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:56,071 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/63604907-6b06-4018-a19d-a31f016eea26 2026-06-20 01:23:56,084 - INFO - Verified VN network id 11 for VN 46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:56,084 - INFO - Verifications in API Server for VN ctest-vn4-33086481 passed 2026-06-20 01:23:56,085 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:56,093 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/63604907-6b06-4018-a19d-a31f016eea26 2026-06-20 01:23:56,099 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/63604907-6b06-4018-a19d-a31f016eea26 2026-06-20 01:23:56,105 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/cc098ace-9f05-4310-824b-42cac14f2061 2026-06-20 01:23:56,114 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64343056:ctest-vn4-33086481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64343056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5109634438486639791', 'uuid-lslong': '12954837590687414877'}, 'enable': 'true', 'created': '2026-06-20T01:23:54', 'last-modified': '2026-06-20T01:23:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700279'} 2026-06-20 01:23:56,119 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-20 01:23:56,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33086481 passed 2026-06-20 01:23:56,119 - DEBUG - ====Verifying policy data for ctest-vn4-33086481 in API_Server ====== 2026-06-20 01:23:56,120 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-20 01:23:56,125 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ffeb8130-d1cb-4e59-98ba-1731818c45d2 2026-06-20 01:23:56,136 - DEBUG - Requesting: http://10.0.0.19:8082/project/a59052a0-dbbe-4dab-9ac4-a140e03a1ce8 2026-06-20 01:23:56,206 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46e91173-2619-44af-b3c8-d426abccfa5d 2026-06-20 01:23:56,218 - DEBUG - ==>Verifying data for policy with id: ac292b04-bdfb-43b6-8f5e-cd472662fc18, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64343056', 'ctest-policy1-07266917'] 2026-06-20 01:23:56,218 - INFO - VN ctest-vn4-33086481 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-20 01:23:56,218 - DEBUG - Verifying the vn in opserver 2026-06-20 01:23:56,218 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64343056:ctest-vn4-33086481 virtual network link through opserver 10.0.0.19 2026-06-20 01:23:56,218 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-20 01:23:56,534 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-20 01:23:56,578 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64343056:ctest-vn4-33086481', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64343056:ctest-vn4-33086481?flat'} 2026-06-20 01:23:56,578 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64343056:ctest-vn4-33086481 is found in opserver 2026-06-20 01:23:56,587 - DEBUG - Do not have enough data to verify VN in agent 2026-06-20 01:23:56,591 - DEBUG - VRF ids for VN ctest-vn4-33086481: {} 2026-06-20 01:23:56,591 - DEBUG - ====Verifying data for ctest-policy1-07266917 in API_Server ====== 2026-06-20 01:23:56,591 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-20 01:23:56,596 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ffeb8130-d1cb-4e59-98ba-1731818c45d2 2026-06-20 01:23:56,606 - DEBUG - Requesting: http://10.0.0.19:8082/project/a59052a0-dbbe-4dab-9ac4-a140e03a1ce8 2026-06-20 01:23:56,686 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/ac292b04-bdfb-43b6-8f5e-cd472662fc18 2026-06-20 01:23:56,695 - INFO - Verified policy ctest-policy1-07266917 in API Server, Result: True 2026-06-20 01:23:56,695 - INFO - Done with setup and verification, moving onto test .. 2026-06-20 01:23:56,701 - INFO - Deleting VN ctest-vn4-33086481 2026-06-20 01:23:56,814 - DEBUG - Response for deleting network () 2026-06-20 01:23:56,814 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/63604907-6b06-4018-a19d-a31f016eea26 2026-06-20 01:23:56,818 - DEBUG - Response Code: 404 2026-06-20 01:23:56,818 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-20 01:23:56,823 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ffeb8130-d1cb-4e59-98ba-1731818c45d2 2026-06-20 01:23:56,875 - DEBUG - Requesting: http://10.0.0.19:8082/project/a59052a0-dbbe-4dab-9ac4-a140e03a1ce8 2026-06-20 01:23:56,948 - INFO - Validated that VN ctest-vn4-33086481 is not found in API Server 2026-06-20 01:23:56,957 - DEBUG - VN ctest-vn4-33086481 is not present in Agent 10.0.0.19 2026-06-20 01:23:56,957 - INFO - Validated that VN ctest-vn4-33086481 is not in any agent 2026-06-20 01:23:56,968 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33086481 info 2026-06-20 01:23:56,991 - INFO - Deleted policy ctest-policy1-07266917 2026-06-20 01:23:57,153 - DEBUG - policy ctest-policy1-07266917 is not found in API Server 2026-06-20 01:23:57,409 - DEBUG - No XMPP flaps were noticed during the test 2026-06-20 01:23:57,409 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-20 01:23:57,410 - INFO - -------------------------------------------------------------------------------- 2026-06-20 01:23:57,713 - DEBUG - No XMPP flaps were noticed during the test 2026-06-20 01:23:57,713 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-20 01:23:57,713 - INFO - -------------------------------------------------------------------------------- 2026-06-20 01:23:58,399 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64343056, ID : a59052a0-dbbe-4dab-9ac4-a140e03a1ce8