Ask Your Question

Packstack allinone on Icehouse on CentOS 6.5

asked 2014-10-15 11:30:40 -0500

updated 2014-10-19 15:42:22 -0500

What is the latest "Workarounds" for a Packstack allinone on Icehouse on CentOS 6.5+ (CentOS 6.6 in this case.)? The directions via no workie and I wanted to try this configuration out.

After installation I got the "Something went wrong" message when trying to get into Horizon. Looking deeper in the keystone logs I found erlang wasn't loaded properly due to a script bug (see answer in answer response below.) Also I failed to use the --answer-file=<> option to which resulted in:

ERROR : Error appeared during Puppet run:
Error: mysqladmin -u root  password 'XXXXXXXX' returned 1 instead of one of [0]
You will find full trace in log /var/tmp/packstack/20141014-234401-jYu9QG/manifests/

Using the parameters in the /etc/keystone/keystone.conf I confirmed the error:

mysql -u keystone_admin -p3e5b6cb83c4f4bf1@ -h keystone
ERROR 1045 (28000): Access denied for user 'keystone_admin'@'OpenStack' (using password: YES)

I did find: Which led to:

These did not relate to the problem I found though the version listed isn't what the repositories:


Is not:

rpm -qa | grep openstack-packstack-2014

So before I go reinventing the wheel and given how common a configuration this has to be. Does anyone have a set of CentOS, Packstack, and other configuration bits that works for allinone? Or is this a known problem since this summer and I should go fish elsewhere? Or did I biff it somewhere an should just start over? 8-)

edit retag flag offensive close merge delete


Did you tried to uninstall maria db? Did you set SELINUX=permissive? I installed Icehouse several times on CentOS 6.5 minimal with no problems. Why not trying Juno directly on CentOS 7?

cloudssky gravatar imagecloudssky ( 2014-10-15 16:15:28 -0500 )edit

Yep did those things. Look at my answer below. If you could add for posterity what step you did different, I am sure others that follow would appreciate it. 8-)

