2026-02-11 16:54:31,284 - INFO - Domain Default found not creating 2026-02-11 16:54:31,493 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31664286 not found, creating it 2026-02-11 16:54:31,980 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31664286, ID : e2a579cc-f794-4a34-ae1d-710f41ce0610 2026-02-11 16:54:33,434 - INFO - ================================================================================ 2026-02-11 16:54:33,434 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 16:54:33,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-11 16:54:33,687 - INFO - Initial checks done. Running the testcase now 2026-02-11 16:54:33,687 - INFO - 2026-02-11 16:54:33,687 - INFO - ================================================================================ 2026-02-11 16:54:33,687 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 16:54:33,687 - 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-02-11 16:54:33,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-11 16:54:33,980 - INFO - Initial checks done. Running the testcase now 2026-02-11 16:54:33,980 - INFO - 2026-02-11 16:54:34,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31664286:ctest-vn4-90589290, 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-31664286:ctest-vn4-90589290, 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-31664286:ctest-vn4-90589290, 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-31664286:ctest-vn4-90589290, 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-02-11 16:54:34,845 - DEBUG - Response for create_network : {'network': {'id': 'd9f084cd-29df-4e62-9b4c-d51d692664bb', 'name': 'ctest-vn4-90589290', 'tenant_id': 'e2a579ccf7944a34ae1d710f41ce0610', 'project_id': 'e2a579ccf7944a34ae1d710f41ce0610', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31664286', 'ctest-vn4-90589290'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 16:54:35,018 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bac2ce9-c33e-4ad6-a68c-77989b0aa7b9', 'name': '', 'tenant_id': 'e2a579ccf7944a34ae1d710f41ce0610', 'network_id': 'd9f084cd-29df-4e62-9b4c-d51d692664bb', 'ip_version': 4, 'cidr': '156.253.197.64/26', 'allocation_pools': [{'start': '156.253.197.66', 'end': '156.253.197.126'}], 'gateway_ip': '156.253.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.253.197.66', 'tags': [], 'project_id': 'e2a579ccf7944a34ae1d710f41ce0610'}} 2026-02-11 16:54:35,218 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bdb5c807-bd73-4b85-a525-f478ec5af87e', 'name': '', 'tenant_id': 'e2a579ccf7944a34ae1d710f41ce0610', 'network_id': 'd9f084cd-29df-4e62-9b4c-d51d692664bb', 'ip_version': 6, 'cidr': '37c3:9ef:fd1c:3e1c:8104:3ff2::/96', 'allocation_pools': [{'start': '37c3:9ef:fd1c:3e1c:8104:3ff2:0:2', 'end': '37c3:9ef:fd1c:3e1c:8104:3ff2:ffff:fffe'}], 'gateway_ip': '37c3:9ef:fd1c:3e1c:8104:3ff2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37c3:9ef:fd1c:3e1c:8104:3ff2:0:2', 'tags': [], 'project_id': 'e2a579ccf7944a34ae1d710f41ce0610'}} 2026-02-11 16:54:35,237 - INFO - Created VN ctest-vn4-90589290 2026-02-11 16:54:35,290 - DEBUG - VN ctest-vn4-90589290 UUID is d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:35,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9f084cd-29df-4e62-9b4c-d51d692664bb', 'name': 'ctest-vn4-90589290', 'tenant_id': 'e2a579ccf7944a34ae1d710f41ce0610', 'project_id': 'e2a579ccf7944a34ae1d710f41ce0610', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bac2ce9-c33e-4ad6-a68c-77989b0aa7b9', 'bdb5c807-bd73-4b85-a525-f478ec5af87e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31664286', 'ctest-vn4-90589290'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31664286', 'ctest-policy1-18984001']], 'subnet_ipam': [{'subnet_cidr': '156.253.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37c3:9ef:fd1c:3e1c:8104:3ff2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 16:54:35,698 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 16:54:35,989 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 16:54:36,025 - DEBUG - Requesting: http://10.0.0.50:8082/domain/13bd3417-4207-4e05-9cf4-3a0ff5bd6ff5 2026-02-11 16:54:36,037 - DEBUG - Requesting: http://10.0.0.50:8082/project/e2a579cc-f794-4a34-ae1d-710f41ce0610 2026-02-11 16:54:36,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:36,123 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:36,133 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/daba7437-0a24-4d49-8d40-8ab0b530bad3 2026-02-11 16:54:36,145 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/daba7437-0a24-4d49-8d40-8ab0b530bad3 2026-02-11 16:54:36,152 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d78bd6d1-e0e5-4507-a2ba-96bc17b4fcfa 2026-02-11 16:54:36,159 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 16:54:36,159 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:36,169 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/daba7437-0a24-4d49-8d40-8ab0b530bad3 2026-02-11 16:54:36,183 - INFO - Verified VN network id 12 for VN d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:36,183 - INFO - Verifications in API Server for VN ctest-vn4-90589290 passed 2026-02-11 16:54:36,183 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:36,195 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/daba7437-0a24-4d49-8d40-8ab0b530bad3 2026-02-11 16:54:36,203 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/daba7437-0a24-4d49-8d40-8ab0b530bad3 2026-02-11 16:54:36,209 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d78bd6d1-e0e5-4507-a2ba-96bc17b4fcfa 2026-02-11 16:54:36,220 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31664286:ctest-vn4-90589290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31664286', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15704197917346582114', 'uuid-lslong': '11190553496403731643'}, 'enable': 'true', 'created': '2026-02-11T16:54:34', 'last-modified': '2026-02-11T16:54:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704797'} 2026-02-11 16:54:36,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 16:54:36,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90589290 passed 2026-02-11 16:54:36,226 - DEBUG - ====Verifying policy data for ctest-vn4-90589290 in API_Server ====== 2026-02-11 16:54:36,226 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 16:54:36,231 - DEBUG - Requesting: http://10.0.0.50:8082/domain/13bd3417-4207-4e05-9cf4-3a0ff5bd6ff5 2026-02-11 16:54:36,242 - DEBUG - Requesting: http://10.0.0.50:8082/project/e2a579cc-f794-4a34-ae1d-710f41ce0610 2026-02-11 16:54:36,313 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9f084cd-29df-4e62-9b4c-d51d692664bb 2026-02-11 16:54:36,325 - DEBUG - ==>Verifying data for policy with id: 4aa7e6ed-5f4e-4efd-a712-973d10e6e6bb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31664286', 'ctest-policy1-18984001'] 2026-02-11 16:54:36,325 - INFO - VN ctest-vn4-90589290 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 16:54:36,325 - DEBUG - Verifying the vn in opserver 2026-02-11 16:54:36,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31664286:ctest-vn4-90589290 virtual network link through opserver 10.0.0.50 2026-02-11 16:54:36,325 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-11 16:54:36,617 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-11 16:54:36,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31664286:ctest-vn4-90589290', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31664286:ctest-vn4-90589290?flat'} 2026-02-11 16:54:36,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31664286:ctest-vn4-90589290 is found in opserver 2026-02-11 16:54:36,683 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 16:54:36,687 - DEBUG - VRF ids for VN ctest-vn4-90589290: {} 2026-02-11 16:54:36,687 - DEBUG - ====Verifying data for ctest-policy1-18984001 in API_Server ====== 2026-02-11 16:54:36,687 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 16:54:36,692 - DEBUG - Requesting: http://10.0.0.50:8082/domain/13bd3417-4207-4e05-9cf4-3a0ff5bd6ff5 2026-02-11 16:54:36,702 - DEBUG - Requesting: http://10.0.0.50:8082/project/e2a579cc-f794-4a34-ae1d-710f41ce0610 2026-02-11 16:54:36,770 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/4aa7e6ed-5f4e-4efd-a712-973d10e6e6bb 2026-02-11 16:54:36,779 - INFO - Verified policy ctest-policy1-18984001 in API Server, Result: True 2026-02-11 16:54:36,779 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 16:54:36,786 - INFO - Deleting VN ctest-vn4-90589290 2026-02-11 16:54:36,885 - DEBUG - Response for deleting network () 2026-02-11 16:54:36,885 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/daba7437-0a24-4d49-8d40-8ab0b530bad3 2026-02-11 16:54:36,891 - DEBUG - Response Code: 404 2026-02-11 16:54:36,891 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 16:54:36,897 - DEBUG - Requesting: http://10.0.0.50:8082/domain/13bd3417-4207-4e05-9cf4-3a0ff5bd6ff5 2026-02-11 16:54:36,951 - DEBUG - Requesting: http://10.0.0.50:8082/project/e2a579cc-f794-4a34-ae1d-710f41ce0610 2026-02-11 16:54:37,021 - INFO - Validated that VN ctest-vn4-90589290 is not found in API Server 2026-02-11 16:54:37,031 - DEBUG - VN ctest-vn4-90589290 is not present in Agent 10.0.0.50 2026-02-11 16:54:37,031 - INFO - Validated that VN ctest-vn4-90589290 is not in any agent 2026-02-11 16:54:37,045 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90589290 info 2026-02-11 16:54:37,067 - INFO - Deleted policy ctest-policy1-18984001 2026-02-11 16:54:37,234 - DEBUG - policy ctest-policy1-18984001 is not found in API Server 2026-02-11 16:54:37,486 - DEBUG - No XMPP flaps were noticed during the test