2026-08-25 23:26:55,822 - INFO - Domain Default found not creating 2026-08-25 23:26:56,015 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55131237 not found, creating it 2026-08-25 23:26:56,517 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55131237, ID : 9b19f62b-c210-45a8-942a-9a0a5f362b2b 2026-08-25 23:26:58,894 - INFO - ================================================================================ 2026-08-25 23:26:58,895 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 23:26:59,156 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-08-25 23:26:59,156 - INFO - Initial checks done. Running the testcase now 2026-08-25 23:26:59,156 - INFO - 2026-08-25 23:26:59,156 - INFO - ================================================================================ 2026-08-25 23:26:59,156 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 23:26:59,156 - 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-25 23:26:59,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-08-25 23:26:59,455 - INFO - Initial checks done. Running the testcase now 2026-08-25 23:26:59,455 - INFO - 2026-08-25 23:26:59,848 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55131237:ctest-vn4-86715808, 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-55131237:ctest-vn4-86715808, 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-55131237:ctest-vn4-86715808, 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-55131237:ctest-vn4-86715808, 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-25 23:27:00,421 - DEBUG - Response for create_network : {'network': {'id': '3c91274e-5340-48af-aec9-856d8d6ce577', 'name': 'ctest-vn4-86715808', 'tenant_id': '9b19f62bc21045a8942a9a0a5f362b2b', 'project_id': '9b19f62bc21045a8942a9a0a5f362b2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55131237', 'ctest-vn4-86715808'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 23:27:00,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '43d26325-c433-427f-b659-4497d6ceaeac', 'name': '', 'tenant_id': '9b19f62bc21045a8942a9a0a5f362b2b', 'network_id': '3c91274e-5340-48af-aec9-856d8d6ce577', 'ip_version': 4, 'cidr': '48.100.75.128/26', 'allocation_pools': [{'start': '48.100.75.130', 'end': '48.100.75.190'}], 'gateway_ip': '48.100.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.100.75.130', 'tags': [], 'project_id': '9b19f62bc21045a8942a9a0a5f362b2b'}} 2026-08-25 23:27:00,881 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d8f9708-3160-4b5e-b1ea-52aab1b5da6b', 'name': '', 'tenant_id': '9b19f62bc21045a8942a9a0a5f362b2b', 'network_id': '3c91274e-5340-48af-aec9-856d8d6ce577', 'ip_version': 6, 'cidr': '215a:f453:e7a6:8837:95fc:b0b5::/96', 'allocation_pools': [{'start': '215a:f453:e7a6:8837:95fc:b0b5:0:2', 'end': '215a:f453:e7a6:8837:95fc:b0b5:ffff:fffe'}], 'gateway_ip': '215a:f453:e7a6:8837:95fc:b0b5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215a:f453:e7a6:8837:95fc:b0b5:0:2', 'tags': [], 'project_id': '9b19f62bc21045a8942a9a0a5f362b2b'}} 2026-08-25 23:27:00,903 - INFO - Created VN ctest-vn4-86715808 2026-08-25 23:27:00,957 - DEBUG - VN ctest-vn4-86715808 UUID is 3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:01,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c91274e-5340-48af-aec9-856d8d6ce577', 'name': 'ctest-vn4-86715808', 'tenant_id': '9b19f62bc21045a8942a9a0a5f362b2b', 'project_id': '9b19f62bc21045a8942a9a0a5f362b2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['43d26325-c433-427f-b659-4497d6ceaeac', '5d8f9708-3160-4b5e-b1ea-52aab1b5da6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55131237', 'ctest-vn4-86715808'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55131237', 'ctest-policy1-77067666']], 'subnet_ipam': [{'subnet_cidr': '48.100.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '215a:f453:e7a6:8837:95fc:b0b5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 23:27:01,377 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-25 23:27:01,712 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-25 23:27:01,742 - DEBUG - Requesting: http://10.0.0.189:8082/domain/91e51faf-2991-4b58-94f1-05e8a4498d06 2026-08-25 23:27:01,756 - DEBUG - Requesting: http://10.0.0.189:8082/project/9b19f62b-c210-45a8-942a-9a0a5f362b2b 2026-08-25 23:27:01,841 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:01,855 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:01,866 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0c855a8e-6a8e-4e42-acf8-2d2c74c5bccc 2026-08-25 23:27:01,876 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0c855a8e-6a8e-4e42-acf8-2d2c74c5bccc 2026-08-25 23:27:01,884 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/d417b8ef-8812-4b29-b066-e716d56cede0 2026-08-25 23:27:01,893 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 23:27:01,893 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:01,904 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0c855a8e-6a8e-4e42-acf8-2d2c74c5bccc 2026-08-25 23:27:01,921 - INFO - Verified VN network id 11 for VN 3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:01,921 - INFO - Verifications in API Server for VN ctest-vn4-86715808 passed 2026-08-25 23:27:01,921 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:01,938 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0c855a8e-6a8e-4e42-acf8-2d2c74c5bccc 2026-08-25 23:27:01,947 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0c855a8e-6a8e-4e42-acf8-2d2c74c5bccc 2026-08-25 23:27:01,955 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/d417b8ef-8812-4b29-b066-e716d56cede0 2026-08-25 23:27:01,969 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55131237:ctest-vn4-86715808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55131237', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4364312731256375471', 'uuid-lslong': '12594744538488956279'}, 'enable': 'true', 'created': '2026-08-25T23:27:00', 'last-modified': '2026-08-25T23:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.803626'} 2026-08-25 23:27:01,979 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 23:27:01,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86715808 passed 2026-08-25 23:27:01,979 - DEBUG - ====Verifying policy data for ctest-vn4-86715808 in API_Server ====== 2026-08-25 23:27:01,979 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-25 23:27:01,988 - DEBUG - Requesting: http://10.0.0.189:8082/domain/91e51faf-2991-4b58-94f1-05e8a4498d06 2026-08-25 23:27:01,999 - DEBUG - Requesting: http://10.0.0.189:8082/project/9b19f62b-c210-45a8-942a-9a0a5f362b2b 2026-08-25 23:27:02,080 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/3c91274e-5340-48af-aec9-856d8d6ce577 2026-08-25 23:27:02,092 - DEBUG - ==>Verifying data for policy with id: afde1b19-74c0-48e3-b4f6-b514f0b55334, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55131237', 'ctest-policy1-77067666'] 2026-08-25 23:27:02,092 - INFO - VN ctest-vn4-86715808 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 23:27:02,092 - DEBUG - Verifying the vn in opserver 2026-08-25 23:27:02,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55131237:ctest-vn4-86715808 virtual network link through opserver 10.0.0.189 2026-08-25 23:27:02,092 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-08-25 23:27:02,431 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-08-25 23:27:02,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55131237:ctest-vn4-86715808', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55131237:ctest-vn4-86715808?flat'} 2026-08-25 23:27:02,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55131237:ctest-vn4-86715808 is found in opserver 2026-08-25 23:27:02,507 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 23:27:02,513 - DEBUG - VRF ids for VN ctest-vn4-86715808: {} 2026-08-25 23:27:02,513 - DEBUG - ====Verifying data for ctest-policy1-77067666 in API_Server ====== 2026-08-25 23:27:02,514 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-25 23:27:02,521 - DEBUG - Requesting: http://10.0.0.189:8082/domain/91e51faf-2991-4b58-94f1-05e8a4498d06 2026-08-25 23:27:02,533 - DEBUG - Requesting: http://10.0.0.189:8082/project/9b19f62b-c210-45a8-942a-9a0a5f362b2b 2026-08-25 23:27:02,614 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/afde1b19-74c0-48e3-b4f6-b514f0b55334 2026-08-25 23:27:02,625 - INFO - Verified policy ctest-policy1-77067666 in API Server, Result: True 2026-08-25 23:27:02,625 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 23:27:02,636 - INFO - Deleting VN ctest-vn4-86715808 2026-08-25 23:27:02,782 - DEBUG - Response for deleting network () 2026-08-25 23:27:02,782 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0c855a8e-6a8e-4e42-acf8-2d2c74c5bccc 2026-08-25 23:27:02,788 - DEBUG - Response Code: 404 2026-08-25 23:27:02,788 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-25 23:27:02,795 - DEBUG - Requesting: http://10.0.0.189:8082/domain/91e51faf-2991-4b58-94f1-05e8a4498d06 2026-08-25 23:27:02,851 - DEBUG - Requesting: http://10.0.0.189:8082/project/9b19f62b-c210-45a8-942a-9a0a5f362b2b 2026-08-25 23:27:02,929 - INFO - Validated that VN ctest-vn4-86715808 is not found in API Server 2026-08-25 23:27:02,942 - DEBUG - VN ctest-vn4-86715808 is not present in Agent 10.0.0.189 2026-08-25 23:27:02,942 - INFO - Validated that VN ctest-vn4-86715808 is not in any agent 2026-08-25 23:27:02,959 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86715808 info 2026-08-25 23:27:02,997 - INFO - Deleted policy ctest-policy1-77067666 2026-08-25 23:27:03,185 - DEBUG - policy ctest-policy1-77067666 is not found in API Server 2026-08-25 23:27:03,451 - DEBUG - No XMPP flaps were noticed during the test 2026-08-25 23:27:03,451 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-25 23:27:03,452 - INFO - -------------------------------------------------------------------------------- 2026-08-25 23:27:03,755 - DEBUG - No XMPP flaps were noticed during the test 2026-08-25 23:27:03,755 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-25 23:27:03,755 - INFO - -------------------------------------------------------------------------------- 2026-08-25 23:27:04,500 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55131237, ID : 9b19f62b-c210-45a8-942a-9a0a5f362b2b