Update part of openstack.common.

Updated the gettextutils and log module in openstack.common.

Not update the openstack.common for the followings. We might need to
update those after we offically release grizzly.
- notifier: removed deprecated grizzly features.
- rpc: enable message envelop.

This is part of the blueprint gettext-i18n-issue.

Change-Id: Iac01c5d66f58518341d84da7948356fc4487d171
Prepare for future i18n use of _() in nova notifier.

Use the correct verion of _() function in nova notifier.

This is part of the blueprint gettext-i18n-issue.

Change-Id: I5204d7268c4c6124c7aef9c88cd4efacf7d00b5b
Remove gettext.install from ceilometer/__init__.py

The gettext.install() installs a builtin _() function for translation
purpose. If it is called multiple times, the last call will win and the
translation domain set by the last call will be used.

When the ceilometer.compute.nova_notifier driver used within nova, the
gettext.install() call in ceilometer/__init__.py would change the
previous translation domain set by nova. This is not what we want.

We have to remove this shortcut, and put the gettext.install() call
early on in a top level script.

Instead of directly calling gettext.install(), we leverage the
gettextutils.install() in openstack.common, so we can specifiy the
localedir for ceilometer through the environment variable
CEILOMETER_LOCALEDIR.

This is part of the blueprint gettext-i18n-issue.

Change-Id: Icb2dcfb319778042cf569dcb607f579d1e0fda3a
storage: get rid of get_event_interval

This is part of blueprint remove-obsolete-storage-driver-methods

Change-Id: I8ee25af4cf7e3db2605e3d9586e28327f1ba321e
Signed-off-by: Julien Danjou <julien@danjou.info>
storage: move nose out of global imports

Operators don't have to install nose

Change-Id: I80113d43402de5e957e1807f4afb84d945d78212
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Update part of openstack.common."
Merge "Prepare for future i18n use of _() in nova notifier."
Merge "Remove gettext.install from ceilometer/__init__.py"
Merge "storage: move nose out of global imports"
Merge "storage: get rid of get_event_interval"
Reformat openstack-common.conf

Use the new 'module' option in openstack-common.conf which is a
multi-string option, allowing each module name to be placed on a
separate line.

This makes it much easier to review changes to the modules list.

Change-Id: I3085f841c1d0a934502b3563a9ad01f885b3fe08
Initial implementation of ceilometer-alarm

The implemented use case is raising an alarm (i.e. executing something)
as soon as a cumulative counter is above or below a certain threshold.

The result of the "statistic" during a "period" is compared
to the alarm "threshold" with the operator in "comparaison_operator"
field of the alarm.

The criteria handled to check if the alarm threshold needs to be checked
for a meter are for now only:
- counter_name
- resource_id

When a alarm is triggered a URL is called, same things when the
alarm is untriggered

The URLs are stored in fields "ok_action" and "alarm_action" of the
alarm description.

Change-Id: I2dfebc30a47576e83906a6d4011ce5d52041e901