quickstart.sh - Script fails to configure the local ENV and does not deply the underlay. Need to manually install GCC and GIT.

Bug #1820945 reported by Laurent Dumont
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Unassigned

Bug Description

Description
===========

I am trying to use Quickstart for a TripleO POC. I have a basic Centos 7.6 acting as the deployer and another host acting as the VIRTHOST for the Underlay.

I am following the instructions provided in the official documentation regarding the Quickstart method.

Steps to reproduce
==================

Basic Centos 7.6 system.

[remote-ldumont@kube-master02 ~]$ ls -lh
total 4.0K
drwxr-xr-x. 2 remote-ldumont remote-ldumont 4.0K Mar 20 01:35 tripleo-ssh

Confirmation that the deployment machine can connect to the VIRTHOST without a password and as the ROOT user.

[remote-ldumont@kube-master02 ~]$ ssh root@tripleo uname -a
Linux tripleo.cmaker.studio 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Start of the install-deps step.

[[remote-ldumont@kube-master02 ~]$ bash quickstart.sh tripleo
Running install_deps
sudo-1.8.23-3.el7.x86_64
Installing RPM packages libselinux-python python-setuptools python-virtualenv python-pip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.calgah.com
 * epel: epel.mirror.constant.com
 * extras: centos.mirror.vexxhost.com
 * updates: centos.mirror.iweb.ca
Package libselinux-python-2.5-14.1.el7.x86_64 already installed and latest version
Package python-setuptools-0.9.8-7.el7.noarch already installed and latest version
Package python-virtualenv-15.1.0-2.el7.noarch already installed and latest version
Package python2-pip-8.1.2-7.el7.noarch already installed and latest version
Nothing to do
pip:8.1.2 virtualenv:15.1.0 setuptools:0.9.8 install-deps succeeded.
Running install_virtual_env
New python executable in /home/remote-ldumont/.quickstart/bin/python2
Also creating executable in /home/remote-ldumont/.quickstart/bin/python
Installing setuptools, pip, wheel...done.
Collecting pip
  Using cached https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-19.0.3
Installing bindep
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting bindep
  Using cached https://files.pythonhosted.org/packages/f5/c3/c8c8c22bbd0fa429e6a199a58cfa7dea21e40963f01963b98173af466b73/bindep-2.8.1-py2.py3-none-any.whl
Collecting pbr>=2.0.0 (from bindep)
  Using cached https://files.pythonhosted.org/packages/14/09/12fe9a14237a6b7e0ba3a8d6fcf254bf4b10ec56a0185f73d651145e9222/pbr-5.1.3-py2.py3-none-any.whl
Collecting Parsley (from bindep)
  Using cached https://files.pythonhosted.org/packages/2b/d6/4fed8d65e28a970e1c5cb33ce9c7e22e3de745e1b2ae37af051ef16aea3b/Parsley-1.3-py2.py3-none-any.whl
Collecting distro (from bindep)
  Using cached https://files.pythonhosted.org/packages/ea/35/82f79b92fa4d937146c660a6482cee4f3dfa1f97ff3d2a6f3ecba33e712e/distro-1.4.0-py2.py3-none-any.whl
Installing collected packages: pbr, Parsley, distro, bindep
Successfully installed Parsley-1.3 bindep-2.8.1 distro-1.4.0 pbr-5.1.3
['', '/home/remote-ldumont/.quickstart/lib64/python27.zip', '/home/remote-ldumont/.quickstart/lib64/python2.7', '/home/remote-ldumont/.quickstart/lib64/python2.7/plat-linux2', '/home/remote-ldumont/.quickstart/lib64/python2.7/lib-tk', '/home/remote-ldumont/.quickstart/lib64/python2.7/lib-old', '/home/remote-ldumont/.quickstart/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7', '/usr/lib/python2.7', '/home/remote-ldumont/.quickstart/lib/python2.7/site-packages']
selinux.is_selinux_enabled: 1
install_package_deps_via_bindep
Neither file bindep.txt nor file other-requirements.txt exist.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.calgah.com
 * epel: epel.mirror.constant.com
 * extras: centos.mirror.vexxhost.com
 * updates: centos.mirror.iweb.ca
No package Neither available.
Package file-5.11-35.el7.x86_64 already installed and latest version
No package bindep.txt available.
No package nor available.
Package file-5.11-35.el7.x86_64 already installed and latest version
No package other-requirements.txt available.
No package exist. available.
Nothing to do
/home/remote-ldumont/install-deps.sh: line 206: yum-config-manager: command not found
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.calgah.com
 * epel: epel.mirror.constant.com
 * extras: centos.mirror.vexxhost.com
 * updates: centos.mirror.iweb.ca
No Match for argument: Neither
No package Neither available.
No Match for argument: bindep.txt
No package bindep.txt available.
No Match for argument: nor
No package nor available.
No Match for argument: other-requirements.txt
No package other-requirements.txt available.
No Match for argument: exist.
No package exist. available.
No packages marked for update
Cloning tripleo-quickstart repository...
[remote-ldumont@kube-master02 ~]$ quickstart.sh: line 119: git: command not found

The following issues are seen :

Neither file bindep.txt nor file other-requirements.txt exist
/home/remote-ldumont/install-deps.sh: line 206: yum-config-manager: command not found
[remote-ldumont@kube-master02 ~]$ quickstart.sh: line 119: git: command not found

The flow that seems to be broken.

1) User calls quickstart.sh
2) quickstart.sh curls for install-deps.sh and sources the file.
3) install-deps.sh is used for the "install_deps" function which in turns uses BinDep to install a list of file from bindep.txt.
4) This causes the packages requirements on the local machine to not be enformed - yum-utils, gcc and git will be missing.

It seems to break because bindep.txt is not curled before install_deps is called. It is part of the GIT repository but the Bindep is never acquired before bindep itself is called.

Adding the following to lines 50:51 of quickstart.sh does allow the script to progress.

echo "Downloading the requirement file for bindep."
curl -o ${ABSDIR}/bindep.txt https://git.openstack.org/cgit/openstack/tripleo-quickstart/plain/bindep.txt

Manually adding gcc, yum-utils and git does allow the deployment to start.

Let me know if anything else is required.

Thanks!

Tags: quickstart
Revision history for this message
wes hayutin (weshayutin) wrote :

AFAICT... this should resolve the issue you are hitting atm
https://review.opendev.org/#/c/658449/

Sorry for the problems, patch is in progress

Changed in tripleo:
milestone: none → train-1
importance: Undecided → Medium
status: New → Fix Released
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.