Handles all requests related to user facing messages.
API
(db_driver=None)¶Bases: cinder.db.base.Base
API for handling user messages.
Cinder Messages describe the outcome of a user action using predefined fields that are members of objects defined in the cinder.message.message_field package. They are intended to be exposed to end users. Their primary purpose is to provide end users with a means of discovering what went wrong when an asynchronous action in the Volume REST API (for which they’ve already received a 2xx response) fails.
Messages contain an ‘expires_at’ field based on the creation time plus the value of the ‘message_ttl’ configuration option. They are periodically reaped by a task of the SchedulerManager class whose periodicity is given by the ‘message_reap_interval’ configuration option.
cleanup_expired_messages
(context)¶create
(context, action, resource_type='VOLUME', resource_uuid=None, exception=None, detail=None, level='ERROR')¶Create a message record with the specified information.
Parameters: |
|
---|
delete
(context, id)¶Delete message with the specified id.
get
(context, id)¶Return message with the specified id.
get_all
(context, filters=None, marker=None, limit=None, offset=None, sort_keys=None, sort_dirs=None)¶Return all messages for the given context.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.