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"
Specify a new queue in manager

We don't want to pull messages from the default existing queues and treat
messages that other might expect, or miss some messages because they have
been treated by others listening to the default queue.

So we rather use our own queue where we expect messages to be routed from
the subscribed topic.

Change-Id: Ibeda4ca1deb4db6eaecf49998b96e6ceb1087e77
Signed-off-by: Julien Danjou <julien@danjou.info>
Picking up dependencies from pip-requires file.

Also, removing pip-requires_essex and test-requires_essex

https://bugs.launchpad.net/ceilometer/+bug/1055319

Change-Id: Ifec6b8fe5b53b45d8c94fbc87110f20541e9f3d0
Create tox env definition for using a live db

Set the environment variable to make the tests use a live
database instead of the mock in memory version.

Change-Id: I3d6be4f5d72aa59d5a4c19271f015d06b3e9c7ae
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Allow glance pollster tests to run.

Without the module __init__, we do not see these glance tests
running under tox.

Change-Id: Iaf974aaa0c1fbffb1e1c4d1685fd062c78890a5d
Merge "Create tox env definition for using a live db"
Add a notification handler for image downloads.

Addresses bug 1004462

This patch requires https://review.openstack.org/13666 to
have landed in glance, so that queue durability matches up
in order to avoid precondition failures from rabbitmq.

Change-Id: I18ba7d58625ef89e75d4e6b8896505ed11a1afb4
Merge "Add a notification handler for image downloads."
Listen for volume.delete.start instead of end

Fixes bug 1057462

Register interest in volume.delete.start events instead of
volume.delete.end so that the owner isn't charged for time
taken to tear down the volume.

Change-Id: Idf27876aff8a3ccb2a6f76679744c8513783d523