ceilometermiddleware is not packaged

Bug #1462947 reported by Haifeng.Yan
6
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
Unassigned
Ubuntu Cloud Archive
Fix Released
Undecided
Unassigned
openstack-manuals
Invalid
Undecided
Unassigned
Ubuntu
Fix Released
Undecided
Unassigned

Bug Description

-----------------------------------
Built: 2015-06-02T18:20:52 00:00
git SHA: 2291b4b7a56483d753f14fe516e31c3077f4afa7
URL: http://docs.openstack.org/kilo/install-guide/install/apt/content/ceilometer-swift.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_ceilometer-swift.xml
xml:id: ceilometer-swift

when I configure swift for ceilometer, restart swift-proxy service failed. and I start it by myself:

root@controller:~# python /usr/bin/swift-init proxy-server start

Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', **options))
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 445, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 354, in loadapp
    ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 338, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 61, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
    global_additions=global_additions)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 61, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context
    section)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
    value = import_string(found_expr)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in import_string
    return pkg_resources.EntryPoint.parse("x=" + s).load(False)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named ceilometermiddleware.swift

Revision history for this message
Haifeng.Yan (yanheven) wrote : Re: No module named ceilometermiddleware.swift for Kilo

swift-proxy.conf in Kilo:

[filter:ceilometer]
...
paste.filter_factory = ceilometermiddleware.swift:filter_factory

in Juno:

[filter:ceilometer]
use = egg:ceilometer#swift

and I couln't find ceilometermiddleware in my path,
in Kilo, I set this filter as the Juno, it works.

summary: - No module named ceilometermiddleware.swift
+ No module named ceilometermiddleware.swift for Kilo
Changed in openstack-manuals:
assignee: nobody → yanheven@gmail.com (yanheven)
Haifeng.Yan (yanheven)
Changed in openstack-manuals:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (stable/kilo)

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

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

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

Tom Fifield (fifieldt)
Changed in openstack-manuals:
milestone: none → liberty
Revision history for this message
Matt Kassawara (ionosphere80) wrote : Re: No module named ceilometermiddleware.swift for Kilo

Please do not submit patches prior to bug triage/discussion/prioritization. A packaging problem appears to cause this issue, not an installation guide problem. While the installation guide contains some workarounds for packaging issues, it does not install software via methods other than the distribution package management tools because they often cause issues with the official packages. I suggest that we temporarily remove the ceilometer swift bits from the installation guide and raise bugs with the package maintainers.

Revision history for this message
Haifeng.Yan (yanheven) wrote :

Actually I don't think is a packaging problem, because swift-proxy service don't require ceilometermiddleware, we wouldn't add ceilometermiddleware to it's requirement list. Only when we want to add metering service to object service, we need ceilometermiddleware.

Revision history for this message
Matt Kassawara (ionosphere80) wrote :

Maybe the ceilometer packages should install it?

Revision history for this message
Haifeng.Yan (yanheven) wrote :

only swift-proxy node need it. but swift-proxy node don't need other ceilometer packages.

Revision history for this message
Matt Kassawara (ionosphere80) wrote :

How does Juno handle this module?

Revision history for this message
Tom Fifield (fifieldt) wrote :

I think to fix this, ceilometermiddleware probably needs its own package. I don't see any existing package providing this at the moment after a quick look at ubuntu repos.

As Haifeng notes, I don't think the dependencies for swift-proxy need to be updated. However, it should be possible to install this middleware using apt :)

summary: - No module named ceilometermiddleware.swift for Kilo
+ ceilometermiddleware is not packaged
Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

I packages this for fedora. Here is the bug to get it upstream: https://bugzilla.redhat.com/show_bug.cgi?id=1230811

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

zigo has updated ubuntu to include these packages.

Changed in ceilometer:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-manuals (master)

Change abandoned by Matthew Kassawara (<email address hidden>) on branch: master
Review: https://review.openstack.org/189577
Reason: Abandoning to clean up queue. You can restore if necessary.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-manuals (stable/kilo)

Change abandoned by Matthew Kassawara (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/189571
Reason: Abandoning to clean up queue. You can restore if necessary.

Revision history for this message
James Page (james-page) wrote :

Introduced for Ubuntu Wily and OpenStack Liberty Cloud Archive.

Changed in ubuntu:
status: New → Fix Released
Changed in cloud-archive:
status: New → Fix Released
Changed in openstack-manuals:
milestone: liberty → mitaka
Changed in openstack-manuals:
assignee: yan.haifeng (yanheven) → nobody
milestone: mitaka → none
status: In Progress → Invalid
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.