2026-10-31 14:13:10,306 - INFO - Domain Default found not creating 2026-10-31 14:13:10,455 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82941087 not found, creating it 2026-10-31 14:13:10,883 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82941087, ID : 3f8eef6c-c2b7-4822-88ae-7f8b39c8d8c5 2026-10-31 14:13:12,342 - INFO - ================================================================================ 2026-10-31 14:13:12,342 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-31 14:13:12,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-31 14:13:12,597 - INFO - Initial checks done. Running the testcase now 2026-10-31 14:13:12,597 - INFO - 2026-10-31 14:13:12,597 - INFO - ================================================================================ 2026-10-31 14:13:12,597 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-31 14:13:12,597 - 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-10-31 14:13:12,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-31 14:13:12,887 - INFO - Initial checks done. Running the testcase now 2026-10-31 14:13:12,887 - INFO - 2026-10-31 14:13:13,260 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82941087:ctest-vn4-44788336, 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-82941087:ctest-vn4-44788336, 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-82941087:ctest-vn4-44788336, 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-82941087:ctest-vn4-44788336, 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-10-31 14:13:13,762 - DEBUG - Response for create_network : {'network': {'id': '8da5f0df-edc8-416f-9b91-88f9c3a8218a', 'name': 'ctest-vn4-44788336', 'tenant_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5', 'project_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82941087', 'ctest-vn4-44788336'], 'port_security_enabled': True, 'description': ''}} 2026-10-31 14:13:13,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a15b0914-6d48-4e12-82b7-f4309842b882', 'name': '', 'tenant_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5', 'network_id': '8da5f0df-edc8-416f-9b91-88f9c3a8218a', 'ip_version': 4, 'cidr': '36.116.182.128/26', 'allocation_pools': [{'start': '36.116.182.130', 'end': '36.116.182.190'}], 'gateway_ip': '36.116.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.116.182.130', 'tags': [], 'project_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5'}} 2026-10-31 14:13:14,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f810406-414b-4c77-92a7-eb474a26f317', 'name': '', 'tenant_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5', 'network_id': '8da5f0df-edc8-416f-9b91-88f9c3a8218a', 'ip_version': 6, 'cidr': '2e18:3e67:86c5:cea4:8616:6139::/96', 'allocation_pools': [{'start': '2e18:3e67:86c5:cea4:8616:6139:0:2', 'end': '2e18:3e67:86c5:cea4:8616:6139:ffff:fffe'}], 'gateway_ip': '2e18:3e67:86c5:cea4:8616:6139:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e18:3e67:86c5:cea4:8616:6139:0:2', 'tags': [], 'project_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5'}} 2026-10-31 14:13:14,123 - INFO - Created VN ctest-vn4-44788336 2026-10-31 14:13:14,179 - DEBUG - VN ctest-vn4-44788336 UUID is 8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:14,354 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8da5f0df-edc8-416f-9b91-88f9c3a8218a', 'name': 'ctest-vn4-44788336', 'tenant_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5', 'project_id': '3f8eef6cc2b7482288ae7f8b39c8d8c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a15b0914-6d48-4e12-82b7-f4309842b882', '5f810406-414b-4c77-92a7-eb474a26f317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82941087', 'ctest-vn4-44788336'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82941087', 'ctest-policy1-97869688']], 'subnet_ipam': [{'subnet_cidr': '36.116.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e18:3e67:86c5:cea4:8616:6139::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-31 14:13:14,511 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-31 14:13:14,827 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-31 14:13:14,855 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060 2026-10-31 14:13:14,866 - DEBUG - Requesting: http://10.0.0.161:8082/project/3f8eef6c-c2b7-4822-88ae-7f8b39c8d8c5 2026-10-31 14:13:14,942 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:14,956 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:14,965 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/eedebeb4-977d-453e-be71-70c9bcb45415 2026-10-31 14:13:14,971 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/eedebeb4-977d-453e-be71-70c9bcb45415 2026-10-31 14:13:14,977 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/bd5453c2-1bda-49c2-bae6-e945a2703215 2026-10-31 14:13:14,983 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-31 14:13:14,983 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:14,990 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/eedebeb4-977d-453e-be71-70c9bcb45415 2026-10-31 14:13:15,000 - INFO - Verified VN network id 11 for VN 8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:15,000 - INFO - Verifications in API Server for VN ctest-vn4-44788336 passed 2026-10-31 14:13:15,000 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:15,010 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/eedebeb4-977d-453e-be71-70c9bcb45415 2026-10-31 14:13:15,017 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/eedebeb4-977d-453e-be71-70c9bcb45415 2026-10-31 14:13:15,023 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/bd5453c2-1bda-49c2-bae6-e945a2703215 2026-10-31 14:13:15,035 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82941087:ctest-vn4-44788336', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82941087', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10206828975062794607', 'uuid-lslong': '11209891553812685194'}, 'enable': 'true', 'created': '2026-10-31T14:13:13', 'last-modified': '2026-10-31T14:13:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702798'} 2026-10-31 14:13:15,043 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-31 14:13:15,043 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44788336 passed 2026-10-31 14:13:15,043 - DEBUG - ====Verifying policy data for ctest-vn4-44788336 in API_Server ====== 2026-10-31 14:13:15,043 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-31 14:13:15,050 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060 2026-10-31 14:13:15,059 - DEBUG - Requesting: http://10.0.0.161:8082/project/3f8eef6c-c2b7-4822-88ae-7f8b39c8d8c5 2026-10-31 14:13:15,135 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8da5f0df-edc8-416f-9b91-88f9c3a8218a 2026-10-31 14:13:15,147 - DEBUG - ==>Verifying data for policy with id: 85492d28-854a-42d4-855c-94a52c47465b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82941087', 'ctest-policy1-97869688'] 2026-10-31 14:13:15,147 - INFO - VN ctest-vn4-44788336 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-31 14:13:15,147 - DEBUG - Verifying the vn in opserver 2026-10-31 14:13:15,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82941087:ctest-vn4-44788336 virtual network link through opserver 10.0.0.161 2026-10-31 14:13:15,148 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-31 14:13:15,464 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-31 14:13:15,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82941087:ctest-vn4-44788336', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82941087:ctest-vn4-44788336?flat'} 2026-10-31 14:13:15,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82941087:ctest-vn4-44788336 is found in opserver 2026-10-31 14:13:15,518 - DEBUG - Do not have enough data to verify VN in agent 2026-10-31 14:13:15,522 - DEBUG - VRF ids for VN ctest-vn4-44788336: {} 2026-10-31 14:13:15,523 - DEBUG - ====Verifying data for ctest-policy1-97869688 in API_Server ====== 2026-10-31 14:13:15,523 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-31 14:13:15,528 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060 2026-10-31 14:13:15,536 - DEBUG - Requesting: http://10.0.0.161:8082/project/3f8eef6c-c2b7-4822-88ae-7f8b39c8d8c5 2026-10-31 14:13:15,608 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/85492d28-854a-42d4-855c-94a52c47465b 2026-10-31 14:13:15,616 - INFO - Verified policy ctest-policy1-97869688 in API Server, Result: True 2026-10-31 14:13:15,616 - INFO - Done with setup and verification, moving onto test .. 2026-10-31 14:13:15,622 - INFO - Deleting VN ctest-vn4-44788336 2026-10-31 14:13:15,720 - DEBUG - Response for deleting network () 2026-10-31 14:13:15,720 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/eedebeb4-977d-453e-be71-70c9bcb45415 2026-10-31 14:13:15,726 - DEBUG - Response Code: 404 2026-10-31 14:13:15,726 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-31 14:13:15,731 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060 2026-10-31 14:13:15,783 - DEBUG - Requesting: http://10.0.0.161:8082/project/3f8eef6c-c2b7-4822-88ae-7f8b39c8d8c5 2026-10-31 14:13:15,874 - INFO - Validated that VN ctest-vn4-44788336 is not found in API Server 2026-10-31 14:13:15,888 - DEBUG - VN ctest-vn4-44788336 is not present in Agent 10.0.0.161 2026-10-31 14:13:15,888 - INFO - Validated that VN ctest-vn4-44788336 is not in any agent 2026-10-31 14:13:15,901 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44788336 info 2026-10-31 14:13:15,930 - INFO - Deleted policy ctest-policy1-97869688 2026-10-31 14:13:16,107 - DEBUG - policy ctest-policy1-97869688 is not found in API Server 2026-10-31 14:13:16,366 - DEBUG - No XMPP flaps were noticed during the test
2026-10-31 14:13:16,366 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-31 14:13:16,366 - INFO - -------------------------------------------------------------------------------- 2026-10-31 14:13:16,666 - DEBUG - No XMPP flaps were noticed during the test
2026-10-31 14:13:16,666 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-31 14:13:16,666 - INFO - -------------------------------------------------------------------------------- 2026-10-31 14:13:17,398 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82941087, ID : 3f8eef6c-c2b7-4822-88ae-7f8b39c8d8c5