Skip to content

Unable to delete Zone #9532

Closed Answered by Pearl1594
mimcdevitt asked this question in Q&A
Aug 14, 2024 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

If you are trying to decommission the zone, and this is a test environment, then you could mark all the templates of the zone as Inactive in the database. To get the list of all the Active templates

select distinct(id) from template_view where store_id in (select id from image_store where data_center_id = <id_of_zone>) and type = 'USER' and template_state = 'Active'\G

And mark their states as Inactive

update vm_template set state = 'Inactive' where id in (select distinct(id) from template_view where store_id in (select id from image_store where data_center_id = <id_of_zone>) and type = 'USER' and template_state = 'Active'\G);

You can then manually clean up your secondary store.

Please t…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@jack99trade
Comment options

@jack99trade
Comment options

@mimcdevitt
Comment options

@jack99trade
Comment options

@rajujith
Comment options

Answer selected by DaanHoogland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants