<div dir="ltr"><div><div><div>Hi Vasyl,<br><br></div>Thanks for your reply, will try and give feedback! :)<br><br></div>Regards,<br></div>Hieu<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 20, 2017 at 9:49 PM, Vasyl Saienko <span dir="ltr"><<a href="mailto:vsaienko@mirantis.com" target="_blank">vsaienko@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>We using the following order when picking candidate port/portgroups when attaching VIFs:</div><div><ul><li>For Ironic <= Ocata <br></li><ol><li>portgroups <br></li><li>ports with pxe_enabled=True</li><li>any other ports<br><br></li></ol><li>For Ironic >= Pike (port has new attribute physical_netowrk:</li><ol><li>portgroups with physical_network field set</li><li>ports with physical_network field set</li><li>portgroups without physical_network field</li><li>ports without physical_network field</li><li>ports with pxe_enabled = True</li><li>other ports</li></ol></ul><div>In both cases pxe_enabled ports are prefered when connecting tenant VIF compare to non-pxe ports.</div><div>You can configure fake portgroup with 1 port if you using Ironic <= Ocata and Ironic will attach tenant VIF to portgroup (which will be actually your second port). The drawback here is that nova will do portgroup configuration via cloudinit on the instance.</div></div><div>Or add physical_network field to port you want to connect tenant network to, but do not add it to other ports. Will work with ironic >= Pike</div><div><br></div><div><br></div><div><a href="https://github.com/openstack/ironic/blob/stable/pike/ironic/drivers/modules/network/common.py#L506" target="_blank">https://github.com/openstack/<wbr>ironic/blob/stable/pike/<wbr>ironic/drivers/modules/<wbr>network/common.py#L506</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 20, 2017 at 3:10 PM, Hieu LE <span dir="ltr"><<a href="mailto:hieulq19@gmail.com" target="_blank">hieulq19@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello Ironic guys,<div><br></div><div>In my lab environment, I have finished setting up the multi-tenant network environment for Ironic using networking-generic-switch (Cisco IOS device). The official Ironic doc only talked about one BM node with one port for provisioning and tenant network.</div><div><br></div><div>My process here: I have created 2 ports, 01 port with pxe_enabled for provisioning network and remaining port with pxe disabled; then using nova boot with --nic option, hoping it can get network information via Neutron. But it failed.</div><div><br></div><div>So my question here is:</div><div>1. Is this possible for enroll a node, then start provisioning it via one port and then configuring tenant network via another port?</div><div><div>2. Is my process correct, if not, could you provide some guides for the right way?</div><div><br></div><div>Thanks,</div><div>Hieu.</div><span class="m_-2440309240073590910HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-2440309240073590910m_-1705809885006550928gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">-----BEGIN GEEK CODE BLOCK-----</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">Version: 3.1</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">GCS/CM/IT/M/MU d-@? s+(++):+(++) !a C++++(++++)$ ULC++++(++)$ P L++(+++)$ E !W N* o+ K w O- M V- PS+ PE++ Y+ PGP+ t 5 X R tv+ b+(++)>+++ DI- D+ G e++(+++) h-- r(++)>+++ y- </span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">------END GEEK CODE BLOCK------</span><br></div></div>
</font></span></div></div>
<br></div></div>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">-----BEGIN GEEK CODE BLOCK-----</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">Version: 3.1</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">GCS/CM/IT/M/MU d-@? s+(++):+(++) !a C++++(++++)$ ULC++++(++)$ P L++(+++)$ E !W N* o+ K w O- M V- PS+ PE++ Y+ PGP+ t 5 X R tv+ b+(++)>+++ DI- D+ G e++(+++) h-- r(++)>+++ y- </span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">------END GEEK CODE BLOCK------</span><br></div></div>
</div>