2026-03-09 02:25:43,834 - INFO - Domain Default found not creating 2026-03-09 02:25:44,029 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99846624 not found, creating it 2026-03-09 02:25:44,568 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99846624, ID : c8befb93-6cd9-40e9-af8b-d8dca812938b 2026-03-09 02:25:46,072 - INFO - ================================================================================ 2026-03-09 02:25:46,072 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-09 02:25:47,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2026-03-09 02:25:47,342 - INFO - Initial checks done. Running the testcase now 2026-03-09 02:25:47,342 - INFO - 2026-03-09 02:25:47,342 - INFO - ================================================================================ 2026-03-09 02:25:47,342 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-09 02:25:47,342 - 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-03-09 02:25:48,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2026-03-09 02:25:48,606 - INFO - Initial checks done. Running the testcase now 2026-03-09 02:25:48,606 - INFO - 2026-03-09 02:25:48,970 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420, 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-99846624:ctest-vn4-67215420, 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-99846624:ctest-vn4-67215420, 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-99846624:ctest-vn4-67215420, 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-03-09 02:25:49,566 - DEBUG - Response for create_network : {'network': {'id': '2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776', 'name': 'ctest-vn4-67215420', 'tenant_id': 'c8befb936cd940e9af8bd8dca812938b', 'project_id': 'c8befb936cd940e9af8bd8dca812938b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'ctest-vn4-67215420'], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:25:49,842 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1ed0e11-2351-41d8-9841-789edc6f250f', 'name': '', 'tenant_id': 'c8befb936cd940e9af8bd8dca812938b', 'network_id': '2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776', 'ip_version': 4, 'cidr': '23.216.44.128/26', 'allocation_pools': [{'start': '23.216.44.130', 'end': '23.216.44.190'}], 'gateway_ip': '23.216.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.216.44.130', 'tags': [], 'project_id': 'c8befb936cd940e9af8bd8dca812938b'}} 2026-03-09 02:25:50,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d393d1a-5751-4162-ac2f-9a02015b2c96', 'name': '', 'tenant_id': 'c8befb936cd940e9af8bd8dca812938b', 'network_id': '2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776', 'ip_version': 6, 'cidr': '35d6:3714:7908:f651:8b84:5ed1::/96', 'allocation_pools': [{'start': '35d6:3714:7908:f651:8b84:5ed1:0:2', 'end': '35d6:3714:7908:f651:8b84:5ed1:ffff:fffe'}], 'gateway_ip': '35d6:3714:7908:f651:8b84:5ed1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35d6:3714:7908:f651:8b84:5ed1:0:2', 'tags': [], 'project_id': 'c8befb936cd940e9af8bd8dca812938b'}} 2026-03-09 02:25:50,091 - INFO - Created VN ctest-vn4-67215420 2026-03-09 02:25:50,103 - DEBUG - VN ctest-vn4-67215420 UUID is 2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:50,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776', 'name': 'ctest-vn4-67215420', 'tenant_id': 'c8befb936cd940e9af8bd8dca812938b', 'project_id': 'c8befb936cd940e9af8bd8dca812938b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1ed0e11-2351-41d8-9841-789edc6f250f', '3d393d1a-5751-4162-ac2f-9a02015b2c96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'ctest-vn4-67215420'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'ctest-policy1-43665273']], 'subnet_ipam': [{'subnet_cidr': '23.216.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35d6:3714:7908:f651:8b84:5ed1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:25:50,430 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:25:50,731 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:25:50,762 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:25:50,778 - DEBUG - Requesting: http://10.0.0.22:8082/project/c8befb93-6cd9-40e9-af8b-d8dca812938b 2026-03-09 02:25:50,870 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:50,886 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:50,898 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6c6331fc-8284-46aa-af05-03f17d97722e 2026-03-09 02:25:50,906 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6c6331fc-8284-46aa-af05-03f17d97722e 2026-03-09 02:25:50,913 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d59aa60c-2cbc-4b1a-8660-c585f0bc0415 2026-03-09 02:25:50,921 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:25:50,921 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:50,931 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6c6331fc-8284-46aa-af05-03f17d97722e 2026-03-09 02:25:50,946 - INFO - Verified VN network id 10 for VN 2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:50,946 - INFO - Verifications in API Server for VN ctest-vn4-67215420 passed 2026-03-09 02:25:50,946 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:50,956 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6c6331fc-8284-46aa-af05-03f17d97722e 2026-03-09 02:25:50,965 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6c6331fc-8284-46aa-af05-03f17d97722e 2026-03-09 02:25:50,972 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d59aa60c-2cbc-4b1a-8660-c585f0bc0415 2026-03-09 02:25:50,985 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3218412293867258528', 'uuid-lslong': '11292950463221749622'}, 'enable': 'true', 'created': '2026-03-09T02:25:49', 'last-modified': '2026-03-09T02:25:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710926'} 2026-03-09 02:25:50,991 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:25:50,997 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3218412293867258528', 'uuid-lslong': '11292950463221749622'}, 'enable': 'true', 'created': '2026-03-09T02:25:49', 'last-modified': '2026-03-09T02:25:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719293'} 2026-03-09 02:25:51,003 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:25:51,008 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3218412293867258528', 'uuid-lslong': '11292950463221749622'}, 'enable': 'true', 'created': '2026-03-09T02:25:49', 'last-modified': '2026-03-09T02:25:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735383'} 2026-03-09 02:25:51,014 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:25:51,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67215420 passed 2026-03-09 02:25:51,014 - DEBUG - ====Verifying policy data for ctest-vn4-67215420 in API_Server ====== 2026-03-09 02:25:51,014 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:25:51,020 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:25:51,030 - DEBUG - Requesting: http://10.0.0.22:8082/project/c8befb93-6cd9-40e9-af8b-d8dca812938b 2026-03-09 02:25:51,114 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2caa18ed-ecb5-42a0-9cb8-9e9d1a6a5776 2026-03-09 02:25:51,125 - DEBUG - ==>Verifying data for policy with id: e05b4fd3-8612-46cb-a811-37621a5d1873, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99846624', 'ctest-policy1-43665273'] 2026-03-09 02:25:51,125 - INFO - VN ctest-vn4-67215420 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-09 02:25:51,125 - DEBUG - Verifying the vn in opserver 2026-03-09 02:25:51,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420 virtual network link through opserver 10.0.0.22 2026-03-09 02:25:51,125 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-09 02:25:51,417 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-09 02:25:51,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420?flat'} 2026-03-09 02:25:51,479 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420 virtual network link through opserver 10.0.0.249 2026-03-09 02:25:51,479 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-09 02:25:51,782 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-09 02:25:51,849 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420?flat'} 2026-03-09 02:25:51,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420 virtual network link through opserver 10.0.0.23 2026-03-09 02:25:51,849 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-09 02:25:52,143 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-09 02:25:52,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420?flat'} 2026-03-09 02:25:52,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99846624:ctest-vn4-67215420 is found in opserver 2026-03-09 02:25:52,233 - DEBUG - Do not have enough data to verify VN in agent 2026-03-09 02:25:52,244 - DEBUG - VRF ids for VN ctest-vn4-67215420: {} 2026-03-09 02:25:52,244 - DEBUG - ====Verifying data for ctest-policy1-43665273 in API_Server ====== 2026-03-09 02:25:52,244 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:25:52,251 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:25:52,263 - DEBUG - Requesting: http://10.0.0.22:8082/project/c8befb93-6cd9-40e9-af8b-d8dca812938b 2026-03-09 02:25:52,355 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/e05b4fd3-8612-46cb-a811-37621a5d1873 2026-03-09 02:25:52,364 - INFO - Verified policy ctest-policy1-43665273 in API Server, Result: True 2026-03-09 02:25:52,364 - INFO - Done with setup and verification, moving onto test .. 2026-03-09 02:25:52,375 - INFO - Deleting VN ctest-vn4-67215420 2026-03-09 02:25:52,600 - DEBUG - Response for deleting network () 2026-03-09 02:25:52,600 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6c6331fc-8284-46aa-af05-03f17d97722e 2026-03-09 02:25:52,607 - DEBUG - Response Code: 404 2026-03-09 02:25:52,607 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:25:52,613 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:25:52,623 - DEBUG - Requesting: http://10.0.0.22:8082/project/c8befb93-6cd9-40e9-af8b-d8dca812938b 2026-03-09 02:25:52,709 - INFO - Validated that VN ctest-vn4-67215420 is not found in API Server 2026-03-09 02:25:52,720 - DEBUG - VN ctest-vn4-67215420 is not present in Agent 10.0.0.41 2026-03-09 02:25:52,731 - DEBUG - VN ctest-vn4-67215420 is not present in Agent 10.0.0.27 2026-03-09 02:25:52,731 - INFO - Validated that VN ctest-vn4-67215420 is not in any agent 2026-03-09 02:25:52,760 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67215420 info 2026-03-09 02:25:52,796 - INFO - Deleted policy ctest-policy1-43665273 2026-03-09 02:25:52,976 - DEBUG - policy ctest-policy1-43665273 is not found in API Server 2026-03-09 02:25:54,242 - DEBUG - No XMPP flaps were noticed during the test 2026-03-09 02:25:54,242 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-03-09 02:25:54,242 - INFO - -------------------------------------------------------------------------------- 2026-03-09 02:25:55,522 - DEBUG - No XMPP flaps were noticed during the test 2026-03-09 02:25:55,522 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-03-09 02:25:55,522 - INFO - -------------------------------------------------------------------------------- 2026-03-09 02:25:56,222 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-99846624, ID : c8befb93-6cd9-40e9-af8b-d8dca812938b