summaryrefslogtreecommitdiff
path: root/ceilometer/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove Ceilometer APIJulien Danjou2017-10-251-4/+1
| | | | | | This removes the deprecated Ceilometer API. Change-Id: I752b36b3dfe8f935b68c4d3d59ccb5b8b60c582f
* Remove eventlet usageJulien Danjou2015-11-241-9/+0
| | | | | | | | This removes entirely our usage of eventlet and its ugly monkey-patching in favor of a threaded approach. Implements: remove-eventlet Change-Id: Ib5f623e2d1ff9e9254601ad091bf5b53ab32000d
* Disable eventlet monkey-patching of DNSKeith Byrne2015-01-191-0/+7
| | | | | | | | | This change avoids eventlet's monkey-patching of DNS resolution. eventlet's doesn't support IPv6, for example. A similar change was made in nova, so this is just copying that code and technique to ceilometer. Fixes bug #1404886 bug #1325399 Change-Id: I06391fb5f651dbd430a6fb75b0fd0c337aa0a634
* Switch to a custom NotImplementedErrorJulien Danjou2014-09-151-0/+22
| | | | | | | | | | | | Some drivers/modules might raise NotImplementedError whereas we would expect things to work. Skipping test when such an error is raised would be a bad idea, we would know the test failed. So let's switch to a custom NotImplementedError and let's skip test only if this one is raised. Closes-Bug: #1369556 Change-Id: Ie88a281787218f9aba13b6e662eb4d49d3e685d0
* Empty files should no longer contain copyrightZhiQiang Fan2013-12-241-15/+0
| | | | | Change-Id: Id314cd0ec658cb96cfc50493cd5bab10c2716714 Closes-Bug: #1262424
* Remove gettext.install from ceilometer/__init__.pyLianhao Lu2013-04-031-4/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* Ground work for transifex-ify ceilometer.Lianhao Lu2012-12-181-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Import ceilometer-nova-computeJulien Danjou2012-05-091-0/+0
This script is used to grab notifications from existing hosts Change-Id: I45826fd6941d7bd93464bf945903b6b41223745c Signed-off-by: Julien Danjou <julien.danjou@enovance.com>