2026-09-18 01:54:15,953 - INFO - Domain Default found not creating 2026-09-18 01:54:16,127 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50575227 not found, creating it 2026-09-18 01:54:16,876 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50575227, ID : 3801893e-c663-49a0-b93a-7a35017a9024 2026-09-18 01:54:18,584 - INFO - ================================================================================ 2026-09-18 01:54:18,584 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-18 01:54:18,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-18 01:54:18,856 - INFO - Initial checks done. Running the testcase now 2026-09-18 01:54:18,856 - INFO - 2026-09-18 01:54:18,858 - INFO - ================================================================================ 2026-09-18 01:54:18,858 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-18 01:54:18,858 - 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-18 01:54:19,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-18 01:54:19,140 - INFO - Initial checks done. Running the testcase now 2026-09-18 01:54:19,141 - INFO - 2026-09-18 01:54:19,614 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50575227:ctest-vn4-10462987, 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-50575227:ctest-vn4-10462987, 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-50575227:ctest-vn4-10462987, 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-50575227:ctest-vn4-10462987, 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-18 01:54:20,177 - DEBUG - Response for create_network : {'network': {'id': '52e04ec6-93d3-4d1e-bf7b-5dae40112683', 'name': 'ctest-vn4-10462987', 'tenant_id': '3801893ec66349a0b93a7a35017a9024', 'project_id': '3801893ec66349a0b93a7a35017a9024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50575227', 'ctest-vn4-10462987'], 'port_security_enabled': True, 'description': ''}} 2026-09-18 01:54:20,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '348fe7cc-bca4-4683-a108-d3dd118a3ace', 'name': '', 'tenant_id': '3801893ec66349a0b93a7a35017a9024', 'network_id': '52e04ec6-93d3-4d1e-bf7b-5dae40112683', 'ip_version': 4, 'cidr': '166.211.226.0/26', 'allocation_pools': [{'start': '166.211.226.2', 'end': '166.211.226.62'}], 'gateway_ip': '166.211.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.211.226.2', 'tags': [], 'project_id': '3801893ec66349a0b93a7a35017a9024'}} 2026-09-18 01:54:20,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '33e50a26-3602-43d9-b000-41e18c736970', 'name': '', 'tenant_id': '3801893ec66349a0b93a7a35017a9024', 'network_id': '52e04ec6-93d3-4d1e-bf7b-5dae40112683', 'ip_version': 6, 'cidr': '347c:1844:b11d:87c4:62f9:7ceb::/96', 'allocation_pools': [{'start': '347c:1844:b11d:87c4:62f9:7ceb:0:2', 'end': '347c:1844:b11d:87c4:62f9:7ceb:ffff:fffe'}], 'gateway_ip': '347c:1844:b11d:87c4:62f9:7ceb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '347c:1844:b11d:87c4:62f9:7ceb:0:2', 'tags': [], 'project_id': '3801893ec66349a0b93a7a35017a9024'}} 2026-09-18 01:54:20,604 - INFO - Created VN ctest-vn4-10462987 2026-09-18 01:54:20,658 - DEBUG - VN ctest-vn4-10462987 UUID is 52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:20,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52e04ec6-93d3-4d1e-bf7b-5dae40112683', 'name': 'ctest-vn4-10462987', 'tenant_id': '3801893ec66349a0b93a7a35017a9024', 'project_id': '3801893ec66349a0b93a7a35017a9024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['348fe7cc-bca4-4683-a108-d3dd118a3ace', '33e50a26-3602-43d9-b000-41e18c736970'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50575227', 'ctest-vn4-10462987'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50575227', 'ctest-policy1-73705613']], 'subnet_ipam': [{'subnet_cidr': '166.211.226.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '347c:1844:b11d:87c4:62f9:7ceb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-18 01:54:21,034 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-18 01:54:21,408 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-18 01:54:21,437 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5 2026-09-18 01:54:21,450 - DEBUG - Requesting: http://10.0.0.163:8082/project/3801893e-c663-49a0-b93a-7a35017a9024 2026-09-18 01:54:21,524 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:21,537 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:21,546 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6084bb16-cd47-409f-94a0-87821613ec80 2026-09-18 01:54:21,553 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6084bb16-cd47-409f-94a0-87821613ec80 2026-09-18 01:54:21,559 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/dfa16cca-5b55-44ac-9015-f4dfd62d9158 2026-09-18 01:54:21,565 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-18 01:54:21,566 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:21,575 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6084bb16-cd47-409f-94a0-87821613ec80 2026-09-18 01:54:21,587 - INFO - Verified VN network id 12 for VN 52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:21,587 - INFO - Verifications in API Server for VN ctest-vn4-10462987 passed 2026-09-18 01:54:21,588 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:21,597 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6084bb16-cd47-409f-94a0-87821613ec80 2026-09-18 01:54:21,603 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6084bb16-cd47-409f-94a0-87821613ec80 2026-09-18 01:54:21,609 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/dfa16cca-5b55-44ac-9015-f4dfd62d9158 2026-09-18 01:54:21,620 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50575227:ctest-vn4-10462987', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50575227', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5971859720683867422', 'uuid-lslong': '13797724886360204931'}, 'enable': 'true', 'created': '2026-09-18T01:54:20', 'last-modified': '2026-09-18T01:54:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.787121'} 2026-09-18 01:54:21,626 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-18 01:54:21,627 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10462987 passed 2026-09-18 01:54:21,627 - DEBUG - ====Verifying policy data for ctest-vn4-10462987 in API_Server ====== 2026-09-18 01:54:21,627 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-18 01:54:21,632 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5 2026-09-18 01:54:21,643 - DEBUG - Requesting: http://10.0.0.163:8082/project/3801893e-c663-49a0-b93a-7a35017a9024 2026-09-18 01:54:21,723 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/52e04ec6-93d3-4d1e-bf7b-5dae40112683 2026-09-18 01:54:21,734 - DEBUG - ==>Verifying data for policy with id: 12ae33be-3ade-45b2-9644-dbed243e23c0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50575227', 'ctest-policy1-73705613'] 2026-09-18 01:54:21,734 - INFO - VN ctest-vn4-10462987 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-18 01:54:21,734 - DEBUG - Verifying the vn in opserver 2026-09-18 01:54:21,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50575227:ctest-vn4-10462987 virtual network link through opserver 10.0.0.163 2026-09-18 01:54:21,734 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-18 01:54:22,103 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-18 01:54:22,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50575227:ctest-vn4-10462987', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50575227:ctest-vn4-10462987?flat'} 2026-09-18 01:54:22,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50575227:ctest-vn4-10462987 is found in opserver 2026-09-18 01:54:22,173 - DEBUG - Do not have enough data to verify VN in agent 2026-09-18 01:54:22,179 - DEBUG - VRF ids for VN ctest-vn4-10462987: {} 2026-09-18 01:54:22,180 - DEBUG - ====Verifying data for ctest-policy1-73705613 in API_Server ====== 2026-09-18 01:54:22,180 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-18 01:54:22,185 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5 2026-09-18 01:54:22,196 - DEBUG - Requesting: http://10.0.0.163:8082/project/3801893e-c663-49a0-b93a-7a35017a9024 2026-09-18 01:54:22,269 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/12ae33be-3ade-45b2-9644-dbed243e23c0 2026-09-18 01:54:22,280 - INFO - Verified policy ctest-policy1-73705613 in API Server, Result: True 2026-09-18 01:54:22,280 - INFO - Done with setup and verification, moving onto test .. 2026-09-18 01:54:22,288 - INFO - Deleting VN ctest-vn4-10462987 2026-09-18 01:54:22,410 - DEBUG - Response for deleting network () 2026-09-18 01:54:22,410 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/6084bb16-cd47-409f-94a0-87821613ec80 2026-09-18 01:54:22,415 - DEBUG - Response Code: 404 2026-09-18 01:54:22,415 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-18 01:54:22,420 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5 2026-09-18 01:54:22,475 - DEBUG - Requesting: http://10.0.0.163:8082/project/3801893e-c663-49a0-b93a-7a35017a9024 2026-09-18 01:54:22,549 - INFO - Validated that VN ctest-vn4-10462987 is not found in API Server 2026-09-18 01:54:22,562 - DEBUG - VN ctest-vn4-10462987 is not present in Agent 10.0.0.163 2026-09-18 01:54:22,562 - INFO - Validated that VN ctest-vn4-10462987 is not in any agent 2026-09-18 01:54:22,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10462987 info 2026-09-18 01:54:22,606 - INFO - Deleted policy ctest-policy1-73705613 2026-09-18 01:54:22,778 - DEBUG - policy ctest-policy1-73705613 is not found in API Server 2026-09-18 01:54:23,047 - DEBUG - No XMPP flaps were noticed during the test
2026-09-18 01:54:23,047 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-18 01:54:23,047 - INFO - -------------------------------------------------------------------------------- 2026-09-18 01:54:23,332 - DEBUG - No XMPP flaps were noticed during the test
2026-09-18 01:54:23,332 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-18 01:54:23,333 - INFO - -------------------------------------------------------------------------------- 2026-09-18 01:54:24,128 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50575227, ID : 3801893e-c663-49a0-b93a-7a35017a9024