Ceilometer can't find nova instance due to host name mismatch

Bug #1721054 reported by Pradeep Kilambi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Pradeep Kilambi

Bug Description

Ceilometer can't find nova instance because of name differences: it appears as compute-2 for ceilometer in ceilometer.conf (host = socket.gethostname()) and as
host=compute-2.localdomain in nova.conf.
So there are no events sent from that instance.

There are several ways of workaround, from removing host= in
nova.conf to adding it to ceilometer.conf.It should work by default so there should not be any need to add or remove host.

Changed in tripleo:
importance: Undecided → Medium
assignee: nobody → Pradeep Kilambi (pkilambi)
status: New → Triaged
milestone: none → queens-1
tags: added: pike-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
milestone: queens-1 → queens-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/509199
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=efa7f8f515d1e35b32960c9564618cecb63020a6
Submitter: Zuul
Branch: master

commit efa7f8f515d1e35b32960c9564618cecb63020a6
Author: Pradeep Kilambi <email address hidden>
Date: Tue Oct 3 10:52:49 2017 -0400

    Set host name explicitly for telemetry

    Without this there could be a mismatch with other services like
    nova and neutron and ceilometer wont find nova instances.

    Closes-bug: #1721054

    Depends-On: I421a61dc31bd10fec0a10bf7e867001cf4dd3f02

    Change-Id: I92f6d351931f1ea598d6a382704e8f986129be42

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/521082

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/521082
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=58b7e9ac759cfee38ef5c41f01be997fdcfbd121
Submitter: Zuul
Branch: stable/pike

commit 58b7e9ac759cfee38ef5c41f01be997fdcfbd121
Author: Pradeep Kilambi <email address hidden>
Date: Tue Oct 3 10:52:49 2017 -0400

    Set host name explicitly for telemetry

    Without this there could be a mismatch with other services like
    nova and neutron and ceilometer wont find nova instances.

    Closes-bug: #1721054

    Depends-On: I421a61dc31bd10fec0a10bf7e867001cf4dd3f02

    Change-Id: I92f6d351931f1ea598d6a382704e8f986129be42
    (cherry picked from commit efa7f8f515d1e35b32960c9564618cecb63020a6)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/521943

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/521948

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.5

This issue was fixed in the openstack/tripleo-heat-templates 7.0.5 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/ocata)

Reviewed: https://review.openstack.org/521943
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=bbca6c5a1f348466ab7cabe94cd18fe1f536400a
Submitter: Zuul
Branch: stable/ocata

commit bbca6c5a1f348466ab7cabe94cd18fe1f536400a
Author: Pradeep Kilambi <email address hidden>
Date: Tue Oct 3 10:52:49 2017 -0400

    Set host name explicitly for telemetry

    Without this there could be a mismatch with other services like
    nova and neutron and ceilometer wont find nova instances.

    Closes-bug: #1721054

    Depends-On: I421a61dc31bd10fec0a10bf7e867001cf4dd3f02

    Change-Id: I92f6d351931f1ea598d6a382704e8f986129be42
    (cherry picked from commit efa7f8f515d1e35b32960c9564618cecb63020a6)
    (cherry picked from commit 58b7e9ac759cfee38ef5c41f01be997fdcfbd121)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/newton)

Reviewed: https://review.openstack.org/521948
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=9f9c88dc0923cdfd817e841103270e2d279b9c5c
Submitter: Zuul
Branch: stable/newton

commit 9f9c88dc0923cdfd817e841103270e2d279b9c5c
Author: Pradeep Kilambi <email address hidden>
Date: Tue Oct 3 10:52:49 2017 -0400

    Set host name explicitly for telemetry

    Without this there could be a mismatch with other services like
    nova and neutron and ceilometer wont find nova instances.

    Closes-bug: #1721054

    Depends-On: I421a61dc31bd10fec0a10bf7e867001cf4dd3f02

    Change-Id: I92f6d351931f1ea598d6a382704e8f986129be42
    (cherry picked from commit efa7f8f515d1e35b32960c9564618cecb63020a6)
    (cherry picked from commit 58b7e9ac759cfee38ef5c41f01be997fdcfbd121)
    (cherry picked from commit bbca6c5a1f348466ab7cabe94cd18fe1f536400a)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 5.3.7

This issue was fixed in the openstack/tripleo-heat-templates 5.3.7 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 6.2.7

This issue was fixed in the openstack/tripleo-heat-templates 6.2.7 release.

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.