Packstack installation failed on Centos 7
Hi, We have a roadblock with the OpenStack Pike Installation during the installation of packstack using the answers file generated. We are facing the below error, [opsmxuser@centos7open ~]$ sudo packstack --answer-file=/home/OpenStack/OpenStack.conf Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20180925-205256-CiTSew/openstack-setup.log
Installing: Clean Up [ DONE ] Discovering ip protocol version [ DONE ] Setting up ssh keys [ DONE ] Preparing servers [ ERROR ]
ERROR : Failed to run remote script, stdout: stderr: Warning: Permanently added '<ip_address>' (ECDSA) to the list of known hosts. Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Please check log file /var/tmp/packstack/20180925-205256-CiTSew/openstack-setup.log for more information Additional information:
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
Log OutPut: 2018-09-25 20:52:57::INFO::shell::94::root:: [localhost] Executing script: rm -rf /var/tmp/packstack/20180925-205256-CiTSew/manifests/*pp 2018-09-25 20:52:57::INFO::shell::94::root:: [localhost] Executing script: mkdir -p ~/.ssh chmod 500 ~/.ssh grep 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXXC2EdxNxxZHuz6pgmPd3+mh8l7ZPkfwStNZyviw6ohZhz8TIFfoDHwADlfzEEAsN7k9xkDskecvyQFUeTJMpC28OkqD2sah2sieDrp3hjWgFxEkuplfUYdPl0WX5APoXDwwrcwf9Fs1I2EKISAkofE463QJouo89tGfodxX21ZamwlOfWyEElNwsjuR3mZiuYralVZ261PvlIfbvitiGimv5J/30gH6jdtZ0aYRR/n/puaMEkd6qKNwgQaSfGrtWQzmaOSdCP7cIj7cGdm2xW2YioEUtoqngvib0CVlaTrBQFgw/5RJwSuDD8aaALG9LogbjzkBrI7H0ov2eKG4d root@centos7open' ~/.ssh/authorized_keys > /dev/null 2>&1 || echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXXC2EdxNxxZHuz6pgmPd3+mh8l7ZPkfwStNZyviw6ohZhz8TIFfoDHwADlfzEEAsN7k9xkDskecvyQFUeTJMpC28OkqD2sah2sieDrp3hjWgFxEkuplfUYdPl0WX5APoXDwwrcwf9Fs1I2EKISAkofE463QJouo89tGfodxX21ZamwlOfWyEElNwsjuR3mZiuYralVZ261PvlIfbvitiGimv5J/30gH6jdtZ0aYRR/n/puaMEkd6qKNwgQaSfGrtWQzmaOSdCP7cIj7cGdm2xW2YioEUtoqngvib0CVlaTrBQFgw/5RJwSuDD8aaALG9LogbjzkBrI7H0ov2eKG4d root@centos7open >> ~/.ssh/authorized_keys chmod 400 ~/.ssh/authorized_keys restorecon -r ~/.ssh 2018-09-25 20:52:57::INFO::shell::94::root:: [<ip_address>] Executing script: rpm -q --whatprovides yum-utils || yum install -y yum-utils 2018-09-25 20:52:57::ERROR::run_setup::1059::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1054, in main _main(options, confFile, 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/prescript_000.py", line 1346, in server_prep server.execute() File "/usr/lib/python2.7/site-packages/packstack/installer/utils/shell.py", line 128, in execute raise ScriptRuntimeError(msg, stdout=out, stderr=err) ScriptRuntimeError: Failed to run remote script, stdout: stderr: Warning: Permanently added '<ip_address>' (ECDSA) to the list of known hosts.^M
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).^M
I have already referred to the below article, but of no luck https://ask.openstack.org/en/question/83200/packstack-fails-during-setting-up-ssh-key/ (https://ask.openstack.org/en/question...)
Request anyone kindly assist us in fixing the issue.
Thanks in Advance for your Assistance.
Regards, Teja
So you put root's public key in root's authorized_keys file? Does authorized_keys have correct permissions and SELinux label?
Manually ssh into the root account. If you set up an all-in-one:
ssh localhost
.Google for
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
.