2026-01-14 15:09:43,382 - INFO - Domain Default found not creating 2026-01-14 15:09:43,545 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93226530 not found, creating it 2026-01-14 15:09:44,015 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93226530, ID : 928fe88a-af39-4473-aef0-6ce5d6a8fcde 2026-01-14 15:09:45,542 - INFO - ================================================================================ 2026-01-14 15:09:45,542 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-14 15:09:45,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-14 15:09:45,808 - INFO - Initial checks done. Running the testcase now 2026-01-14 15:09:45,808 - INFO - 2026-01-14 15:09:45,808 - INFO - ================================================================================ 2026-01-14 15:09:45,808 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-14 15:09:45,808 - 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-14 15:09:46,092 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-14 15:09:46,092 - INFO - Initial checks done. Running the testcase now 2026-01-14 15:09:46,092 - INFO - 2026-01-14 15:09:46,442 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93226530:ctest-vn4-89702361, 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-93226530:ctest-vn4-89702361, 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-93226530:ctest-vn4-89702361, 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-93226530:ctest-vn4-89702361, 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-14 15:09:46,948 - DEBUG - Response for create_network : {'network': {'id': '4920af46-8842-4e89-a5d6-e360be0b4c76', 'name': 'ctest-vn4-89702361', 'tenant_id': '928fe88aaf394473aef06ce5d6a8fcde', 'project_id': '928fe88aaf394473aef06ce5d6a8fcde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93226530', 'ctest-vn4-89702361'], 'port_security_enabled': True, 'description': ''}} 2026-01-14 15:09:47,124 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7c56e26-4764-44ef-abed-c44639690a3e', 'name': '', 'tenant_id': '928fe88aaf394473aef06ce5d6a8fcde', 'network_id': '4920af46-8842-4e89-a5d6-e360be0b4c76', 'ip_version': 4, 'cidr': '149.77.245.0/26', 'allocation_pools': [{'start': '149.77.245.2', 'end': '149.77.245.62'}], 'gateway_ip': '149.77.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.77.245.2', 'tags': [], 'project_id': '928fe88aaf394473aef06ce5d6a8fcde'}} 2026-01-14 15:09:47,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '34988e4f-9594-4946-936e-ddc7bd6e77ab', 'name': '', 'tenant_id': '928fe88aaf394473aef06ce5d6a8fcde', 'network_id': '4920af46-8842-4e89-a5d6-e360be0b4c76', 'ip_version': 6, 'cidr': '27de:e60b:36df:9dd2:a254:fcfb::/96', 'allocation_pools': [{'start': '27de:e60b:36df:9dd2:a254:fcfb:0:2', 'end': '27de:e60b:36df:9dd2:a254:fcfb:ffff:fffe'}], 'gateway_ip': '27de:e60b:36df:9dd2:a254:fcfb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27de:e60b:36df:9dd2:a254:fcfb:0:2', 'tags': [], 'project_id': '928fe88aaf394473aef06ce5d6a8fcde'}} 2026-01-14 15:09:47,312 - INFO - Created VN ctest-vn4-89702361 2026-01-14 15:09:47,366 - DEBUG - VN ctest-vn4-89702361 UUID is 4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:47,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4920af46-8842-4e89-a5d6-e360be0b4c76', 'name': 'ctest-vn4-89702361', 'tenant_id': '928fe88aaf394473aef06ce5d6a8fcde', 'project_id': '928fe88aaf394473aef06ce5d6a8fcde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7c56e26-4764-44ef-abed-c44639690a3e', '34988e4f-9594-4946-936e-ddc7bd6e77ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93226530', 'ctest-vn4-89702361'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93226530', 'ctest-policy1-05273867']], 'subnet_ipam': [{'subnet_cidr': '149.77.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27de:e60b:36df:9dd2:a254:fcfb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-14 15:09:47,734 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-14 15:09:48,042 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-14 15:09:48,079 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54 2026-01-14 15:09:48,092 - DEBUG - Requesting: http://10.0.0.22:8082/project/928fe88a-af39-4473-aef0-6ce5d6a8fcde 2026-01-14 15:09:48,163 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:48,177 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:48,189 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce92c732-38ed-4d9a-a957-b6b322097472 2026-01-14 15:09:48,196 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce92c732-38ed-4d9a-a957-b6b322097472 2026-01-14 15:09:48,203 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43a5f717-2bd6-43cb-befb-a7ac33d2ef49 2026-01-14 15:09:48,210 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-14 15:09:48,210 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:48,218 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce92c732-38ed-4d9a-a957-b6b322097472 2026-01-14 15:09:48,233 - INFO - Verified VN network id 11 for VN 4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:48,233 - INFO - Verifications in API Server for VN ctest-vn4-89702361 passed 2026-01-14 15:09:48,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:48,244 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce92c732-38ed-4d9a-a957-b6b322097472 2026-01-14 15:09:48,250 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce92c732-38ed-4d9a-a957-b6b322097472 2026-01-14 15:09:48,257 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43a5f717-2bd6-43cb-befb-a7ac33d2ef49 2026-01-14 15:09:48,269 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93226530:ctest-vn4-89702361', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93226530', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5269404281492098697', 'uuid-lslong': '11949988665918966902'}, 'enable': 'true', 'created': '2026-01-14T15:09:46', 'last-modified': '2026-01-14T15:09:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729396'} 2026-01-14 15:09:48,277 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-14 15:09:48,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89702361 passed 2026-01-14 15:09:48,278 - DEBUG - ====Verifying policy data for ctest-vn4-89702361 in API_Server ====== 2026-01-14 15:09:48,278 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-14 15:09:48,285 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54 2026-01-14 15:09:48,297 - DEBUG - Requesting: http://10.0.0.22:8082/project/928fe88a-af39-4473-aef0-6ce5d6a8fcde 2026-01-14 15:09:48,367 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4920af46-8842-4e89-a5d6-e360be0b4c76 2026-01-14 15:09:48,377 - DEBUG - ==>Verifying data for policy with id: 75f13b65-53a5-4adf-8423-e6b1bbbb5878, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93226530', 'ctest-policy1-05273867'] 2026-01-14 15:09:48,377 - INFO - VN ctest-vn4-89702361 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-14 15:09:48,377 - DEBUG - Verifying the vn in opserver 2026-01-14 15:09:48,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93226530:ctest-vn4-89702361 virtual network link through opserver 10.0.0.22 2026-01-14 15:09:48,377 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-14 15:09:48,671 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-14 15:09:48,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93226530:ctest-vn4-89702361', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93226530:ctest-vn4-89702361?flat'} 2026-01-14 15:09:48,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93226530:ctest-vn4-89702361 is found in opserver 2026-01-14 15:09:48,740 - DEBUG - Do not have enough data to verify VN in agent 2026-01-14 15:09:48,745 - DEBUG - VRF ids for VN ctest-vn4-89702361: {} 2026-01-14 15:09:48,745 - DEBUG - ====Verifying data for ctest-policy1-05273867 in API_Server ====== 2026-01-14 15:09:48,745 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-14 15:09:48,750 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54 2026-01-14 15:09:48,761 - DEBUG - Requesting: http://10.0.0.22:8082/project/928fe88a-af39-4473-aef0-6ce5d6a8fcde 2026-01-14 15:09:48,832 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/75f13b65-53a5-4adf-8423-e6b1bbbb5878 2026-01-14 15:09:48,841 - INFO - Verified policy ctest-policy1-05273867 in API Server, Result: True 2026-01-14 15:09:48,841 - INFO - Done with setup and verification, moving onto test .. 2026-01-14 15:09:48,848 - INFO - Deleting VN ctest-vn4-89702361 2026-01-14 15:09:48,954 - DEBUG - Response for deleting network () 2026-01-14 15:09:48,954 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce92c732-38ed-4d9a-a957-b6b322097472 2026-01-14 15:09:48,959 - DEBUG - Response Code: 404 2026-01-14 15:09:48,959 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-14 15:09:48,964 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54 2026-01-14 15:09:49,015 - DEBUG - Requesting: http://10.0.0.22:8082/project/928fe88a-af39-4473-aef0-6ce5d6a8fcde 2026-01-14 15:09:49,088 - INFO - Validated that VN ctest-vn4-89702361 is not found in API Server 2026-01-14 15:09:49,097 - DEBUG - VN ctest-vn4-89702361 is not present in Agent 10.0.0.22 2026-01-14 15:09:49,097 - INFO - Validated that VN ctest-vn4-89702361 is not in any agent 2026-01-14 15:09:49,110 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89702361 info 2026-01-14 15:09:49,136 - INFO - Deleted policy ctest-policy1-05273867 2026-01-14 15:09:49,302 - DEBUG - policy ctest-policy1-05273867 is not found in API Server 2026-01-14 15:09:49,556 - DEBUG - No XMPP flaps were noticed during the test