Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

RDO IceHouse packstack fail with answer file

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.

  • https://ask.openstack.org/en/question/11387/packstack-allinone-giving-error/
  • https://ask.openstack.org/en/question/37028/how-to-install-rdo-packstack-on-a-rhel-system-subscribed-to-satellite/

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 from cached hostfile
 * base: centos.mirror.secureax.com
 * epel: ftp.cuhk.edu.hk
 * 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

Thank you.

RDO IceHouse packstack fail with answer file

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.

  • https://ask.openstack.org/en/question/11387/packstack-allinone-giving-error/
  • https://ask.openstack.org/en/question/37028/how-to-install-rdo-packstack-on-a-rhel-system-subscribed-to-satellite/

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 from cached hostfile
 * base: centos.mirror.secureax.com
 * epel: ftp.cuhk.edu.hk
 * 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

Thank you.

Update

Tried again, resolved. See this.

https://ask.openstack.org/en/question/51967/rdo-packstack-installation-fail/