2026-05-25 02:37:32,268 - INFO - Domain Default found not creating 2026-05-25 02:37:32,459 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07867351 not found, creating it 2026-05-25 02:37:33,035 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07867351, ID : 75b672a9-e9e2-4f0c-b646-dce55aef8ce2 2026-05-25 02:37:34,677 - INFO - ================================================================================ 2026-05-25 02:37:34,677 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:37:35,979 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.240': {'10.20.0.241': '0', '10.20.0.249': '0'}} with 2026-05-25 02:37:35,979 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:37:35,979 - INFO - 2026-05-25 02:37:35,980 - INFO - ================================================================================ 2026-05-25 02:37:35,980 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:37:35,980 - 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-25 02:37:37,272 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.240': {'10.20.0.241': '0', '10.20.0.249': '0'}} with 2026-05-25 02:37:37,272 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:37:37,272 - INFO - 2026-05-25 02:37:37,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577, 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-07867351:ctest-vn4-28748577, 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-07867351:ctest-vn4-28748577, 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-07867351:ctest-vn4-28748577, 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-25 02:37:38,446 - DEBUG - Response for create_network : {'network': {'id': 'a51690b8-6f82-4e2e-8d69-f5fa32f644af', 'name': 'ctest-vn4-28748577', 'tenant_id': '75b672a9e9e24f0cb646dce55aef8ce2', 'project_id': '75b672a9e9e24f0cb646dce55aef8ce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'ctest-vn4-28748577'], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:37:38,938 - DEBUG - Response for create_subnet : {'subnet': {'id': '29e6d719-351d-479b-b98d-d6e5d11cff26', 'name': '', 'tenant_id': '75b672a9e9e24f0cb646dce55aef8ce2', 'network_id': 'a51690b8-6f82-4e2e-8d69-f5fa32f644af', 'ip_version': 4, 'cidr': '25.74.131.128/26', 'allocation_pools': [{'start': '25.74.131.130', 'end': '25.74.131.190'}], 'gateway_ip': '25.74.131.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.74.131.130', 'tags': [], 'project_id': '75b672a9e9e24f0cb646dce55aef8ce2'}} 2026-05-25 02:37:39,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '8350ebc7-d774-4e8e-af72-4de01ea58ffd', 'name': '', 'tenant_id': '75b672a9e9e24f0cb646dce55aef8ce2', 'network_id': 'a51690b8-6f82-4e2e-8d69-f5fa32f644af', 'ip_version': 6, 'cidr': '3b73:4ca3:2868:cb0f:e03c:b7b9::/96', 'allocation_pools': [{'start': '3b73:4ca3:2868:cb0f:e03c:b7b9:0:2', 'end': '3b73:4ca3:2868:cb0f:e03c:b7b9:ffff:fffe'}], 'gateway_ip': '3b73:4ca3:2868:cb0f:e03c:b7b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b73:4ca3:2868:cb0f:e03c:b7b9:0:2', 'tags': [], 'project_id': '75b672a9e9e24f0cb646dce55aef8ce2'}} 2026-05-25 02:37:39,277 - INFO - Created VN ctest-vn4-28748577 2026-05-25 02:37:39,294 - DEBUG - VN ctest-vn4-28748577 UUID is a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:39,574 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a51690b8-6f82-4e2e-8d69-f5fa32f644af', 'name': 'ctest-vn4-28748577', 'tenant_id': '75b672a9e9e24f0cb646dce55aef8ce2', 'project_id': '75b672a9e9e24f0cb646dce55aef8ce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29e6d719-351d-479b-b98d-d6e5d11cff26', '8350ebc7-d774-4e8e-af72-4de01ea58ffd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'ctest-vn4-28748577'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'ctest-policy1-37258382']], 'subnet_ipam': [{'subnet_cidr': '25.74.131.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b73:4ca3:2868:cb0f:e03c:b7b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:37:39,710 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-25 02:37:40,026 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-25 02:37:40,072 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e8ff46f5-59ad-486b-ab96-d07259341f10 2026-05-25 02:37:40,096 - DEBUG - Requesting: http://10.0.0.73:8082/project/75b672a9-e9e2-4f0c-b646-dce55aef8ce2 2026-05-25 02:37:40,210 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:40,226 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:40,238 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/62aa3a86-1581-4686-94a6-c04ff24f5aca 2026-05-25 02:37:40,247 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/62aa3a86-1581-4686-94a6-c04ff24f5aca 2026-05-25 02:37:40,257 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/1afd12e0-7bed-42ec-9fee-16ead6b68a01 2026-05-25 02:37:40,267 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:37:40,268 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:40,282 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/62aa3a86-1581-4686-94a6-c04ff24f5aca 2026-05-25 02:37:40,307 - INFO - Verified VN network id 16 for VN a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:40,307 - INFO - Verifications in API Server for VN ctest-vn4-28748577 passed 2026-05-25 02:37:40,307 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:40,319 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/62aa3a86-1581-4686-94a6-c04ff24f5aca 2026-05-25 02:37:40,328 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/62aa3a86-1581-4686-94a6-c04ff24f5aca 2026-05-25 02:37:40,338 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/1afd12e0-7bed-42ec-9fee-16ead6b68a01 2026-05-25 02:37:40,355 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11895854587564936750', 'uuid-lslong': '10189946086848087215'}, 'enable': 'true', 'created': '2026-05-25T02:37:38', 'last-modified': '2026-05-25T02:37:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.846962'} 2026-05-25 02:37:40,362 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:37:40,370 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11895854587564936750', 'uuid-lslong': '10189946086848087215'}, 'enable': 'true', 'created': '2026-05-25T02:37:38', 'last-modified': '2026-05-25T02:37:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.846674'} 2026-05-25 02:37:40,377 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:37:40,385 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11895854587564936750', 'uuid-lslong': '10189946086848087215'}, 'enable': 'true', 'created': '2026-05-25T02:37:38', 'last-modified': '2026-05-25T02:37:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.870729'} 2026-05-25 02:37:40,393 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:37:40,393 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28748577 passed 2026-05-25 02:37:40,393 - DEBUG - ====Verifying policy data for ctest-vn4-28748577 in API_Server ====== 2026-05-25 02:37:40,393 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-25 02:37:40,402 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e8ff46f5-59ad-486b-ab96-d07259341f10 2026-05-25 02:37:40,417 - DEBUG - Requesting: http://10.0.0.73:8082/project/75b672a9-e9e2-4f0c-b646-dce55aef8ce2 2026-05-25 02:37:40,530 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/a51690b8-6f82-4e2e-8d69-f5fa32f644af 2026-05-25 02:37:40,543 - DEBUG - ==>Verifying data for policy with id: 77306b75-70a0-4cc2-88f2-5644fb4922ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07867351', 'ctest-policy1-37258382'] 2026-05-25 02:37:40,543 - INFO - VN ctest-vn4-28748577 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-25 02:37:40,543 - DEBUG - Verifying the vn in opserver 2026-05-25 02:37:40,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577 virtual network link through opserver 10.0.0.73 2026-05-25 02:37:40,544 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-05-25 02:37:40,854 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-05-25 02:37:40,932 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577?flat'} 2026-05-25 02:37:40,932 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577 virtual network link through opserver 10.0.0.19 2026-05-25 02:37:40,932 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-25 02:37:41,239 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-25 02:37:41,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577?flat'} 2026-05-25 02:37:41,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577 virtual network link through opserver 10.0.0.131 2026-05-25 02:37:41,315 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-25 02:37:41,616 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-25 02:37:41,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577?flat'} 2026-05-25 02:37:41,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07867351:ctest-vn4-28748577 is found in opserver 2026-05-25 02:37:41,707 - DEBUG - Do not have enough data to verify VN in agent 2026-05-25 02:37:41,718 - DEBUG - VRF ids for VN ctest-vn4-28748577: {} 2026-05-25 02:37:41,718 - DEBUG - ====Verifying data for ctest-policy1-37258382 in API_Server ====== 2026-05-25 02:37:41,718 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-25 02:37:41,725 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e8ff46f5-59ad-486b-ab96-d07259341f10 2026-05-25 02:37:41,737 - DEBUG - Requesting: http://10.0.0.73:8082/project/75b672a9-e9e2-4f0c-b646-dce55aef8ce2 2026-05-25 02:37:41,825 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/77306b75-70a0-4cc2-88f2-5644fb4922ba 2026-05-25 02:37:41,836 - INFO - Verified policy ctest-policy1-37258382 in API Server, Result: True 2026-05-25 02:37:41,836 - INFO - Done with setup and verification, moving onto test .. 2026-05-25 02:37:41,851 - INFO - Deleting VN ctest-vn4-28748577 2026-05-25 02:37:42,073 - DEBUG - Response for deleting network () 2026-05-25 02:37:42,073 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/62aa3a86-1581-4686-94a6-c04ff24f5aca 2026-05-25 02:37:42,088 - DEBUG - Response Code: 404 2026-05-25 02:37:42,088 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-25 02:37:42,096 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e8ff46f5-59ad-486b-ab96-d07259341f10 2026-05-25 02:37:42,112 - DEBUG - Requesting: http://10.0.0.73:8082/project/75b672a9-e9e2-4f0c-b646-dce55aef8ce2 2026-05-25 02:37:42,211 - INFO - Validated that VN ctest-vn4-28748577 is not found in API Server 2026-05-25 02:37:42,224 - DEBUG - VN ctest-vn4-28748577 is not present in Agent 10.0.0.133 2026-05-25 02:37:42,236 - DEBUG - VN ctest-vn4-28748577 is not present in Agent 10.0.0.240 2026-05-25 02:37:42,236 - INFO - Validated that VN ctest-vn4-28748577 is not in any agent 2026-05-25 02:37:42,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28748577 info 2026-05-25 02:37:42,315 - INFO - Deleted policy ctest-policy1-37258382 2026-05-25 02:37:42,544 - DEBUG - policy ctest-policy1-37258382 is not found in API Server 2026-05-25 02:37:43,827 - DEBUG - No XMPP flaps were noticed during the test 2026-05-25 02:37:43,827 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-05-25 02:37:43,828 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:37:45,110 - DEBUG - No XMPP flaps were noticed during the test 2026-05-25 02:37:45,110 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2026-05-25 02:37:45,110 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:37:45,923 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07867351, ID : 75b672a9-e9e2-4f0c-b646-dce55aef8ce2