2026-09-30 16:20:59,739 - INFO - Domain Default found not creating 2026-09-30 16:20:59,885 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65078374 not found, creating it 2026-09-30 16:21:00,360 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65078374, ID : 1d5abe3b-df09-436d-8eec-b1923f11acb8 2026-09-30 16:21:01,877 - INFO - ================================================================================ 2026-09-30 16:21:01,878 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 16:21:02,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-30 16:21:02,150 - INFO - Initial checks done. Running the testcase now 2026-09-30 16:21:02,150 - INFO - 2026-09-30 16:21:02,150 - INFO - ================================================================================ 2026-09-30 16:21:02,150 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 16:21:02,150 - 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-09-30 16:21:02,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-30 16:21:02,430 - INFO - Initial checks done. Running the testcase now 2026-09-30 16:21:02,430 - INFO - 2026-09-30 16:21:02,770 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65078374:ctest-vn4-43224771, 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-65078374:ctest-vn4-43224771, 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-65078374:ctest-vn4-43224771, 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-65078374:ctest-vn4-43224771, 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-09-30 16:21:03,268 - DEBUG - Response for create_network : {'network': {'id': 'd69d8f8f-7879-45bc-831f-6b27889a3d0c', 'name': 'ctest-vn4-43224771', 'tenant_id': '1d5abe3bdf09436d8eecb1923f11acb8', 'project_id': '1d5abe3bdf09436d8eecb1923f11acb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65078374', 'ctest-vn4-43224771'], 'port_security_enabled': True, 'description': ''}} 2026-09-30 16:21:03,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddbf6ad3-a8f4-4ec4-9fa2-220c9f0094d8', 'name': '', 'tenant_id': '1d5abe3bdf09436d8eecb1923f11acb8', 'network_id': 'd69d8f8f-7879-45bc-831f-6b27889a3d0c', 'ip_version': 4, 'cidr': '102.209.188.64/26', 'allocation_pools': [{'start': '102.209.188.66', 'end': '102.209.188.126'}], 'gateway_ip': '102.209.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.209.188.66', 'tags': [], 'project_id': '1d5abe3bdf09436d8eecb1923f11acb8'}} 2026-09-30 16:21:03,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d5630e8-bd71-47c1-9655-30f399812bce', 'name': '', 'tenant_id': '1d5abe3bdf09436d8eecb1923f11acb8', 'network_id': 'd69d8f8f-7879-45bc-831f-6b27889a3d0c', 'ip_version': 6, 'cidr': '309c:5543:c5ac:4f60:d292:cf6b::/96', 'allocation_pools': [{'start': '309c:5543:c5ac:4f60:d292:cf6b:0:2', 'end': '309c:5543:c5ac:4f60:d292:cf6b:ffff:fffe'}], 'gateway_ip': '309c:5543:c5ac:4f60:d292:cf6b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '309c:5543:c5ac:4f60:d292:cf6b:0:2', 'tags': [], 'project_id': '1d5abe3bdf09436d8eecb1923f11acb8'}} 2026-09-30 16:21:03,706 - INFO - Created VN ctest-vn4-43224771 2026-09-30 16:21:03,758 - DEBUG - VN ctest-vn4-43224771 UUID is d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:03,944 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd69d8f8f-7879-45bc-831f-6b27889a3d0c', 'name': 'ctest-vn4-43224771', 'tenant_id': '1d5abe3bdf09436d8eecb1923f11acb8', 'project_id': '1d5abe3bdf09436d8eecb1923f11acb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ddbf6ad3-a8f4-4ec4-9fa2-220c9f0094d8', '9d5630e8-bd71-47c1-9655-30f399812bce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65078374', 'ctest-vn4-43224771'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65078374', 'ctest-policy1-62928553']], 'subnet_ipam': [{'subnet_cidr': '102.209.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '309c:5543:c5ac:4f60:d292:cf6b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-30 16:21:04,110 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-30 16:21:04,441 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-30 16:21:04,467 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368 2026-09-30 16:21:04,478 - DEBUG - Requesting: http://10.0.0.189:8082/project/1d5abe3b-df09-436d-8eec-b1923f11acb8 2026-09-30 16:21:04,550 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:04,561 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:04,571 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/571e5035-4e64-4099-b268-f131b243641e 2026-09-30 16:21:04,578 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/571e5035-4e64-4099-b268-f131b243641e 2026-09-30 16:21:04,584 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/1229543e-47b7-43bc-a3e0-fae541b1cf72 2026-09-30 16:21:04,591 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 16:21:04,591 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:04,600 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/571e5035-4e64-4099-b268-f131b243641e 2026-09-30 16:21:04,613 - INFO - Verified VN network id 12 for VN d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:04,613 - INFO - Verifications in API Server for VN ctest-vn4-43224771 passed 2026-09-30 16:21:04,613 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:04,622 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/571e5035-4e64-4099-b268-f131b243641e 2026-09-30 16:21:04,628 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/571e5035-4e64-4099-b268-f131b243641e 2026-09-30 16:21:04,635 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/1229543e-47b7-43bc-a3e0-fae541b1cf72 2026-09-30 16:21:04,647 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65078374:ctest-vn4-43224771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65078374', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15464674541824460220', 'uuid-lslong': '9448388360786296076'}, 'enable': 'true', 'created': '2026-09-30T16:21:03', 'last-modified': '2026-09-30T16:21:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727019'} 2026-09-30 16:21:04,653 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 16:21:04,653 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43224771 passed 2026-09-30 16:21:04,653 - DEBUG - ====Verifying policy data for ctest-vn4-43224771 in API_Server ====== 2026-09-30 16:21:04,653 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-30 16:21:04,658 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368 2026-09-30 16:21:04,667 - DEBUG - Requesting: http://10.0.0.189:8082/project/1d5abe3b-df09-436d-8eec-b1923f11acb8 2026-09-30 16:21:04,739 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/d69d8f8f-7879-45bc-831f-6b27889a3d0c 2026-09-30 16:21:04,749 - DEBUG - ==>Verifying data for policy with id: a96855fa-7b09-441f-a1b4-8ae28073cbcf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65078374', 'ctest-policy1-62928553'] 2026-09-30 16:21:04,749 - INFO - VN ctest-vn4-43224771 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-30 16:21:04,749 - DEBUG - Verifying the vn in opserver 2026-09-30 16:21:04,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65078374:ctest-vn4-43224771 virtual network link through opserver 10.0.0.189 2026-09-30 16:21:04,749 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-30 16:21:05,066 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-30 16:21:05,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65078374:ctest-vn4-43224771', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65078374:ctest-vn4-43224771?flat'} 2026-09-30 16:21:05,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65078374:ctest-vn4-43224771 is found in opserver 2026-09-30 16:21:05,122 - DEBUG - Do not have enough data to verify VN in agent 2026-09-30 16:21:05,126 - DEBUG - VRF ids for VN ctest-vn4-43224771: {} 2026-09-30 16:21:05,127 - DEBUG - ====Verifying data for ctest-policy1-62928553 in API_Server ====== 2026-09-30 16:21:05,127 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-30 16:21:05,132 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368 2026-09-30 16:21:05,141 - DEBUG - Requesting: http://10.0.0.189:8082/project/1d5abe3b-df09-436d-8eec-b1923f11acb8 2026-09-30 16:21:05,211 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/a96855fa-7b09-441f-a1b4-8ae28073cbcf 2026-09-30 16:21:05,219 - INFO - Verified policy ctest-policy1-62928553 in API Server, Result: True 2026-09-30 16:21:05,220 - INFO - Done with setup and verification, moving onto test .. 2026-09-30 16:21:05,227 - INFO - Deleting VN ctest-vn4-43224771 2026-09-30 16:21:05,338 - DEBUG - Response for deleting network () 2026-09-30 16:21:05,338 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/571e5035-4e64-4099-b268-f131b243641e 2026-09-30 16:21:05,343 - DEBUG - Response Code: 404 2026-09-30 16:21:05,344 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-30 16:21:05,350 - DEBUG - Requesting: http://10.0.0.189:8082/domain/5d11a5b1-94ab-4c0d-ab72-36b6ed4e5368 2026-09-30 16:21:05,403 - DEBUG - Requesting: http://10.0.0.189:8082/project/1d5abe3b-df09-436d-8eec-b1923f11acb8 2026-09-30 16:21:05,481 - INFO - Validated that VN ctest-vn4-43224771 is not found in API Server 2026-09-30 16:21:05,492 - DEBUG - VN ctest-vn4-43224771 is not present in Agent 10.0.0.189 2026-09-30 16:21:05,492 - INFO - Validated that VN ctest-vn4-43224771 is not in any agent 2026-09-30 16:21:05,513 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43224771 info 2026-09-30 16:21:05,537 - INFO - Deleted policy ctest-policy1-62928553 2026-09-30 16:21:05,702 - DEBUG - policy ctest-policy1-62928553 is not found in API Server 2026-09-30 16:21:05,954 - DEBUG - No XMPP flaps were noticed during the test 2026-09-30 16:21:05,954 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-09-30 16:21:05,955 - INFO - -------------------------------------------------------------------------------- 2026-09-30 16:21:06,243 - DEBUG - No XMPP flaps were noticed during the test 2026-09-30 16:21:06,243 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-30 16:21:06,243 - INFO - -------------------------------------------------------------------------------- 2026-09-30 16:21:06,932 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65078374, ID : 1d5abe3b-df09-436d-8eec-b1923f11acb8