Update openstack-common code to latest.

Change-Id: I63d32f70176af7ea6accf4c48c4fc8b646a7e31e
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Merge "Update openstack-common code to latest."
Use stevedore to load storage engine drivers

Use the stevedore library to load the storage engine plugins.

Change-Id: I491317e64e4fa50340e16b0f67783bfeca09c979
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Split instance polling code

This just split the polling code for one instance out of the periodic task
function to be able to use this code for only one instance.

Change-Id: I4ec0ab3870410f0b6c7e44857a9dede60fb6d50b
Signed-off-by: Julien Danjou <julien@danjou.info>
Add nova_notifier notification driver for nova

This adds a new notification driver to be used by nova in order to intercept
instance deletion message before the instance is deleted. With this, we are
able to poll an instance about to be deleted before it disappers and
therefore not miss any meter.

This fixes bug #1005944

Change-Id: Ie039681e8e440cb9be2f30e3d72d9a2bc4ddf5ba
Signed-off-by: Julien Danjou <julien@danjou.info>
Fix nova flag parsing

We need to use parse_args() so the default config file is used.

Change-Id: I7af19d77477e98b8181b1bce3d9cea1e86fca160
Signed-off-by: Julien Danjou <julien@danjou.info>
Fix Nova notifier test case

Nova internal changed, and we don't need to stub this anymore for test to
work.

Change-Id: Id2946f37e790f333497a781fe2f7fbc358f351eb
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Fix nova flag parsing"
Add pollster for Glance

This adds a pollster for Glance, polling for all images present via the
Glance registry. Using the registry is obligatory because the Glance API
would not let a user see all images.

This fixes #1051335

Change-Id: I0c5afba8e3f1caf314b8dd95875fbe60b4c07f82
Signed-off-by: Julien Danjou <julien@danjou.info>
Listen for volume notifications

This implements bug #1021772

Change-Id: Ic0292e8bdc20668abd331f4f03b06b9d1496217a
Signed-off-by: Julien Danjou <julien@danjou.info>
compute: remove get_metadata_from_event()

Use the notification_to_metadata() method from plugin.NotificationBase
instead of our own copy, but enhance it with instance_type handling.

Change-Id: I9c860435915a64d347c06956409db1c9e9a587ec
Signed-off-by: Julien Danjou <julien@danjou.info>
Use standard CLI options & env vars for creds.

For consistency with the standard openstack CLIs, we use the same
set of config/command line/env var options to provide credentials
for the glance pollster's interaction with the glance-registry.

(The exception here is the ability to pass in a previously acquired
authentication token via --os-auth-token/OS_AUTH_TOKEN, as this
would not make sense for a long-lived service given the limited
lifetime of keystone tokens.)

As well as having the advantage of familiarity, this approach
allows users to avoid encoding sensitive credentials in config
files (instead environment variables or command line options
may be used).

Also, if future non-glance pollsters need authenticated access
to other openstack services, more generic naming of the config
options would be preferable.

Change-Id: I7505c3f668262951c034f36ccd15ce706f06bf0f
Pep8 fixes, implement pep8 check on tests subdir

Fixes bug #1053515

Change-Id: I2b886528c86e0ad5bdae5abf73890366f084e225
Add configuration script to turn on notifications

Ceilometer depends on having notification messages enabled
in the services being monitored. This script demonstrates
one way to configure those notifications.

Change-Id: I0310b6bafd999b7818e347d25bc4be168fdcfe7e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Stop using nova's rpc module

Switch the import for the rpc code from nova
to our copy of openstack.common.rpc.

Change-Id: Id3bca93948ae079ff9ba11b5eeaf21ccb040aec2
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Merge "Use standard CLI options & env vars for creds."
Merge "compute: remove get_metadata_from_event()"
Merge "Pep8 fixes, implement pep8 check on tests subdir"
Rework RPC connection

We are now able to listen to multiple topics, we don't use Nova RPC anymore
and we have a single namespace for all collector plugins.

Change-Id: I23603601cb285e9bd71beabfd9558fe903c24308
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Add configuration script to turn on notifications"