Combined fix to get past broken state of repo

This patch includes several separate sets of changes which
have been reviewed individually but must be submitted
together to get past the newly updated version of pep8
and changes to the nova code base.

1. Replace our CONF object with the one from openstack.common.cfg.
   There's no need to use our own, especially since some option
   are already registered on it for us.

   Signed-off-by: Julien Danjou <julien.danjou@enovance.com>

2. Instead of importing the RPC code from nova, use
   the openstack.common.rpc package. This change
   copies that code in from openstack-common, changes
   the imports throughout ceilometer, and fixes the
   way the configuration settings are initialized.

3. Resolve PEP-8 issues introduced by an even more
   pedantic version of pep8 (1.3.1). Some of the
   changes are fixed, and some warnings/errors are
   suppressed.

4. Ignore import errors in impl_qpid because the qpid
   package is not installed on the stackforge test server.

5. Fix missing imports from gettextutils in openstack.common.

Change-Id: I0ee7d4b3278d8ff1951ca27592e3be8a87fe4854
Add instance metadata from notification events

bug 1006120

This change depends on a change to nova to include the extra data
in the outgoing notifications.

Change-Id: Ieaee00f5f6c0a9f6d00843adbcc2cd995334bbd1
Fallback on nova.rpc for Essex

Change-Id: I2a1ca5a0c77900d2310b4534f92da885fa27f430
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
Start defining DB engine API

Sketch in API to support queries defined in
http://wiki.openstack.org/EfficientMetering/APIProposalv1

Change-Id: I282f1d5893c55fca684a74395a82e603c799343f
Emit meter event for instance "exists"

bug 1005941

As we check the CPU utilization for an instance also
emit a meter message indicating that the instance
still exists.

Change-Id: I7a592efc750c6e0a9a24394e05bd2d75da3377b6
Use the same instance metadata everywhere

Update the code that generates the instance metadata used in the pollsters
so that it includes all of the values pulled from the notification
messages. This keeps the metadata for an instance consistent for all
metering messages.

Change-Id: I74534e5236fd6580fad42ae4e1c7321dc880bc8f
Merge "Use the same instance metadata everywhere"
Split service preparation, periodic interval configurable

Change-Id: I71d1e81e2b2347fb7e3ba2edfa7f21eb9cffb401
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
Merge "Fallback on nova.rpc for Essex"
Essex: update Nova to 2012.1.1, add python-novaclient

Change-Id: I6881bdb8064df4e88a37ead3426d9666c0f77278
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
First draft of plugin/agent documentation. Fixes bug 1018311.

Change-Id: I5723ab7cdf3f552b23927380a764c53f7beb4f10
Configure nova.flags as well as openstack.common.cfg

Because we are using nova classes directly (Service, Manager, etc.)
we need to initialize the configuration modules that those
classes use.

Change-Id: Idafd4a8346fc59332114ea7536893470bf9eaff8
Add Sphinx wrapper around existing docs

bug 1018443

This patch sets up a basic Sphinx project to allow us to
build the documentation. It also moves the "dev" docs
into the new doc source directory.

Change-Id: Ie2ad0f2e4ed237f1373c4357d5763fd5218d738a
Merge "Add Sphinx wrapper around existing docs"
fix typo in instance properties list

Change-Id: Ib09f4ab8db06d024ff863b54702a36f6ef77698b
Documentation edits:

 * Fixes index.rst to include the writing_agent_plugin page
 * Minor typo fixes
 * Adds more links so devs can see what usage data already exists
 * Addresses review comments

Rebase against master.

Change-Id: I62160e1f5583ad540d940e1c44dbd8c6cf460e67
Remove usage of nova.log

Change-Id: Iea9ca7cfbf6bd46aa2918c7fe1c54a44bd3f38d2
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
Merge "Documentation edits:"
Reduce complexity of storage engine API

In the process of implementing the first storage
backend I realized that the proposed API was
much more complicated than necessary. This
changeset streamlines the API to make it easier
to implement the plugins.

- add ceilometer.storage.get_connection() convenience function
- add get_volume_max() method
- clean up query arg handling by using EventFilter
- tighten up the DB query API by removing separate "by_user"
  and "by_project" methods

Change-Id: Id4dffcc59dbee44fd4670bbe55b5e3380ea240e5
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Convert timestamps to datetime objects before storing

Parse the incoming timestamp strings into datetime objects
before passing them off to the storage backend.

Change-Id: I42d825c9633fa2c120409d79883756d23b045a60
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>