Update api-guide and api-ref to be clear about forced-down

Closes-Bug: #1691871
Related-Bug: #1784826

Change-Id: Ifc6f1549d88a1b7d9f6e25c962c8a15dd8e180fb
This commit is contained in:
Sean Dague 2017-08-10 09:34:13 -04:00 committed by melanie witt
parent df3dd2b5c7
commit 8835198b8d
3 changed files with 49 additions and 15 deletions

@ -182,6 +182,10 @@ on compute hosts rather than servers.
- **Services Actions** - **Services Actions**
.. note::
The services actions described in this section apply only to
**nova-compute** services.
- **enable, disable, disable-log-reason** - **enable, disable, disable-log-reason**
The service can be disabled to indicate the service is not available anymore. The service can be disabled to indicate the service is not available anymore.
@ -196,13 +200,24 @@ on compute hosts rather than servers.
.. note:: .. note::
This action is enabled in microversion 2.11. This action is enabled in microversion 2.11.
This action allows you set the state of service down immediately. Actually This action allows you set the state of service down immediately. Nova
Nova only provides the health monitor of service status, there isn't any only provides a very basic health monitor of service status, there isn't
guarantee about health status of other parts of infrastructure, like the any guarantee about health status of other parts of infrastructure, like
health status of data network, storage network and other components. The the health status of data network, storage network and other
more complete health monitor of infrastructure is provided by external components.
system normally. An external health monitor system can mark the service
down for notifying the fault. If you have a more extensive health monitoring system external to Nova,
and know that the service in question is dead (and disconnected from the
network), this can be used to tell the rest of Nova it can trust that this
service is never coming back, and allow actions such as evacuate.
.. warning::
This must *only* be used if you have fully fenced the service in
question, and that it can never send updates to the rest of the
system. This can be done by powering off the node or completely
isolating its networking. If you force-down a service that is not
fenced you can corrupt the VMs that were running on that host.
- **Hosts** - **Hosts**

@ -195,7 +195,16 @@ Update Forced Down
.. rest_method:: PUT /os-services/force-down .. rest_method:: PUT /os-services/force-down
Set or unset ``forced_down`` flag for the service. Set or unset ``forced_down`` flag for the service. ``forced_down`` is a manual
override to tell nova that the service in question has been fenced manually by
the operations team (either hard powered off, or network unplugged). That
signals that it is safe to proceed with ``evacuate`` or other operations that
nova has safety checks to prevent for hosts that are up.
.. warning::
Setting a service forced down without completely fencing it will likely
result in the corruption of VMs on that host.
Action ``force-down`` available as of microversion 2.11. Action ``force-down`` available as of microversion 2.11.

@ -3085,8 +3085,9 @@ force_snapshot:
forced_down_2_11: forced_down_2_11:
description: | description: |
Whether or not this service was forced down manually by an Whether or not this service was forced down manually by an
administrator. This value is useful to know that some 3rd party has administrator after the service was fenced. This value is useful
verified the service should be marked down. to know that some 3rd party has verified the service should be
marked down.
in: body in: body
required: true required: true
type: boolean type: boolean
@ -3095,9 +3096,17 @@ forced_down_2_11:
# PUT /os-services/{service_id} added in 2.53. # PUT /os-services/{service_id} added in 2.53.
forced_down_2_53_in: forced_down_2_53_in:
description: | description: |
Whether or not this service was forced down manually by an ``forced_down`` is a manual override to tell nova that the service in
administrator. This value is useful to know that some 3rd party has question has been fenced manually by the operations team (either hard
verified the service should be marked down. powered off, or network unplugged). That signals that it is safe to proceed
with ``evacuate`` or other operations that nova has safety checks to
prevent for hosts that are up.
.. warning::
Setting a service forced down without completely fencing it will likely
result in the corruption of VMs on that host.
in: body in: body
required: false required: false
type: boolean type: boolean
@ -3106,8 +3115,9 @@ forced_down_2_53_in:
forced_down_2_53_out: forced_down_2_53_out:
description: | description: |
Whether or not this service was forced down manually by an Whether or not this service was forced down manually by an
administrator. This value is useful to know that some 3rd party has administrator after the service was fenced. This value is useful
verified the service should be marked down. to know that some 3rd party has verified the service should be
marked down.
in: body in: body
required: true required: true
type: boolean type: boolean