Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Packstack installation problem

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 script:
vgdisplay cinder-volumes
2017-04-18 03:59:07::INFO::shell::94::root:: [localhost] Executing script:
ssh-keygen -t rsa -b 2048 -f "/var/tmp/packstack/20170418-035704-UX9IHD/nova_migration_key" -N ""
2017-04-18 03:59:07::INFO::shell::94::root:: [localhost] Executing script:
ssh-keyscan 192.168.42.170
2017-04-18 03:59:07::INFO::shell::94::root:: [192.168.42.170] Executing script:
systemctl
2017-04-18 03:59:07::INFO::shell::94::root:: [192.168.42.170] Executing script:
systemctl is-enabled NetworkManager
2017-04-18 03:59:07::INFO::shell::94::root:: [192.168.42.170] Executing script:
systemctl is-active NetworkManager
2017-04-18 03:59:08::INFO::shell::94::root:: [192.168.42.170] Executing script:
echo $HOME
2017-04-18 03:59:08::INFO::shell::94::root:: [localhost] Executing script:
cd /var/tmp/packstack/20170418-035704-UX9IHD/hieradata
tar --dereference -cpzf - ../hieradata | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.42.170 tar -C /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8 -xpzf -
cd /usr/lib/python2.7/site-packages/packstack/puppet
cd /var/tmp/packstack/20170418-035704-UX9IHD/manifests
tar --dereference -cpzf - ../manifests | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.42.170 tar -C /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8 -xpzf -
cd /usr/share/openstack-puppet/modules
tar --dereference -cpzf - aodh apache ceilometer certmonger cinder concat firewall glance gnocchi heat horizon inifile ironic keystone magnum manila memcached mongodb mysql neutron nova nssdb openstack openstacklib oslo packstack panko rabbitmq redis remote rsync sahara ssh stdlib swift sysctl tempest trove vcsrepo vswitch xinetd | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.42.170 tar -C /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8/modules -xpzf -
2017-04-18 04:39:14::ERROR::run_setup::1027::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1002, in main
    single_step_aio_install(options, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 769, in single_step_aio_install
    single_step_install(options, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 800, in single_step_install
    _main(options, answerfilepath, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 678, in _main
    runSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 645, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 109, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 50, in run
    self.function(config, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 214, in apply_puppet_manifest
    wait_for_puppet(currently_running, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 128, in wait_for_puppet
    validate_logfile(log)
  File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 107, in validate_logfile
    raise PuppetError(message)
PuppetError: Error appeared during Puppet run: 192.168.42.170_controller.pp
Notice: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]/returns: OperationalError: (pymysql.err.OperationalError) (1045, u"Access denied for user 'nova'@'192.168.42.170' (using password: YES)")
You will find full trace in log /var/tmp/packstack/20170418-035704-UX9IHD/manifests/192.168.42.170_controller.pp.log

2017-04-18 04:39:15::INFO::shell::94::root:: [192.168.42.170] Executing script:
rm -rf /var/tmp/packstack/9537b366dfc74847b3e88270ef5e51c8

What is the error? Please help me.