<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thanks Miguel! When I set these variables, the quickstart script
      completes successfully. <br>
    </p>
    <p>Bernd Bausch<br>
    </p>
    On 6/21/2018 4:43 PM, Miguel Angel Ajo Pelayo wrote:<br>
    <blockquote type="cite"
cite="mid:CAC3B9fkQ+vdeYcckxQM1y0h106O-cCyDRsFhZJp=M43qEWaoYg@mail.gmail.com">
      <div dir="ltr">I'm also hitting that issue currently too
        <div><br>
        </div>
        <div>you can workaround with </div>
        <div><br>
        </div>
              -e docker_registry_namespace_used=tripleomaster -e
        container_build_id=current-tripleo<br>
        <br>
        on the quickstart command line while this is fixed (please note
        that's only for tripleo master).
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I see in the quickstart logs that those variables are
          detected as facts, but then ansible does</div>
        <div>not find them on those tasks. </div>
        <div><br>
        </div>
        <div>Note: I'm just providing a workaround that I used to keep
          moving, but I'm not actively working</div>
        <div>on fixing the quickstart issue because I don't know how to
          fix it at this moment.</div>
        <div><br>
        </div>
        <div><br>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, Jun 21, 2018 at 2:44 AM Bernd Bausch <<a
            href="mailto:berndbausch@gmail.com" moz-do-not-send="true">berndbausch@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <p>I hoped that I could use quickstart.sh to set up Tripleo
              without much thinking. The Ansible playbook generates
              undercloud, compute and control images and much more on
              the VIRTHOST but ultimately fails with:</p>
            <p><tt>TASK [undercloud-deploy : Write
                containers-prepare-parameter.yaml]
**************************************************************************<br>
                task path:
/home/stack/.quickstart/usr/local/share/ansible/roles/undercloud-deploy/tasks/create-scripts.yml:96<br>
                Wednesday 20 June 2018  18:31:07 +0900
                (0:00:07.221)       1:14:05.859 ********<br>
                fatal: [undercloud]: FAILED! => {"changed": false,
                "failed": true, "msg": "AnsibleUndefinedVariable:
                'container_build_id' is undefined"}</tt></p>
            What puzzles me (I am far from being an Ansible expert): If
            I interpret <i>_quickstart.log</i> correctly, this variable
            is set about half-way through the process:
            <p><tt>TASK [extras-common : set container_build_id from
                docker_image_tag]
*************************************************************************</tt><tt><br>
              </tt><tt>task path:
/home/stack/.quickstart/usr/local/share/ansible/roles/extras-common/tasks/main.yml:19</tt><tt><br>
              </tt><tt>Wednesday 20 June 2018  17:23:13 +0900
                (0:00:00.212)       0:06:12.229 ********</tt><tt><br>
              </tt><tt>ok: [jupiter] => {<font color="#cc0000"><b>"ansible_facts":
                    {"container_build_id": "current-tripleo-rdo"},</b> </font>"changed":
                false, "failed": false}</tt></p>
            <p>Later plays also set it conditionally, but the conditions
              are never met. Some derive it from a variable named <i>get_build_command</i>,
              which I can't find anywhere (I did do a <a
                class="m_-4449078595150039983moz-txt-link-freetext"
                href="http://codesearch.openstack.org" target="_blank"
                moz-do-not-send="true">http://codesearch.openstack.org</a>):</p>
            <p><tt>TASK [extras-common : set container_build_id from
                get_build_command]
                ************************************************************************</tt><tt><br>
              </tt><tt>task path:
/home/stack/.quickstart/usr/local/share/ansible/roles/extras-common/tasks/main.yml:6</tt><tt><br>
              </tt><tt>Wednesday 20 June 2018  18:16:45 +0900
                (0:00:00.323)       0:59:44.741 ********</tt><tt><br>
              </tt><tt>skipping: [jupiter] => {"changed": false,
                "skip_reason": "Conditional result was False",
                "skipped": true}</tt><br>
            </p>
            <p>others base it on a Docker container tag:<tt><br>
              </tt></p>
            <p><tt>TASK [extras-common : set container_build_id from
                docker_image_tag]
*************************************************************************</tt><tt><br>
              </tt><tt>task path:
/home/stack/.quickstart/usr/local/share/ansible/roles/extras-common/tasks/main.yml:19</tt><tt><br>
              </tt><tt>Wednesday 20 June 2018  18:16:46 +0900
                (0:00:00.128)       0:59:44.996 ********</tt><tt><br>
              </tt><tt>skipping: [jupiter] => {"changed": false,
                "skip_reason": "Conditional result was False",
                "skipped": true}</tt></p>
            <p>Any pointers how to fix this?</p>
            <p>My VIRTHOST is a HP Z420 workstation named <i>jupiter</i>,
              4 core Xeon, 32G memory, 150G disk space running freshly
              installed Centos 7.5. I run the quickstart script on a VM,
              equally with Centos 7.5. I followed the instructions at <tt><a
                  class="m_-4449078595150039983moz-txt-link-freetext"
href="https://docs.openstack.org/tripleo-quickstart/latest/readme.html#tripleo-quickstart"
                  target="_blank" moz-do-not-send="true">https://docs.openstack.org/tripleo-quickstart/latest/readme.html#tripleo-quickstart</a></tt>:</p>
            <p><tt>$ ssh-keygen; ssh-copy-id root@jupiter; ssh-copy-id
                stack@jupiter</tt><tt><br>
              </tt><tt>$ </tt><tt><span class="m_-4449078595150039983n">curl</span></tt><tt>
              </tt><tt><span class="m_-4449078595150039983o">-</span></tt><tt><span
                  class="m_-4449078595150039983n">O</span></tt><tt> </tt><tt><span
                  class="m_-4449078595150039983n">https</span></tt><tt><span
                  class="m_-4449078595150039983p">:</span></tt><tt><span
                  class="m_-4449078595150039983o">//</span></tt><tt><span
                  class="m_-4449078595150039983n">raw</span></tt><tt><span
                  class="m_-4449078595150039983o">.</span></tt><tt><span
                  class="m_-4449078595150039983n">githubusercontent</span></tt><tt><span
                  class="m_-4449078595150039983o">.</span></tt><tt><span
                  class="m_-4449078595150039983n">com</span></tt><tt><span
                  class="m_-4449078595150039983o">/</span></tt><tt><span
                  class="m_-4449078595150039983n">openstack</span></tt><tt><span
                  class="m_-4449078595150039983o">/</span></tt><tt><span
                  class="m_-4449078595150039983n">tripleo</span></tt><tt><span
                  class="m_-4449078595150039983o">-</span></tt><tt><span
                  class="m_-4449078595150039983n">quickstart</span></tt><tt><span
                  class="m_-4449078595150039983o">/</span></tt><tt><span
                  class="m_-4449078595150039983n">master</span></tt><tt><span
                  class="m_-4449078595150039983o">/</span></tt><tt><span
                  class="m_-4449078595150039983n">quickstart</span></tt><tt><span
                  class="m_-4449078595150039983o">.</span></tt><tt><span
                  class="m_-4449078595150039983n">sh<br>
                  $ </span></tt><tt><span
                  class="m_-4449078595150039983n">bash</span></tt><tt> </tt><tt><span
                  class="m_-4449078595150039983n">quickstart</span></tt><tt><span
                  class="m_-4449078595150039983o">.</span></tt><tt><span
                  class="m_-4449078595150039983n">sh</span></tt><tt> </tt><tt><span
                  class="m_-4449078595150039983o">--</span></tt><tt><span
                  class="m_-4449078595150039983n">install</span></tt><tt><span
                  class="m_-4449078595150039983o">-</span></tt><tt><span
                  class="m_-4449078595150039983n">deps<br>
                  $ </span></tt><tt>bash quickstart.sh jupiter</tt><tt><br>
              </tt></p>
            <p>Bernd Bausch<br>
            </p>
          </div>
          _______________________________________________<br>
          Mailing list: <a
            href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
          Post to     : <a href="mailto:openstack@lists.openstack.org"
            target="_blank" moz-do-not-send="true">openstack@lists.openstack.org</a><br>
          Unsubscribe : <a
            href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>