[one-users] Contextualization with Cloud-init debug

Javier Fontan jfontan at opennebula.org
Wed Nov 12 01:01:47 PST 2014


Cloud-init log files are /var/log/cloud-init.log and
/var/log/cloud-init-output.log. You can also check the information it has
processed at /var/lib/cloud.

On Thu Oct 30 2014 at 5:07:49 PM Javier Juarez <javier.juarez at gmail.com>
wrote:

> Hi Vicent,
>
> I´m using a CentOS 6.5 OS base.
> I have configured the SELinux pocily with permissive
> I think that my cloud-init context file´s identation is correct...
> by the way, where is the cloud-init´s log file?
>
> thanks in advance, regards
> Javier
>
> On Thu, Oct 30, 2014 at 4:29 PM, <vincent at vanderkussen.org> wrote:
>
>> On 2014-10-30 15:33, Javier Juarez wrote:
>>
>>> Hi dudes,
>>>
>>> I´m trying to make a small provisioning of our VMs based on cloud-init
>>> without success. The contextualization process works well apparently (our
>>> network interfaces and ssh keys have been deployed), but I think that the
>>> cloud-init phase does not work at all. Any ideas about how to debug this
>>> kind of behaviour after the contextualization step.
>>>
>>> We are using OpenNebula versión 4.8.0, our images have the
>>> contextualization package version 4.8.0 and our context file looks like
>>> that:
>>>
>>> CONTEXT=[
>>>   NETWORK="YES",
>>>   SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",
>>>   USER_DATA="#cloud-config
>>> bootcmd:
>>>   - yum clean all
>>>   - yum -y update
>>> packages:
>>>   - tree
>>>   - lsof
>>> runcmd:
>>>   - curl http://sfs.csic.es/mri-installer/scripts/install_mri.sh|sh
>>>   - curl http://sfs.csic.es/chef-installer/scripts/install_chef.sh|sh"
>>> ]
>>>
>>> thanks in advance,
>>> Javier
>>>
>>>
>> Hi Javier,
>>
>> Since cloud-init uses yaml for its config file you need to make sure
>> indentation/syntax is correct.
>> You can see this in the cloud-init logfile inside the VM (something like
>> : can't read yaml blob).
>>
>> What OS are you using for the VM? When its CentOS/RHEL with Selinux
>> enabled, you'll probably need to
>> install a SELinux policy (i needed to in CentOS7).
>>
>> Regards,
>> Vincent
>>
>>  _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141112/45c8b154/attachment.htm>


More information about the Users mailing list