Ask Your Question
0

RDO IceHouse packstack fail with answer file [closed]

asked 2014-10-27 03:07:10 -0500

idzzy gravatar image

updated 2015-03-02 19:39:19 -0500

Hello,

I'm facing following error. How can I fix this?

packstack --answer-file=answer-file

Answer file:

# diff packstack-answer.txt.org packstack-answer.txt
42c42
< CONFIG_HEAT_INSTALL=n
---
> CONFIG_HEAT_INSTALL=y
50c50
< CONFIG_NTP_SERVERS=
---
> CONFIG_NTP_SERVERS=10.16.1.14
72c72
< CONFIG_COMPUTE_HOSTS=10.32.37.45
---
> CONFIG_COMPUTE_HOSTS=10.32.37.46
252c252
< CONFIG_CINDER_VOLUMES_SIZE=20G
---
> CONFIG_CINDER_VOLUMES_SIZE=200G
283c283
< CONFIG_NOVA_COMPUTE_PRIVIF=eth1
---
> CONFIG_NOVA_COMPUTE_PRIVIF=eth2
289c289
< CONFIG_NOVA_NETWORK_PUBIF=eth0
---
> CONFIG_NOVA_NETWORK_PUBIF=eth1
292c292
< CONFIG_NOVA_NETWORK_PRIVIF=eth1
---
> CONFIG_NOVA_NETWORK_PRIVIF=eth2
295c295
< CONFIG_NOVA_NETWORK_FIXEDRANGE=192.168.32.0/22
---
> CONFIG_NOVA_NETWORK_FIXEDRANGE=192.168.10.0/24
298c298
< CONFIG_NOVA_NETWORK_FLOATRANGE=10.3.4.0/22
---
> CONFIG_NOVA_NETWORK_FLOATRANGE=10.10.10.0/24
468c468
< CONFIG_SWIFT_STORAGE_SIZE=2G
---
> CONFIG_SWIFT_STORAGE_SIZE=100G

Error:

Installing Dependencies                           [ ERROR ]

ERROR : Failed to run remote script, stdout: Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * base: centos.mirror.secureax.com
 * extras: centos.mirror.secureax.com
 * updates: centos.mirror.secureax.com

stderr: Warning: Permanently added '10.32.37.45' (RSA) to the list of known hosts.
+ trap t ERR
+ yum install -y puppet openssh-clients tar nc rubygem-json
Error: requested datatype primary not available
++ t
++ exit 1

And I enabled EPEL. but still following error is output.

Anster file:

# diff packstack-answer-20141027-1212.txt.2 packstack-answer-20141027-1212.txt
105c105
< CONFIG_USE_EPEL=n
---
> CONFIG_USE_EPEL=y

Error:

Preparing servers                                 [ ERROR ]

ERROR : Failed to set EPEL repo on host 10.32.37.45:
RPM file seems to be installed, but appropriate repo file is probably missing in /etc/yum.repos.d/

Similar Cases.

I didn't epel repo manually.

# yum repolist
Loaded plugins: fastestmirror, priorities, security
Determining fastest mirrors
 * base: centos.mirror.secureax.com
 * extras: centos.mirror.secureax.com
 * updates: centos.mirror.secureax.com
base                                                                                   | 3.7 kB     00:00
base/primary_db                                                                        | 4.4 MB     00:03
extras                                                                                 | 3.3 kB     00:00
extras/primary_db                                                                      |  19 kB     00:00
foreman                                                                                | 2.9 kB     00:00
foreman/primary_db                                                                     |  81 kB     00:00
foreman-plugins                                                                        | 2.9 kB     00:00
foreman-plugins/primary_db                                                             |  26 kB     00:00
openstack-icehouse                                                                     | 2.9 kB     00:00
openstack-icehouse/primary_db                                                          | 892 kB     00:01
packstack_0                                                                            |  30 kB     00:00

Thank you.

Update

I setup epel repo manually. and after that I re-run. New error message is output.

Error:

yum update -y puppet openssh-clients tar nc rubygem-json
2014-10-27 16:50:57::ERROR::run_setup::921::root:: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 916, in main
    _main(confFile)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 605, in _main
    runSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 584, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 68, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 98, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 44, in run
    raise SequenceError(str(ex))
SequenceError: Failed to run remote script, stdout: Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by idzzy
close date 2015-03-02 19:40:01.766807

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-02-03 13:27:27 -0500

