2026-01-08 17:21:38,943 - INFO - Domain Default found not creating 2026-01-08 17:21:39,080 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81222126 not found, creating it 2026-01-08 17:21:39,497 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81222126, ID : d725b95c-06a7-45a2-a3d5-6f259649e7af 2026-01-08 17:21:40,853 - INFO - ================================================================================ 2026-01-08 17:21:40,853 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 17:21:41,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-08 17:21:41,111 - INFO - Initial checks done. Running the testcase now 2026-01-08 17:21:41,111 - INFO - 2026-01-08 17:21:41,111 - INFO - ================================================================================ 2026-01-08 17:21:41,111 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 17:21:41,111 - 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-08 17:21:41,401 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-08 17:21:41,401 - INFO - Initial checks done. Running the testcase now 2026-01-08 17:21:41,402 - INFO - 2026-01-08 17:21:41,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81222126:ctest-vn4-56630078, 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-81222126:ctest-vn4-56630078, 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-81222126:ctest-vn4-56630078, 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-81222126:ctest-vn4-56630078, 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-08 17:21:42,220 - DEBUG - Response for create_network : {'network': {'id': '1c44c53c-5f39-4ddf-8c97-f16231e9fa57', 'name': 'ctest-vn4-56630078', 'tenant_id': 'd725b95c06a745a2a3d56f259649e7af', 'project_id': 'd725b95c06a745a2a3d56f259649e7af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81222126', 'ctest-vn4-56630078'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 17:21:42,369 - DEBUG - Response for create_subnet : {'subnet': {'id': '09733b73-7268-41a8-86e0-4c8c6eca287d', 'name': '', 'tenant_id': 'd725b95c06a745a2a3d56f259649e7af', 'network_id': '1c44c53c-5f39-4ddf-8c97-f16231e9fa57', 'ip_version': 4, 'cidr': '101.84.204.192/26', 'allocation_pools': [{'start': '101.84.204.194', 'end': '101.84.204.254'}], 'gateway_ip': '101.84.204.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.84.204.194', 'tags': [], 'project_id': 'd725b95c06a745a2a3d56f259649e7af'}} 2026-01-08 17:21:42,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '67fcd335-05c0-4a42-9f23-0be0609af97d', 'name': '', 'tenant_id': 'd725b95c06a745a2a3d56f259649e7af', 'network_id': '1c44c53c-5f39-4ddf-8c97-f16231e9fa57', 'ip_version': 6, 'cidr': '2d28:e8b5:33be:38b9:52df:3b7e::/96', 'allocation_pools': [{'start': '2d28:e8b5:33be:38b9:52df:3b7e:0:2', 'end': '2d28:e8b5:33be:38b9:52df:3b7e:ffff:fffe'}], 'gateway_ip': '2d28:e8b5:33be:38b9:52df:3b7e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d28:e8b5:33be:38b9:52df:3b7e:0:2', 'tags': [], 'project_id': 'd725b95c06a745a2a3d56f259649e7af'}} 2026-01-08 17:21:42,568 - INFO - Created VN ctest-vn4-56630078 2026-01-08 17:21:42,618 - DEBUG - VN ctest-vn4-56630078 UUID is 1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:42,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c44c53c-5f39-4ddf-8c97-f16231e9fa57', 'name': 'ctest-vn4-56630078', 'tenant_id': 'd725b95c06a745a2a3d56f259649e7af', 'project_id': 'd725b95c06a745a2a3d56f259649e7af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09733b73-7268-41a8-86e0-4c8c6eca287d', '67fcd335-05c0-4a42-9f23-0be0609af97d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81222126', 'ctest-vn4-56630078'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81222126', 'ctest-policy1-87560222']], 'subnet_ipam': [{'subnet_cidr': '101.84.204.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d28:e8b5:33be:38b9:52df:3b7e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 17:21:42,954 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 17:21:43,241 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 17:21:43,265 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3 2026-01-08 17:21:43,275 - DEBUG - Requesting: http://10.0.0.38:8082/project/d725b95c-06a7-45a2-a3d5-6f259649e7af 2026-01-08 17:21:43,344 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:43,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:43,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c17d7499-fc9b-4d9e-9767-78d892a9e539 2026-01-08 17:21:43,368 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c17d7499-fc9b-4d9e-9767-78d892a9e539 2026-01-08 17:21:43,373 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0372bfc2-d28e-49a8-952a-9b99cb7ede01 2026-01-08 17:21:43,378 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 17:21:43,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:43,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c17d7499-fc9b-4d9e-9767-78d892a9e539 2026-01-08 17:21:43,401 - INFO - Verified VN network id 12 for VN 1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:43,401 - INFO - Verifications in API Server for VN ctest-vn4-56630078 passed 2026-01-08 17:21:43,401 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:43,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c17d7499-fc9b-4d9e-9767-78d892a9e539 2026-01-08 17:21:43,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c17d7499-fc9b-4d9e-9767-78d892a9e539 2026-01-08 17:21:43,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0372bfc2-d28e-49a8-952a-9b99cb7ede01 2026-01-08 17:21:43,430 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81222126:ctest-vn4-56630078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81222126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2036969794564607455', 'uuid-lslong': '10130831290839726679'}, 'enable': 'true', 'created': '2026-01-08T17:21:42', 'last-modified': '2026-01-08T17:21:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661762'} 2026-01-08 17:21:43,435 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 17:21:43,435 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56630078 passed 2026-01-08 17:21:43,436 - DEBUG - ====Verifying policy data for ctest-vn4-56630078 in API_Server ====== 2026-01-08 17:21:43,436 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 17:21:43,442 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3 2026-01-08 17:21:43,450 - DEBUG - Requesting: http://10.0.0.38:8082/project/d725b95c-06a7-45a2-a3d5-6f259649e7af 2026-01-08 17:21:43,525 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c44c53c-5f39-4ddf-8c97-f16231e9fa57 2026-01-08 17:21:43,532 - DEBUG - ==>Verifying data for policy with id: bb7b3cee-fb51-45ca-b255-c71ba7f9d8ec, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81222126', 'ctest-policy1-87560222'] 2026-01-08 17:21:43,532 - INFO - VN ctest-vn4-56630078 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 17:21:43,533 - DEBUG - Verifying the vn in opserver 2026-01-08 17:21:43,533 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81222126:ctest-vn4-56630078 virtual network link through opserver 10.0.0.38 2026-01-08 17:21:43,533 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-08 17:21:43,821 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-08 17:21:43,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81222126:ctest-vn4-56630078', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81222126:ctest-vn4-56630078?flat'} 2026-01-08 17:21:43,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81222126:ctest-vn4-56630078 is found in opserver 2026-01-08 17:21:43,880 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 17:21:43,884 - DEBUG - VRF ids for VN ctest-vn4-56630078: {} 2026-01-08 17:21:43,884 - DEBUG - ====Verifying data for ctest-policy1-87560222 in API_Server ====== 2026-01-08 17:21:43,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 17:21:43,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3 2026-01-08 17:21:43,897 - DEBUG - Requesting: http://10.0.0.38:8082/project/d725b95c-06a7-45a2-a3d5-6f259649e7af 2026-01-08 17:21:43,963 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/bb7b3cee-fb51-45ca-b255-c71ba7f9d8ec 2026-01-08 17:21:43,970 - INFO - Verified policy ctest-policy1-87560222 in API Server, Result: True 2026-01-08 17:21:43,970 - INFO - Done with setup and verification, moving onto test .. 2026-01-08 17:21:43,976 - INFO - Deleting VN ctest-vn4-56630078 2026-01-08 17:21:44,075 - DEBUG - Response for deleting network () 2026-01-08 17:21:44,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c17d7499-fc9b-4d9e-9767-78d892a9e539 2026-01-08 17:21:44,079 - DEBUG - Response Code: 404 2026-01-08 17:21:44,079 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 17:21:44,083 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3 2026-01-08 17:21:44,138 - DEBUG - Requesting: http://10.0.0.38:8082/project/d725b95c-06a7-45a2-a3d5-6f259649e7af 2026-01-08 17:21:44,203 - INFO - Validated that VN ctest-vn4-56630078 is not found in API Server 2026-01-08 17:21:44,211 - DEBUG - VN ctest-vn4-56630078 is not present in Agent 10.0.0.38 2026-01-08 17:21:44,211 - INFO - Validated that VN ctest-vn4-56630078 is not in any agent 2026-01-08 17:21:44,222 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56630078 info 2026-01-08 17:21:44,240 - INFO - Deleted policy ctest-policy1-87560222 2026-01-08 17:21:44,414 - DEBUG - policy ctest-policy1-87560222 is not found in API Server 2026-01-08 17:21:44,662 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 17:21:44,662 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-01-08 17:21:44,662 - INFO - -------------------------------------------------------------------------------- 2026-01-08 17:21:44,950 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 17:21:44,950 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-08 17:21:44,950 - INFO - -------------------------------------------------------------------------------- 2026-01-08 17:21:45,588 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81222126, ID : d725b95c-06a7-45a2-a3d5-6f259649e7af