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
Fix WSME arguments handling change

Recent version of WSME makes mandatory to expose arguments. This is just a
simple fix to fix the non-passing tests, but the API will require more work
to be improved and use the new mechanisms.

Change-Id: Icdaa5dc2427383691df07249522799356e70e9d9
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Fix dbsync API change"
Merge "Fix image_id in instance resource metadata"
Move back api-v1 to the main api

API v2 is not finished and should only be optionnal. Move the binary as
api-v2 and remove the dep on pecan, only use it for tests.

This also fixes bug #1092227.

Change-Id: Ifaf0ad3918460bc2107e1563f0539695467a1856
Signed-off-by: Julien Danjou <julien@danjou.info>
Fix Glance control exchange

The name used is wrong, this is actually the named of notification topic
that was used until Folsom. The control exchange is and always has been
'glance'.

Change-Id: I86a46d28af22b663af804caf1a224b9dba73d38f
Signed-off-by: Julien Danjou <julien@danjou.info>
Use default configuration file to make test data.

Change-Id: I5edcc31bb9c79874ec925f4bb056cf52d81504fa
Fix MySQL charset error.

If using MySQL, there's a bug with the charset setting which is declared as
a variable whereas it should be a string. This fixes bug #1092856 and adds
a test for this.

Change-Id: I76e19e2dd86f920aa7c9f792da7057d42ed3e9c9
Import only once in nova_notifier

Per Doug's suggestion.

Change-Id: I37bcc1de358846d2e90a08de10ddd45b29006a2c
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Add instance_type information to NetPollster"
Merge "Ground work for transifex-ify ceilometer."