The playbook quickstart-extras.yml could not be found

Bug #1708986 reported by Dai Dang Van
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Quique Llorente

Bug Description

After install cloud repository[1] for CentOS7, I have tryed to run quickstart script [2] but it is failed.

+ ansible-playbook -vv /home/stack/.quickstart/playbooks/quickstart-extras.yml -e @/home/stack/.quickstart/config/release/newton.yml -e @/home/stack/.quickstart/config/nodes/1ctlr_1comp.yml -e @/home/stack/.quickstart/config/general_config/minimal.yml -e @/home/stack/.quickstart/config/environments/default_libvirt.yml -e local_working_dir=/home/stack/.quickstart -e virthost=127.0.0.2 -t untagged,provision,environment,undercloud-scripts,overcloud-scripts,undercloud-install,undercloud-post-install,teardown-nodes
Using /home/stack/.quickstart/tripleo-quickstart/ansible.cfg as config file
ERROR! the playbook: /home/stack/.quickstart/playbooks/quickstart-extras.yml could not be found

This is my environment:

[stack@cloud ~]$ hostnamectl
   Static hostname: cloud
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 87568fc5f2974ed2811db0b7f1644b8b
           Boot ID: aa03788bafdc498c85fa03b866824ffd
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-514.26.2.el7.x86_64
      Architecture: x86-64

[1] https://docs.openstack.org/ocata/install-guide-rdo/environment-packages.html
[2] https://github.com/openstack/tripleo-quickstart#getting-the-script

Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → queens-1
Changed in tripleo:
milestone: queens-1 → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Revision history for this message
Wojciech Dec (wdec) wrote :

What is the workaround, if any? Currently with this issue the instructions for using TripleO quickstart are broken: https://www.rdoproject.org/tripleo/

Revision history for this message
emanoel (emanoelxavier) wrote :

Is there a workaround for this? Given how early the script is failing with the DEFAULT documented steps I wonder if the documentation is out dated. Also I have attempted providing the --playbook parameter with the file quickstart.yml (as opposed to quickstart-extras.yml this one is present) and the script failed again this time because the playbooks folder is inside $OPT_WORKDIR/tripleO-quickstart. After changing the script to fix this it failed somewhere else with wrong paths again. It seems the deployment folders have changed and either the documentation is not updated or indeed the script is broken in many places. A workaround would be highly helpful.

Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

I can't reproduce this. Please add to bug the exact sequence of commands you run and full log of quickstart - run it as "bash quickstart.sh .... 2>&1 | tee full.log" and paste full.log in one of pastebin servers.

Changed in tripleo:
status: Triaged → Incomplete
Revision history for this message
emanoel (emanoelxavier) wrote :
Download full text (3.4 KiB)

$ git clone https://github.com/openstack/tripleo-quickstart
$ bash quickstart.sh --tags all 127.0.0.2 2>&1 | tee full.log

Log:

$ cat full.log

