<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 12, 2020 at 8:39 PM Lokendra Rathour <<a href="mailto:lokendrarathour@gmail.com">lokendrarathour@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Thanks Julia,<div dir="auto">My aim here to chk the for any kind of port binding or grouping inorder to achived redundancy at the baremetal port level. </div><div dir="auto">So scenarion as desired or which i am trying to bring up is :</div><div dir="auto">I have an openstack controller computer setup(simple openstack)</div><div dir="auto">On top of this I am provisioning baremetal node . On this baremetal node i have one cable connected to one of the port from the switch. We inform neutron about it before we go for server create. It works and we are able to see the nodes getting added.</div></div></blockquote><div><br></div><div>Added to what? <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">So on the same server we are trying to enable port binding , which we are not able to do it.</div></div></blockquote><div><br></div><div>So you would need a second cable attached to the same switch. If already connected, the node, and the switch side is pre-configured, you should:</div><div><br></div><div>1) Create the portgroup definition in ironic</div><div>2) create/update the physical ports in ironic attached to the portgroup.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">If using cloud init which shall be passed during the server created then what can be the standard configuration for it ? Or how to move forward?</div></div></blockquote><div><br></div><div>When ironic goes to perform the port bind, it provides the binding information to Neutron. This behavior is slightly different between the ironic node network_interface driver, ``flat`` or ``neutron``. You likely will be using flat if your portgroup is pre-configured. Some Fujitsu[0] folks put together a slide deck to share back in 2017, which walks through the steps. The commands are a little outdated, but you will hopefully get the idea for a static configuration.</div><div><br></div><div> [0]: <a href="https://www.slideshare.net/vietstack/portgroups-support-in-ironic">https://www.slideshare.net/vietstack/portgroups-support-in-ironic</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">-lokendra</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 13 Dec 2020, 05:28 Julia Kreger, <<a href="mailto:juliaashleykreger@gmail.com" target="_blank">juliaashleykreger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Greetings Lokendra,<div><br></div><div>Portgroups are a bit of a complex item, unfortunately.</div><div><br></div><div>They hold a dual purpose of representing what is desired and what exists. The delineation between those states largely being what tooling is being loaded into Neutron in the form of a portgroup supporting ML2 drivers. If portgroups are pre-configured on a switch side, they can be represented in Ironic and the virtual port (VIF) binding information can be transmitted to Neutron with this information. If an ML2 driver is loaded that understands the portgroup configuration, then it can also configure the switch to represent this port. <br><br>I can't tell if you're asking about pre-configured bonds or if you're asking about ML2 enabled bonds. I don't know if StarlingX ships with/uses any of the Neutron ML2 which support such functionality, and that may be a good question for the StarlingX community specifically. If you're just trying to express pre-configured portgroups, it looks like Cloud-init since 0.7.7 has apparently supported parsing and setting up the portgroup within the deployed operating system. That is, if it is present in that operating system image you deploy. Please note, caution should be taken with LACP[0] and various switch configuration tunables. They make network booting a bit complicated and each switch vendor has somewhat different behavior and configuration available to help navigate such situations.</div><div><br></div><div>-Julia</div><div><br></div><div>[0] <a href="https://docs.openstack.org/ironic/latest/admin/troubleshooting.html#why-does-x-issue-occur-when-i-am-using-lacp-bonding-with-ipxe" rel="noreferrer" target="_blank">https://docs.openstack.org/ironic/latest/admin/troubleshooting.html#why-does-x-issue-occur-when-i-am-using-lacp-bonding-with-ipxe</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 12, 2020 at 11:28 AM Lokendra Rathour <<a href="mailto:lokendrarathour@gmail.com" rel="noreferrer" target="_blank">lokendrarathour@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi ,<div dir="auto">Any support here.</div><div dir="auto">Any input would help.</div><div dir="auto"><br></div><div dir="auto">Best Regards,</div><div dir="auto">Lokendra</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 11 Dec 2020, 18:10 Lokendra Rathour, <<a href="mailto:lokendrarathour@gmail.com" rel="noreferrer" target="_blank">lokendrarathour@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <div>I am trying to install a baremetal on existing openstack setup. During the time of installation, is it possible to have bonds already setup when the baremetal nodes comes up. </div><div><br clear="all"><div>I was trying to work on the :</div><div><h2 style="box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:lighter;line-height:1.1;color:rgb(42,78,104);margin-top:20px;margin-bottom:10px"><font size="2">Port groups configuration in the Bare Metal service</font></h2><div><font size="2"><br></font></div><div><font size="2"><b>Documents referred :</b></font></div><div><ol><li><a href="https://docs.openstack.org/ironic/pike/admin/portgroups.html#:~:text=A%20port%20group%20can%20also,attached%20to%20the%20port%20group" rel="noreferrer noreferrer" target="_blank">https://docs.openstack.org/ironic/pike/admin/portgroups.html#:~:text=A%20port%20group%20can%20also,attached%20to%20the%20port%20group</a>.</li><li><a href="https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/pdf/bare_metal_provisioning/Red_Hat_OpenStack_Platform-14-Bare_Metal_Provisioning-en-US.pdf" rel="noreferrer noreferrer" target="_blank">https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/pdf/bare_metal_provisioning/Red_Hat_OpenStack_Platform-14-Bare_Metal_Provisioning-en-US.pdf</a></li></ol></div><div><b>Setup used:</b></div><div>Baremetal on StarlingX Setup :</div><div><a href="https://docs.starlingx.io/deploy_install_guides/r4_release/bare_metal/ironic_install.html" rel="noreferrer noreferrer" target="_blank">https://docs.starlingx.io/deploy_install_guides/r4_release/bare_metal/ironic_install.html</a><br></div><div><br></div><h2 style="box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:lighter;line-height:1.1;color:rgb(42,78,104);margin-top:20px;margin-bottom:10px"><a href="https://docs.openstack.org/ironic/queens/admin/portgroups.html#port-groups-configuration-in-the-bare-metal-service" title="Permalink to this headline" style="font-size:30px;box-sizing:border-box;background-color:transparent;color:rgb(255,255,255)" rel="noreferrer noreferrer" target="_blank">¶</a></h2></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">~ Lokendra</div><div dir="ltr"><img src="https://drive.google.com/uc?id=0BynJnQEa1sUyU2dxclR4dVVWM0E&export=download" width="200" height="41"><br></div><div dir="ltr"><br></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>