How to make nova service state down for test purpose without shutting down node?

1k views Asked by At

I am testing nova evacuate command. I have 2 compute nodes and one of them has a running vm. I want to evacuate vm from one node to another and for that I need nova-compute service's state down on the host where vm is running now. I know I can achieve that by shutting down host node. But I don't want to shut down any node. I found commands to disable nova-compute service or delete nova-compute service but could not find for making state down of nova-compute service. Is there any way to achieve this?

1

There are 1 answers

0
user215368 On BEST ANSWER

There are new request method added in 2.11 microversion for services - force-down

It will change the state for hypervisor from UP to down. See the docs

Note: if you change the state all VM will migrate by themselves