Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

packstack fails during setting up ssh key

 cat /etc/fedora-release 
Fedora release 21 (Twenty One)
[fedora@asathe-fedora21 ~]$ rpm -qf /usr/bin/packstack
[fedora@asathe-fedora21 ~]$ hostname
[fedora@asathe-fedora21 ~]$ ping -c1 `hostname`
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=64 time=0.020 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.020/0.020/0.020/0.000 ms
[fedora@asathe-fedora21 ~]$

selinux is in permissive mode. packstack --allinone reports error during setup of ssh keys.

Setting up ssh keys                               [ ERROR ]

ERROR : Failed to run remote script, stdout:

openstack-setup.log is as follows:

chmod 400 ~/.ssh/authorized_keys
restorecon -r ~/.ssh
2015-10-15 12:51:26::ERROR::run_setup::1018::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/", line 993, in main
    single_step_aio_install(options, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/", line 761, in single_step_aio_install
    single_step_install(options, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/", line 792, in single_step_install
    _main(options, answerfilepath, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/", line 655, in _main
  File "/usr/lib/python2.7/site-packages/packstack/installer/", line 626, in runSequences
  File "/usr/lib/python2.7/site-packages/packstack/installer/", line 81, in runAllSequences, messages=self.MESSAGES)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/", line 109, in run, messages=messages)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/", line 50, in run
    self.function(config, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/", line 1198, in install_keys
    install_keys_on_host(hostname, sshkeydata)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/", line 1182, in install_keys_on_host
  File "/usr/lib/python2.7/site-packages/packstack/installer/utils/", line 128, in execute
    raise ScriptRuntimeError(msg, stdout=out, stderr=err)
ScriptRuntimeError: Failed to run remote script, stdout: 
stderr: Warning: Permanently added '' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I've created passwordless login for fedora user for this host and able to successfully login.