Keystone Client functionality for use by resources.
Bases: tuple
Alias for field number 1
Alias for field number 0
Alias for field number 2
Bases: object
Keystone Auth Client.
Delay choosing the backend client module until the client’s class needs to be initialized.
Bases: object
Wrap keystone client so we can encapsulate logic used in resources.
Note this is intended to be initialized from a resource on a per-session
basis, so the session context is passed in on initialization
Also note that an instance of this is created in each request context as
part of a lazy-loaded cloud backend and it can be easily referenced in
each resource as self.keystone()
, so there should not be any need to
directly instantiate instances of this class inside resources themselves.
Create a domain user defined as part of a stack.
The user is defined either via template or created internally by a resource. This user will be added to the heat_stack_user_role as defined in the config, and created in the specified project (which is expected to be in the stack_domain).
Returns the keystone ID of the resulting user.
Create a user defined as part of a stack.
The user is defined either via template or created internally by a resource. This user will be added to the heat_stack_user_role as defined in the config.
Returns the keystone ID of the resulting user.
Create a trust using the trustor identity in the current context.
The trust is created with the trustee as the heat service user.
If the current context already contains a trust_id, we do nothing and return the current context.
Returns a context containing the new trust_id.
Delete credential containing ec2 keypair.
Get an ec2 keypair via v3/credentials, by id or access.
Regenerate a trust using the trustor identity of current user_id.
The trust is created with the trustee as the heat service user.
Returns a context containing the new trust_id.
Domain scope data.
This is only used for checking for scoping data, not using the value.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.