Ask Your Question

Remove availability zone / aggregate

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

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

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

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


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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools



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

Seen: 3,373 times

Last updated: May 08 '15