2026-04-17 13:16:00,277 - INFO - Domain Default found not creating 2026-04-17 13:16:00,469 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41707635 not found, creating it 2026-04-17 13:16:00,917 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41707635, ID : 640b5047-7df4-4617-bbf8-c7e700a9c9dc 2026-04-17 13:16:02,580 - INFO - ================================================================================ 2026-04-17 13:16:02,580 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 13:16:02,834 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-17 13:16:02,835 - INFO - Initial checks done. Running the testcase now 2026-04-17 13:16:02,836 - INFO - 2026-04-17 13:16:02,836 - INFO - ================================================================================ 2026-04-17 13:16:02,836 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 13:16:02,836 - 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-17 13:16:03,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-17 13:16:03,129 - INFO - Initial checks done. Running the testcase now 2026-04-17 13:16:03,129 - INFO - 2026-04-17 13:16:03,535 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41707635:ctest-vn4-82263344, 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-41707635:ctest-vn4-82263344, 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-41707635:ctest-vn4-82263344, 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-41707635:ctest-vn4-82263344, 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-17 13:16:04,065 - DEBUG - Response for create_network : {'network': {'id': '8198de95-2009-4e9d-b06b-6a3280bb5614', 'name': 'ctest-vn4-82263344', 'tenant_id': '640b50477df44617bbf8c7e700a9c9dc', 'project_id': '640b50477df44617bbf8c7e700a9c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41707635', 'ctest-vn4-82263344'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 13:16:04,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '6404bef7-9ec3-478c-b075-ee30ede1e711', 'name': '', 'tenant_id': '640b50477df44617bbf8c7e700a9c9dc', 'network_id': '8198de95-2009-4e9d-b06b-6a3280bb5614', 'ip_version': 4, 'cidr': '98.114.104.64/26', 'allocation_pools': [{'start': '98.114.104.66', 'end': '98.114.104.126'}], 'gateway_ip': '98.114.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.114.104.66', 'tags': [], 'project_id': '640b50477df44617bbf8c7e700a9c9dc'}} 2026-04-17 13:16:04,372 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be85351c-bef6-451b-8720-25ef8e7a346d', 'name': '', 'tenant_id': '640b50477df44617bbf8c7e700a9c9dc', 'network_id': '8198de95-2009-4e9d-b06b-6a3280bb5614', 'ip_version': 6, 'cidr': '3321:2757:56f2:ec10:cb12:da05::/96', 'allocation_pools': [{'start': '3321:2757:56f2:ec10:cb12:da05:0:2', 'end': '3321:2757:56f2:ec10:cb12:da05:ffff:fffe'}], 'gateway_ip': '3321:2757:56f2:ec10:cb12:da05:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3321:2757:56f2:ec10:cb12:da05:0:2', 'tags': [], 'project_id': '640b50477df44617bbf8c7e700a9c9dc'}} 2026-04-17 13:16:04,394 - INFO - Created VN ctest-vn4-82263344 2026-04-17 13:16:04,448 - DEBUG - VN ctest-vn4-82263344 UUID is 8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:04,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8198de95-2009-4e9d-b06b-6a3280bb5614', 'name': 'ctest-vn4-82263344', 'tenant_id': '640b50477df44617bbf8c7e700a9c9dc', 'project_id': '640b50477df44617bbf8c7e700a9c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6404bef7-9ec3-478c-b075-ee30ede1e711', 'be85351c-bef6-451b-8720-25ef8e7a346d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41707635', 'ctest-vn4-82263344'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41707635', 'ctest-policy1-21230728']], 'subnet_ipam': [{'subnet_cidr': '98.114.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3321:2757:56f2:ec10:cb12:da05::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 13:16:04,820 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 13:16:05,162 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 13:16:05,200 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1 2026-04-17 13:16:05,212 - DEBUG - Requesting: http://10.0.0.38:8082/project/640b5047-7df4-4617-bbf8-c7e700a9c9dc 2026-04-17 13:16:05,285 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:05,297 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:05,307 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ffb94d1f-7b62-426e-97b9-1f0e516b3173 2026-04-17 13:16:05,314 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ffb94d1f-7b62-426e-97b9-1f0e516b3173 2026-04-17 13:16:05,322 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5feec84e-b69c-42ea-8a0d-bb63250faf54 2026-04-17 13:16:05,328 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 13:16:05,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:05,337 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ffb94d1f-7b62-426e-97b9-1f0e516b3173 2026-04-17 13:16:05,352 - INFO - Verified VN network id 11 for VN 8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:05,353 - INFO - Verifications in API Server for VN ctest-vn4-82263344 passed 2026-04-17 13:16:05,353 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:05,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ffb94d1f-7b62-426e-97b9-1f0e516b3173 2026-04-17 13:16:05,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ffb94d1f-7b62-426e-97b9-1f0e516b3173 2026-04-17 13:16:05,377 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5feec84e-b69c-42ea-8a0d-bb63250faf54 2026-04-17 13:16:05,390 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41707635:ctest-vn4-82263344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41707635', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9338458559421697693', 'uuid-lslong': '12712371138324026900'}, 'enable': 'true', 'created': '2026-04-17T13:16:04', 'last-modified': '2026-04-17T13:16:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752441'} 2026-04-17 13:16:05,396 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 13:16:05,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82263344 passed 2026-04-17 13:16:05,396 - DEBUG - ====Verifying policy data for ctest-vn4-82263344 in API_Server ====== 2026-04-17 13:16:05,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 13:16:05,402 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1 2026-04-17 13:16:05,413 - DEBUG - Requesting: http://10.0.0.38:8082/project/640b5047-7df4-4617-bbf8-c7e700a9c9dc 2026-04-17 13:16:05,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8198de95-2009-4e9d-b06b-6a3280bb5614 2026-04-17 13:16:05,490 - DEBUG - ==>Verifying data for policy with id: 5d993b31-77b2-49a7-9df0-14392fe44833, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41707635', 'ctest-policy1-21230728'] 2026-04-17 13:16:05,490 - INFO - VN ctest-vn4-82263344 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 13:16:05,490 - DEBUG - Verifying the vn in opserver 2026-04-17 13:16:05,490 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41707635:ctest-vn4-82263344 virtual network link through opserver 10.0.0.38 2026-04-17 13:16:05,490 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-17 13:16:05,827 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-17 13:16:05,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41707635:ctest-vn4-82263344', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41707635:ctest-vn4-82263344?flat'} 2026-04-17 13:16:05,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41707635:ctest-vn4-82263344 is found in opserver 2026-04-17 13:16:05,902 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 13:16:05,906 - DEBUG - VRF ids for VN ctest-vn4-82263344: {} 2026-04-17 13:16:05,906 - DEBUG - ====Verifying data for ctest-policy1-21230728 in API_Server ====== 2026-04-17 13:16:05,906 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 13:16:05,912 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1 2026-04-17 13:16:05,922 - DEBUG - Requesting: http://10.0.0.38:8082/project/640b5047-7df4-4617-bbf8-c7e700a9c9dc 2026-04-17 13:16:05,988 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5d993b31-77b2-49a7-9df0-14392fe44833 2026-04-17 13:16:05,998 - INFO - Verified policy ctest-policy1-21230728 in API Server, Result: True 2026-04-17 13:16:05,998 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 13:16:06,006 - INFO - Deleting VN ctest-vn4-82263344 2026-04-17 13:16:06,124 - DEBUG - Response for deleting network () 2026-04-17 13:16:06,124 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ffb94d1f-7b62-426e-97b9-1f0e516b3173 2026-04-17 13:16:06,128 - DEBUG - Response Code: 404 2026-04-17 13:16:06,129 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 13:16:06,134 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1 2026-04-17 13:16:06,186 - DEBUG - Requesting: http://10.0.0.38:8082/project/640b5047-7df4-4617-bbf8-c7e700a9c9dc 2026-04-17 13:16:06,261 - INFO - Validated that VN ctest-vn4-82263344 is not found in API Server 2026-04-17 13:16:06,272 - DEBUG - VN ctest-vn4-82263344 is not present in Agent 10.0.0.38 2026-04-17 13:16:06,272 - INFO - Validated that VN ctest-vn4-82263344 is not in any agent 2026-04-17 13:16:06,288 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82263344 info 2026-04-17 13:16:06,317 - INFO - Deleted policy ctest-policy1-21230728 2026-04-17 13:16:06,480 - DEBUG - policy ctest-policy1-21230728 is not found in API Server 2026-04-17 13:16:06,733 - DEBUG - No XMPP flaps were noticed during the test
2026-04-17 13:16:06,734 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-17 13:16:06,734 - INFO - -------------------------------------------------------------------------------- 2026-04-17 13:16:07,025 - DEBUG - No XMPP flaps were noticed during the test
2026-04-17 13:16:07,026 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-17 13:16:07,026 - INFO - -------------------------------------------------------------------------------- 2026-04-17 13:16:07,766 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41707635, ID : 640b5047-7df4-4617-bbf8-c7e700a9c9dc