Previous topic

The cinder.openstack.common.timeutils Module

Next topic

The cinder.quota Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.policy Module

Policy Engine For Cinder

enforce(context, action, target)

Verifies that the action is valid on the target in this context.

Parameters:
  • context – cinder context
  • action – string representing the action to be checked this should be colon separated for clarity. i.e. compute:create_instance, compute:attach_volume, volume:attach_volume
  • object – dictionary representing the object of the action for object creation this should be a dictionary representing the location of the object e.g. {'project_id': context.project_id}
Raises cinder.exception.PolicyNotAllowed:
 

if verification fails.

init()
reset()