2026-04-06 02:14:30,486 - INFO - Domain Default found not creating 2026-04-06 02:14:30,656 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38153332 not found, creating it 2026-04-06 02:14:31,125 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38153332, ID : cc782f13-1880-485f-885d-49ae0e49fb01 2026-04-06 02:14:32,620 - INFO - ================================================================================ 2026-04-06 02:14:32,620 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-06 02:14:32,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-04-06 02:14:32,884 - INFO - Initial checks done. Running the testcase now 2026-04-06 02:14:32,884 - INFO - 2026-04-06 02:14:32,884 - INFO - ================================================================================ 2026-04-06 02:14:32,884 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-06 02:14:32,884 - 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-04-06 02:14:33,174 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-04-06 02:14:33,174 - INFO - Initial checks done. Running the testcase now 2026-04-06 02:14:33,174 - INFO - 2026-04-06 02:14:33,532 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38153332:ctest-vn4-38640152, 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-38153332:ctest-vn4-38640152, 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-38153332:ctest-vn4-38640152, 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-38153332:ctest-vn4-38640152, 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-04-06 02:14:34,046 - DEBUG - Response for create_network : {'network': {'id': '6e18aa1a-7b89-4a9e-987f-9873a5f393ce', 'name': 'ctest-vn4-38640152', 'tenant_id': 'cc782f131880485f885d49ae0e49fb01', 'project_id': 'cc782f131880485f885d49ae0e49fb01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38153332', 'ctest-vn4-38640152'], 'port_security_enabled': True, 'description': ''}} 2026-04-06 02:14:34,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '2aab7387-dbc8-474f-b47a-f0e4e81f80c8', 'name': '', 'tenant_id': 'cc782f131880485f885d49ae0e49fb01', 'network_id': '6e18aa1a-7b89-4a9e-987f-9873a5f393ce', 'ip_version': 4, 'cidr': '98.110.165.64/26', 'allocation_pools': [{'start': '98.110.165.66', 'end': '98.110.165.126'}], 'gateway_ip': '98.110.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.110.165.66', 'tags': [], 'project_id': 'cc782f131880485f885d49ae0e49fb01'}} 2026-04-06 02:14:34,433 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c09a0bd-c013-4631-9660-8d302ddf8636', 'name': '', 'tenant_id': 'cc782f131880485f885d49ae0e49fb01', 'network_id': '6e18aa1a-7b89-4a9e-987f-9873a5f393ce', 'ip_version': 6, 'cidr': '3164:eab8:33ac:646d:91d7:1398::/96', 'allocation_pools': [{'start': '3164:eab8:33ac:646d:91d7:1398:0:2', 'end': '3164:eab8:33ac:646d:91d7:1398:ffff:fffe'}], 'gateway_ip': '3164:eab8:33ac:646d:91d7:1398:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3164:eab8:33ac:646d:91d7:1398:0:2', 'tags': [], 'project_id': 'cc782f131880485f885d49ae0e49fb01'}} 2026-04-06 02:14:34,454 - INFO - Created VN ctest-vn4-38640152 2026-04-06 02:14:34,506 - DEBUG - VN ctest-vn4-38640152 UUID is 6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:34,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e18aa1a-7b89-4a9e-987f-9873a5f393ce', 'name': 'ctest-vn4-38640152', 'tenant_id': 'cc782f131880485f885d49ae0e49fb01', 'project_id': 'cc782f131880485f885d49ae0e49fb01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2aab7387-dbc8-474f-b47a-f0e4e81f80c8', '2c09a0bd-c013-4631-9660-8d302ddf8636'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38153332', 'ctest-vn4-38640152'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38153332', 'ctest-policy1-80099201']], 'subnet_ipam': [{'subnet_cidr': '98.110.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3164:eab8:33ac:646d:91d7:1398::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-06 02:14:34,882 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-06 02:14:35,182 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-06 02:14:35,219 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c 2026-04-06 02:14:35,231 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc782f13-1880-485f-885d-49ae0e49fb01 2026-04-06 02:14:35,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:35,309 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:35,318 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf4e7b04-83e6-4695-822c-1ccbef497cf2 2026-04-06 02:14:35,324 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf4e7b04-83e6-4695-822c-1ccbef497cf2 2026-04-06 02:14:35,330 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3d3c8366-7686-4492-8851-8cd0d1afb5f1 2026-04-06 02:14:35,335 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:14:35,335 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:35,344 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf4e7b04-83e6-4695-822c-1ccbef497cf2 2026-04-06 02:14:35,356 - INFO - Verified VN network id 11 for VN 6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:35,356 - INFO - Verifications in API Server for VN ctest-vn4-38640152 passed 2026-04-06 02:14:35,356 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:35,365 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf4e7b04-83e6-4695-822c-1ccbef497cf2 2026-04-06 02:14:35,372 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf4e7b04-83e6-4695-822c-1ccbef497cf2 2026-04-06 02:14:35,379 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3d3c8366-7686-4492-8851-8cd0d1afb5f1 2026-04-06 02:14:35,392 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38153332:ctest-vn4-38640152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38153332', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7933277774331595422', 'uuid-lslong': '10988669238280164302'}, 'enable': 'true', 'created': '2026-04-06T02:14:34', 'last-modified': '2026-04-06T02:14:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695900'} 2026-04-06 02:14:35,399 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:14:35,399 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38640152 passed 2026-04-06 02:14:35,399 - DEBUG - ====Verifying policy data for ctest-vn4-38640152 in API_Server ====== 2026-04-06 02:14:35,399 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-06 02:14:35,404 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c 2026-04-06 02:14:35,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc782f13-1880-485f-885d-49ae0e49fb01 2026-04-06 02:14:35,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e18aa1a-7b89-4a9e-987f-9873a5f393ce 2026-04-06 02:14:35,501 - DEBUG - ==>Verifying data for policy with id: 5eb91eea-f7e7-44d7-be69-15ce1731106a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38153332', 'ctest-policy1-80099201'] 2026-04-06 02:14:35,501 - INFO - VN ctest-vn4-38640152 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-06 02:14:35,501 - DEBUG - Verifying the vn in opserver 2026-04-06 02:14:35,501 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38153332:ctest-vn4-38640152 virtual network link through opserver 10.0.0.50 2026-04-06 02:14:35,501 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-06 02:14:35,801 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-06 02:14:35,883 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38153332:ctest-vn4-38640152', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38153332:ctest-vn4-38640152?flat'} 2026-04-06 02:14:35,883 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38153332:ctest-vn4-38640152 is found in opserver 2026-04-06 02:14:35,893 - DEBUG - Do not have enough data to verify VN in agent 2026-04-06 02:14:35,898 - DEBUG - VRF ids for VN ctest-vn4-38640152: {} 2026-04-06 02:14:35,899 - DEBUG - ====Verifying data for ctest-policy1-80099201 in API_Server ====== 2026-04-06 02:14:35,899 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-06 02:14:35,904 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c 2026-04-06 02:14:35,915 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc782f13-1880-485f-885d-49ae0e49fb01 2026-04-06 02:14:35,992 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5eb91eea-f7e7-44d7-be69-15ce1731106a 2026-04-06 02:14:36,010 - INFO - Verified policy ctest-policy1-80099201 in API Server, Result: True 2026-04-06 02:14:36,011 - INFO - Done with setup and verification, moving onto test .. 2026-04-06 02:14:36,019 - INFO - Deleting VN ctest-vn4-38640152 2026-04-06 02:14:36,169 - DEBUG - Response for deleting network () 2026-04-06 02:14:36,169 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf4e7b04-83e6-4695-822c-1ccbef497cf2 2026-04-06 02:14:36,174 - DEBUG - Response Code: 404 2026-04-06 02:14:36,175 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-06 02:14:36,181 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d154584e-de37-43e7-b89e-4db1b50c982c 2026-04-06 02:14:36,239 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc782f13-1880-485f-885d-49ae0e49fb01 2026-04-06 02:14:36,308 - INFO - Validated that VN ctest-vn4-38640152 is not found in API Server 2026-04-06 02:14:36,317 - DEBUG - VN ctest-vn4-38640152 is not present in Agent 10.0.0.50 2026-04-06 02:14:36,317 - INFO - Validated that VN ctest-vn4-38640152 is not in any agent 2026-04-06 02:14:36,332 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38640152 info 2026-04-06 02:14:36,357 - INFO - Deleted policy ctest-policy1-80099201 2026-04-06 02:14:36,521 - DEBUG - policy ctest-policy1-80099201 is not found in API Server 2026-04-06 02:14:36,780 - DEBUG - No XMPP flaps were noticed during the test
2026-04-06 02:14:36,780 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-06 02:14:36,780 - INFO - -------------------------------------------------------------------------------- 2026-04-06 02:14:37,075 - DEBUG - No XMPP flaps were noticed during the test
2026-04-06 02:14:37,075 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-06 02:14:37,075 - INFO - -------------------------------------------------------------------------------- 2026-04-06 02:14:37,815 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38153332, ID : cc782f13-1880-485f-885d-49ae0e49fb01