<div dir="ltr">Hi Marc,<div>As I see it oVirt pass all your input to cloud-init package.</div><div>I think the input is wrong as far as cloud-init parser goes,</div><div>looking at the file:</div><div>backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/CloudInitHandler.java<br></div><div>you need to set at-least one interface and the search domains should be under.</div><div><br></div><div>you are using the CustomScript so you need to set the yaml as the package expected.</div><div>something like:</div><div>iface eth0 inet</div><div> address x.x.x.x</div><div> netmast x.x.x.x</div><div> gateway x.x.x.x</div><div> dns-nameservers x.x.x.x</div><div><br></div><div>this is how oVirt set the interface (not via CustomScript but via setting each interface and dns servers to search)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 8:39 AM, Vinzenz Feenstra <span dir="ltr"><<a href="mailto:vfeenstr@redhat.com" target="_blank">vfeenstr@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Feb 15, 2017, at 11:51 PM, Marc Young <<a href="mailto:3vilpenguin@gmail.com">3vilpenguin@gmail.com</a>> wrote:<br>
><br>
> Are there limitations to cloud-init and oVirt? I wouldn't think so,<br>
> but i"m having a weird issue.<br>
<br>
<br>
</span>What’s the guest OS?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> If i use the cloud-init yaml from the ovirt4 ruby sdk examples (ignore<br>
> formatting, gmail is messing with it):<br>
><br>
> write_files:<br>
> - content: |<br>
> Hello, world!<br>
> path: /tmp/greeting.txt<br>
> permissions: '0644'<br>
><br>
> it works, that file exists, and it shows in the /var/lib/cloud where i'd expect<br>
><br>
> $ sudo cat /var/lib/cloud/instance/user-<wbr>data.txt<br>
> #cloud-config<br>
> output:<br>
> all: '>> /var/log/cloud-init-output.<wbr>log'<br>
> disable_root: 0<br>
> runcmd:<br>
> - 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo<br>
> ''datasource_list:<br>
> ["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'<br>
> ssh_pwauth: true<br>
> chpasswd:<br>
> expire: false<br>
> user: root<br>
> write_files:<br>
> - content: |<br>
> Hello, world!<br>
> path: /tmp/greeting.txt<br>
> permissions: '0644'<br>
><br>
><br>
> If i use this:<br>
><br>
> manage-resolv-conf: true<br>
> resolv_conf:<br>
> nameservers: ['192.168.2.113']<br>
> searchdomains:<br>
> - blindrage.local<br>
> - <a href="http://bar.example.com" rel="noreferrer" target="_blank">bar.example.com</a><br>
><br>
> resolv_conf does not get modified. It looks as expected in /var/lib/cloud:<br>
><br>
> $ sudo cat /var/lib/cloud/instance/user-<wbr>data.txt<br>
> #cloud-config<br>
> output:<br>
> all: '>> /var/log/cloud-init-output.<wbr>log'<br>
> disable_root: 0<br>
> runcmd:<br>
> - 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo<br>
> ''datasource_list:<br>
> ["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'<br>
> ssh_pwauth: true<br>
> chpasswd:<br>
> expire: false<br>
> user: root<br>
> manage-resolv-conf: true<br>
> resolv_conf:<br>
> nameservers: ['192.168.2.113']<br>
> searchdomains:<br>
> - foo.local<br>
> - <a href="http://bar.example.com" rel="noreferrer" target="_blank">bar.example.com</a><br>
><br>
> I also don't see anything in /var/log/cloud-init.log or<br>
> /var/log/cloud-init-output.log on either run even though the<br>
> write_files yaml worked.<br>
> ______________________________<wbr>_________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
<br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a></div></div></blockquote></div><br></div>