Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1144124

Summary: packstack fails at point of installing keystone following "QuickStart" instructions
Product: [Community] RDO Reporter: Hutson Meeks <hutson_meeks>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED WONTFIX QA Contact: Ami Jeain <ajeain>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aortega, derekh, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-31 00:23:53 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:
Attachments:
Description Flags
Openstack Setup Log
none
keystone.pp.log
none
Install Output none

Description Hutson Meeks 2014-09-18 17:51:53 UTC
Created attachment 939000 [details]
Openstack Setup Log

Description of problem:

The RedHat "QuickStart" process for an "all in one" install of Openstack provided at the following URL fails to install Openstack Icehouse.  https://openstack.redhat.com/Quickstart  The process works fine until you run the packstack --allinone command.  This command runs until it gets to the point of applying Puppet manifests for keystone.  

Version-Release number of selected component (if applicable):

RHEL 6.5 OS fresh and clean, installed today from the ISO image downloaded from RedHat.

Icehouse version of Openstack from RDO.
How reproducible:

Very easily reproduced.

Steps to Reproduce:
1. Download the RHEL 6.5 ISO install image named rhel-server-6.5-x86_64-dvd.iso from RedHat.

2. Install a new RHEL 6.5 OS using the ISO image from step 1.

3. Register the new OS with RedHat RHN and/or RedHat Subscription Manager (I have tried both).

4. Add the optional rpms through Subscription Manager so that you can install the rubygems package as instructed in the perquisites on the "QuickStart" page here: https://openstack.redhat.com/Quickstart.  See the RDO prerequisite link provided by RedHat.  The command for Subscription Manager is shown below.

subscription-manager register --username admin-example --password secret --auto-attach

5. Update the OS using the command "yum update -y" as instructed at https://openstack.redhat.com/Quickstart.

6. Follow the rest of the instructions at the "QuickStart" page here: https://openstack.redhat.com/Quickstart

Actual results:

Failed install with error shown below.

172.23.52.34_keystone.pp:                         [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 172.23.52.34_keystone.pp
Error: /Stage[main]/Keystone::Db::Sync/Exec[keystone-manage db_sync]: Failed to call refresh: keystone-manage db_sync returned 1 instead of one of [0]
You will find full trace in log /var/tmp/packstack/20140918-094253-DALGTg/manifests/172.23.52.34_keystone.pp.log
Please check log file /var/tmp/packstack/20140918-094253-DALGTg/openstack-setup.log for more information

Expected results:

A successful install is expected per the instructions on RedHat's RDO "QuickStart" web page where it states that you can have Openstack installed and running in as little as "15 minutes".  See page here: https://openstack.redhat.com/Quickstart  


Additional info:

Log files are attached.

Comment 1 Hutson Meeks 2014-09-18 17:53:28 UTC
Created attachment 939001 [details]
keystone.pp.log

Comment 2 Hutson Meeks 2014-09-18 17:53:56 UTC
Created attachment 939002 [details]
Install Output

Comment 4 Hutson Meeks 2014-09-24 15:02:19 UTC
The exact same error occurs when attempting to install on a fresh, clean new instance of RHEL 7.  In both cases the install was attempted using nothing but RedHat software and following all of the instructions provided by RedHat.  The last attempt was conducted following the instructions provided by RedHat here: https://access.redhat.com/products/red-hat-enterprise-linux-openstack-platform/get-started. Also, note the information following the error below that is the output of pack-stack.

192.168.198.129_keystone.pp:                      [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.198.129_keystone.pp
Error: /Stage[main]/Keystone::Db::Sync/Exec[keystone-manage db_sync]: Failed to call refresh: keystone-manage db_sync returned 1 instead of one of [0]
You will find full trace in log /var/tmp/packstack/20140924-014607-J0yr8v/manifests/192.168.198.129_keystone.pp.log
Please check log file /var/tmp/packstack/20140924-014607-J0yr8v/openstack-setup.log for more information

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20140924-014607.txt
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.198.129. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.198.129/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://192.168.198.129/nagios username: nagiosadmin, password: e5bdabd609eb4b0a

There are multiple inaccuracies in this output.  First, the file named keytstonerc_admin is NOT created as indicated by packstack.  Second, dashboard and Nagios are NOT running at the URLs indicated.

Additionally, the log files referenced under /var/tmp do not provide information that indicates what the problem is.

RDO Openstack 5 simply will not install as RedHat states in the QuickStart and Getting Started instructions when following all of RedHat's instructions and using RedHat software.  There is either a bug in the RedHat software that causes the install to fail, or there is a dependency that RedHat has not documented leaving the user confused and not knowing how to get RedHat Openstack installed.

Comment 5 Hutson Meeks 2014-10-31 00:23:53 UTC
Problem solved.

There is a MySQL database that many of the components use.  The user table in MySQL includes host, user, and password so that users can only authenticate from the specific hosts that are entered in the record rows for their user ID.  The packstack installer process for Openstack creates various entries with the loopback address as the host in this table.  But, then, later in the install process, it tries to log on to the DB using the shortname of the host, therefore the log on fails.  It’s sort of a chicken and egg thing. You have to edit the RedHat provided  scripts to resolve this.  This is sort of bad because RedHat claims the “all in one” install as a “QuickStart” that only takes 15 minutes as part of an obvious sales/marketing effort but it does not even work!   You have to troubleshoot it yourself and figure out how to fix it.  

There is a catch-22 in this for both RedHat and their customers.  This "all in one" install is what many folks will use to initially evaluate the solution before purchase, but it does not work (unless you dig in and fix it and you have the skills to do so). Yet at the same time RedHat will not provide you support because you have not bought the solution.  They never responded to this bug.  It's like some kind of weird, misguided sales prevention policy of theirs.