Skip to content

removing secondary storage: Cannot delete image store with active templates backup #10622

Closed Answered by sbrueseke
sbrueseke asked this question in Q&A
Discussion options

You must be logged in to vote

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 = ;

After that we were able to delete the unneeded secondary storage.
@DaanHoogland thx for your help, p…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@sbrueseke
Comment options

@DaanHoogland
Comment options

@DaanHoogland
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sbrueseke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants