2026-01-19 14:53:34,208 - INFO - Domain Default found not creating 2026-01-19 14:53:34,373 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61522169 not found, creating it 2026-01-19 14:53:34,810 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61522169, ID : 3ab58d56-4346-4f74-a1ab-de6bb5c5bd5f 2026-01-19 14:53:36,254 - INFO - ================================================================================ 2026-01-19 14:53:36,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 14:53:36,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-19 14:53:36,506 - INFO - Initial checks done. Running the testcase now 2026-01-19 14:53:36,506 - INFO - 2026-01-19 14:53:36,507 - INFO - ================================================================================ 2026-01-19 14:53:36,507 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 14:53:36,507 - 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-19 14:53:36,799 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-19 14:53:36,799 - INFO - Initial checks done. Running the testcase now 2026-01-19 14:53:36,799 - INFO - 2026-01-19 14:53:37,156 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61522169:ctest-vn4-60299938, 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-61522169:ctest-vn4-60299938, 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-61522169:ctest-vn4-60299938, 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-61522169:ctest-vn4-60299938, 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-19 14:53:37,671 - DEBUG - Response for create_network : {'network': {'id': '8ecc3d10-01ed-42d1-a920-2050649d25c0', 'name': 'ctest-vn4-60299938', 'tenant_id': '3ab58d5643464f74a1abde6bb5c5bd5f', 'project_id': '3ab58d5643464f74a1abde6bb5c5bd5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61522169', 'ctest-vn4-60299938'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 14:53:37,828 - DEBUG - Response for create_subnet : {'subnet': {'id': '63e4f97d-f407-4180-8919-969a7ceb2796', 'name': '', 'tenant_id': '3ab58d5643464f74a1abde6bb5c5bd5f', 'network_id': '8ecc3d10-01ed-42d1-a920-2050649d25c0', 'ip_version': 4, 'cidr': '55.196.158.0/26', 'allocation_pools': [{'start': '55.196.158.2', 'end': '55.196.158.62'}], 'gateway_ip': '55.196.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.196.158.2', 'tags': [], 'project_id': '3ab58d5643464f74a1abde6bb5c5bd5f'}} 2026-01-19 14:53:37,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '0313d127-bff0-4e43-84ca-073a79a8ca66', 'name': '', 'tenant_id': '3ab58d5643464f74a1abde6bb5c5bd5f', 'network_id': '8ecc3d10-01ed-42d1-a920-2050649d25c0', 'ip_version': 6, 'cidr': '3223:90d5:f58b:c4af:464b:2413::/96', 'allocation_pools': [{'start': '3223:90d5:f58b:c4af:464b:2413:0:2', 'end': '3223:90d5:f58b:c4af:464b:2413:ffff:fffe'}], 'gateway_ip': '3223:90d5:f58b:c4af:464b:2413:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3223:90d5:f58b:c4af:464b:2413:0:2', 'tags': [], 'project_id': '3ab58d5643464f74a1abde6bb5c5bd5f'}} 2026-01-19 14:53:38,003 - INFO - Created VN ctest-vn4-60299938 2026-01-19 14:53:38,057 - DEBUG - VN ctest-vn4-60299938 UUID is 8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,246 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ecc3d10-01ed-42d1-a920-2050649d25c0', 'name': 'ctest-vn4-60299938', 'tenant_id': '3ab58d5643464f74a1abde6bb5c5bd5f', 'project_id': '3ab58d5643464f74a1abde6bb5c5bd5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63e4f97d-f407-4180-8919-969a7ceb2796', '0313d127-bff0-4e43-84ca-073a79a8ca66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61522169', 'ctest-vn4-60299938'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61522169', 'ctest-policy1-70452969']], 'subnet_ipam': [{'subnet_cidr': '55.196.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3223:90d5:f58b:c4af:464b:2413::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 14:53:38,404 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-19 14:53:38,696 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-19 14:53:38,726 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0acbe9a7-85d7-45e3-b449-63f6bcca2564 2026-01-19 14:53:38,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ab58d56-4346-4f74-a1ab-de6bb5c5bd5f 2026-01-19 14:53:38,804 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,815 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c96efcf9-806f-4f36-ba2c-fcd67fbc1d93 2026-01-19 14:53:38,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c96efcf9-806f-4f36-ba2c-fcd67fbc1d93 2026-01-19 14:53:38,838 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/360163a7-32de-48e4-96e7-a96c7e28b703 2026-01-19 14:53:38,844 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 14:53:38,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c96efcf9-806f-4f36-ba2c-fcd67fbc1d93 2026-01-19 14:53:38,864 - INFO - Verified VN network id 11 for VN 8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,864 - INFO - Verifications in API Server for VN ctest-vn4-60299938 passed 2026-01-19 14:53:38,864 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c96efcf9-806f-4f36-ba2c-fcd67fbc1d93 2026-01-19 14:53:38,880 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c96efcf9-806f-4f36-ba2c-fcd67fbc1d93 2026-01-19 14:53:38,886 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/360163a7-32de-48e4-96e7-a96c7e28b703 2026-01-19 14:53:38,897 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61522169:ctest-vn4-60299938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61522169', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10289666387595838161', 'uuid-lslong': '12186776121322055104'}, 'enable': 'true', 'created': '2026-01-19T14:53:37', 'last-modified': '2026-01-19T14:53:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673093'} 2026-01-19 14:53:38,902 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 14:53:38,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60299938 passed 2026-01-19 14:53:38,902 - DEBUG - ====Verifying policy data for ctest-vn4-60299938 in API_Server ====== 2026-01-19 14:53:38,902 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-19 14:53:38,908 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0acbe9a7-85d7-45e3-b449-63f6bcca2564 2026-01-19 14:53:38,919 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ab58d56-4346-4f74-a1ab-de6bb5c5bd5f 2026-01-19 14:53:38,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ecc3d10-01ed-42d1-a920-2050649d25c0 2026-01-19 14:53:38,998 - DEBUG - ==>Verifying data for policy with id: aa3a51e4-394b-45c8-a69c-34d9605d12a1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61522169', 'ctest-policy1-70452969'] 2026-01-19 14:53:38,998 - INFO - VN ctest-vn4-60299938 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 14:53:38,999 - DEBUG - Verifying the vn in opserver 2026-01-19 14:53:38,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61522169:ctest-vn4-60299938 virtual network link through opserver 10.0.0.38 2026-01-19 14:53:38,999 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-19 14:53:39,294 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-19 14:53:39,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61522169:ctest-vn4-60299938', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61522169:ctest-vn4-60299938?flat'} 2026-01-19 14:53:39,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61522169:ctest-vn4-60299938 is found in opserver 2026-01-19 14:53:39,661 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 14:53:39,665 - DEBUG - VRF ids for VN ctest-vn4-60299938: {} 2026-01-19 14:53:39,665 - DEBUG - ====Verifying data for ctest-policy1-70452969 in API_Server ====== 2026-01-19 14:53:39,665 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-19 14:53:39,671 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0acbe9a7-85d7-45e3-b449-63f6bcca2564 2026-01-19 14:53:39,681 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ab58d56-4346-4f74-a1ab-de6bb5c5bd5f 2026-01-19 14:53:39,754 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/aa3a51e4-394b-45c8-a69c-34d9605d12a1 2026-01-19 14:53:39,763 - INFO - Verified policy ctest-policy1-70452969 in API Server, Result: True 2026-01-19 14:53:39,763 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 14:53:39,770 - INFO - Deleting VN ctest-vn4-60299938 2026-01-19 14:53:39,891 - DEBUG - Response for deleting network () 2026-01-19 14:53:39,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c96efcf9-806f-4f36-ba2c-fcd67fbc1d93 2026-01-19 14:53:39,897 - DEBUG - Response Code: 404 2026-01-19 14:53:39,897 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-19 14:53:39,904 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0acbe9a7-85d7-45e3-b449-63f6bcca2564 2026-01-19 14:53:39,961 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ab58d56-4346-4f74-a1ab-de6bb5c5bd5f 2026-01-19 14:53:40,041 - INFO - Validated that VN ctest-vn4-60299938 is not found in API Server 2026-01-19 14:53:40,051 - DEBUG - VN ctest-vn4-60299938 is not present in Agent 10.0.0.38 2026-01-19 14:53:40,051 - INFO - Validated that VN ctest-vn4-60299938 is not in any agent 2026-01-19 14:53:40,067 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60299938 info 2026-01-19 14:53:40,090 - INFO - Deleted policy ctest-policy1-70452969 2026-01-19 14:53:40,252 - DEBUG - policy ctest-policy1-70452969 is not found in API Server 2026-01-19 14:53:40,505 - DEBUG - No XMPP flaps were noticed during the test 2026-01-19 14:53:40,506 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-19 14:53:40,506 - INFO - -------------------------------------------------------------------------------- 2026-01-19 14:53:40,801 - DEBUG - No XMPP flaps were noticed during the test 2026-01-19 14:53:40,801 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-19 14:53:40,801 - INFO - -------------------------------------------------------------------------------- 2026-01-19 14:53:41,500 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61522169, ID : 3ab58d56-4346-4f74-a1ab-de6bb5c5bd5f