I am getting the same error. I am not behind a proxy. I am using RHEL 6.5

    192.168.205.130_neutron.pp:                       [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.205.130_neutron.pp
Error: Could not autoload puppet/provider/nova_admin_tenant_id_setter/ini_setting: no such file to load -- rubygems
You will find full trace in log /var/tmp/packstack/20150204-000435-AnDdew/manifests/192.168.205.130_neutron.pp.log
Please check log file /var/tmp/packstack/20150204-000435-AnDdew/openstack-setup.log for more information

Additional information:
 * Did not create a cinder volume group, one already existed
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.205.130. To use the command line tools you need to source the file.
 * NOTE : A certificate was generated to be used for ssl, You should change the ssl certificate configured in /etc/httpd/conf.d/ssl.conf on 192.168.205.130 to use a CA signed cert.
 * To access the OpenStack Dashboard browse to https://192.168.205.130/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://192.168.205.130/nagios username: nagiosadmin, password: cefac97523d5499a

Cat'ng the log gives me following;

[root@cloudcontroller ~]# cat /var/tmp/packstack/20150204-000435-AnDdew/openstack-setup.log
2015-02-04 00:04:36::INFO::shell::81::root:: [localhost] Executing script:
rm -rf /var/tmp/packstack/20150204-000435-AnDdew/manifests/*pp
2015-02-04 00:04:36::INFO::shell::81::root:: [localhost] Executing script:
mkdir -p ~/.ssh
chmod 500 ~/.ssh
grep 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2jtbv3lmGUVusfplnm1E9Az9FfVOCXBehvb/W+wmtoOydQtFy9/p17okrDy/fHvlwvazioh7tDC6L/lGTLhQQ1vTedDolBUIyZHElAMkmhK17ZH4SVtbfPB+v07gLSfUNDxvybMJrvjpaUPFfYkpdreo4h30ZtQkv/38fXYZvjSgQcvAR0G+3WVQ8FWL7xGH7ytvzKnEl7CPJad5MJ2rw/Ep/qXoSB1iHz2mbrLzvcJRWhU+tlzcgyCAOy1Yim1US8SgJmdLP8T7hs9vAjIqTdBnOe4yn/jLPkqqL6rf4VJwgiaQDRAWxza9PFREXOWxL8QSU/ObyLsQQNaidZO0aw== root@cloudcontroller.example.com' ~/.ssh/authorized_keys > /dev/null 2>&1 || echo ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2jtbv3lmGUVusfplnm1E9Az9FfVOCXBehvb/W+wmtoOydQtFy9/p17okrDy/fHvlwvazioh7tDC6L/lGTLhQQ1vTedDolBUIyZHElAMkmhK17ZH4SVtbfPB+v07gLSfUNDxvybMJrvjpaUPFfYkpdreo4h30ZtQkv/38fXYZvjSgQcvAR0G+3WVQ8FWL7xGH7ytvzKnEl7CPJad5MJ2rw/Ep/qXoSB1iHz2mbrLzvcJRWhU+tlzcgyCAOy1Yim1US8SgJmdLP8T7hs9vAjIqTdBnOe4yn/jLPkqqL6rf4VJwgiaQDRAWxza9PFREXOWxL8QSU/ObyLsQQNaidZO0aw== root@cloudcontroller.example.com >> ~/.ssh/authorized_keys
chmod 400 ~/.ssh/authorized_keys
restorecon -r ~/.ssh
2015-02-04 00:04:36::INFO::shell::81::root:: [192.168.205.130] Executing script:
cat /etc/redhat-release
2015-02-04 00:04:36::INFO::shell::81::root:: [192.168.205.130] Executing script:
mkdir -p /var/tmp/packstack
mkdir --mode 0700 /var/tmp/packstack/092c9ad83e5943a8bb5d39013212f136
mkdir --mode 0700 /var/tmp/packstack/092c9ad83e5943a8bb5d39013212f136/modules
mkdir --mode 0700 /var/tmp/packstack/092c9ad83e5943a8bb5d39013212f136/resources
2015-02-04 00:04:36::INFO::shell::81::root:: [192.168.205.130] Executing script:
rpm -q --whatprovides yum-utils || yum install -y yum-utils
yum list available rhos-log-collector && yum -y install rhos-log-collector sos sos-plugins-openstack || echo "no rhos-log-collector available"
2015-02-04 00:04:38::INFO::shell::81::root:: [192.168.205.130] Executing script:
REPOFILE=$(mktemp)
cat /etc/yum.conf > $REPOFILE
echo -e '[packstack-epel]
name=packstack-epel
enabled=1
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch' >> $REPOFILE
( rpm -q --whatprovides epel-release || yum install -y --nogpg -c $REPOFILE epel-release ) || true
rm -rf $REPOFILE
2015-02-04 00:04:39::INFO::shell::81::root:: [192.168.205.130] Executing script:
yum-config-manager --enable epel
2015-02-04 00:04:39::INFO::shell::35::root:: Executing command:
rpm -q rdo-release --qf='%{version}-%{release}.%{arch}
'
2015-02-04 00:04:39::INFO::shell::81::root:: [192.168.205.130 ...
(more)
edit flag offensive delete link more

Comments

This might not be related to the issue.

This is the procedure which I tried again before. https://ask.openstack.org/en/question...

idzzy gravatar imageidzzy ( 2015-03-02 19:43:24 -0500 )edit
0

answered 2014-10-27 09:09:42 -0500

bishoy gravatar image

Are you working on this server behind a proxy? if not try to do yum clean all and re run the update. I assume that this version 7 right?

edit flag offensive delete link more

Comments

Hi, Yes it's behind a proxy, So I already added "proxy=http://x.x.x.x:xxxx" in /etc/yum.conf

I tried. "yum clean all" and "rpm --rebuilddb" I'm trying to setup 1x controller, 1x compute, OS is CentOS6.5. RDO is IceHouse. use modified answerfile, not all in one. I'm trying to reinstall os. Thanks

idzzy gravatar imageidzzy ( 2014-10-28 03:27:26 -0500 )edit

maybe you can also increase the timeout for a mirror in yum configuration so that the system doesn't switch between the mirriors because of the proxy. Good Luck!

bishoy gravatar imagebishoy ( 2014-10-29 05:01:23 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-27 02:01:41 -0500

Seen: 2,280 times

Last updated: Mar 02 '15