<div dir="ltr">Hello All.<br><div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
&gt; What this comes down to is that if you run &#39;shutdown&#39; in a VM from a<br>
&gt; pool, you will automatically get back a clean VM a few minutes later.<br>
&gt;<br>
<br>
</span>Is there an easy way to do so from jenknis job without failing the job<br>
with slave connection error? Most projects I know that use ephemeral<br></blockquote><div><br></div><div>But why we need it here. Do we really need to target ephemeral slaves or UI management of pool servers is not good enough in ovirt?<br><span class=""></span><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
&gt; 1. Cease from creating new VMs in PHX via Foreman for a while.<br>
&gt; 2. Shutdown the PHX foreman proxy to disconnect it from managing the<br>
&gt; DNS and DHCP.<br>
&gt; 3. Map out our currently active MAC-&gt;IP-&gt;HOSTNAME combinations and<br>
&gt; create static DNS and DHCP configuration files (I suggest we also<br>
&gt; migrate from BIND+ISC DHCPD to Dnsmasq which is far easier to<br>
&gt; configure and provides very tight DNS, DHCP and TFTP integration)<br>
&gt; 4. Add configuration for a dynamically assigned IP range as described above.<br>
&gt;<br>
</span>Can&#39;t we just use a reserved range for those machines instead? there&#39;s<br>
no need to remove from foreman, it can work with machines it does not<br>
provision.<br></blockquote><div><br></div><div>As I understand the problem here is that in one VLAN we obviously can have only one DHCP and if it is managed by foreman it may not be possible to have a range there that is not touchable by foreman. But it depends on how foreman touches DHCP config.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
&gt; Another way to resolve the current problem of coming up with a<br>
&gt; dynamically assignable range of IPs, is to create a new VLAN in PHX<br>
&gt; for the new pools of VMs.<br>
&gt;<br>
</span>I&#39;m in favor of using an internal network for the jenkins slaves, if<br>
they are the ones connecting to the master there&#39;s no need for<br>
externally addressable ips, so no need for public ips, though I recall<br>
that it was not so easy to set up, better discuss with the hosting<br></blockquote><div><br></div><div>I think if we want to scale that public IPv4 IPs might be indeed quite wasteful. I though about using IPv6 since e.g. we can just have one prefix and there is no need for DHCP so such VMs will live in the same VLAN as foreman if needed with no problem. But as I understand we need IPv4 addressing on the slave for the tests, do I get it correct?<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span>Can&#39;t you just autoasign a hostgroup on creation on formean or<br>
something?<br>
Quick search throws a plugin that might do the trick:<br>
  <a href="https://github.com/GregSutcliffe/foreman_default_hostgroup" rel="noreferrer" target="_blank">https://github.com/GregSutcliffe/foreman_default_hostgroup</a><br>
<br>
+1 on moving any data aside from the hostgroup assignation to hiera<br>
though, so it can be versioned and peer reviewed.<br></blockquote><div><br></div><div>Can we somehow utilize cloud init for this.<br><br></div><div>Also do we really want to use vanialla OS templates for this instead of building our own based on vanialla but with configuration setting needed for us. I think it will also fasten slave creation although since they are not ephemeral this will not give much.  <br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div>Anton Marchukov<br>Senior Software Engineer - <span><span><font color="#888888"><span><span><font color="#888888"><span><span><font color="#888888">RHEV CI - </font></span></span></font></span></span>Red Hat</font></span></span><br><br></div></font></span></div></div></div></div>
</div></div></div>