pollsters doesn't work when service type is changed from default to other

Bug #1353356 reported by Hisashi Osanai
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Medium
Hisashi Osanai

Bug Description

[Description]
swift pollsters doesn't work when the service type of swift is changed from
default(object-store) to other and printed out "Swift endpoint not found"
message in central.log.

[Version details]
Icehouse

[Crystal clear details to reproduce the bug]
-

[Test environment details]
-

[Actual results]
could not get any info from swift pollsters

[Expected results]
swift pollters work correctly even if the service type of swift is changed.
I think that swift polleters have to get the service type of swift from
ceilometer.conf.

- ceilometer/ceilometer/swift.py

    def _get_account_info(self, ksclient, cache):
        try:
            endpoint = ksclient.service_catalog.url_for(
                service_type='object-store',
                endpoint_type=cfg.CONF.service_credentials.os_endpoint_type)
        except exceptions.EndpointNotFound:
            LOG.debug(_("Swift endpoint not found"))
            raise StopIteration()
        ...

I would like to have this bug if possible.

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

have at it. i've assigned bug to you. please comment or join irc if you have any questions.

thanks!

Changed in ceilometer:
assignee: nobody → Hisashi Osanai (osanai-hisashi)
importance: Undecided → Medium
status: New → Triaged
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/112771

Changed in ceilometer:
status: Triaged → In Progress
Changed in ceilometer:
milestone: none → juno-rc1
Revision history for this message
Hisashi Osanai (osanai-hisashi) wrote : Re: swift pollsters doesn't work when service type is changed from default to other

This behavior will be happened on the following pollsters. A fix for this should be covered them.
 - ceilometer/network/floatingip.py
 - ceilometer/energy/kwapi.py
 - ceilometer/image/glance.py

gordon chung (chungg)
summary: - swift pollsters doesn't work when service type is changed from default
- to other
+ pollsters doesn't work when service type is changed from default to
+ other
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

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

commit 72d65777962a2b93e80f7e17ce6602caa6a79bed
Author: Hisashi Osanai <email address hidden>
Date: Fri Aug 8 14:30:43 2014 +0900

    Enable to get service types from configuration file

    When services are registered to keystone without using default
    service types, pollsters for the services don't work. This fix
    enables the pollsters to get service types from ceilometer.conf.
    If there is no entry in the file, the default service types
    will be used.

    Change-Id: Iab30b6e749f5d2af4ecb0bbf6fe1a137793f4c2c
    Closes-Bug: 1353356
    DocImpact: Add new parameters in ceilometer.conf

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-rc1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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