2026-05-28 01:52:51,441 - INFO - Reading existing Domain with UUID 1d5ccdab-3b8a-46cd-977b-65a3c3aa09af 2026-05-28 01:52:51,451 - INFO - Using existing domain ['admin_domain'](1d5ccdab-3b8a-46cd-977b-65a3c3aa09af) 2026-05-28 01:52:51,648 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04211940 not found, creating it 2026-05-28 01:52:52,132 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04211940, ID : 8d37a743-513f-47c7-b15a-456ad5a21eee 2026-05-28 01:52:53,798 - INFO - ================================================================================ 2026-05-28 01:52:53,798 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 01:52:54,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with 2026-05-28 01:52:54,183 - INFO - Initial checks done. Running the testcase now 2026-05-28 01:52:54,183 - INFO - 2026-05-28 01:52:54,183 - INFO - ================================================================================ 2026-05-28 01:52:54,183 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 01:52:54,184 - 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-28 01:52:54,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with 2026-05-28 01:52:54,583 - INFO - Initial checks done. Running the testcase now 2026-05-28 01:52:54,583 - INFO - 2026-05-28 01:52:54,958 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367, 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-28 01:52:55,658 - DEBUG - Response for create_network : {'network': {'id': 'f345cc01-2228-473e-af5c-43746dfdc9fd', 'name': 'ctest-vn4-57043367', 'tenant_id': '8d37a743513f47c7b15a456ad5a21eee', 'project_id': '8d37a743513f47c7b15a456ad5a21eee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04211940', 'ctest-vn4-57043367'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-05-28 01:52:55,914 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a418ab43-4d85-45a4-a164-b848819f2217', 'name': '', 'tenant_id': '8d37a743513f47c7b15a456ad5a21eee', 'network_id': 'f345cc01-2228-473e-af5c-43746dfdc9fd', 'ip_version': 4, 'cidr': '172.38.114.64/26', 'allocation_pools': [{'start': '172.38.114.66', 'end': '172.38.114.126'}], 'gateway_ip': '172.38.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-28T01:52:55.821078', 'updated_at': '2026-05-28T01:52:55.821078', 'dns_server_address': '172.38.114.66', 'tags': [], 'project_id': '8d37a743513f47c7b15a456ad5a21eee'}} 2026-05-28 01:52:56,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '551c90a2-bceb-4ee9-9d8c-977c05eb2ac8', 'name': '', 'tenant_id': '8d37a743513f47c7b15a456ad5a21eee', 'network_id': 'f345cc01-2228-473e-af5c-43746dfdc9fd', 'ip_version': 6, 'cidr': '21d9:d80f:85b2:db06:d32:8520::/96', 'allocation_pools': [{'start': '21d9:d80f:85b2:db06:d32:8520:0:2', 'end': '21d9:d80f:85b2:db06:d32:8520:ffff:fffe'}], 'gateway_ip': '21d9:d80f:85b2:db06:d32:8520:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-28T01:52:56.016691', 'updated_at': '2026-05-28T01:52:56.016691', 'dns_server_address': '21d9:d80f:85b2:db06:d32:8520:0:2', 'tags': [], 'project_id': '8d37a743513f47c7b15a456ad5a21eee'}} 2026-05-28 01:52:56,212 - INFO - Created VN ctest-vn4-57043367 2026-05-28 01:52:56,274 - DEBUG - VN ctest-vn4-57043367 UUID is f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:56,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f345cc01-2228-473e-af5c-43746dfdc9fd', 'name': 'ctest-vn4-57043367', 'tenant_id': '8d37a743513f47c7b15a456ad5a21eee', 'project_id': '8d37a743513f47c7b15a456ad5a21eee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a418ab43-4d85-45a4-a164-b848819f2217', '551c90a2-bceb-4ee9-9d8c-977c05eb2ac8'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04211940', 'ctest-vn4-57043367'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04211940', 'ctest-policy1-10834675']], 'subnet_ipam': [{'subnet_cidr': '172.38.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21d9:d80f:85b2:db06:d32:8520::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-28T01:52:55.584197', 'updated_at': '2026-05-28T01:52:56.037410'}} 2026-05-28 01:52:57,094 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-05-28 01:52:57,434 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-05-28 01:52:57,514 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af 2026-05-28 01:52:57,574 - DEBUG - Requesting: https://10.0.0.23:8082/project/8d37a743-513f-47c7-b15a-456ad5a21eee 2026-05-28 01:52:57,655 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:57,720 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:57,776 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/7e64f5d9-03ee-4346-b739-d570338ae95c 2026-05-28 01:52:57,831 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/7e64f5d9-03ee-4346-b739-d570338ae95c 2026-05-28 01:52:57,883 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/08ca32d9-345e-4fd5-abe7-2c87c974025a 2026-05-28 01:52:57,934 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 01:52:57,934 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:57,988 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/7e64f5d9-03ee-4346-b739-d570338ae95c 2026-05-28 01:52:58,047 - INFO - Verified VN network id 11 for VN f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:58,047 - INFO - Verifications in API Server for VN ctest-vn4-57043367 passed 2026-05-28 01:52:58,047 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:58,108 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/7e64f5d9-03ee-4346-b739-d570338ae95c 2026-05-28 01:52:58,162 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/7e64f5d9-03ee-4346-b739-d570338ae95c 2026-05-28 01:52:58,214 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/08ca32d9-345e-4fd5-abe7-2c87c974025a 2026-05-28 01:52:58,315 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04211940', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17529641429849622334', 'uuid-lslong': '12636048821835385341'}, 'enable': 'true', 'created': '2026-05-28T01:52:55', 'last-modified': '2026-05-28T01:52:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455819'} 2026-05-28 01:52:58,364 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 01:52:58,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57043367 passed 2026-05-28 01:52:58,364 - DEBUG - ====Verifying policy data for ctest-vn4-57043367 in API_Server ====== 2026-05-28 01:52:58,364 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-05-28 01:52:58,418 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af 2026-05-28 01:52:58,474 - DEBUG - Requesting: https://10.0.0.23:8082/project/8d37a743-513f-47c7-b15a-456ad5a21eee 2026-05-28 01:52:58,551 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/f345cc01-2228-473e-af5c-43746dfdc9fd 2026-05-28 01:52:58,608 - DEBUG - ==>Verifying data for policy with id: 1a27650b-adfa-446a-b0d1-40545c858304, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04211940', 'ctest-policy1-10834675'] 2026-05-28 01:52:58,608 - INFO - VN ctest-vn4-57043367 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 01:52:58,608 - DEBUG - Verifying the vn in opserver 2026-05-28 01:52:58,608 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367 virtual network link through opserver 10.0.0.23 2026-05-28 01:52:58,608 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-28 01:52:58,950 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-28 01:52:59,058 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367', 'href': 'https://10.0.0.23:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367?flat'} 2026-05-28 01:52:59,058 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-04211940:ctest-vn4-57043367 is found in opserver 2026-05-28 01:52:59,162 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 01:52:59,210 - DEBUG - VRF ids for VN ctest-vn4-57043367: {} 2026-05-28 01:52:59,211 - DEBUG - ====Verifying data for ctest-policy1-10834675 in API_Server ====== 2026-05-28 01:52:59,211 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-05-28 01:52:59,263 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af 2026-05-28 01:52:59,323 - DEBUG - Requesting: https://10.0.0.23:8082/project/8d37a743-513f-47c7-b15a-456ad5a21eee 2026-05-28 01:52:59,399 - DEBUG - Requesting: https://10.0.0.23:8082/network-policy/1a27650b-adfa-446a-b0d1-40545c858304 2026-05-28 01:52:59,456 - INFO - Verified policy ctest-policy1-10834675 in API Server, Result: True 2026-05-28 01:52:59,456 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 01:52:59,464 - INFO - Deleting VN ctest-vn4-57043367 2026-05-28 01:52:59,658 - DEBUG - Response for deleting network () 2026-05-28 01:52:59,658 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/7e64f5d9-03ee-4346-b739-d570338ae95c 2026-05-28 01:52:59,710 - DEBUG - Response Code: 404 2026-05-28 01:52:59,710 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-05-28 01:52:59,766 - DEBUG - Requesting: https://10.0.0.23:8082/domain/1d5ccdab-3b8a-46cd-977b-65a3c3aa09af 2026-05-28 01:52:59,822 - DEBUG - Requesting: https://10.0.0.23:8082/project/8d37a743-513f-47c7-b15a-456ad5a21eee 2026-05-28 01:52:59,895 - INFO - Validated that VN ctest-vn4-57043367 is not found in API Server 2026-05-28 01:52:59,994 - DEBUG - VN ctest-vn4-57043367 is not present in Agent 10.0.0.23 2026-05-28 01:52:59,994 - INFO - Validated that VN ctest-vn4-57043367 is not in any agent 2026-05-28 01:53:00,139 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57043367 info 2026-05-28 01:53:00,174 - INFO - Deleted policy ctest-policy1-10834675 2026-05-28 01:53:00,345 - DEBUG - policy ctest-policy1-10834675 is not found in API Server 2026-05-28 01:53:00,727 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 01:53:00,727 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-05-28 01:53:00,727 - INFO - -------------------------------------------------------------------------------- 2026-05-28 01:53:01,107 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 01:53:01,107 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-05-28 01:53:01,107 - INFO - -------------------------------------------------------------------------------- 2026-05-28 01:53:01,837 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04211940, ID : 8d37a743-513f-47c7-b15a-456ad5a21eee