The heat.engine.clients.os.nova ModuleΒΆ

class heat.engine.clients.os.nova.NovaClientPlugin(context)[source]

Bases: heat.engine.clients.client_plugin.ClientPlugin

NovaClientPlugin.absolute_limits()[source]

Return the absolute limits as a dictionary.

NovaClientPlugin.build_userdata(metadata, userdata=None, instance_user=None, user_data_format='HEAT_CFNTOOLS')[source]

Build multipart data blob for CloudInit which includes user-supplied Metadata, user data, and the required Heat in-instance configuration.

Parameters:
  • resource (heat.engine.Resource) – the resource implementation
  • userdata (str or None) – user data string
  • instance_user (string) – the user to create on the server
  • user_data_format (string) – Format of user data to return
Returns:

multipart mime as a string

NovaClientPlugin.check_rebuild(server, image_id)[source]

Verify that a rebuilding server is rebuilt. Raise error if it ends up in an ERROR state.

NovaClientPlugin.check_resize(server, flavor, flavor_id)[source]

Verify that a resizing server is properly resized. If that’s the case, confirm the resize, if not raise an error.

NovaClientPlugin.deferred_server_statuses = ['BUILD', 'HARD_REBOOT', 'PASSWORD', 'REBOOT', 'RESCUE', 'RESIZE', 'REVERT_RESIZE', 'SHUTOFF', 'SUSPENDED', 'VERIFY_RESIZE']
NovaClientPlugin.delete_server(server)[source]

Deletes a server and waits for it to disappear from Nova.

NovaClientPlugin.exceptions_module = <module 'novaclient.exceptions' from '/usr/lib64/python2.6/site-packages/novaclient/exceptions.pyc'>
NovaClientPlugin.get_flavor_id(flavor)[source]

Get the id for the specified flavor name. If the specified value is flavor id, just return it.

Parameters:flavor – the name of the flavor to find
Returns:the id of :flavor:
Raises :exception.FlavorMissing
NovaClientPlugin.get_ip(server, net_type, ip_version)[source]

Return the server’s IP of the given type and version.

NovaClientPlugin.get_keypair(key_name)[source]

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.UserKeyPairMissing
NovaClientPlugin.get_status(server)[source]

Return the server’s status. :param server: server object :returns: status as a string

NovaClientPlugin.is_bad_request(ex)[source]
NovaClientPlugin.is_not_found(ex)[source]
NovaClientPlugin.is_over_limit(ex)[source]
NovaClientPlugin.is_unprocessable_entity(ex)[source]
NovaClientPlugin.meta_serialize(metadata)[source]

Serialize non-string metadata values before sending them to Nova.

NovaClientPlugin.meta_update(server, metadata)[source]

Delete/Add the metadata in nova as needed.

NovaClientPlugin.rebuild(*args, **kwargs)[source]

Rebuild the server and call check_rebuild to verify.

NovaClientPlugin.refresh_server(server)[source]

Refresh server’s attributes and log warnings for non-critical API errors.

NovaClientPlugin.rename(server, name)[source]

Update the name for a server.

NovaClientPlugin.resize(*args, **kwargs)[source]

Resize the server and then call check_resize task to verify.

NovaClientPlugin.server_to_ipaddress(server)[source]

Return the server’s IP address, fetching it from Nova.

Previous topic

The heat.engine.clients.os Module

Next topic

The heat.engine.clients.os.glance Module

This Page