Hello Nicolas

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.

Cheers

2017-09-28 15:54 GMT+02:00 Nicolas Hicher <[email protected]>:

> Hello Jorge,
>
> 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.
>
> I will fix the documentation asap.
>
> On 09/28/2017 05:00 AM, JORGE EDGAR VALDERRAMA ROMERO wrote:
>
> Hi Nicolas
>
> I ran the validation, it seems to be fine:
>
> *jvalderrama@jvalderrama:~/sf-2.6/network$
> <jvalderrama@jvalderrama:~/sf-2.6/network$> python -c "import yaml; print
> yaml.load(open('user-data', 'r'))"*
> {'users': ['default', {'ssh-authorized-keys': ['ssh-rsa
> AAAAB3NzaC1yc2EAAAADAQABAAABAQDpHoRgkmKvLbkZV/1w5hWhtIF0yk4rVuy8d4d3B++
> Frz9eUKvEgXv9H1D5ZllS4OOA1S1TsmGBfUtL7vXPgfZHXlteI3XnU/
> V6kb8YvHFvuQ6PZAuo2yZp+mqWyBy0vANAbBLMZ6kY0JbyvaqejFI
> U5MxaTITdNXj7nMF31o5Qg0IgAQwzJz/01aDXuon5vgfRIKZaMJjh9cuBjpiln
> 8rrLZBrWLorFt5b3bmjfiLxf7BwQTvGDDzso8opAD/coTwISIp6BfbmgRHnyJ3bQcuyey4+
> g87uy7pMISn1k8nTT9M34WjNPuB7ud/MVQWtkm6URw7FiZJgp1B+JQfa1JOF
> jvalderrama@jvalderrama'], 'name': 'root'}, {'ssh-authorized-keys':
> ['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpHoRgkmKvLbkZV/
> 1w5hWhtIF0yk4rVuy8d4d3B++Frz9eUKvEgXv9H1D5ZllS4OOA1S1Ts
> mGBfUtL7vXPgfZHXlteI3XnU/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': 'managesf.sftests.com', '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 managesf.sftests.com
> managesf \\2/" /etc/hosts', '/usr/bin/systemctl restart network',
> '/usr/bin/sed  -i "s/requiretty/\\!requiretty/" /etc/sudoers']}
>
> *jvalderrama@jvalderrama:~/sf-2.6/network$
> <jvalderrama@jvalderrama:~/sf-2.6/network$> python -c "import yaml; print
> yaml.load(open('meta-data', 'r'))"*
> {'local-hostname': 'managesf.sftests.com', 'instance-id': 'managesf-01'}
>
> I share the files.
>
> I'll be attentive.
>
> Cheers
>
>
> 2017-09-27 16:33 GMT+02:00 Nicolas Hicher <[email protected]>:
>
>> Good afternoon,
>>
>> You can validate the user-data file using this command:
>>
>> python -c "import yaml; print yaml.load(open('user-data', 'r'))"
>>
>> Can you share the generated user-data file please ?
>>
>> Thanks
>>
>> Nicolas
>>
>> On 09/27/2017 09:01 AM, JORGE EDGAR VALDERRAMA ROMERO wrote:
>>
>> Good afternoon
>>
>> Deploying the software factory v2.6 we followed the steps mentioned for
>> KVM based deployment(https://softwarefactory-project.io/docs/operator/
>> deployment.html#kvm-based-deployment)
>>
>> The localhost used is Ubuntu 16.04 xenial we all the necessary to deploy
>> the VM as a guest.
>>
>> Finally has been generated the user-data and meta-data files succesfully (
>> https://pastebin.com/qLMDLkBw), 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:
>>
>> [    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:...'
>>
>> (https://pastebin.com/iP93QxXY) Here is the final output of cloud-init
>>
>> So, we are not able to login ever.
>>
>> Are we missing something?
>>
>> We appreciate any help
>>
>>
>> --
>> JORGE EDGAR VALDERRAMA ROMERO
>> MASTER EN SOFTWARE Y SISTEMAS - MUSS
>> UNIVERSIDAD POLITECNICA DE MADRID
>>
>>
>> _______________________________________________
>> Softwarefactory-dev mailing 
>> [email protected]https://www.redhat.com/mailman/listinfo/softwarefactory-dev
>>
>>
>>
>
>
> --
> JORGE EDGAR VALDERRAMA ROMERO
> MASTER EN SOFTWARE Y SISTEMAS - MUSS
> UNIVERSIDAD POLITECNICA DE MADRID
>
>
>


-- 
JORGE EDGAR VALDERRAMA ROMERO
MASTER EN SOFTWARE Y SISTEMAS - MUSS
UNIVERSIDAD POLITECNICA DE MADRID
_______________________________________________
Softwarefactory-dev mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/softwarefactory-dev

Reply via email to