<div dir="ltr"><div dir="ltr">
<div>Hi YATIN, <br></div><div><br></div><div>Thanks for the help.<br></div><div><br></div><div>I manage to install single node Openstack on CentOS 8 by disablings Network-Manager and enabling native network-scripts. <br></div><div><br></div><div>Below is the URL:</div><div><br></div><div><a href="https://www.linuxtechi.com/install-openstack-centos-8-with-packstack/">https://www.linuxtechi.com/install-openstack-centos-8-with-packstack/</a></div><div><br></div>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020 at 9:16 PM YATIN KAREL <<a href="mailto:yatinkarel@gmail.com">yatinkarel@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"><div><div dir="ltr">Hi Pradeep,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 21, 2020 at 6:22 PM Pradeep Antil <<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@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"><div>Hi Techies, <br></div><div><br></div><div>I am trying to deploy the latest Openstack "ussuri" on CentOS 8 VM using packstack. I have successfully installed it but the issue is that i want to i want to add my interface "enp0s3" to ovs bridge br-ex. On CentOS 7 we can do this via ifcfg-* files using network-scripts. <br></div></div></blockquote><div><br></div><div>Yes in CentOS8 network-script is not installed/enabled by default. So to manage ovs bridges you either need to install/enable network-scripts or manage bridges with NetworkManager via nmcli or other tools. <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"><div></div><div><br></div><div>But i am not sure how this can be done on CentOS 8 VM as in this release network is controlled via network manager. On br-ex i will attach an external provider network or a flat network. <br></div></div></blockquote><div><br></div><div>I have pushed some fixes to doc[1] and packstack[2] to have bridges work with network-scripts and remove Network Manager warning.<br></div><div> [1] <a href="https://github.com/redhat-openstack/website/pull/1388" target="_blank">https://github.com/redhat-openstack/website/pull/1388</a></div><div>[2] <a href="https://review.opendev.org/738223" target="_blank">https://review.opendev.org/738223</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="ltr"><div></div><div><br></div><div><div><img src="cid:ii_kbp2avor0" alt="image.png" width="471" height="232"></div><div><br></div><div>I have referred the below steps for the deployment.</div><div><span style="color:rgb(0,0,255)"><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,255)">dnf update -y<br>dnf config-manager --enable PowerTools<br>dnf install -y centos-release-openstack-ussuri<br>dnf update -y<br>dnf install -y openstack-packstack<br>reboot<br>packstack --gen-answer-file=/root/answer.txt</span><br></span><br>Edit answer file <br><br><span style="color:rgb(0,0,255)"><span style="font-family:monospace">CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vxlan,flat<br>CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vxlan<br>CONFIG_PROVISION_DEMO=n<br>CONFIG_KEYSTONE_ADMIN_PW=P@ssw0rd<br>packstack --answer-file=/root/answer.txt</span></span></div><div> </div></div></div></blockquote><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"><div><div></div><div>Following is the output of ovs command and interfaces on my centos 8 system <br></div><div><br></div><div><div><img src="cid:ii_kbp2kodp1" alt="image.png" width="471" height="286"><br><br></div></div></div><div><br></div></div></blockquote><div>If you like to manage ovs bridges with Network Manager you can try below steps:-</div><div><br></div><div><div id="gmail-m_1453720330468099743gmail-magicdomid1287"><span># Install and Enable ovs plugin for NetworkManager</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1236"><span>sudo dnf install -y NetworkManager-ovs</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1242"><span>sudo systemctl restart NetworkManager</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1289"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1312"><span># Discover network configs for external interface<br></span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1172"><span>export IP=`ip r get 1.1.1.1 | awk '/dev/{print $7}' | tr -d '[[:space:]]'`</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1173"><span>export NETMASK=`ip route show | grep $IP |cut -d" " -f1|cut -d"/" -f2 |tr -d '[[:space:]]'`</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1174"><span># We need the gateway as we'll be reconfiguring the interface</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1175"><span>export GATEWAY=`ip r get 1.1.1.1 | awk '/dev/{print $3}' | tr -d '[[:space:]]'`</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1177"><span>export MAC=`ip a show enp0s3|grep link/ether|awk '{print $2}' | tr -d '[[:space:]]'`</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1348"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1347"><span># Delete ovs bridge created outside of NetworkManager</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1246"><span>sudo ovs-vsctl del-br br-ex</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1349"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1248"><span>sudo nmcli conn add type ovs-bridge conn.interface br-ex</span></div><div><span>sudo nmcli conn add type ovs-port conn.interface port0 master br-ex</span></div><div><span>sudo nmcli conn add type ovs-interface slave-type ovs-port conn.interface br-ex master port0 ipv4.method manual ipv4.address $IP/$NETMASK ipv4.gateway $GATEWAY ipv4.dns 8.8.8.8</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1181"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1182"><span># This do no't persist after reboot<br></span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1183"><span>sudo ovs-vsctl set bridge br-ex other-config:hwaddr=$MAC</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1184"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1185"><span>sudo nmcli conn add type ovs-port conn.interface port1 master br-ex</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1186"><span>sudo nmcli conn add type ethernet conn.interface enp0s3 master port1</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1187"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1188"><span>sudo nmcli conn up ovs-slave-enp0s3</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1041"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1189"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1217"><span># to persist mac on ovs bridge with reboots</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1192"><span>sudo tee /etc/NetworkManager/dispatcher.d/25-ovs-br-ex <<EOF</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1193"><span>#!/bin/sh</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1194"><span># This is a NetworkManager dispatcher / networkd-dispatcher script for</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1195"><span># ovs to set mac address for slave</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1196"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1197"><span># For NetworkManager consider only up/down events</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1198"><span>[ 0 -ge 2 ] && [ "" != "up" ] && exit 0</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1199"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1200"><span>if [ "\$DEVICE_IFACE" == "br-ex" ]; then</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1201"><span>export MAC=\$(ip a show enp0s3|grep link/ether|awk '{print \$2}' | tr -d '[[:space:]]')</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1202"><span>ovs-vsctl set bridge br-ex other-config:hwaddr=\$MAC</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1203"><span>fi</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1204"><br></div><div id="gmail-m_1453720330468099743gmail-magicdomid1205"><span>exit 0</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1206"><span>EOF</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1207"><span>sudo chmod +x /etc/NetworkManager/dispatcher.d/25-ovs-br-ex</span></div><div id="gmail-m_1453720330468099743gmail-magicdomid1042"><br></div></div><div><br></div><div>Ensure you have console access to the packstack vm as in case of wrong network config ssh connection will be lost.<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="ltr"><div>-- <br><div dir="ltr">Best Regards<br>Pradeep Kumar</div></div></div>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.rdoproject.org" target="_blank">dev@lists.rdoproject.org</a><br>
<a href="http://lists.rdoproject.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.rdoproject.org/mailman/listinfo/dev</a><br>
<br>
To unsubscribe: <a href="mailto:dev-unsubscribe@lists.rdoproject.org" target="_blank">dev-unsubscribe@lists.rdoproject.org</a><br>
</blockquote></div><br clear="all"><br></div>Thanks and Regards<br><div><div><div dir="ltr"><div dir="ltr">Yatin Karel</div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Best Regards<br>Pradeep Kumar</div></div>