| | | | | ___ | | | | | | | |_ _ _ ___| | _____| |_ __ _ _ __| |_ |
| | | | |/ _ \| | | | | | | | | | | |/ __| |/ / __| __/ _` | '__| __| |
| | |__| | |_| | |__| | | |__| | |_| | | (__| <\__ \ |_|(_| | | | |_ |
| \____/ \___/ \____/ \___\_\\__,_|_|\___|_|\_\___/\__\__,_|_| \__| |
| |
| |
----------------------------------------------------------------------------

Installing OpenStack newton on host 127.0.0.2
Using directory /root/.quickstart for a local working directory
+ activate_venv
+ . /root/.quickstart/bin/activate
++ deactivate nondestructive
++ unset pydoc
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /usr/bin/bash -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/root/.quickstart
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
++ PATH=/root/.quickstart/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ '[' x '!=' x ']'
+++ basename /root/.quickstart
++ '[' .quickstart = __ ']'
+++ basename /root/.quickstart
++ PS1='(.quickstart)'
++ export PS1
++ alias 'pydoc=python -m pydoc'
++ '[' -n /usr/bin/bash -o -n '' ']'
++ hash -r
+ export ANSIBLE_CONFIG=/root/.quickstart/tripleo-quickstart/ansible.cfg
+ ANSIBLE_CONFIG=/root/.quickstart/tripleo-quickstart/ansible.cfg
+ export ANSIBLE_INVENTORY=/root/.quickstart/hosts
+ ANSIBLE_INVENTORY=/root/.quickstart/hosts
+ export ARA_DATABASE=sqlite:////root/.quickstart/ara.sqlite
+ ARA_DATABASE=sqlite:////root/.quickstart/ara.sqlite
+ source /root/.quickstart/tripleo-quickstart/ansible_ssh_env.sh
++ export OPT_WORKDIR=/root/.quickstart
++ OPT_WORKDIR=/root/.quickstart
++ export SSH_CONFIG=/root/.quickstart/ssh.config.ansible
++ SSH_CONFIG=/root/.quickstart/ssh.config.ansible
++ touch /root/.quickstart/ssh.config.ansible
++ export 'ANSIBLE_SSH_ARGS=-F /root/.quickstart/ssh.config.ansible'
++ ANSIBLE_SSH_ARGS='-F /root/.quickstart/ssh.config.ansible'
+ '[' 0 = 0 ']'
+ rm -f /root/.quickstart/hosts
+ '[' '' = 1 ']'
+ VERBOSITY=vv
+ ansible-playbook -vv /root/.quickstart/playbooks/quickstart-extras.yml -e @/root/.quickstart/config/release/newton.yml -e @/root/.quickstart/config/nodes/1ctlr_1comp.yml -e @/root/.quickstart/config/general_config/minimal.yml -e @/root/.quickstart/config/environments/default_libvirt.yml -e local_working_dir=/root/.quickstart -e virthost=127.0.0.2 -t all,teardown-nodes
ansible-playbook 2.4.1.0
  config file = /root/.quickstart/tripleo-quickstart/ansible.cfg
  configured module search path = [u'/usr/lib/python2.7/site-packages/tripleo-quickstart/library', u'/root/.quickstart/usr/local/share/tripleo-quickstart/library', u'/root/.quickstart/tripleo-quickstart/library']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executa...

Read more...

Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

From IRC discussion:
quickstart failed to install python modules with pip and exits, but script doesn't stop there and continue until it fails trying to find a playbook. Problem is running it behind the proxy, seems like pip has problems to run behind https proxy.
Other problem is that script doesn't fail when installing pip modules.

Revision history for this message
emanoel (emanoelxavier) wrote :

Thanks for updating the info Sagi. That is correct, ideally the script should stop/fail when the pip installation fails. That would improve the user experience. As a workaround for the proxy issue I identified `pip install` commands inside the script and added the param --proxies=myproxyhere . I thought pip install would pick up the proxy env variables but it doesnt, adding the explicit param in the command line worked. Maybe also consider adding a proxy param in the quickstart.sh: if provided, the script passes the value to pip install.

Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Revision history for this message
wes hayutin (weshayutin) wrote :

Seeing this again due to gcc error during pip routine

   annobin: _posixsubprocess.c: Error: plugin built for compiler version (8.0.1) but run with compiler version (8.1.1) │·
    cc1: error: fail to initialize plugin /usr/lib/gcc/x86_64-redhat-linux/8/plugin/annobin.so │·
    error: command 'gcc' failed with exit status 1

We should turn this into a RFE for better error handling or diff setup routine

Changed in tripleo:
assignee: nobody → Quique Llorente (quiquell)
Revision history for this message
Quique Llorente (quiquell) wrote :

Oneliner reproducer https_proxy="http://<proxy.server>:<port>" bash quickstart.sh --clean --tags all 127.0.0.2 2>&1 | tee full.log

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.openstack.org/576436

Changed in tripleo:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/576436
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=19b345fb97bdb2bb060f279b07d32e48e256f834
Submitter: Zuul
Branch: master

commit 19b345fb97bdb2bb060f279b07d32e48e256f834
Author: Quique Llorente <email address hidden>
Date: Tue Jun 19 10:50:00 2018 +0200

    Do a fail fast if there are pip install issues

    The script quickstart.sh was not failing
    at the pip install line, adding a check of the
    rc after the () block and returnig the same rc.

    Depends-On: I9d561aa2e2f71b8892580950e9664d62f956773d

    Change-Id: Ib7a46e4c15a93c62bdde66495030e4734728a890
    Closes-Bug: 1708986

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 release.

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.