Previous topic

The nova.network.quantumv2.api Module

Next topic

The nova.notifier.api Module

This Page

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

The nova.notifications Module

Functionality related to notifications common to multiple layers of the system.

audit_period_bounds(current_period=False)

Get the start and end of the relevant audit usage period

Parameters:current_period – if True, this will generate a usage for the current usage period; if False, this will generate a usage for the previous audit period.
bandwidth_usage(instance_ref, audit_start, ignore_missing_network_data=True)

Get bandwidth usage information for the instance for the specified audit period.

image_meta(system_metadata)

Format image metadata for use in notifications from the instance system metadata.

send_update(context, old_instance, new_instance, service=None, host=None)

Send compute.instance.update notification to report changes in vm state and (optionally) task state

send_update_with_states(context, instance, old_vm_state, new_vm_state, old_task_state, new_task_state, service=None, host=None)

Send compute.instance.update notification to report changes in vm state and (optionally) task state

usage_from_instance(context, instance_ref, network_info, system_metadata, **kw)

Get usage information for an instance which is common to all notifications.

Parameters:
  • network_info – network_info provided if not None
  • system_metadata – system_metadata DB entries for the instance,

if not None. NOTE: Currently unused here in trunk, but needed for potential custom modifications.