glance image uploads fail with ceilometer enabled

Bug #1596244 reported by Dave Walker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Dave Walker

Bug Description

Trying to upload an image to glance, fails with a cryptic error of not being able to find the host.

The cause seems to be a misconfigured rabbit config for glance:

AMQP server on 10.131.161.211:5672,10.131.161.203:5672,10.131.161.235:5672rabbit_userid = openstack:5672:5672 is unreachable: [Errno -2] Name or service not known. Trying again in 32 seconds.

Dave Walker (davewalker)
description: updated
summary: - glance image uploads fail with ceilometer emabled
+ glance image uploads fail with ceilometer enabled
Revision history for this message
Dave Walker (davewalker) wrote :

Currently glance-*.conf has:
[oslo_messaging_rabbit]
rabbit_host = 10.131.161.211:5672,10.131.161.203:5672,10.131.161.235:5672rabbit_userid = openstack
rabbit_password = <REDACTED>

But it should have:
[oslo_messaging_rabbit]
rabbit_userid = openstack
rabbit_password = <REDACTED>
rabbit_ha_queues = true
rabbit_hosts = 10.131.161.211:5672,10.131.161.203:5672,10.131.161.235:5672

Revision history for this message
Dave Walker (davewalker) wrote :
Changed in kolla:
status: New → In Progress
assignee: nobody → Dave Walker (davewalker)
Changed in kolla:
importance: Undecided → High
milestone: none → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/334205
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=2a2a86ac43f86ee698ce080486612984f67d9ea0
Submitter: Jenkins
Branch: master

commit 2a2a86ac43f86ee698ce080486612984f67d9ea0
Author: Dave Walker (Daviey) <email address hidden>
Date: Sun Jun 26 01:07:28 2016 +0100

    glance-*, fix rabbit config with ceilometer

    Currently, if ceilometer is enabled with glance then the
    rabbitmq is non-functional, causing various glance failures
    including image upload.

    This is caused because:
    The generated config fails to have a carriage return at the
    end of the rabbit_host line, causing the following line to
    be added to this entry.

    rabbit_host is used rather than rabbit_hosts, where the
    fromer expects a string, rather than the list that is
    provided.

    This also adds rabbit HA support, to be in-line with the
    other services using rabbitmq.

    This is resolved, by pushing the rabbit_hosts entry to be
    last, meaning that a carriage return is not required.

    Change-Id: I89f26d542565b98025fd9b84fc4beb5cbed364e5
    Closes-Bug: 1596244
    Signed-off-by: Dave Walker (Daviey) <email address hidden>

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b2

This issue was fixed in the openstack/kolla 3.0.0.0b2 development milestone.

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.