<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello Jorge,</p>
    <p>I found the issue, the user-data file should start with
      '#cloud-config' (add this line before the hostname). After that,
      you have to generate a new iso using  genisoimage and restart the
      instance, it should fix the issue.<br>
    </p>
    <p>I will fix the documentation asap.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/28/2017 05:00 AM, JORGE EDGAR
      VALDERRAMA ROMERO wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADCzHt4DL9-+92ZZ4xdJe469z8DfT=sWRc7aGsdE148m17ANvA@mail.gmail.com">
      <div dir="ltr">Hi Nicolas
        <div><br>
        </div>
        <div>I ran the validation, it seems to be fine:</div>
        <div><b><br>
          </b></div>
        <div>
          <div><b><a class="moz-txt-link-abbreviated" href="mailto:jvalderrama@jvalderrama:~/sf-2.6/network$">jvalderrama@jvalderrama:~/sf-2.6/network$</a> python -c
              "import yaml; print yaml.load(open('user-data', 'r'))"</b></div>
          <div>{'users': ['default', {'ssh-authorized-keys': ['ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDpHoRgkmKvLbkZV/1w5hWhtIF0yk4rVuy8d4d3B++Frz9eUKvEgXv9H1D5ZllS4OOA1S1TsmGBfUtL7vXPgfZHXlteI3XnU/V6kb8YvHFvuQ6PZAuo2yZp+mqWyBy0vANAbBLMZ6kY0JbyvaqejFIU5MxaTITdNXj7nMF31o5Qg0IgAQwzJz/01aDXuon5vgfRIKZaMJjh9cuBjpiln8rrLZBrWLorFt5b3bmjfiLxf7BwQTvGDDzso8opAD/coTwISIp6BfbmgRHnyJ3bQcuyey4+g87uy7pMISn1k8nTT9M34WjNPuB7ud/MVQWtkm6URw7FiZJgp1B+JQfa1JOF
            jvalderrama@jvalderrama'], 'name': 'root'},
            {'ssh-authorized-keys': ['ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDpHoRgkmKvLbkZV/1w5hWhtIF0yk4rVuy8d4d3B++Frz9eUKvEgXv9H1D5ZllS4OOA1S1TsmGBfUtL7vXPgfZHXlteI3XnU/V6kb8YvHFvuQ6PZAuo2yZp+mqWyBy0vANAbBLMZ6kY0JbyvaqejFIU5MxaTITdNXj7nMF31o5Qg0IgAQwzJz/01aDXuon5vgfRIKZaMJjh9cuBjpiln8rrLZBrWLorFt5b3bmjfiLxf7BwQTvGDDzso8opAD/coTwISIp6BfbmgRHnyJ3bQcuyey4+g87uy7pMISn1k8nTT9M34WjNPuB7ud/MVQWtkm6URw7FiZJgp1B+JQfa1JOF
            jvalderrama@jvalderrama'], 'shell': '/bin/bash', 'gecos':
            'RedHat Openstack User', 'name': 'centos', 'sudo':
            ['ALL=(ALL) NOPASSWD:ALL'], 'primary-group': 'centos'}],
            'groups': ['centos'], 'hostname': 'managesf', 'fqdn': '<a
              href="http://managesf.sftests.com" moz-do-not-send="true">managesf.sftests.com</a>',
            'write_files': [{'content':
'DEVICE="eth0"\nONBOOT="yes"\nTYPE="Ethernet"\nBOOTPROTO="none"\nIPADDR=192.168.122.10\nPREFIX=24\nGATEWAY=192.168.122.1\nDNS1=192.168.122.1\n',
            'path': '/etc/sysconfig/network-scripts/ifcfg-eth0'},
            {'content':
            'NETWORKING=yes\nNOZEROCONF=no\nHOSTNAME=managesf\n',
            'path': '/etc/sysconfig/network'}, {'content':
            'net.ipv4.ip_forward = 1\n', 'path': '/etc/sysctl.conf'}],
            'runcmd': ['/usr/sbin/sysctl -p', '/usr/bin/sed  -i
            "s/\\(127.0.0.1\\)[[:space:]]*\\(localhost.*\\)/\\1 <a
              href="http://managesf.sftests.com" moz-do-not-send="true">managesf.sftests.com</a>
            managesf \\2/" /etc/hosts', '/usr/bin/systemctl restart
            network', '/usr/bin/sed  -i "s/requiretty/\\!requiretty/"
            /etc/sudoers']}</div>
          <div><br>
          </div>
          <div><b><a class="moz-txt-link-abbreviated" href="mailto:jvalderrama@jvalderrama:~/sf-2.6/network$">jvalderrama@jvalderrama:~/sf-2.6/network$</a> python -c
              "import yaml; print yaml.load(open('meta-data', 'r'))"</b></div>
          <div>{'local-hostname': '<a href="http://managesf.sftests.com"
              moz-do-not-send="true">managesf.sftests.com</a>',
            'instance-id': 'managesf-01'}</div>
        </div>
        <div><br>
        </div>
        <div>I share the files.</div>
        <div><br>
        </div>
        <div>I'll be attentive.</div>
        <div><br>
        </div>
        <div>Cheers </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-09-27 16:33 GMT+02:00 Nicolas
          Hicher <span dir="ltr"><<a
              href="mailto:nhicher@redhat.com" target="_blank"
              moz-do-not-send="true">nhicher@redhat.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Good afternoon,</p>
              <p>You can validate the user-data file using this command:</p>
              <p>python -c "import yaml; print
                yaml.load(open('user-data', 'r'))"</p>
              <p>Can you share the generated user-data file please ?</p>
              <p>Thanks</p>
              <p>Nicolas<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_8455397830206886961moz-cite-prefix">On
                    09/27/2017 09:01 AM, JORGE EDGAR VALDERRAMA ROMERO
                    wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Good afternoon
                      <div><br>
                      </div>
                      <div>Deploying the software factory v2.6 we
                        followed the steps mentioned for KVM based
                        deployment(<a
href="https://softwarefactory-project.io/docs/operator/deployment.html#kvm-based-deployment"
                          target="_blank" moz-do-not-send="true">https://<wbr>softwarefactory-project.io/<wbr>docs/operator/deployment.html#<wbr>kvm-based-deployment</a>)</div>
                      <div><br>
                      </div>
                      <div>The localhost used is Ubuntu 16.04 xenial we
                        all the necessary to deploy the VM as a guest.</div>
                      <div><br>
                      </div>
                      <div>Finally has been generated the user-data and
                        meta-data files succesfully (<a
                          href="https://pastebin.com/qLMDLkBw"
                          target="_blank" moz-do-not-send="true">https://pastebin.com/qLMDLkBw</a><wbr>),
                        but at the moment to boot the instance following
                        all the steps describe it seems does not execute
                        the user-data "script" becuase the next
                        error/warning:</div>
                      <div><br>
                      </div>
                      <div><span>[    5.767700] cloud-init[355]:
                          2017-09-27 11:35:49,850 -
                          __init__.py[WARNING]: Unhandled non-multipart
                          (text/x-not-multipart) userdata: 'hostname:
                          managesf\nfqdn:...'   </span></div>
                      <div><span><br>
                        </span></div>
                      (<a href="https://pastebin.com/iP93QxXY"
                        target="_blank" moz-do-not-send="true">https://pastebin.com/iP93QxXY</a><wbr>)
                      Here is the final output of cloud-init
                      <div><br>
                      </div>
                      <div>So, we are not able to login ever.</div>
                      <div><br>
                      </div>
                      <div>Are we missing something?</div>
                      <div><br>
                      </div>
                      <div>We appreciate any help<br>
                        <div><span><br>
                          </span></div>
                        <div>
                          <div><br>
                          </div>
                          -- <br>
                          <div
                            class="m_8455397830206886961gmail_signature">JORGE
                            EDGAR VALDERRAMA ROMERO<br>
                            MASTER EN SOFTWARE Y SISTEMAS - MUSS
                            <div>UNIVERSIDAD POLITECNICA DE MADRID</div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset
                      class="m_8455397830206886961mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Softwarefactory-dev mailing list
<a class="m_8455397830206886961moz-txt-link-abbreviated" href="mailto:Softwarefactory-dev@redhat.com" target="_blank" moz-do-not-send="true">Softwarefactory-dev@redhat.com</a>
<a class="m_8455397830206886961moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/softwarefactory-dev" target="_blank" moz-do-not-send="true">https://www.redhat.com/<wbr>mailman/listinfo/<wbr>softwarefactory-dev</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">JORGE
          EDGAR VALDERRAMA ROMERO<br>
          MASTER EN SOFTWARE Y SISTEMAS - MUSS
          <div>UNIVERSIDAD POLITECNICA DE MADRID</div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>