Support forcing service down

Registered by Tomi Juvonen on 2015-05-12

In Nova there is blueprint: https://blueprints.launchpad.net/nova/+spec/mark-host-down adding
API to force service (nova-compute) down. Nova client should support the same. Therefore API
needs to be added:

usage: nova service-force-down [set|unset] <hostname> <binary>

Force service state down.

Positional arguments:
  <hostname> Name of host.
  <binary> Service binary.

Optional arguments:
   --set Set the force down of service (the default)
   --unset Unset the force down of service.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Tomi Juvonen
Direction:
Needs approval
Assignee:
Carlos Goncalves
Definition:
Approved
Series goal:
Proposed for liberty
Implementation:
Implemented
Milestone target:
None
Started by
Carlos Goncalves on 2015-07-06
Completed by
Carlos Goncalves on 2015-08-07

Related branches

Sprints

Whiteboard

Why the '--cancel' optional argument when there's the unset option? In your example, "[set|unset]" are positional arguments but below you said they are optional arguments. I think you forgot the <binary> argument in the usage example. I would suggest changing to: nova service-force-down [--set True/False] <hostname> <binary>, but no strong opinion (cgoncalves)

Gerrit topic: https://review.openstack.org/#q,topic:bp/mark-host-down,n,z

Addressed by: https://review.openstack.org/185849
    Support forcing service down

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.