Ask Your Question
0

Packstack installation problem

asked 2017-04-18 08:46:45 -0500

Kyi Soe Thin gravatar image

Hi I had posted a question related with this question. I install openstack via "packstack --allinone".

I found error but it says successfully installed. Below is the setup log file from /var/tmp/packstack.

2017-04-18 03:57:05::INFO::shell::94::root:: [localhost] Executing script:
rm -rf /var/tmp/packstack/20170418-035704-UX9IHD/manifests/*pp
2017-04-18 03:57:05::INFO::shell::94::root:: [localhost] Executing script:
mkdir -p ~/.ssh
chmod 500 ~/.ssh
grep 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmoYVBJkXyNthWVwDZd0cqssW3upTihCPMCcvCYqGnJsDaTxOqSgUKOUsbhwwzGvQnWXby2M/LxfpEp7EZ6uscBuCMnD6fVk3T8liw2F9JOlpqHkRU9tF6VqYHSHeZCCu99jyHpZX3iXm3k8xTHTF1G+IwzB7SNDx6vMdmZCq+wRLtJFvEOdl0U1NFodH8lZp5lh05NfONKaBbZal2CQtJeuCJiFO8dWCJzq5JRqNzERKyCMFsePA94UKt6E6LtnkMp0w4HnkmTozyVr8owiOTCCfuQs/W2/XoKD9zzU4s4L+DP3+SY5fvxCw0m3Ms4KUkj6tRC1aJvGKc5Dd00IrT root@localhost.localdomain' ~/.ssh/authorized_keys > /dev/null 2>&1 || echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmoYVBJkXyNthWVwDZd0cqssW3upTihCPMCcvCYqGnJsDaTxOqSgUKOUsbhwwzGvQnWXby2M/LxfpEp7EZ6uscBuCMnD6fVk3T8liw2F9JOlpqHkRU9tF6VqYHSHeZCCu99jyHpZX3iXm3k8xTHTF1G+IwzB7SNDx6vMdmZCq+wRLtJFvEOdl0U1NFodH8lZp5lh05NfONKaBbZal2CQtJeuCJiFO8dWCJzq5JRqNzERKyCMFsePA94UKt6E6LtnkMp0w4HnkmTozyVr8owiOTCCfuQs/W2/XoKD9zzU4s4L+DP3+SY5fvxCw0m3Ms4KUkj6tRC1aJvGKc5Dd00IrT root@localhost.localdomain >> ~/.ssh/authorized_keys
chmod 400 ~/.ssh/authorized_keys
restorecon -r ~/.ssh
2017-04-18 03:57:06::INFO::shell::94::root:: [192.168.42.170] Executing script:
rpm -q --whatprovides yum-utils || yum install -y yum-utils
2017-04-18 03:57:11::INFO::shell::48::root:: Executing command:
rpm -qa --qf='%{name}-%{version}-%{release}.%{arch}
' | grep centos-release-openstack
2017-04-18 03:57:12::INFO::shell::48::root:: Executing command:
rpm -q rdo-release --qf='%{version}-%{release}.%{arch}
'
2017-04-18 03:57:12::INFO::shell::94::root:: [192.168.42.170] Executing script:
(rpm -q 'rdo-release-ocata' || yum install -y --nogpg https://www.rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm) || true
2017-04-18 03:57:13::INFO::shell::94::root:: [192.168.42.170] Executing script:
yum-config-manager --enable openstack-ocata
2017-04-18 03:57:14::INFO::shell::94::root:: [192.168.42.170] Executing script:
python -c "import platform; print platform.linux_distribution(full_distribution_name=0)[0]+','+platform.linux_distribution()[1]"
2017-04-18 03:57:14::INFO::shell::94::root:: [192.168.42.170] Executing script:
python -c "import platform; print platform.linux_distribution(full_distribution_name=0)[0]+','+platform.linux_distribution()[1]"
2017-04-18 03:57:15::INFO::shell::94::root:: [192.168.42.170] Executing script:
rpm -q yum-utils || yum -y install yum-utils
yum-config-manager --disable epel
2017-04-18 03:57:15::INFO::shell::94::root:: [192.168.42.170] Executing script:
rpm -q --whatprovides yum-utils || yum install -y yum-utils
yum clean metadata
2017-04-18 03:57:16::INFO::shell::94::root:: [192.168.42.170] Executing script:
yum install -y puppet hiera openssh-clients tar nc rubygem-json
yum update -y puppet hiera openssh-clients tar nc rubygem-json
rpm -q --whatprovides puppet
rpm -q --whatprovides hiera
rpm -q --whatprovides openssh-clients
rpm -q --whatprovides tar
rpm -q --whatprovides nc
rpm -q --whatprovides rubygem-json
2017-04-18 03:58:59::INFO::shell::94::root:: [192.168.42.170] Executing script:
mkdir -p /var/tmp/packstack
mkdir --mode 0700 /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8
mkdir --mode 0700 /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8/modules
mkdir --mode 0700 /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8/resources
2017-04-18 03:58:59::INFO::shell::94::root:: [192.168.42.170] Executing script:
facter -p
2017-04-18 03:59:05::INFO::shell::94::root:: [192.168.42.170] Executing script:
[[ -f /etc/hiera.yaml ]] && [[ ! -L /etc/puppet/hiera.yaml ]] && ln -s /etc/hiera.yaml /etc/puppet/hiera.yaml || echo "skipping creation of  hiera.yaml symlink"
sed -i 's;:datadir:.*;:datadir: /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8/hieradata;g' $(puppet config print hiera_config)
2017-04-18 03:59:06::INFO::shell::94::root:: [192.168.42.170] Executing ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-06-17 01:03:33 -0500

Hi,

I have the same issue as the owner of this thread. After failing packstack --allinone, it tried --answer-file and got the following result:

2020-06-12 05:54:46::INFO::shell::100::root:: [192.168.92.96] Executing script:
(rpm -q 'centos-release-openstack-train' || yum -y install centos-release-openstack-train) || true
2020-06-12 05:54:46::INFO::shell::49::root:: Executing command:
rpm -q rdo-release --qf='%{version}-%{release}.%{arch}
'
2020-06-12 05:54:46::INFO::shell::100::root:: [192.168.92.96] Executing script:
rpm -q --whatprovides yum-utils || yum install -y yum-utils
yum clean metadata
2020-06-12 05:54:47::INFO::shell::100::root:: [192.168.92.96] Executing script:
yum install -y puppet hiera openssh-clients tar nc rubygem-json
yum update -y puppet hiera openssh-clients tar nc rubygem-json
rpm -q --whatprovides puppet
rpm -q --whatprovides hiera
rpm -q --whatprovides openssh-clients
rpm -q --whatprovides tar
rpm -q --whatprovides nc
rpm -q --whatprovides rubygem-json
2020-06-12 05:55:07::INFO::shell::100::root:: [192.168.92.96] Executing script:
mkdir -p /var/tmp/packstack
mkdir --mode 0700 /var/tmp/packstack/911668a3a6544f5db3f72027eb8ef640
mkdir --mode 0700 /var/tmp/packstack/911668a3a6544f5db3f72027eb8ef640/modules
mkdir --mode 0700 /var/tmp/packstack/911668a3a6544f5db3f72027eb8ef640/resources
2020-06-12 05:55:08::INFO::shell::100::root:: [192.168.92.96] Executing script:
facter -p
2020-06-12 05:55:10::INFO::shell::100::root:: [192.168.92.96] Executing script:
[[ -f /etc/hiera.yaml ]] && [[ ! -L /etc/puppet/hiera.yaml ]] && ln -s /etc/hiera.yaml /etc/puppet/hiera.yaml || echo "skipping creation of  hiera.yaml symlink"
sed -i 's;:datadir:.*;:datadir: /var/tmp/packstack/911668a3a6544f5db3f72027eb8ef640/hieradata;g' $(puppet config print hiera_config)
2020-06-12 05:55:11::ERROR::run_setup::1062::root:: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py", line 1057, in main
    _main(options, confFile, logFile)
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py", line 681, in _main
    runSequences()
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py", line 648, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python3.6/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python3.6/site-packages/packstack/installer/core/sequences.py", line 109, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python3.6/site-packages/packstack/installer/core/sequences.py", line 50, in run
    self.function(config, messages)
  File "/usr/lib/python3.6/site-packages/packstack/plugins/prescript_000.py", line 1290, in preinstall_and_discover
    server.execute()
  File "/usr/lib/python3.6/site-packages/packstack/installer/utils/shell.py", line 140, in execute
    raise ScriptRuntimeError(msg, stdout=out, stderr=err)
packstack.installer.exceptions.ScriptRuntimeError: Failed to run remote script, stdout: skipping creation of  hiera.yaml symlink

stderr: Warning: Permanently added '192.168.92.96' (ECDSA) to the list of known hosts.
+ trap t ERR
+ [[ -f /etc/hiera.yaml ]]
+ echo 'skipping creation of  hiera.yaml symlink'
++ puppet config print hiera_config
+ sed -i 's;:datadir:.*;:datadir: /var/tmp/packstack/911668a3a6544f5db3f72027eb8ef640/hieradata;g' /etc/puppet/hiera.yaml
sed: can't read /etc/puppet/hiera.yaml: No such file or directory
++ t
++ exit 2
edit flag offensive delete link more
0

answered 2017-04-18 19:43:55 -0500

imacdonn gravatar image

Did you try to run packstack multiple times? If you do this, you must edit/use the answer-file (you'll find it in your home directory, and can use it with "packstack --answer-file <filename>"), otherwise each invocation will try to use different randomly-generated passwords for the database.

edit flag offensive delete link more

Comments

Hi,

I am facing the same issue. packstack --answer-file didn't help. Installation log looks exactly the same as the one attached in the original question. Any other suggestions?

Thanks,

VampireEmpire gravatar imageVampireEmpire ( 2020-06-17 01:06:58 -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

1 follower

Stats

Asked: 2017-04-18 08:46:45 -0500

Seen: 393 times

Last updated: Apr 18 '17