[packstack] Error while trying to read parameter CONFIG_SSH_KEY from user.

Mauricio Tavares raubvogel at gmail.com
Wed Jul 28 13:07:16 UTC 2021


Installing openstack in workernodes using packstack. It errors out
saying it cannot read the CONFIG_SSH_KEY parameter:

[root at the-headnode ~]# packstack -d worker-answerfile
Welcome to the Packstack setup utility

The installation log file is available at:
/var/tmp/packstack/20210727-183254-mfc0n4iv/openstack-setup.log

ERROR : Error while trying to read parameter CONFIG_SSH_KEY from user.
Please check log file
/var/tmp/packstack/20210727-183254-mfc0n4iv/openstack-setup.log for
more information
[root at the-headnode ~]#
[root at the-headnode ~]# fgrep CONFIG_SSH_KEY worker-answerfile
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
[root at the-headnode ~]#

I looked at the answerfile, exposing the codes to see if there was
some funny business, but did not see anything suspicious (excerpt
below is from vi and shows the linefeed char as "$"):

[general]$
$
# Path to a public key to install on servers. If a usable key has not$
# been installed on the remote servers, the user is prompted for a$
# password and this key is installed so the password will not be$
# required again.$
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub$
$
# Default password to be used everywhere (overridden by passwords set$
# for individual services or users).$
CONFIG_DEFAULT_PASSWORD=$
$
[...]

Path to public key looks fine and there should not be an issue in seeing it:

[root@ the-headnode ~]# ls -l /root/.ssh/
total 16
-r--------. 1 root root 3402 Jul 22 12:47 authorized_keys
-r--------. 1 root root 2610 Jul  6 19:42 id_rsa
-rw-r--r--. 1 root root  573 Jul  6 19:42 id_rsa.pub
-rw-r--r--  1 root root  855 Jul 27 18:30 known_hosts
[root@ the-headnode ~]#

So I do not know what I should be looking for. Here is the beginning
of the log file:

[root at the-headnode ~]$ cat
/var/tmp/packstack/20210727-183254-mfc0n4iv/openstack-setup.log
2021-07-27 18:32:55::DEBUG::run_setup::483::root:: Groups: GLOBAL,
VMWARE, UNSUPPORTED, SERVERPREPARE, RHEL, RHSM, RHSM_PROXY, SATELLITE,
SATELLITE_PROXY, SSL, AMQP, AMQPSSL, AMQPAUTH, MARIADB, KEYSTONE,
KEYSTONE_LDAP, GLANCE, CINDER, CINDERVOLUMECREATE, CINDERVOLUMENAME,
CINDERVOLUMESIZE, CINDERGLUSTERMOUNTS, CINDERNFSMOUNTS,
CINDERNETAPPMAIN, CINDERNETAPPONTAPISCSI, CINDERNETAPPNFS,
CINDERNETAPPISCSI7MODE, CINDERNETAPP7MODEFC, CINDERNETAPPVSERVER,
CINDERNETAPPESERIES, CINDERSOLIDFIRE, IRONIC, NOVA, NEUTRON,
NEUTRON_ML2_PLUGIN, NEUTRON_LB_AGENT, NEUTRON_OVS_AGENT,
NEUTRON_OVS_AGENT_TUNNEL, NEUTRON_OVS_AGENT_VXLAN, NEUTRON_OVN_AGENT,
NEUTRON_OVN_AGENT_TUNNEL, MANILA, MANILANETAPP, MANILANETAPPMULTISVM,
MANILANETAPPSINGLESVM, MANILAGENERIC, MANILANETWORK,
MANILANETWORKSTANDALONE, MANILAGLUSTERNATIVE, MANILAGLUSTERNFS,
NOVACLIENT, OSHORIZON, OSSSL, OSSWIFT, Heat, PROVISION_INIT,
PROVISION_DEMO, PROVISION_TEMPEST, PROVISION_OVS_BRIDGE, GNOCCHI,
CEILOMETER, REDIS, AODH, PANKO, Trove, SAHARA, MAGNUM, PUPPET,
POSTSCRIPT
2021-07-27 18:32:55::DEBUG::run_setup::487::root:: going over group GLOBAL
2021-07-27 18:32:55::ERROR::run_setup::154::root:: Traceback (most
recent call last):
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py",
line 117, in _getInputFromUser
    userInput = raw_input(message.read())
NameError: name 'raw_input' is not defined

2021-07-27 18:32:55::ERROR::run_setup::532::root:: Traceback (most
recent call last):
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py",
line 117, in _getInputFromUser
    userInput = raw_input(message.read())
NameError: name 'raw_input' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py",
line 500, in _handleInteractiveParams
    input_param(param)
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py",
line 181, in input_param
    _getInputFromUser(param)
  File "/usr/lib/python3.6/site-packages/packstack/installer/run_setup.py",
line 155, in _getInputFromUser
    raise Exception(output_messages.ERR_EXP_READ_INPUT_PARAM %
(param.CONF_NAME))
Exception: Error while trying to read parameter CONFIG_SSH_KEY from user.



More information about the openstack-discuss mailing list