DanNeedles gravatar imageDanNeedles ( 2014-10-16 03:30:06 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2014-10-16 18:49:43 -0500

updated 2014-10-17 01:33:15 -0500


The installation of Icehouse on CentOS 6.5 using RDO quickstart fails initially when trying to find the erlang package.


There is a bug in the packstack installation scripts that prevents the RDO Quickstart directions from working on:

CentOS-6.5-x86_64-minimal.iso  or CentOS-6.5-x86_64-bin-DVD1.iso
VMware Workstation 10 
(NOTE: Done without NTP or DNS (used hostfile))

The issue is the packstack script that handles part of the yum processing, doesn't handle CentOS. It is looking for Fedora, Redhat, etc. The fix is easy, though it was about as painful to find as watching the Titanic was with my wife and her friend, um... anyway it is here:

    def manage_epel(host, config)
        Installs and/or enables EPEL repo if it is required or disables it if it 
        is not required.
        if config['HOST_DETAILS'][host]['os'] in ('Fedora', 'Unknown'):


Changing the if clause corrected the "product feature":

        if config['HOST_DETAILS'][host]['os'] in ('Fedora', 'CentOS', 'Unknown'):

NOTE: I had also changed the redhat-releases file to try to work around the issue. After changing this line, I had to change that file back to the initial state rather than mimicing the redhat equivallent.

This changes causes CentOS to abort the function early (like Fedora) and prevents epel from turning off.

There is another lovely issue that I fixed outside the code where it create the following file:

    enabled = 1

I simply reset this to 0. When enabled, it blocked a number of repositories that were desirable. Grrr.


There are other scripts that might need touched that I haven't examined. The following command gives the areas that need to be looked at with:

find /usr/lib/python2.6/site-packages -name "*.py" -exec grep -l HOST_DETAIL '{}' \; | xargs grep HOST_DETAIL


The full steps are here. Also note this is a throw away server (i.e no NTP, uses DHCP, etc) You can also look here to glean more though it appears the bug didn't occur in the version the author was installing:

A Install OS (CentOS-6.5-x86_64-bin-DVD1.iso)

B Turn on networking

  And it is on
service network restart



 D UPDATE THE RELEASES FILE (Caused trouble as it was looking for RedHat, not CentOS)

      /etc/redhat-release: Red Hat Enterprise Linux Server release 6.5
      cat /etc/redhat-release.OLD: CentOS release 6.5 (Final)

E UNINSTALL MYSQL (comes with CentOS 6.5 min)

yum remove mysql\*
yum install cron\*

F INSTALL EPEL (per Prerequisites) AND repoquery to show erlang problem

yum install wget
wget; rpm -ivh epel-release-6-8.noarch.rpm; 
yum install yum-utils


repoquery -i erlang
  Name : Erlang
  Version : R14B
  Release : 04.3.e16 ...
edit flag offensive delete link more


I ALSO CAUGHT WITH THE SAME ERROR .But i ma using openstack juno versuion and centos7 .I couldnt find the file mentioned above.

Queen gravatar imageQueen ( 2015-03-17 23:59:42 -0500 )edit

Can u tell insallation procedure of opensatck using packstack in multinode environment -1 controllr,2 compute on centos7 .I

Queen gravatar imageQueen ( 2015-03-18 00:01:48 -0500 )edit

answered 2014-10-16 03:21:13 -0500

Lester Li gravatar image

I installed IceHouse in a clean CentOS 6.5 last week without any problem. Please make sure there is no mysql or maria installed before you run packstack.

edit flag offensive delete link more


Take a look at the answer below. I would really like to know what versions you are using as I suspect they are not the same as mine as this appears to be a scripting bug.

DanNeedles gravatar imageDanNeedles ( 2014-10-16 03:31:49 -0500 )edit

answered 2014-10-16 06:01:15 -0500

dbaxps gravatar image

updated 2014-10-16 12:14:47 -0500

When you run packstack --allinone the first time it creates answer-file-xxxx.txt in working directory.
If you want to rerun packstack

# packstack --answer-file=./answer-file-xxxxx.txt

Every next packstack rerun should pick up previous version of answer-file-xxxx.txt

Then you won't get [ ERROR ]
Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: Error: mysqladmin -u root password 'e71a09f37d274b15' returned 1 instead of one of [0]

Do have corresponding EPEL installed on system. In case of failure packstack run /usr/bin/yum install .. and following crash of packstack. Run yum install .. manually and rerun packstack via recent answer-file. Then you should be done finally.

edit flag offensive delete link more


D'oh! Well that's part of it - I wasn't using the recent answer-file. And though I installed EPEL I failed to enable Remi (though it was installed) and hence why erlang and rabbitmq was an issue. So very intuitive of you to read through my tea leaves. Thanks! (Albeit it was a tad embarrassing. ;-)

DanNeedles gravatar imageDanNeedles ( 2014-10-16 11:10:15 -0500 )edit

Do have corresponding EPEL installed on system in case of failure packstack rum /usr/bin/yum install .. and following crash of packstack. Run yum install .. manually and rerun packstack via recent answer-file. Then you should be done finally.

dbaxps gravatar imagedbaxps ( 2014-10-16 11:37:47 -0500 )edit

I confirmed BEFORE installation that repoquery can see erlang and rabbitmsq-server. Then packstack --allinone mucks with the repos and whala they are no longer seen and the installation bombs. I am using CentOS-6.5 min -- what else are folks doing?

DanNeedles gravatar imageDanNeedles ( 2014-10-16 15:01:10 -0500 )edit

I don't follow you "I enabled remi and could see erlang BEFORE running packstack" .
Nothing is supposed to happen before running packstack.

dbaxps gravatar imagedbaxps ( 2014-10-16 15:24:00 -0500 )edit

Take a look at the answer below. There is a bug in the packstack script that does not recognize CentOS and as a result disables the epel depot during the installation causing the script to fail to find the erlang package (along with others if installed and installation is continued.)

DanNeedles gravatar imageDanNeedles ( 2014-10-16 16:18:09 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-10-15 11:30:40 -0500

Seen: 3,004 times

Last updated: Oct 19 '14