GitHub user sbrueseke closed the discussion with a comment: removing secondary storage: Cannot delete image store with active templates backup
Looks like we fixed the issue. We were unable to reproduce this issue in our testlab. We were able to delete a secondary storage without any issues in out testlab. So I still do not know what was getting us into this state. This is what we did to fix it: - Check which templates are still connected to the secondary storage: select * from template_store_ref where store_id=1 and state="Ready" - Check which templates are effected: select * from vm_template where id=<template_id>; - Update db for all templates from above: UPDATE template_store_ref SET state = 'Destroyed', destroyed = 1 WHERE id = <id>; After that we were able to delete the unneeded secondary storage. @DaanHoogland thx for your help, pushing us in the right direction. GitHub link: https://github.com/apache/cloudstack/discussions/10622#discussioncomment-13144937 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org