RabbitMQ user name not set in Neutron transport_url

Bug #1746034 reported by Matt Wisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Matt Wisch

Bug Description

When deploying an overcloud stack with the Pike Tripleo Heat Templates, and overriding the default RabbitMQ admin user with the "RabbitUserName" parameter, Neutron will not be configured with a correct transport_url defaulting to the guest user which does not exist.

DEFAULT/rabbitmq_userid will be set correctly, but this is depricated and will be overriden by the transport_url setting.

The issue is an incorrect parameter mapping in puppet-tripleo, tripleo::profile::base::neutron:

  $oslomsg_rpc_username = hiera('neutron::rabbit_userid', 'guest')

https://github.com/openstack/puppet-tripleo/blob/master/manifests/profile/base/neutron.pp#L88

Unlike the other services that user rabbit_userid, Neutron maps this parameter to neutron::rabbit_user

https://github.com/openstack/tripleo-heat-templates/blob/stable/pike/puppet/services/neutron-base.yaml#L127

openstack-tripleo-heat-templates-7.0.3-18.el7ost.noarch
puppet-tripleo-7.4.3-11.el7ost.noarch

Matt Wisch (matt-wisch)
Changed in tripleo:
assignee: nobody → Matt Wisch (matt-wisch)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

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

Matt Wisch (matt-wisch)
Changed in tripleo:
status: In Progress → Fix Committed
Changed in tripleo:
status: Fix Committed → Fix Released
Revision history for this message
Brent Eagles (beagles) wrote :

Bug shouldn't have been set to "Fix Committed" until it's been merged.

Changed in tripleo:
status: Fix Released → In Progress
Changed in tripleo:
milestone: none → rocky-1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/538966
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=49be755b2cfc80753a808375c5f6584c3db4987b
Submitter: Zuul
Branch: master

commit 49be755b2cfc80753a808375c5f6584c3db4987b
Author: Matt Wisch <email address hidden>
Date: Mon Jan 29 09:44:41 2018 -0700

    Correct Neutron RabbitMQ User Param Mapping

    Changed parameter mapping for RabbitMQ user name
    overrides. THT maps the user name override to
    neutron::rabbit_user for the Neutron service only.

    This will allow the transport_url string to be built
    correctly when a deployer wishes to override the default
    guest username.

    Change-Id: I0e35a6979765a453e2ed219e6026f6c0a17b2013
    Closes-Bug: 1746034

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

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/550439

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

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

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

Reviewed: https://review.openstack.org/550440
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=e1bd1290f5a014cd73815de7e06b59fee82847c3
Submitter: Zuul
Branch: stable/pike

commit e1bd1290f5a014cd73815de7e06b59fee82847c3
Author: Matt Wisch <email address hidden>
Date: Mon Jan 29 09:44:41 2018 -0700

    Correct Neutron RabbitMQ User Param Mapping

    Changed parameter mapping for RabbitMQ user name
    overrides. THT maps the user name override to
    neutron::rabbit_user for the Neutron service only.

    This will allow the transport_url string to be built
    correctly when a deployer wishes to override the default
    guest username.

    Change-Id: I0e35a6979765a453e2ed219e6026f6c0a17b2013
    Closes-Bug: 1746034
    (cherry picked from commit 49be755b2cfc80753a808375c5f6584c3db4987b)

tags: added: in-stable-pike
tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/queens)

Reviewed: https://review.openstack.org/550439
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=bce78ef54a3d85e192766b391b695b237c2263eb
Submitter: Zuul
Branch: stable/queens

commit bce78ef54a3d85e192766b391b695b237c2263eb
Author: Matt Wisch <email address hidden>
Date: Mon Jan 29 09:44:41 2018 -0700

    Correct Neutron RabbitMQ User Param Mapping

    Changed parameter mapping for RabbitMQ user name
    overrides. THT maps the user name override to
    neutron::rabbit_user for the Neutron service only.

    This will allow the transport_url string to be built
    correctly when a deployer wishes to override the default
    guest username.

    Change-Id: I0e35a6979765a453e2ed219e6026f6c0a17b2013
    Closes-Bug: 1746034
    (cherry picked from commit 49be755b2cfc80753a808375c5f6584c3db4987b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 7.4.11

This issue was fixed in the openstack/puppet-tripleo 7.4.11 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 8.3.1

This issue was fixed in the openstack/puppet-tripleo 8.3.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 9.0.0

This issue was fixed in the openstack/puppet-tripleo 9.0.0 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.