Ask Your Question
6

Remove availability zone / aggregate

asked 2014-09-04 09:31:00 -0500

Enno Gröper gravatar image

We have 4 compute nodes and an availability zone spanning all 4 nodes.
During testing / desaster recovery I created availability zones with only one node in them: node1, node2, ...
I don't want them to be used in production. I only needed them for temporary being able to decide on which node my instance is spawned. But now their are used randomly ("use any availability zone") when spawning new instances.

Is there any way to get rid of a host-aggregate (that provides an availability zone)?

aggregate-delete doesn't work:

nova aggregate-delete 5
ERROR: Cannot perform action 'delete' on aggregate 5. Reason: not empty code here

It doesn't work either after deleting the instances having the corresponding availability zone. I think that's because the instance metadata stays in the database and is only marked as "deleted".

Additionally: Is there a way to migrate/move an instance to another availability zone or change the availability zone, if the hypervisor host is in the old and new availability zone?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2015-05-08 15:31:42 -0500

so you removed all the hosts?

nova aggregate-remove-host <id> <host>
Remove the host with name <host> from the aggregate with id <id>.

can you post nova aggregate-details <id>

edit flag offensive delete link more

Comments

this works for me..so i remote the host from the aggregation group..then remove delete the aggregation successfully.

gray13 gravatar imagegray13 ( 2017-05-31 02:38:09 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-09-04 09:31:00 -0500

Seen: 3,035 times

Last updated: May 08 '15