2026-05-28 15:58:27,541 - INFO - Domain Default found not creating 2026-05-28 15:58:27,721 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68036134 not found, creating it 2026-05-28 15:58:28,338 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68036134, ID : fe0954fe-8480-4538-9f46-54f703519095 2026-05-28 15:58:29,825 - INFO - ================================================================================ 2026-05-28 15:58:29,825 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 15:58:31,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.73': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2026-05-28 15:58:31,129 - INFO - Initial checks done. Running the testcase now 2026-05-28 15:58:31,129 - INFO - 2026-05-28 15:58:31,129 - INFO - ================================================================================ 2026-05-28 15:58:31,129 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 15:58:31,129 - 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-05-28 15:58:32,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.73': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2026-05-28 15:58:32,431 - INFO - Initial checks done. Running the testcase now 2026-05-28 15:58:32,431 - INFO - 2026-05-28 15:58:32,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690, 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-68036134:ctest-vn4-36377690, 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-68036134:ctest-vn4-36377690, 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-68036134:ctest-vn4-36377690, 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-05-28 15:58:33,470 - DEBUG - Response for create_network : {'network': {'id': '90320c2c-3193-471c-bc01-e36e3315bb34', 'name': 'ctest-vn4-36377690', 'tenant_id': 'fe0954fe848045389f4654f703519095', 'project_id': 'fe0954fe848045389f4654f703519095', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'ctest-vn4-36377690'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 15:58:33,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b359b81c-993c-4b6c-b23f-1383b242304a', 'name': '', 'tenant_id': 'fe0954fe848045389f4654f703519095', 'network_id': '90320c2c-3193-471c-bc01-e36e3315bb34', 'ip_version': 4, 'cidr': '36.53.57.64/26', 'allocation_pools': [{'start': '36.53.57.66', 'end': '36.53.57.126'}], 'gateway_ip': '36.53.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.53.57.66', 'tags': [], 'project_id': 'fe0954fe848045389f4654f703519095'}} 2026-05-28 15:58:34,001 - DEBUG - Response for create_subnet : {'subnet': {'id': '408f0267-5b76-41a5-96d0-5d4d2e774f79', 'name': '', 'tenant_id': 'fe0954fe848045389f4654f703519095', 'network_id': '90320c2c-3193-471c-bc01-e36e3315bb34', 'ip_version': 6, 'cidr': '3372:47cd:46c7:7b10:8f28:f59a::/96', 'allocation_pools': [{'start': '3372:47cd:46c7:7b10:8f28:f59a:0:2', 'end': '3372:47cd:46c7:7b10:8f28:f59a:ffff:fffe'}], 'gateway_ip': '3372:47cd:46c7:7b10:8f28:f59a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3372:47cd:46c7:7b10:8f28:f59a:0:2', 'tags': [], 'project_id': 'fe0954fe848045389f4654f703519095'}} 2026-05-28 15:58:34,030 - INFO - Created VN ctest-vn4-36377690 2026-05-28 15:58:34,047 - DEBUG - VN ctest-vn4-36377690 UUID is 90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:34,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90320c2c-3193-471c-bc01-e36e3315bb34', 'name': 'ctest-vn4-36377690', 'tenant_id': 'fe0954fe848045389f4654f703519095', 'project_id': 'fe0954fe848045389f4654f703519095', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b359b81c-993c-4b6c-b23f-1383b242304a', '408f0267-5b76-41a5-96d0-5d4d2e774f79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'ctest-vn4-36377690'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'ctest-policy1-37439447']], 'subnet_ipam': [{'subnet_cidr': '36.53.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3372:47cd:46c7:7b10:8f28:f59a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 15:58:34,379 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-28 15:58:34,674 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-28 15:58:34,706 - DEBUG - Requesting: http://10.0.0.23:8082/domain/91e0a21d-5e29-457b-800b-759f9f8a74a1 2026-05-28 15:58:34,724 - DEBUG - Requesting: http://10.0.0.23:8082/project/fe0954fe-8480-4538-9f46-54f703519095 2026-05-28 15:58:34,845 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:34,861 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:34,872 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e15985d7-2da7-42da-83ff-eda9543fe118 2026-05-28 15:58:34,883 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e15985d7-2da7-42da-83ff-eda9543fe118 2026-05-28 15:58:34,892 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0b132711-2411-478f-b893-30ac63a62d14 2026-05-28 15:58:34,901 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 15:58:34,901 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:34,912 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e15985d7-2da7-42da-83ff-eda9543fe118 2026-05-28 15:58:34,933 - INFO - Verified VN network id 13 for VN 90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:34,933 - INFO - Verifications in API Server for VN ctest-vn4-36377690 passed 2026-05-28 15:58:34,934 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:34,946 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e15985d7-2da7-42da-83ff-eda9543fe118 2026-05-28 15:58:34,955 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e15985d7-2da7-42da-83ff-eda9543fe118 2026-05-28 15:58:34,964 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0b132711-2411-478f-b893-30ac63a62d14 2026-05-28 15:58:34,978 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10390380674246985500', 'uuid-lslong': '13547359216550132532'}, 'enable': 'true', 'created': '2026-05-28T15:58:33', 'last-modified': '2026-05-28T15:58:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746065'} 2026-05-28 15:58:34,987 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 15:58:34,994 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10390380674246985500', 'uuid-lslong': '13547359216550132532'}, 'enable': 'true', 'created': '2026-05-28T15:58:33', 'last-modified': '2026-05-28T15:58:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762386'} 2026-05-28 15:58:35,000 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 15:58:35,006 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10390380674246985500', 'uuid-lslong': '13547359216550132532'}, 'enable': 'true', 'created': '2026-05-28T15:58:33', 'last-modified': '2026-05-28T15:58:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778080'} 2026-05-28 15:58:35,013 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 15:58:35,013 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36377690 passed 2026-05-28 15:58:35,013 - DEBUG - ====Verifying policy data for ctest-vn4-36377690 in API_Server ====== 2026-05-28 15:58:35,014 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-28 15:58:35,020 - DEBUG - Requesting: http://10.0.0.23:8082/domain/91e0a21d-5e29-457b-800b-759f9f8a74a1 2026-05-28 15:58:35,033 - DEBUG - Requesting: http://10.0.0.23:8082/project/fe0954fe-8480-4538-9f46-54f703519095 2026-05-28 15:58:35,142 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90320c2c-3193-471c-bc01-e36e3315bb34 2026-05-28 15:58:35,154 - DEBUG - ==>Verifying data for policy with id: e25fc013-aae2-4b6c-9bab-f8f5189dc8af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68036134', 'ctest-policy1-37439447'] 2026-05-28 15:58:35,154 - INFO - VN ctest-vn4-36377690 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 15:58:35,154 - DEBUG - Verifying the vn in opserver 2026-05-28 15:58:35,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690 virtual network link through opserver 10.0.0.23 2026-05-28 15:58:35,155 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-28 15:58:35,449 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-28 15:58:35,512 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690?flat'} 2026-05-28 15:58:35,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690 virtual network link through opserver 10.0.0.22 2026-05-28 15:58:35,512 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-28 15:58:35,808 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-28 15:58:35,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690?flat'} 2026-05-28 15:58:35,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690 virtual network link through opserver 10.0.0.33 2026-05-28 15:58:35,870 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-28 15:58:36,168 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-28 15:58:36,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690?flat'} 2026-05-28 15:58:36,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68036134:ctest-vn4-36377690 is found in opserver 2026-05-28 15:58:36,264 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 15:58:36,285 - DEBUG - VRF ids for VN ctest-vn4-36377690: {} 2026-05-28 15:58:36,285 - DEBUG - ====Verifying data for ctest-policy1-37439447 in API_Server ====== 2026-05-28 15:58:36,285 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-28 15:58:36,291 - DEBUG - Requesting: http://10.0.0.23:8082/domain/91e0a21d-5e29-457b-800b-759f9f8a74a1 2026-05-28 15:58:36,303 - DEBUG - Requesting: http://10.0.0.23:8082/project/fe0954fe-8480-4538-9f46-54f703519095 2026-05-28 15:58:36,417 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/e25fc013-aae2-4b6c-9bab-f8f5189dc8af 2026-05-28 15:58:36,429 - INFO - Verified policy ctest-policy1-37439447 in API Server, Result: True 2026-05-28 15:58:36,429 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 15:58:36,441 - INFO - Deleting VN ctest-vn4-36377690 2026-05-28 15:58:36,653 - DEBUG - Response for deleting network () 2026-05-28 15:58:36,653 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e15985d7-2da7-42da-83ff-eda9543fe118 2026-05-28 15:58:36,666 - DEBUG - Response Code: 404 2026-05-28 15:58:36,666 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-28 15:58:36,673 - DEBUG - Requesting: http://10.0.0.23:8082/domain/91e0a21d-5e29-457b-800b-759f9f8a74a1 2026-05-28 15:58:36,729 - DEBUG - Requesting: http://10.0.0.23:8082/project/fe0954fe-8480-4538-9f46-54f703519095 2026-05-28 15:58:36,822 - INFO - Validated that VN ctest-vn4-36377690 is not found in API Server 2026-05-28 15:58:36,838 - DEBUG - VN ctest-vn4-36377690 is not present in Agent 10.0.0.130 2026-05-28 15:58:36,852 - DEBUG - VN ctest-vn4-36377690 is not present in Agent 10.0.0.73 2026-05-28 15:58:36,852 - INFO - Validated that VN ctest-vn4-36377690 is not in any agent 2026-05-28 15:58:36,892 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36377690 info 2026-05-28 15:58:36,936 - INFO - Deleted policy ctest-policy1-37439447 2026-05-28 15:58:37,127 - DEBUG - policy ctest-policy1-37439447 is not found in API Server 2026-05-28 15:58:38,449 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 15:58:38,449 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-05-28 15:58:38,449 - INFO - -------------------------------------------------------------------------------- 2026-05-28 15:58:39,748 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 15:58:39,748 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-05-28 15:58:39,748 - INFO - -------------------------------------------------------------------------------- 2026-05-28 15:58:40,544 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-68036134, ID : fe0954fe-8480-4538-9f46-54f703519095