central agent will throw error on startup

Bug #1424746 reported by gordon chung
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Medium
Lan Qi song

Bug Description

2015-02-23 16:36:29.221 32569 ERROR ceilometer.agent.base [-] Failed to import extension for rgw.usage: No module named awsauth
2015-02-23 16:36:29.238 32569 ERROR ceilometer.agent.base [-] Failed to import extension for rgw.objects.size: No module named awsauth
2015-02-23 16:36:29.244 32569 ERROR ceilometer.agent.base [-] Failed to import extension for rgw.containers.objects: No module named awsauth
2015-02-23 16:36:29.256 32569 ERROR ceilometer.agent.base [-] Failed to import extension for rgw.objects: No module named awsauth
2015-02-23 16:36:29.257 32569 ERROR ceilometer.agent.base [-] Failed to import extension for rgw.containers.objects.size: No module named awsauth
2015-02-23 16:36:29.257 32569 ERROR ceilometer.agent.base [-] Failed to import extension for rgw.objects.containers: No module named awsauth

central agent will function normally but it'd be nice not to have these errors... maybe a config option?

Revision history for this message
Chris Dent (cdent) wrote :

As discussed in IRC, this is entirely the problem with entry points being used as the basis for plugin configuration.

It's fine for setup.cfg to say where a plugin can be found, but is it right that it also says that the system should try to activate that plugin?

Revision history for this message
gordon chung (chungg) wrote :
Revision history for this message
Rabi Mishra (rabi) wrote :

I don't see the central agent functioning normally with devstack latest code base. It fails with the following error on fedora 21.

2015-02-23 15:43:48.620 50372 CRITICAL ceilometer [-] ImportError: No module named awsauth
2015-02-23 15:43:48.620 50372 TRACE ceilometer Traceback (most recent call last):
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/usr/bin/ceilometer-agent-central", line 9, in <module>
2015-02-23 15:43:48.620 50372 TRACE ceilometer load_entry_point('ceilometer==2015.1.dev91', 'console_scripts', 'ceilometer-agent-central')()
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/opt/stack/ceilometer/ceilometer/cmd/polling.py", line 74, in main_central
2015-02-23 15:43:48.620 50372 TRACE ceilometer os_service.launch(manager.AgentManager(['central'])).wait()
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/opt/stack/ceilometer/ceilometer/agent/manager.py", line 47, in __init__
2015-02-23 15:43:48.620 50372 TRACE ceilometer group_prefix=cfg.CONF.polling.partitioning_group_prefix)
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/opt/stack/ceilometer/ceilometer/agent/base.py", line 223, in __init__
2015-02-23 15:43:48.620 50372 TRACE ceilometer self.extensions = list(itertools.chain(*list(extensions)))
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/opt/stack/ceilometer/ceilometer/agent/base.py", line 218, in <genexpr>
2015-02-23 15:43:48.620 50372 TRACE ceilometer for namespace in namespaces)
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/opt/stack/ceilometer/ceilometer/agent/base.py", line 250, in _extensions
2015-02-23 15:43:48.620 50372 TRACE ceilometer on_load_failure_callback=_catch_extension_load_error,
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 92, in __init__
2015-02-23 15:43:48.620 50372 TRACE ceilometer verify_requirements)
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 170, in _load_plugins
2015-02-23 15:43:48.620 50372 TRACE ceilometer self._on_load_failure_callback(self, ep, err)
2015-02-23 15:43:48.620 50372 TRACE ceilometer File "/opt/stack/ceilometer/ceilometer/agent/base.py", line 245, in _catch_extension_load_error
2015-02-23 15:43:48.620 50372 TRACE ceilometer raise exc
2015-02-23 15:43:48.620 50372 TRACE ceilometer ImportError: No module named awsauth
2015-02-23 15:43:48.620 50372 TRACE ceilometer
ceilometer-acentral failed to start

Revision history for this message
gordon chung (chungg) wrote :

Rabi, please sync with latest code as the awsauth code was reverted https://review.openstack.org/#/c/158329/

Revision history for this message
Eoghan Glynn (eglynn) wrote :

Rabi, can you confirm whether you're still seeing this issue in master?

Changed in ceilometer:
milestone: kilo-3 → none
Revision history for this message
gordon chung (chungg) wrote :

this is still valid... or at least it shows up on every gate. i'll check with swami to see if he's actually working on it.

Revision history for this message
Lan Qi song (lqslan) wrote :

Any update for this bug, I am still facing this problem:

ceilometer central service can successfully start but with the following error:

Failed to import extension for rgw.usage: No module named awsauth
......

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/185295

Changed in ceilometer:
assignee: nobody → Lan Qi song (lqslan)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/185295
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=c9eb2d44df7cafde1294123d66445ebef4cfb76d
Submitter: Jenkins
Branch: master

commit c9eb2d44df7cafde1294123d66445ebef4cfb76d
Author: Lan Qi song <email address hidden>
Date: Mon May 25 10:35:57 2015 +0800

    Disable rgw pollster when aws module not found

    This patch will raise PollsterPermanentError in rgw pollster
    to disable those pollsters when requests-aws module not found.

    Change-Id: I880ec77467fae026f25e61d04d7dd76e08834b08
    Closes-Bug: #1424746

Changed in ceilometer:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/187901

Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (stable/kilo)

Change abandoned by Lan Qi Song (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/187901
Reason: Thanks gordc & Zhi Qiang, abandon this patch.

Thierry Carrez (ttx)
Changed in ceilometer:
milestone: liberty-1 → 5.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.