Ask Your Question
1

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 https://openstack.redhat.com/Quickstart 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: 192.168.11.128_mariadb.pp
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/192.168.11.128_mariadb.pp.log

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

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

I did find: https://rhn.redhat.com/errata/RHEA-20... Which led to: https://rhn.redhat.com/errata/RHBA-20...

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

openstack-packstack-2014.1.1-0.41.dev1251.el6ost.noarch.rpm

Is not:

rpm -qa | grep openstack-packstack-2014
openstack-packstack-2014.1.1-0.29.dev1251.el6.noarch

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

Comments

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? http://ow.ly/Clrq5

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
2

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

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

SYMPTOM

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

PROBLEM

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:

/usr/lib/python2.6/site-packages/packstack/plugins/serverprep_001.py
    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'):
          return

SOLUTION

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:

/etc/yum/pluginconf.d/priorities.conf
    enabled = 1

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

FOLLOW UP

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

RUN SCRIPT TO RECREATE THE PROBLEM

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: http://itinsteps.blogspot.in/2014/06/...

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

B Turn on networking

/etc/sysconfig/network-scripts/ifcfg-eth0
  BOOTPROTO=dhcp
  And it is on
service network restart

C UPDATE HOST FILE IF VM AND NO DNS

DEPRECATED STEP

 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)
      Reboot

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 http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm; rpm -ivh epel-release-6-8.noarch.rpm; 
yum install yum-utils

G DETERMINE IF ERLANG EXISTS AND IF SO WHERE

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

Comments

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
0

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

Comments

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
0

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

192.168.11.130_mariadb.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: 192.168.11.130_mariadb.pp 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

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 2,839 times

Last updated: Oct 19 '14