Ask Your Question

is ther anyway to mark an instance as unhealthy?

asked 2016-09-23 02:25:14 -0600

karthikmrsk1 gravatar image

Hi, There is a devstack which is running my setup. we are using that for an auto-scale setup. There is a scenario i have to mark a particular instance as a unhealthy one. Is there any command available to mark it unhealthy ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-10-07 07:56:03 -0600

zaneb gravatar image

Why yes, there is: openstack stack resource mark unhealthy

That command will change the resource status in Heat to CHECK_FAILED. That will cause the resource to be replaced on the next stack update, unless the autoscaling group is scaled down in which case it will be among the first to be removed.

edit flag offensive delete link more


This command was not able to find the instance name when used as the resource name. Is there a way to mark an instance (particular VM) as unhealthy so that when we update it rebuilds all the VMs that are marked as unhealthy.

Vivek Pant gravatar imageVivek Pant ( 2018-07-09 18:22:52 -0600 )edit

You can use the UUID of the server to identify the resource beginning in Ocata. Prior to that it had to be the name of the server resource in Heat. Server names are too ambiguous. There's no way to force a rebuild instead of replacement.

zaneb gravatar imagezaneb ( 2018-11-26 13:28:21 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-09-23 02:25:14 -0600

Seen: 877 times

Last updated: Oct 07 '16