Problem
While trying to run thenova
command for service-force-down
we get the following error.
# nova service-force-down <host uuid> nova-compute
error: unrecognised arguments: nova-compute
Looking at the usage of the command it tells us to use "ID" as the argument.
Usage: nova service-force-down [--unset] <id>
does not specify which id to be used.
Environment
- Platform9 Managed OpenStack - v4.0 and Higher
- Nova CLI (python-novaclient)
Procedure
- The ID to be used in the command is of the compute service for a host.
# nova service-force-down [--unset] <id>
- This ID can be obtained using the following command.
# nova service-list
The first column in the output of the above command will get you the id of the binary and this id should be used with the commandnova service-force-down [--unset] <id>
to force up or down the nova-compute service.