openstack-rocky installation error on centos-7.6: too many values to unpack

asked 2019-04-11 19:15:54 -0500

fertinaz gravatar image

Hello everyone

I am trying to install openstack-rocky on my workstation. OS is centos-7.6.

These are the steps I follow:

  • yum install -y centos-release-openstack-rocky
  • yum update -y
  • yum install openstack-packstack openstack-utils

Next, I generated an answers.txt file using packstack and changed its contents:


Then ran the following command for installation

  • packstack --answer-file /root/answers.txt

Installation fails with an error during Nova Compute entries preparation:

Installing: Clean Up
[ DONE ] Discovering ip protocol version [ DONE ] Setting up ssh keys
[ DONE ] Preparing servers
[ DONE ] Pre installing Puppet and discovering hosts' details [ DONE ] Preparing pre-install entries
[ DONE ] Installing time synchronization via NTP [ DONE ] Setting up CACERT
[ DONE ] Preparing AMQP entries
[ DONE ] Preparing MariaDB entries
[ DONE ] Fixing Keystone LDAP config parameters to be undef if empty[ DONE ] Preparing Keystone entries
[ DONE ] Preparing Glance entries
[ DONE ] Checking if the Cinder server has a cinder-volumes vg[ DONE ] Preparing Cinder entries
[ DONE ] Preparing Ironic entries
[ DONE ] Preparing Nova API entries
[ DONE ] Creating ssh keys for Nova migration [ DONE ] Gathering ssh host keys for Nova migration [ DONE ] Preparing Nova Compute entries

ERROR : too many values to unpack

According to the log file:

File "/usr/lib/python2.7/site-packages/packstack/plugins/", line 345, in create_compute_manifest _, host_key_type, host_key_data = hostkey.split() ValueError: too many values to unpack

So my guess is that hostname cannot be splitted, but I cannot understand why.

Any help is appreciated


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-04-11 19:41:09 -0500

updated 2019-04-11 19:43:55 -0500

See this example (and many others):

NTP doesn’t use HTTP. Remove the “http://“ part of your NTP configuration.

Furthermore, I am not sure if blanks around the equal signs are allowed.

edit flag offensive delete link more

Comments parses the CONFIG_COMPUTE_HOSTS setting, if I understand the source correctly. If I am right, this has nothing to do with NTP. Have another look at your answer file.

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-12 00:10:51 -0500 )edit

Sorry not quite correct. It has something to do with host keys. The routine gather_host_keys in the same file runs the command ssh-keyscan HOST (where HOST is probably your IP address). I guess the result of this command is incorrect on your server.

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-12 00:21:12 -0500 )edit

Hello Bernd

I think you're right. This must be related to the outputs of ssh-keyscan which are somehow inconsistent.

fertinaz gravatar imagefertinaz ( 2019-04-12 12:24:21 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-04-11 19:15:54 -0500

Seen: 280 times

Last updated: Apr 11 '19