2026-02-19 19:12:35,032 - INFO - Domain Default found not creating 2026-02-19 19:12:35,184 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90346451 not found, creating it 2026-02-19 19:12:35,624 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90346451, ID : efbbcae2-eba8-48a5-ab26-64eb26625b17 2026-02-19 19:12:37,036 - INFO - ================================================================================ 2026-02-19 19:12:37,036 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 19:12:37,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-19 19:12:37,293 - INFO - Initial checks done. Running the testcase now 2026-02-19 19:12:37,293 - INFO - 2026-02-19 19:12:37,293 - INFO - ================================================================================ 2026-02-19 19:12:37,293 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 19:12:37,293 - 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-19 19:12:37,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-19 19:12:37,583 - INFO - Initial checks done. Running the testcase now 2026-02-19 19:12:37,583 - INFO - 2026-02-19 19:12:37,937 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90346451:ctest-vn4-01380735, 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-90346451:ctest-vn4-01380735, 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-90346451:ctest-vn4-01380735, 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-90346451:ctest-vn4-01380735, 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-19 19:12:38,426 - DEBUG - Response for create_network : {'network': {'id': '86cfaa70-2258-4ced-b7a5-e6879578865d', 'name': 'ctest-vn4-01380735', 'tenant_id': 'efbbcae2eba848a5ab2664eb26625b17', 'project_id': 'efbbcae2eba848a5ab2664eb26625b17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90346451', 'ctest-vn4-01380735'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 19:12:38,606 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acf584f7-4ebb-484d-bea5-c364f85cad3f', 'name': '', 'tenant_id': 'efbbcae2eba848a5ab2664eb26625b17', 'network_id': '86cfaa70-2258-4ced-b7a5-e6879578865d', 'ip_version': 4, 'cidr': '191.85.95.128/26', 'allocation_pools': [{'start': '191.85.95.130', 'end': '191.85.95.190'}], 'gateway_ip': '191.85.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.85.95.130', 'tags': [], 'project_id': 'efbbcae2eba848a5ab2664eb26625b17'}} 2026-02-19 19:12:38,748 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa7a3b35-6114-4fd5-a55f-85a41a350bc3', 'name': '', 'tenant_id': 'efbbcae2eba848a5ab2664eb26625b17', 'network_id': '86cfaa70-2258-4ced-b7a5-e6879578865d', 'ip_version': 6, 'cidr': '30d3:e273:4f89:4eff:a70d:32c1::/96', 'allocation_pools': [{'start': '30d3:e273:4f89:4eff:a70d:32c1:0:2', 'end': '30d3:e273:4f89:4eff:a70d:32c1:ffff:fffe'}], 'gateway_ip': '30d3:e273:4f89:4eff:a70d:32c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30d3:e273:4f89:4eff:a70d:32c1:0:2', 'tags': [], 'project_id': 'efbbcae2eba848a5ab2664eb26625b17'}} 2026-02-19 19:12:38,768 - INFO - Created VN ctest-vn4-01380735 2026-02-19 19:12:38,818 - DEBUG - VN ctest-vn4-01380735 UUID is 86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86cfaa70-2258-4ced-b7a5-e6879578865d', 'name': 'ctest-vn4-01380735', 'tenant_id': 'efbbcae2eba848a5ab2664eb26625b17', 'project_id': 'efbbcae2eba848a5ab2664eb26625b17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acf584f7-4ebb-484d-bea5-c364f85cad3f', 'fa7a3b35-6114-4fd5-a55f-85a41a350bc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90346451', 'ctest-vn4-01380735'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90346451', 'ctest-policy1-91097382']], 'subnet_ipam': [{'subnet_cidr': '191.85.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30d3:e273:4f89:4eff:a70d:32c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 19:12:39,178 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 19:12:39,469 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 19:12:39,501 - DEBUG - Requesting: http://10.0.0.50:8082/domain/df877cc6-b76e-4297-8c11-c5ad3e639e3f 2026-02-19 19:12:39,512 - DEBUG - Requesting: http://10.0.0.50:8082/project/efbbcae2-eba8-48a5-ab26-64eb26625b17 2026-02-19 19:12:39,588 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,599 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,607 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb1aa3b-eb6f-4bb6-be06-8e3d77d76ad5 2026-02-19 19:12:39,613 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb1aa3b-eb6f-4bb6-be06-8e3d77d76ad5 2026-02-19 19:12:39,619 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a0519f71-e594-4368-bf74-7a0dec69235f 2026-02-19 19:12:39,624 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 19:12:39,624 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb1aa3b-eb6f-4bb6-be06-8e3d77d76ad5 2026-02-19 19:12:39,643 - INFO - Verified VN network id 11 for VN 86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,643 - INFO - Verifications in API Server for VN ctest-vn4-01380735 passed 2026-02-19 19:12:39,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,650 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb1aa3b-eb6f-4bb6-be06-8e3d77d76ad5 2026-02-19 19:12:39,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb1aa3b-eb6f-4bb6-be06-8e3d77d76ad5 2026-02-19 19:12:39,662 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a0519f71-e594-4368-bf74-7a0dec69235f 2026-02-19 19:12:39,671 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90346451:ctest-vn4-01380735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90346451', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9714170319850720493', 'uuid-lslong': '13233236550100747869'}, 'enable': 'true', 'created': '2026-02-19T19:12:38', 'last-modified': '2026-02-19T19:12:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691677'} 2026-02-19 19:12:39,678 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 19:12:39,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01380735 passed 2026-02-19 19:12:39,678 - DEBUG - ====Verifying policy data for ctest-vn4-01380735 in API_Server ====== 2026-02-19 19:12:39,678 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 19:12:39,683 - DEBUG - Requesting: http://10.0.0.50:8082/domain/df877cc6-b76e-4297-8c11-c5ad3e639e3f 2026-02-19 19:12:39,693 - DEBUG - Requesting: http://10.0.0.50:8082/project/efbbcae2-eba8-48a5-ab26-64eb26625b17 2026-02-19 19:12:39,768 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86cfaa70-2258-4ced-b7a5-e6879578865d 2026-02-19 19:12:39,777 - DEBUG - ==>Verifying data for policy with id: 33e7ab07-158c-4c82-99ed-96339f21f1f0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90346451', 'ctest-policy1-91097382'] 2026-02-19 19:12:39,777 - INFO - VN ctest-vn4-01380735 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 19:12:39,777 - DEBUG - Verifying the vn in opserver 2026-02-19 19:12:39,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90346451:ctest-vn4-01380735 virtual network link through opserver 10.0.0.50 2026-02-19 19:12:39,777 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-19 19:12:40,066 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-19 19:12:40,122 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90346451:ctest-vn4-01380735', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90346451:ctest-vn4-01380735?flat'} 2026-02-19 19:12:40,122 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90346451:ctest-vn4-01380735 is found in opserver 2026-02-19 19:12:40,131 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 19:12:40,134 - DEBUG - VRF ids for VN ctest-vn4-01380735: {} 2026-02-19 19:12:40,135 - DEBUG - ====Verifying data for ctest-policy1-91097382 in API_Server ====== 2026-02-19 19:12:40,135 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 19:12:40,140 - DEBUG - Requesting: http://10.0.0.50:8082/domain/df877cc6-b76e-4297-8c11-c5ad3e639e3f 2026-02-19 19:12:40,149 - DEBUG - Requesting: http://10.0.0.50:8082/project/efbbcae2-eba8-48a5-ab26-64eb26625b17 2026-02-19 19:12:40,214 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/33e7ab07-158c-4c82-99ed-96339f21f1f0 2026-02-19 19:12:40,225 - INFO - Verified policy ctest-policy1-91097382 in API Server, Result: True 2026-02-19 19:12:40,225 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 19:12:40,233 - INFO - Deleting VN ctest-vn4-01380735 2026-02-19 19:12:40,336 - DEBUG - Response for deleting network () 2026-02-19 19:12:40,336 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb1aa3b-eb6f-4bb6-be06-8e3d77d76ad5 2026-02-19 19:12:40,341 - DEBUG - Response Code: 404 2026-02-19 19:12:40,341 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 19:12:40,346 - DEBUG - Requesting: http://10.0.0.50:8082/domain/df877cc6-b76e-4297-8c11-c5ad3e639e3f 2026-02-19 19:12:40,399 - DEBUG - Requesting: http://10.0.0.50:8082/project/efbbcae2-eba8-48a5-ab26-64eb26625b17 2026-02-19 19:12:40,470 - INFO - Validated that VN ctest-vn4-01380735 is not found in API Server 2026-02-19 19:12:40,479 - DEBUG - VN ctest-vn4-01380735 is not present in Agent 10.0.0.50 2026-02-19 19:12:40,479 - INFO - Validated that VN ctest-vn4-01380735 is not in any agent 2026-02-19 19:12:40,490 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01380735 info 2026-02-19 19:12:40,514 - INFO - Deleted policy ctest-policy1-91097382 2026-02-19 19:12:40,678 - DEBUG - policy ctest-policy1-91097382 is not found in API Server 2026-02-19 19:12:40,939 - DEBUG - No XMPP flaps were noticed during the test 2026-02-19 19:12:40,939 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-19 19:12:40,939 - INFO - -------------------------------------------------------------------------------- 2026-02-19 19:12:41,230 - DEBUG - No XMPP flaps were noticed during the test 2026-02-19 19:12:41,230 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-19 19:12:41,231 - INFO - -------------------------------------------------------------------------------- 2026-02-19 19:12:41,895 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90346451, ID : efbbcae2-eba8-48a5-ab26-64eb26625b17