Ask Your Question
0

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

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

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:

  • CONFIG_NTP_SERVERS = http://pool.ntp.org
  • CONFIG_SERVICE_WORKERS = 1

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 ]

ERROR : too many values to unpack

According to the log file:

File "/usr/lib/python2.7/site-packages/packstack/plugins/nova_300.py", 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

Fatih

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

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

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

See this example (and many others): https://www.linux.com/blog/learn/chap....

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

nova_300.py 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 -0600 )edit

Sorry not quite correct. It has something to do with host keys. The routine gather_host_keys in the same nova_300.py 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 -0600 )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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 175 times

Last updated: Apr 11