2026-03-02 02:38:26,348 - INFO - Domain Default found not creating 2026-03-02 02:38:26,530 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57418260 not found, creating it 2026-03-02 02:38:27,141 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57418260, ID : 8555ac12-7bc0-48a4-b589-8c19cd8bb094 2026-03-02 02:38:28,807 - INFO - ================================================================================ 2026-03-02 02:38:28,807 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-02 02:38:30,072 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '3', '10.20.0.193': '3'}, '10.0.0.240': {'10.20.0.254': '3', '10.20.0.193': '0'}} with 2026-03-02 02:38:30,072 - INFO - Initial checks done. Running the testcase now 2026-03-02 02:38:30,072 - INFO - 2026-03-02 02:38:30,072 - INFO - ================================================================================ 2026-03-02 02:38:30,072 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-02 02:38:30,072 - 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-02 02:38:31,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '3', '10.20.0.193': '3'}, '10.0.0.240': {'10.20.0.254': '3', '10.20.0.193': '0'}} with 2026-03-02 02:38:31,353 - INFO - Initial checks done. Running the testcase now 2026-03-02 02:38:31,353 - INFO - 2026-03-02 02:38:31,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867, 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-57418260:ctest-vn4-48161867, 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-57418260:ctest-vn4-48161867, 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-57418260:ctest-vn4-48161867, 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-02 02:38:32,385 - DEBUG - Response for create_network : {'network': {'id': '27b4c65d-cdc2-4b31-815a-3ead82187dc0', 'name': 'ctest-vn4-48161867', 'tenant_id': '8555ac127bc048a4b5898c19cd8bb094', 'project_id': '8555ac127bc048a4b5898c19cd8bb094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'ctest-vn4-48161867'], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:38:32,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '9190f605-6fdf-4d08-8f62-07f19e644718', 'name': '', 'tenant_id': '8555ac127bc048a4b5898c19cd8bb094', 'network_id': '27b4c65d-cdc2-4b31-815a-3ead82187dc0', 'ip_version': 4, 'cidr': '80.9.142.192/26', 'allocation_pools': [{'start': '80.9.142.194', 'end': '80.9.142.254'}], 'gateway_ip': '80.9.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.9.142.194', 'tags': [], 'project_id': '8555ac127bc048a4b5898c19cd8bb094'}} 2026-03-02 02:38:32,904 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c63a82a5-561e-4b06-bea1-60cde14cf074', 'name': '', 'tenant_id': '8555ac127bc048a4b5898c19cd8bb094', 'network_id': '27b4c65d-cdc2-4b31-815a-3ead82187dc0', 'ip_version': 6, 'cidr': '27fc:706b:f616:dc49:f6c9:f576::/96', 'allocation_pools': [{'start': '27fc:706b:f616:dc49:f6c9:f576:0:2', 'end': '27fc:706b:f616:dc49:f6c9:f576:ffff:fffe'}], 'gateway_ip': '27fc:706b:f616:dc49:f6c9:f576:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27fc:706b:f616:dc49:f6c9:f576:0:2', 'tags': [], 'project_id': '8555ac127bc048a4b5898c19cd8bb094'}} 2026-03-02 02:38:32,937 - INFO - Created VN ctest-vn4-48161867 2026-03-02 02:38:32,949 - DEBUG - VN ctest-vn4-48161867 UUID is 27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:33,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27b4c65d-cdc2-4b31-815a-3ead82187dc0', 'name': 'ctest-vn4-48161867', 'tenant_id': '8555ac127bc048a4b5898c19cd8bb094', 'project_id': '8555ac127bc048a4b5898c19cd8bb094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9190f605-6fdf-4d08-8f62-07f19e644718', 'c63a82a5-561e-4b06-bea1-60cde14cf074'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'ctest-vn4-48161867'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'ctest-policy1-36311276']], 'subnet_ipam': [{'subnet_cidr': '80.9.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27fc:706b:f616:dc49:f6c9:f576::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:38:33,301 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:38:33,639 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:38:33,669 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:38:33,684 - DEBUG - Requesting: http://10.0.0.242:8082/project/8555ac12-7bc0-48a4-b589-8c19cd8bb094 2026-03-02 02:38:33,787 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:33,799 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:33,809 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/031cdb79-8873-4c58-b89c-be324ac36325 2026-03-02 02:38:33,815 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/031cdb79-8873-4c58-b89c-be324ac36325 2026-03-02 02:38:33,822 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4287f21d-d680-4392-bcf9-1120d5c3335a 2026-03-02 02:38:33,828 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:38:33,828 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:33,839 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/031cdb79-8873-4c58-b89c-be324ac36325 2026-03-02 02:38:33,857 - INFO - Verified VN network id 15 for VN 27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:33,857 - INFO - Verifications in API Server for VN ctest-vn4-48161867 passed 2026-03-02 02:38:33,857 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:33,868 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/031cdb79-8873-4c58-b89c-be324ac36325 2026-03-02 02:38:33,877 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/031cdb79-8873-4c58-b89c-be324ac36325 2026-03-02 02:38:33,885 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4287f21d-d680-4392-bcf9-1120d5c3335a 2026-03-02 02:38:33,900 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2861129769473428273', 'uuid-lslong': '9320831293729570240'}, 'enable': 'true', 'created': '2026-03-02T02:38:32', 'last-modified': '2026-03-02T02:38:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781479'} 2026-03-02 02:38:33,906 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:38:33,912 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2861129769473428273', 'uuid-lslong': '9320831293729570240'}, 'enable': 'true', 'created': '2026-03-02T02:38:32', 'last-modified': '2026-03-02T02:38:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.794125'} 2026-03-02 02:38:33,918 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:38:33,923 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2861129769473428273', 'uuid-lslong': '9320831293729570240'}, 'enable': 'true', 'created': '2026-03-02T02:38:32', 'last-modified': '2026-03-02T02:38:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.800929'} 2026-03-02 02:38:33,928 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:38:33,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48161867 passed 2026-03-02 02:38:33,929 - DEBUG - ====Verifying policy data for ctest-vn4-48161867 in API_Server ====== 2026-03-02 02:38:33,929 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:38:33,934 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:38:33,946 - DEBUG - Requesting: http://10.0.0.242:8082/project/8555ac12-7bc0-48a4-b589-8c19cd8bb094 2026-03-02 02:38:34,047 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/27b4c65d-cdc2-4b31-815a-3ead82187dc0 2026-03-02 02:38:34,062 - DEBUG - ==>Verifying data for policy with id: 7a98dc2e-1a8f-456c-b264-2d5caa5455c2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57418260', 'ctest-policy1-36311276'] 2026-03-02 02:38:34,062 - INFO - VN ctest-vn4-48161867 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-02 02:38:34,062 - DEBUG - Verifying the vn in opserver 2026-03-02 02:38:34,063 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867 virtual network link through opserver 10.0.0.242 2026-03-02 02:38:34,063 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-02 02:38:34,397 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-02 02:38:34,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867?flat'} 2026-03-02 02:38:34,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867 virtual network link through opserver 10.0.0.27 2026-03-02 02:38:34,455 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-02 02:38:34,786 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-02 02:38:34,845 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867?flat'} 2026-03-02 02:38:34,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867 virtual network link through opserver 10.0.0.23 2026-03-02 02:38:34,846 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-02 02:38:35,176 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-02 02:38:35,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867?flat'} 2026-03-02 02:38:35,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57418260:ctest-vn4-48161867 is found in opserver 2026-03-02 02:38:35,256 - DEBUG - Do not have enough data to verify VN in agent 2026-03-02 02:38:35,266 - DEBUG - VRF ids for VN ctest-vn4-48161867: {} 2026-03-02 02:38:35,266 - DEBUG - ====Verifying data for ctest-policy1-36311276 in API_Server ====== 2026-03-02 02:38:35,266 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:38:35,272 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:38:35,284 - DEBUG - Requesting: http://10.0.0.242:8082/project/8555ac12-7bc0-48a4-b589-8c19cd8bb094 2026-03-02 02:38:35,384 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/7a98dc2e-1a8f-456c-b264-2d5caa5455c2 2026-03-02 02:38:35,394 - INFO - Verified policy ctest-policy1-36311276 in API Server, Result: True 2026-03-02 02:38:35,394 - INFO - Done with setup and verification, moving onto test .. 2026-03-02 02:38:35,404 - INFO - Deleting VN ctest-vn4-48161867 2026-03-02 02:38:35,596 - DEBUG - Response for deleting network () 2026-03-02 02:38:35,596 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/031cdb79-8873-4c58-b89c-be324ac36325 2026-03-02 02:38:35,607 - DEBUG - Response Code: 404 2026-03-02 02:38:35,607 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:38:35,614 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:38:35,668 - DEBUG - Requesting: http://10.0.0.242:8082/project/8555ac12-7bc0-48a4-b589-8c19cd8bb094 2026-03-02 02:38:35,763 - INFO - Validated that VN ctest-vn4-48161867 is not found in API Server 2026-03-02 02:38:35,773 - DEBUG - VN ctest-vn4-48161867 is not present in Agent 10.0.0.41 2026-03-02 02:38:35,784 - DEBUG - VN ctest-vn4-48161867 is not present in Agent 10.0.0.240 2026-03-02 02:38:35,784 - INFO - Validated that VN ctest-vn4-48161867 is not in any agent 2026-03-02 02:38:35,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48161867 info 2026-03-02 02:38:35,856 - INFO - Deleted policy ctest-policy1-36311276 2026-03-02 02:38:36,054 - DEBUG - policy ctest-policy1-36311276 is not found in API Server 2026-03-02 02:38:37,327 - DEBUG - No XMPP flaps were noticed during the test 2026-03-02 02:38:37,327 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-03-02 02:38:37,327 - INFO - -------------------------------------------------------------------------------- 2026-03-02 02:38:38,595 - DEBUG - No XMPP flaps were noticed during the test 2026-03-02 02:38:38,595 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-03-02 02:38:38,595 - INFO - -------------------------------------------------------------------------------- 2026-03-02 02:38:39,399 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57418260, ID : 8555ac12-7bc0-48a4-b589-8c19cd8bb094