<div dir="ltr">Hello Nicolas<div><br></div><div>Indeed I have been included in the file user-data the '#cloud-config' string and it works doing a restart in the VM, thanks for the help, now I can log in and install the software factory.</div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-28 15:54 GMT+02:00 Nicolas Hicher <span dir="ltr"><<a href="mailto:nhicher@redhat.com" target="_blank">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>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><div><div class="h5">
    <br>
    <div class="m_5492986713261222878moz-cite-prefix">On 09/28/2017 05:00 AM, JORGE EDGAR
      VALDERRAMA ROMERO wrote:<br>
    </div>
    <blockquote type="cite">
      <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="m_5492986713261222878moz-txt-link-abbreviated" href="mailto:jvalderrama@jvalderrama:~/sf-2.6/network$" target="_blank">jvalderrama@jvalderrama:~/sf-<wbr>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
AAAAB3NzaC1yc2EAAAADAQABAAABAQ<wbr>DpHoRgkmKvLbkZV/<wbr>1w5hWhtIF0yk4rVuy8d4d3B++<wbr>Frz9eUKvEgXv9H1D5ZllS4OOA1S1Ts<wbr>mGBfUtL7vXPgfZHXlteI3XnU/<wbr>V6kb8YvHFvuQ6PZAuo2yZp+<wbr>mqWyBy0vANAbBLMZ6kY0JbyvaqejFI<wbr>U5MxaTITdNXj7nMF31o5Qg0IgAQwzJ<wbr>z/<wbr>01aDXuon5vgfRIKZaMJjh9cuBjpiln<wbr>8rrLZBrWLorFt5b3bmjfiLxf7BwQTv<wbr>GDDzso8opAD/<wbr>coTwISIp6BfbmgRHnyJ3bQcuyey4+<wbr>g87uy7pMISn1k8nTT9M34WjNPuB7ud<wbr>/MVQWtkm6URw7FiZJgp1B+JQfa1JOF
            jvalderrama@jvalderrama'], 'name': 'root'},
            {'ssh-authorized-keys': ['ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQ<wbr>DpHoRgkmKvLbkZV/<wbr>1w5hWhtIF0yk4rVuy8d4d3B++<wbr>Frz9eUKvEgXv9H1D5ZllS4OOA1S1Ts<wbr>mGBfUtL7vXPgfZHXlteI3XnU/<wbr>V6kb8YvHFvuQ6PZAuo2yZp+<wbr>mqWyBy0vANAbBLMZ6kY0JbyvaqejFI<wbr>U5MxaTITdNXj7nMF31o5Qg0IgAQwzJ<wbr>z/<wbr>01aDXuon5vgfRIKZaMJjh9cuBjpiln<wbr>8rrLZBrWLorFt5b3bmjfiLxf7BwQTv<wbr>GDDzso8opAD/<wbr>coTwISIp6BfbmgRHnyJ3bQcuyey4+<wbr>g87uy7pMISn1k8nTT9M34WjNPuB7ud<wbr>/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" target="_blank">managesf.sftests.com</a>',
            'write_files': [{'content':
'DEVICE="eth0"\nONBOOT="yes"\<wbr>nTYPE="Ethernet"\nBOOTPROTO="<wbr>none"\nIPADDR=192.168.122.10\<wbr>nPREFIX=24\nGATEWAY=192.168.<wbr>122.1\nDNS1=192.168.122.1\n',
            'path': '/etc/sysconfig/network-<wbr>scripts/ifcfg-eth0'},
            {'content':
            'NETWORKING=yes\nNOZEROCONF=<wbr>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:]]*<wbr>\\(localhost.*\\)/\\1 <a href="http://managesf.sftests.com" target="_blank">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="m_5492986713261222878moz-txt-link-abbreviated" href="mailto:jvalderrama@jvalderrama:~/sf-2.6/network$" target="_blank">jvalderrama@jvalderrama:~/sf-<wbr>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" target="_blank">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">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="m_5492986713261222878h5"> <br>
                  <div class="m_5492986713261222878m_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="m_5492986713261222878h5">
                    <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">https://softwarefac<wbr>tory-project.io/docs/operator/<wbr>deployment.html#kvm-based-<wbr>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">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">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_5492986713261222878m_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_5492986713261222878m_8455397830206886961mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Softwarefactory-dev mailing list
<a class="m_5492986713261222878m_8455397830206886961moz-txt-link-abbreviated" href="mailto:Softwarefactory-dev@redhat.com" target="_blank">Softwarefactory-dev@redhat.com</a>
<a class="m_5492986713261222878m_8455397830206886961moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/softwarefactory-dev" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/softwarefactory-dev</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="m_5492986713261222878gmail_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>
  </div></div></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>