Support adding description while locking an instance

Registered by Surya Seetharaman

Currently when locking a server using "nova lock <server>" there is no provision to set a description/mention a reason which is essential since its not possible to know why someone
locked the server which might be needed in situations when the person is not around to ask.

This bp proposes to add a "locked_reason" in the Instance table and then expose it via the
"nova show" request which currently only shows if the server is locked or not or via a new
``GET /servers/{server_id}/lock`` api.

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Surya Seetharaman
Direction:
Approved
Assignee:
Surya Seetharaman
Definition:
Approved
Series goal:
Accepted for train
Implementation:
Implemented
Milestone target:
milestone icon train-1
Started by
Matt Riedemann
Completed by
Eric Fried

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-locked-reason,n,z

Addressed by: https://review.openstack.org/638629
    Support adding the reason behind a server lock

Addressed by: https://review.openstack.org/648662
    [WIP] Support adding the reason behind a server lock

Gerrit topic: https://review.openstack.org/#/q/topic:bp/add-locked-reason

Addressed by: https://review.openstack.org/653691
    Plumbing for locking an instance with reason

Gerrit topic: https://review.opendev.org/#/q/topic:bp/add-locked-reason

Addressed by: https://review.opendev.org/648662
    [WIP] Support adding the reason behind a server lock

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.