Bug 1247015

Summary: openstack undercloud install doesn't create rabbit user if you set custom passwords in undercloud.conf
Product: Red Hat OpenStack Reporter: Eduard Barrera <ebarrera>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: unspecified Docs Contact:
Priority: high    
Version: DirectorCC: dmacpher, mburns, rhel-osp-director-maint
Target Milestone: y1Keywords: Triaged, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: instack-undercloud-2.1.2-25.el7ost Doc Type: Bug Fix
Doc Text:
The Undercloud configuration script ignored rabbit user details in undercloud.conf and did not create the necessary user for rabbitmq. This caused a incorrect rabbitmq configuration that resulted in a failed Undercloud configuration. This fix adds code to the undercloud configuration script that creates the requested rabbitmq user with the requested password. All services now connect to rabbitmq using the requested username and password.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 12:15:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eduard Barrera 2015-07-27 07:26:06 UTC
Description of problem:

The undercloud installer doesn't create the specified rabbit user when installing the undercloud, so all the openstack services are trying to authenticate against rabbit with the specified user and password but in rebbitmq.conf the user is guest:guest

Version-Release number of selected component (if applicable):
http://download.lab.bos.redhat.com/rel-eng/OpenStack/7.0-RHEL-7-director-Beta/2015-07-23.1/

How reproducible:
always

Steps to Reproduce:

1. edit undercloud.coinf and set the following parameters

undercloud_rabbit_password = mypasswd
undercloud_rabbit_username = rabbit


2. # openstack undercloud install
3. # openstack baremetal introspection bulk start
4. # tail -f /var/log/ironic/ironic*

Actual results:
Command take to long
Autentication errors in ironic logs
rabbitmq.config contains user:password guest:guest
the rest of openstack services are tying to use the specified password

Expected results:
rabbitmq.config  contains the specified user

Additional info:

Comment 6 Omri Hochman 2015-09-15 20:31:24 UTC
verified with instack-undercloud-2.1.2-26.el7ost.noarch

the password seems to apply in .conf and introspection of the nodes succeeded in timely manner: 
vi /etc/rabbitmq/rabbitmq.config
    },
    {default_user, <<"rabbit">>},
    {default_pass, <<"mypasswd">>}
  ]},

Comment 8 errata-xmlrpc 2015-10-08 12:15:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1862