Provides the capabilty for a Service Provider to lock a VM

Registered by Phil Day

There are a number of opertaional reasons why a Servcie Provider needs to lock a VM such that a user is no longer able to perform any actions on it. One of the main reasons is where the VM has been reported for suspicious activity and forensic evidence needs to be preserved.

Blueprint information

Status:
Complete
Approver:
Russell Bryant
Priority:
Low
Drafter:
None
Direction:
Approved
Assignee:
Jason Dillaman
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 2013.2
Started by
Russell Bryant
Completed by
Russell Bryant

Related branches

Sprints

Whiteboard

This has stalled, but is still a reasonable feature to add. Consider it open for volunteers to take on. --russellb

There is an existing user level lock capability supported via the EC2 and OSAPI, but currently restricted to being an admin only action in the default policy.

This blueprint introduces additional functionality that allows the lock to be used by users (to prevent accidental changes to an instance for example), but also allows the lock to enforced by an administrator with appropriate privileges such that it overrides any lock held by the user (for example to block actions on a rouge instance)

The change is implemented by adding a record of the tenant that takes the lock, which also provides an audit capability.

Aside from recording the id of the tenant the schematics of locking an instance remain the same and are protected by the existing policy

When unlocking an instance an additional check is made to see if the lock is held by the owner of the instance. If it isn't then an additional check is made against the unlock_override policy

This allows the lock and unlock policy to be changes as follows:

"compute_extension:admin_actions:lock": "rule:admin_or_owner",
 "compute_extension:admin_actions:unlock": "rule:admin_or_owner",
 "compute_extension:admin_actions:unlock_override": "rule:admin_api",

Gerrit Topic: https://review.openstack.org/#/c/21535/

Gerrit topic: https://review.openstack.org/#q,topic:bp/mandatory-vm-lock,n,z

Addressed by: https://review.openstack.org/38196
    Allow user and admin lock of an instance

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.