Bases: heat.engine.clients.os.nova.NovaBaseConstraint
Bases: heat.engine.clients.os.nova.NovaBaseConstraint
Bases: heat.engine.clients.os.nova.NovaBaseConstraint
Bases: heat.engine.clients.os.nova.NovaBaseConstraint
Bases: heat.engine.constraints.BaseCustomConstraint
Bases: heat.engine.clients.client_plugin.ClientPlugin
Build multipart data blob for CloudInit.
Data blob includes user-supplied Metadata, user data, and the required Heat in-instance configuration.
Parameters: |
|
---|---|
Returns: | multipart mime as a string |
Check that nova server lost attachment.
This check is needed for immediate reattachment when updating: there might be some time between cinder marking volume as ‘available’ and nova removing attachment from its own objects, so we check that nova already knows that the volume is detached.
Verify that a rebuilding server is rebuilt.
Raise error if it ends up in an ERROR state.
Verify that a resizing server is properly resized.
If that’s the case, confirm the resize, if not raise an error.
Fetch fresh server object from Nova.
Log warnings and return None for non-critical API errors. Use this method in various check_*_complete resource methods, where intermittent errors can be tolerated.
Find the specified flavor by name or id.
Parameters: | flavor – the name of the flavor to find |
---|---|
Returns: | the id of :flavor: |
Return dict-like structure of server’s console urls.
The actual console url is lazily resolved on access.
Get the flavor object for the specified flavor name or id.
Parameters: | flavor_identifier – the name or id of the flavor to find |
---|---|
Returns: | a flavor object with name or id :flavor: |
Get the host id specified by name.
Parameters: | host_name – the name of host to find |
---|---|
Returns: | the list of match hosts |
Raises: | exception.EntityNotFound |
Get the public key specified by :key_name:
Parameters: | key_name – the name of the key to look for |
---|---|
Returns: | the keypair (name, public_key) for :key_name: |
Raises: | exception.EntityNotFound |
Return fresh server object.
Substitutes Nova’s NotFound for Heat’s EntityNotFound, to be returned to user as HTTP error.
Return the server’s status.
Parameters: | server – server object |
---|---|
Returns: | status as a string |
Rebuild the server and call check_rebuild to verify.
Refresh server’s attributes.
Also log warnings for non-critical API errors.
Bases: heat.engine.clients.os.nova.NovaBaseConstraint