Restore some metadata to the events and resources

Include "flattened" metadata about resources in queries
that ask for event and resource data.

Change-Id: Iddccc50cfb547f79d428507d42f55baf3c5e8998
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change default os-username to 'ceilometer'

 'glance' is maybe not the best default value for os-username

Change-Id: I7f73e27a2f7a61bc06c6b7921c4b4dd37129dbaf
Change mysql schema from latin1 to utf8 .

fix bug #1086659

Change-Id: I599cf23f03ddec612b9f9c64fcb2c2558aaffba7
Move meter.py into collector directory

With multiple publisher support, metering becomes only one type of
publisher, thus move the meter.py into collector.

The publish.py should be moved to publisher directory as only meter
publisher in future.

Change-Id: I3b4f5dac3cd46c77dc077ff6acbba79284640428
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Merge "Restore some metadata to the events and resources"
Virt inspector directly layered over hypervisor API

Addresses BP nova-independent-virt

Add the concept of a pluggable virt inspector that allows
polling of the hypervisor layer without relying on any
nova internals.

Note that the test-requires dependency on the nova master
tarball remains in place for the moment, as it's required
by the nova notifier tests.

Also we must leave the dependency on the libvirt-python
RPM or python-libvirt Debian package to the distros which
end up packaging ceilometer.

Change-Id: I20700320dd7e3196507173c780ab598b479e4021
Merge "Move meter.py into collector directory"
Merge "Change mysql schema from latin1 to utf8 ."
Add the ability to filter on metadata.

So the syntax would be like this:
/resources/<resource>/meters/<meter>?metadata.image=fruit&metadata.flavor=apples

It works on resources, meters and events.

This is a basic version for the v1 API, the syntax might need to be different
for the v2 API.

blueprint multi-dimensions

Change-Id: I625caa09605239e7554b9a897377a9ac457bf8ae
Merge "Add the ability to filter on metadata."
Fix the v1 api importing of acl

Was importing the v2 version.

Change-Id: I9282dfdfffe7f827293817df5a2db96a817b722d
Implements database upgrade as storage engine independent

Currently, calling ceilometer-dbsync will be default raises an error since
it tries to upgrade a SQL database, even if mongo (the default) is used.
This patch fixes that by adding an upgrade capability to the storage engine
connection base class, and implementing it only in SQL.

Change-Id: I9a0da235ef3a93aaefd1b122d59f244ea293e9fe
Signed-off-by: Julien Danjou <julien@danjou.info>
Make debugging the wsme app a bit easier.

- add a logger so we get exceptions
- setup the port to 8777 so 'pecan serve config.py' works normally

Change-Id: I7374a34ae5534d7d4127e4b405daa11cab5f5547
remove direct nova db access from ceilometer.

fix bug #1034666

Change-Id: I0686e7bb5311a39bd574fd9d67769450c9896b43
Instantiate inspector in compute manager

As suggested in the review of the original inspector patch
(I20700320dd7e3196507173c780ab598b479e4021), the inspector
lifecycle is now controlled by the compute manager as
opposed to the pollsters.

Change-Id: Ifdef5ab22e7fb224e273dae5dbff3fb4dab10031
Fix image_id in instance resource metadata

Originally the image property in instance resource metadata is correct
since instance information is fetched from db access.

After switching to nova client api, these information is lost
since the returned data format from nova client is different with db
access result.

Image ref and image url is fixed with this patch while kernel_id and
ramdisk_id should be fixed in nova side.

For bug 1090310

Change-Id: I51816b4bd31c09a59e1ef857f8981a45f33f68dc
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Merge "Instantiate inspector in compute manager"
Fix dbsync API change

This binary didn't get modified, so add test to be sure we don't miss it
next time.

Change-Id: I62692e7ee2fd8dd0f4845d130d6b193c7849c5f9
Signed-off-by: Julien Danjou <julien@danjou.info>
Add instance_type information to NetPollster

Add instance type information for network measurement so that CW
publisher can create the instance_type dimensions. Currently this
information is lost.

Change-Id: I579b7187092f422fba38ea0ec296d05708b710d1
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Ground work for transifex-ify ceilometer.

Following http://wiki.openstack.org/Translations to integrate transifex
translation into ceilometer and to fix bug 1082805.

This is the ground work to enable translation jobs using transifex and
Jenkin's in ceilometer. We added the empty file
ceilometer/locale/ceilometer.pot to avoid the failure of the Jenkin'
translation-jobs because git doesn't allow empty directory to be added
into the repository.

We still need to do the following things once this patch gets accepted:

1. Make the transifex ceilometer project
(https://www.transifex.com/projects/p/ceilometer/) as part of the
openstack transifex project hub and give access to the transifex
openstack Jenkins account.

2. Add the translation-jobs into openstack/openstack-ci-puppet for
ceilometer.

3. Recheck and/or clean the LOG.foobar strings in ceilometer so that
only the useful and necessary strings would be extracted into the .pot
file.

NOTE:
1. Don't use '_' as the variable name for "don't care", since it clashes
with gettext module.

2. Wrap the string with the underscore function to make it ready for
translation, e.g.

  internationalized_string = _("I'm internationalized!")
  LOG.debug(_('I speak the language of %(language)s'), locals())

Change-Id: I9732e424b374afa8f0650baf4e3537109e7520d1