2026-08-17 13:37:16,231 - INFO - Domain Default found not creating 2026-08-17 13:37:16,401 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21502383 not found, creating it 2026-08-17 13:37:16,910 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21502383, ID : 9a9da223-e9a3-4b24-b561-6db18b18b3ca 2026-08-17 13:37:18,633 - INFO - ================================================================================ 2026-08-17 13:37:18,633 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 13:37:18,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-08-17 13:37:18,904 - INFO - Initial checks done. Running the testcase now 2026-08-17 13:37:18,904 - INFO - 2026-08-17 13:37:18,904 - INFO - ================================================================================ 2026-08-17 13:37:18,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 13:37:18,904 - 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-08-17 13:37:19,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-08-17 13:37:19,200 - INFO - Initial checks done. Running the testcase now 2026-08-17 13:37:19,200 - INFO - 2026-08-17 13:37:19,633 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21502383:ctest-vn4-65765956, 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-21502383:ctest-vn4-65765956, 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-21502383:ctest-vn4-65765956, 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-21502383:ctest-vn4-65765956, 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-08-17 13:37:20,176 - DEBUG - Response for create_network : {'network': {'id': 'c9448a9a-0063-4d93-8dd5-27b4cc13c0f3', 'name': 'ctest-vn4-65765956', 'tenant_id': '9a9da223e9a34b24b5616db18b18b3ca', 'project_id': '9a9da223e9a34b24b5616db18b18b3ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21502383', 'ctest-vn4-65765956'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 13:37:20,421 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dce3f7a-fa0b-46b5-b5c1-c26f9a4c7e54', 'name': '', 'tenant_id': '9a9da223e9a34b24b5616db18b18b3ca', 'network_id': 'c9448a9a-0063-4d93-8dd5-27b4cc13c0f3', 'ip_version': 4, 'cidr': '56.165.154.64/26', 'allocation_pools': [{'start': '56.165.154.66', 'end': '56.165.154.126'}], 'gateway_ip': '56.165.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.165.154.66', 'tags': [], 'project_id': '9a9da223e9a34b24b5616db18b18b3ca'}} 2026-08-17 13:37:20,670 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5709f4c-8107-4824-af6a-e13e1f205950', 'name': '', 'tenant_id': '9a9da223e9a34b24b5616db18b18b3ca', 'network_id': 'c9448a9a-0063-4d93-8dd5-27b4cc13c0f3', 'ip_version': 6, 'cidr': '2e60:6cde:1e3b:9b63:2f55:885d::/96', 'allocation_pools': [{'start': '2e60:6cde:1e3b:9b63:2f55:885d:0:2', 'end': '2e60:6cde:1e3b:9b63:2f55:885d:ffff:fffe'}], 'gateway_ip': '2e60:6cde:1e3b:9b63:2f55:885d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e60:6cde:1e3b:9b63:2f55:885d:0:2', 'tags': [], 'project_id': '9a9da223e9a34b24b5616db18b18b3ca'}} 2026-08-17 13:37:20,690 - INFO - Created VN ctest-vn4-65765956 2026-08-17 13:37:20,742 - DEBUG - VN ctest-vn4-65765956 UUID is c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:20,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9448a9a-0063-4d93-8dd5-27b4cc13c0f3', 'name': 'ctest-vn4-65765956', 'tenant_id': '9a9da223e9a34b24b5616db18b18b3ca', 'project_id': '9a9da223e9a34b24b5616db18b18b3ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dce3f7a-fa0b-46b5-b5c1-c26f9a4c7e54', 'b5709f4c-8107-4824-af6a-e13e1f205950'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21502383', 'ctest-vn4-65765956'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21502383', 'ctest-policy1-92008219']], 'subnet_ipam': [{'subnet_cidr': '56.165.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e60:6cde:1e3b:9b63:2f55:885d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 13:37:21,127 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-17 13:37:21,501 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-17 13:37:21,530 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55f9187f-9b6f-476a-a9fa-b1c71f09ff9d 2026-08-17 13:37:21,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/9a9da223-e9a3-4b24-b561-6db18b18b3ca 2026-08-17 13:37:21,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:21,639 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:21,650 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ea5a065-0b8f-481f-9f77-798caf55dd69 2026-08-17 13:37:21,660 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ea5a065-0b8f-481f-9f77-798caf55dd69 2026-08-17 13:37:21,667 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e03b0b3-f931-477e-b1b6-adfb98b2d3c2 2026-08-17 13:37:21,675 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 13:37:21,675 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:21,684 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ea5a065-0b8f-481f-9f77-798caf55dd69 2026-08-17 13:37:21,700 - INFO - Verified VN network id 11 for VN c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:21,700 - INFO - Verifications in API Server for VN ctest-vn4-65765956 passed 2026-08-17 13:37:21,700 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:21,711 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ea5a065-0b8f-481f-9f77-798caf55dd69 2026-08-17 13:37:21,718 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ea5a065-0b8f-481f-9f77-798caf55dd69 2026-08-17 13:37:21,725 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e03b0b3-f931-477e-b1b6-adfb98b2d3c2 2026-08-17 13:37:21,741 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21502383:ctest-vn4-65765956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21502383', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14502869094075944339', 'uuid-lslong': '10220118586858651891'}, 'enable': 'true', 'created': '2026-08-17T13:37:20', 'last-modified': '2026-08-17T13:37:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.813984'} 2026-08-17 13:37:21,751 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 13:37:21,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65765956 passed 2026-08-17 13:37:21,752 - DEBUG - ====Verifying policy data for ctest-vn4-65765956 in API_Server ====== 2026-08-17 13:37:21,752 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-17 13:37:21,759 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55f9187f-9b6f-476a-a9fa-b1c71f09ff9d 2026-08-17 13:37:21,772 - DEBUG - Requesting: http://10.0.0.50:8082/project/9a9da223-e9a3-4b24-b561-6db18b18b3ca 2026-08-17 13:37:21,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9448a9a-0063-4d93-8dd5-27b4cc13c0f3 2026-08-17 13:37:21,860 - DEBUG - ==>Verifying data for policy with id: db5e4dc9-f6c0-4ecc-b729-e7f731d8142e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21502383', 'ctest-policy1-92008219'] 2026-08-17 13:37:21,860 - INFO - VN ctest-vn4-65765956 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 13:37:21,860 - DEBUG - Verifying the vn in opserver 2026-08-17 13:37:21,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21502383:ctest-vn4-65765956 virtual network link through opserver 10.0.0.50 2026-08-17 13:37:21,861 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-17 13:37:22,223 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-17 13:37:22,278 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21502383:ctest-vn4-65765956', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21502383:ctest-vn4-65765956?flat'} 2026-08-17 13:37:22,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21502383:ctest-vn4-65765956 is found in opserver 2026-08-17 13:37:22,290 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 13:37:22,296 - DEBUG - VRF ids for VN ctest-vn4-65765956: {} 2026-08-17 13:37:22,297 - DEBUG - ====Verifying data for ctest-policy1-92008219 in API_Server ====== 2026-08-17 13:37:22,297 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-17 13:37:22,304 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55f9187f-9b6f-476a-a9fa-b1c71f09ff9d 2026-08-17 13:37:22,316 - DEBUG - Requesting: http://10.0.0.50:8082/project/9a9da223-e9a3-4b24-b561-6db18b18b3ca 2026-08-17 13:37:22,400 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/db5e4dc9-f6c0-4ecc-b729-e7f731d8142e 2026-08-17 13:37:22,413 - INFO - Verified policy ctest-policy1-92008219 in API Server, Result: True 2026-08-17 13:37:22,413 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 13:37:22,423 - INFO - Deleting VN ctest-vn4-65765956 2026-08-17 13:37:22,558 - DEBUG - Response for deleting network () 2026-08-17 13:37:22,558 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ea5a065-0b8f-481f-9f77-798caf55dd69 2026-08-17 13:37:22,564 - DEBUG - Response Code: 404 2026-08-17 13:37:22,564 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-17 13:37:22,569 - DEBUG - Requesting: http://10.0.0.50:8082/domain/55f9187f-9b6f-476a-a9fa-b1c71f09ff9d 2026-08-17 13:37:22,624 - DEBUG - Requesting: http://10.0.0.50:8082/project/9a9da223-e9a3-4b24-b561-6db18b18b3ca 2026-08-17 13:37:22,704 - INFO - Validated that VN ctest-vn4-65765956 is not found in API Server 2026-08-17 13:37:22,716 - DEBUG - VN ctest-vn4-65765956 is not present in Agent 10.0.0.50 2026-08-17 13:37:22,716 - INFO - Validated that VN ctest-vn4-65765956 is not in any agent 2026-08-17 13:37:22,737 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65765956 info 2026-08-17 13:37:22,767 - INFO - Deleted policy ctest-policy1-92008219 2026-08-17 13:37:22,934 - DEBUG - policy ctest-policy1-92008219 is not found in API Server 2026-08-17 13:37:23,203 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 13:37:23,203 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-17 13:37:23,204 - INFO - -------------------------------------------------------------------------------- 2026-08-17 13:37:23,500 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 13:37:23,500 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-17 13:37:23,500 - INFO - -------------------------------------------------------------------------------- 2026-08-17 13:37:24,278 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21502383, ID : 9a9da223-e9a3-4b24-b561-6db18b18b3ca