Installation of Openstack Pike on Centos 7.4 fails - Following official guide

Bug #1724272 reported by Victor Gradinescu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Packstack
New
Undecided
Unassigned

Bug Description

Hi there,

I am trying to install Openstack Pike on two Centos 7.4 servers. Each server is i7-7700 with 32 GB RAM.

I have tried every possible way with packstack and everytime I get timeouts exceeded when configuring neutron.
I have followed the guide here:
https://www.rdoproject.org/install/packstack/

The packstack version is:
openstack-packstack.noarch 1:11.0.0-0.2.0rc1.el7

I have tried with:
packstack —allinone
packstack —multiple-hosts...
packstack —answer-file ... —timeout=600 (1200)

I’ve seen previously that there were issues with ntp. I installed and configured ntp (no warning on the Additional Information section at the end)

Each time I get the error:
Error: Failed to apply catalog: Command: 'openstack ["flavor", "list", "--quiet", "--format", "csv", ["--long", "--all"]]' has been running for more than 40 seconds (tried 4, for a total of 170 seconds)

Does anybody has any idea what's going?

Thanks,
Victor

Revision history for this message
Alfredo Moralejo (amoralej) wrote :

Hi,

I've successfully deployed RDO pike in a centos 7.4 following:

yum update -y
yum install "*-pike"
yum install openstack-packstack
packstack --allinone

If you get the same error following this process could you look for other errors in:

/var/tmp/packstack/latest/*log

and in

/var/log/nova/nova-api.log

Revision history for this message
Victor Gradinescu (vicgrad) wrote :

Well, the errors were these timeouts.

It worth noting that the servers are dedicated servers coming from a hosting provider, each one with a different public IP and on different subnets.

I also tried this guide:
https://www.rdoproject.org/networking/neutron-with-existing-external-network/

Revision history for this message
Pradeep (paddyvgc) wrote :

Hi ,

How to resolve this issue?
Error : Systemd start for openstack-nova-scheduler failed.

Thanks,
Pradeep

Revision history for this message
Pradeep (paddyvgc) wrote :

In the log , its showing

Each time I get the error:
Error: Failed to apply catalog: Command: 'openstack ["flavor", "list", "--quiet", "--format", "csv", ["--long", "--all"]]' has been running for more than 40 seconds (tried 4, for a total of 170 seconds)

I am using openstack pike in centOs 7

Revision history for this message
niwa3 (niwatolli3) wrote :

I had a same issue and the problem has not resolved.

I think you need to run the packstack command with --debug option.

ex.
packstack --answer-file=/root/answer.txt --timeout=0 --debug

I saw an error in log file when running /usr/bin/nova-manage db sync

mmm.

Revision history for this message
niwa3 (niwatolli3) wrote :

I successfully installed openstack.

The problem is timeout meanings for db-sync.

So, do the following steps.

(Step 1) go to puppet stored directory.
# cd /usr/share/
(Step 2) find the timeout variable
[root@localhost share]# grep -Ri "timeout = 300"
[root@localhost share]# grep -Ri "db_sync_timeout = 0"
grep: doc/python-webtest-2.0.23/changelog.rst: No such file or directory
openstack-puppet/modules/neutron/manifests/db/sync.pp: $db_sync_timeout = 300,
openstack-puppet/modules/nova/manifests/db/online_data_migrations.pp: $db_sync_timeout = 300,
openstack-puppet/modules/nova/manifests/db/sync.pp: $db_sync_timeout = 300,
openstack-puppet/modules/nova/manifests/db/sync_api.pp: $db_sync_timeout = 300,
grep: texlive/texmf-config/web2c/updmap.cfg: No such file or directory

(Step 3) change 300 to 0 (0 means infinite) for all files

for example,
vi openstack-puppet/modules/neutron/manifests/db/sync.pp
then,
change from $db_sync_timeout = 300 to $db_sync_timeout = 0

,then
vi openstack-puppet/modules/nova/manifests/db/online_data_migrations.pp
then, change the values...

(Step 4) remove installed files
sudo yum remove openstack-packstack
sudo yum remove centos-release-openstack-queens
sudo yum remove mariadb
rm -rf /var/lib/mysql
rm /root/.my.cnf

(Step 5) install packages
sudo yum install -y centos-release-openstack-queens
sudo yum install -y openstack-packstack

(Step 6) run packstack command
# packstack --answer-file=/path/to/answerfile(CHANGE THIS) --timeout=0 --debug

done!

Revision history for this message
Robert Grzelka (egrzrbr) wrote :
Download full text (12.9 KiB)

Have same issue on Centos7, HP DL580 gen7, packstack train.

Kinda was going like that:

The installation log file is available at: /var/tmp/packstack/20201115-204750-pY8MjL/openstack-setup.log

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 [ DONE ]
Preparing Nova Scheduler entries [ DONE ]
Preparing Nova VNC Proxy entries [ DONE ]
Preparing OpenStack Network-related Nova entries [ DONE ]
Preparing Nova Common entries [ DONE ]
Preparing Neutron API entries [ DONE ]
Preparing Neutron L3 entries [ DONE ]
Preparing Neutron L2 Agent entries [ DONE ]
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Heat entries [ DONE ]
Preparing Heat CloudFormation API entries [ DONE ]
Preparing Sahara entries [ DONE ]
Adding Magnum manifest entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 192.168.8.22_controller.pp
192.168.8.22_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.8.22_controller.pp
Error: Systemd start for openstack-nova-scheduler failed!
You will find full trace in log /var/tmp/packstack/20201115-204750-pY8MjL/manifests/192.168.8.22_controller.pp.log
Please check log file /var/tmp/...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.