2026-02-10 03:47:34,670 - INFO - Domain Default found not creating 2026-02-10 03:47:34,886 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22317880 not found, creating it 2026-02-10 03:47:35,394 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22317880, ID : d2dd70d4-a7e3-426c-8079-ae0092051ed0 2026-02-10 03:47:37,181 - INFO - ================================================================================ 2026-02-10 03:47:37,182 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 03:47:37,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-02-10 03:47:37,452 - INFO - Initial checks done. Running the testcase now 2026-02-10 03:47:37,452 - INFO - 2026-02-10 03:47:37,452 - INFO - ================================================================================ 2026-02-10 03:47:37,452 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 03:47:37,452 - 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-10 03:47:37,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-02-10 03:47:37,751 - INFO - Initial checks done. Running the testcase now 2026-02-10 03:47:37,751 - INFO - 2026-02-10 03:47:38,168 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22317880:ctest-vn4-63368464, 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-22317880:ctest-vn4-63368464, 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-22317880:ctest-vn4-63368464, 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-22317880:ctest-vn4-63368464, 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-10 03:47:38,740 - DEBUG - Response for create_network : {'network': {'id': '9844f707-1c72-44fa-bfd3-716db74c654a', 'name': 'ctest-vn4-63368464', 'tenant_id': 'd2dd70d4a7e3426c8079ae0092051ed0', 'project_id': 'd2dd70d4a7e3426c8079ae0092051ed0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22317880', 'ctest-vn4-63368464'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 03:47:38,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1d3bb41-bd8f-4110-8149-c0a383420975', 'name': '', 'tenant_id': 'd2dd70d4a7e3426c8079ae0092051ed0', 'network_id': '9844f707-1c72-44fa-bfd3-716db74c654a', 'ip_version': 4, 'cidr': '138.107.70.64/26', 'allocation_pools': [{'start': '138.107.70.66', 'end': '138.107.70.126'}], 'gateway_ip': '138.107.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.107.70.66', 'tags': [], 'project_id': 'd2dd70d4a7e3426c8079ae0092051ed0'}} 2026-02-10 03:47:39,203 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5e3be66-fc62-4721-a79c-6f3a3162dad0', 'name': '', 'tenant_id': 'd2dd70d4a7e3426c8079ae0092051ed0', 'network_id': '9844f707-1c72-44fa-bfd3-716db74c654a', 'ip_version': 6, 'cidr': '2cf6:1741:bcb7:d469:d8a2:20b9::/96', 'allocation_pools': [{'start': '2cf6:1741:bcb7:d469:d8a2:20b9:0:2', 'end': '2cf6:1741:bcb7:d469:d8a2:20b9:ffff:fffe'}], 'gateway_ip': '2cf6:1741:bcb7:d469:d8a2:20b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cf6:1741:bcb7:d469:d8a2:20b9:0:2', 'tags': [], 'project_id': 'd2dd70d4a7e3426c8079ae0092051ed0'}} 2026-02-10 03:47:39,226 - INFO - Created VN ctest-vn4-63368464 2026-02-10 03:47:39,282 - DEBUG - VN ctest-vn4-63368464 UUID is 9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:39,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9844f707-1c72-44fa-bfd3-716db74c654a', 'name': 'ctest-vn4-63368464', 'tenant_id': 'd2dd70d4a7e3426c8079ae0092051ed0', 'project_id': 'd2dd70d4a7e3426c8079ae0092051ed0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1d3bb41-bd8f-4110-8149-c0a383420975', 'd5e3be66-fc62-4721-a79c-6f3a3162dad0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22317880', 'ctest-vn4-63368464'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22317880', 'ctest-policy1-65223606']], 'subnet_ipam': [{'subnet_cidr': '138.107.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cf6:1741:bcb7:d469:d8a2:20b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 03:47:39,722 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-10 03:47:40,094 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-10 03:47:40,153 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ff05a495-4b08-489a-a429-67ab9b34a88c 2026-02-10 03:47:40,197 - DEBUG - Requesting: http://10.0.0.19:8082/project/d2dd70d4-a7e3-426c-8079-ae0092051ed0 2026-02-10 03:47:40,305 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:40,317 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:40,332 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bd1b5b09-2854-4a42-a54c-279da81d9ed1 2026-02-10 03:47:40,342 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bd1b5b09-2854-4a42-a54c-279da81d9ed1 2026-02-10 03:47:40,350 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b70ffaa0-34cc-483d-b770-ad39a3946dcf 2026-02-10 03:47:40,357 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 03:47:40,357 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:40,368 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bd1b5b09-2854-4a42-a54c-279da81d9ed1 2026-02-10 03:47:40,385 - INFO - Verified VN network id 12 for VN 9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:40,385 - INFO - Verifications in API Server for VN ctest-vn4-63368464 passed 2026-02-10 03:47:40,385 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:40,395 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bd1b5b09-2854-4a42-a54c-279da81d9ed1 2026-02-10 03:47:40,403 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bd1b5b09-2854-4a42-a54c-279da81d9ed1 2026-02-10 03:47:40,410 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b70ffaa0-34cc-483d-b770-ad39a3946dcf 2026-02-10 03:47:40,421 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22317880:ctest-vn4-63368464', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22317880', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10972166202095453434', 'uuid-lslong': '13822516397370795338'}, 'enable': 'true', 'created': '2026-02-10T03:47:38', 'last-modified': '2026-02-10T03:47:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909419'} 2026-02-10 03:47:40,427 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 03:47:40,428 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63368464 passed 2026-02-10 03:47:40,428 - DEBUG - ====Verifying policy data for ctest-vn4-63368464 in API_Server ====== 2026-02-10 03:47:40,428 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-10 03:47:40,435 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ff05a495-4b08-489a-a429-67ab9b34a88c 2026-02-10 03:47:40,447 - DEBUG - Requesting: http://10.0.0.19:8082/project/d2dd70d4-a7e3-426c-8079-ae0092051ed0 2026-02-10 03:47:40,518 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/9844f707-1c72-44fa-bfd3-716db74c654a 2026-02-10 03:47:40,528 - DEBUG - ==>Verifying data for policy with id: 0fedc7c3-9b37-4890-96b6-f9ee5041e178, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22317880', 'ctest-policy1-65223606'] 2026-02-10 03:47:40,528 - INFO - VN ctest-vn4-63368464 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 03:47:40,528 - DEBUG - Verifying the vn in opserver 2026-02-10 03:47:40,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22317880:ctest-vn4-63368464 virtual network link through opserver 10.0.0.19 2026-02-10 03:47:40,529 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-10 03:47:40,873 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-10 03:47:40,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22317880:ctest-vn4-63368464', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22317880:ctest-vn4-63368464?flat'} 2026-02-10 03:47:40,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22317880:ctest-vn4-63368464 is found in opserver 2026-02-10 03:47:40,959 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 03:47:40,964 - DEBUG - VRF ids for VN ctest-vn4-63368464: {} 2026-02-10 03:47:40,965 - DEBUG - ====Verifying data for ctest-policy1-65223606 in API_Server ====== 2026-02-10 03:47:40,965 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-10 03:47:40,971 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ff05a495-4b08-489a-a429-67ab9b34a88c 2026-02-10 03:47:40,983 - DEBUG - Requesting: http://10.0.0.19:8082/project/d2dd70d4-a7e3-426c-8079-ae0092051ed0 2026-02-10 03:47:41,060 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/0fedc7c3-9b37-4890-96b6-f9ee5041e178 2026-02-10 03:47:41,072 - INFO - Verified policy ctest-policy1-65223606 in API Server, Result: True 2026-02-10 03:47:41,072 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 03:47:41,082 - INFO - Deleting VN ctest-vn4-63368464 2026-02-10 03:47:41,209 - DEBUG - Response for deleting network () 2026-02-10 03:47:41,209 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bd1b5b09-2854-4a42-a54c-279da81d9ed1 2026-02-10 03:47:41,215 - DEBUG - Response Code: 404 2026-02-10 03:47:41,215 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-10 03:47:41,221 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ff05a495-4b08-489a-a429-67ab9b34a88c 2026-02-10 03:47:41,275 - DEBUG - Requesting: http://10.0.0.19:8082/project/d2dd70d4-a7e3-426c-8079-ae0092051ed0 2026-02-10 03:47:41,349 - INFO - Validated that VN ctest-vn4-63368464 is not found in API Server 2026-02-10 03:47:41,361 - DEBUG - VN ctest-vn4-63368464 is not present in Agent 10.0.0.19 2026-02-10 03:47:41,361 - INFO - Validated that VN ctest-vn4-63368464 is not in any agent 2026-02-10 03:47:41,376 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63368464 info 2026-02-10 03:47:41,404 - INFO - Deleted policy ctest-policy1-65223606 2026-02-10 03:47:41,574 - DEBUG - policy ctest-policy1-65223606 is not found in API Server 2026-02-10 03:47:41,843 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 03:47:41,843 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 03:47:41,843 - INFO - -------------------------------------------------------------------------------- 2026-02-10 03:47:42,140 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 03:47:42,140 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-10 03:47:42,141 - INFO - -------------------------------------------------------------------------------- 2026-02-10 03:47:42,919 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22317880, ID : d2dd70d4-a7e3-426c-8079-ae0092051ed0