<div dir="ltr"><a href="http://ask.projectatomic.io/en/question/3572/how-do-i-set-up-a-static-networking-configuration/">http://ask.projectatomic.io/en/question/3572/how-do-i-set-up-a-static-networking-configuration/</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 12:05 PM, Shahar Havivi <span dir="ltr">&lt;<a href="mailto:shavivi@redhat.com" target="_blank">shavivi@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>vdsbroker/src/main/java/org/<wbr>ovirt/engine/core/vdsbroker/<wbr>vdsbroker/CloudInitHandler.<wbr>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="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 8:39 AM, Vinzenz Feenstra <span dir="ltr">&lt;<a href="mailto:vfeenstr@redhat.com" target="_blank">vfeenstr@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
&gt; On Feb 15, 2017, at 11:51 PM, Marc Young &lt;<a href="mailto:3vilpenguin@gmail.com" target="_blank">3vilpenguin@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Are there limitations to cloud-init and oVirt? I wouldn&#39;t think so,<br>
&gt; but i&quot;m having a weird issue.<br>
<br>
<br>
</span>What’s the guest OS?<br>
<div class="m_5352919207548666942HOEnZb"><div class="m_5352919207548666942h5"><br>
&gt;<br>
&gt; If i use the cloud-init yaml from the ovirt4 ruby sdk examples (ignore<br>
&gt; formatting, gmail is messing with it):<br>
&gt;<br>
&gt; write_files:<br>
&gt; - content: |<br>
&gt; Hello, world!<br>
&gt; path: /tmp/greeting.txt<br>
&gt; permissions: &#39;0644&#39;<br>
&gt;<br>
&gt; it works, that file exists, and it shows in the /var/lib/cloud where i&#39;d expect<br>
&gt;<br>
&gt; $ sudo cat /var/lib/cloud/instance/user-d<wbr>ata.txt<br>
&gt; #cloud-config<br>
&gt; output:<br>
&gt;  all: &#39;&gt;&gt; /var/log/cloud-init-output.log<wbr>&#39;<br>
&gt; disable_root: 0<br>
&gt; runcmd:<br>
&gt; - &#39;sed -i &#39;&#39;/^datasource_list: /d&#39;&#39; /etc/cloud/cloud.cfg; echo<br>
&gt; &#39;&#39;datasource_list:<br>
&gt;  [&quot;NoCloud&quot;, &quot;ConfigDrive&quot;]&#39;&#39; &gt;&gt; /etc/cloud/cloud.cfg&#39;<br>
&gt; ssh_pwauth: true<br>
&gt; chpasswd:<br>
&gt;  expire: false<br>
&gt; user: root<br>
&gt; write_files:<br>
&gt;  - content: |<br>
&gt;      Hello, world!<br>
&gt;    path: /tmp/greeting.txt<br>
&gt;    permissions: &#39;0644&#39;<br>
&gt;<br>
&gt;<br>
&gt; If i use this:<br>
&gt;<br>
&gt; manage-resolv-conf: true<br>
&gt; resolv_conf:<br>
&gt;  nameservers: [&#39;192.168.2.113&#39;]<br>
&gt;  searchdomains:<br>
&gt;    - blindrage.local<br>
&gt;    - <a href="http://bar.example.com" rel="noreferrer" target="_blank">bar.example.com</a><br>
&gt;<br>
&gt; resolv_conf does not get modified. It looks as expected in /var/lib/cloud:<br>
&gt;<br>
&gt; $ sudo cat /var/lib/cloud/instance/user-d<wbr>ata.txt<br>
&gt; #cloud-config<br>
&gt; output:<br>
&gt;  all: &#39;&gt;&gt; /var/log/cloud-init-output.log<wbr>&#39;<br>
&gt; disable_root: 0<br>
&gt; runcmd:<br>
&gt; - &#39;sed -i &#39;&#39;/^datasource_list: /d&#39;&#39; /etc/cloud/cloud.cfg; echo<br>
&gt; &#39;&#39;datasource_list:<br>
&gt;  [&quot;NoCloud&quot;, &quot;ConfigDrive&quot;]&#39;&#39; &gt;&gt; /etc/cloud/cloud.cfg&#39;<br>
&gt; ssh_pwauth: true<br>
&gt; chpasswd:<br>
&gt;  expire: false<br>
&gt; user: root<br>
&gt; manage-resolv-conf: true<br>
&gt; resolv_conf:<br>
&gt;  nameservers: [&#39;192.168.2.113&#39;]<br>
&gt;  searchdomains:<br>
&gt;    - foo.local<br>
&gt;    - <a href="http://bar.example.com" rel="noreferrer" target="_blank">bar.example.com</a><br>
&gt;<br>
&gt; I also don&#39;t see anything in /var/log/cloud-init.log or<br>
&gt; /var/log/cloud-init-output.log on  either run even though the<br>
&gt; write_files yaml worked.<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Devel mailing list<br>
&gt; <a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><br>
<br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>