<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.gmaildefault
{mso-style-name:gmail_default;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Mark Goddard <mark@stackhpc.com>
<br>
<b>Sent:</b> Friday, October 30, 2020 4:37 AM<br>
<b>To:</b> Radosław Piliszek <radoslaw.piliszek@gmail.com><br>
<b>Cc:</b> Braden, Albert <C-Albert.Braden@charter.com>; OpenStack Discuss <openstack-discuss@lists.openstack.org><br>
<b>Subject:</b> Re: [kolla] Setting up eth1 on VM for AIO<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, 29 Oct 2020 at 16:20, Radosław Piliszek <<a href="mailto:radoslaw.piliszek@gmail.com">radoslaw.piliszek@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Albert!<br>
<br>
Sorry for top posting but I don't really see which part to quote would<br>
be best so they all lose. :D<br>
<br>
Indeed, it's tricky to handle this if you are not a fan of linux networking.<br>
I guess we should document an example way....<br>
<br>
Anyhow, the way e.g. Kayobe handles it for users (as it deals with<br>
baremetal details) is to use bridges and veths.<br>
Basically, you create a bridge, attach it to the expected interface,<br>
set any networking you still want on that network for this host on<br>
this bridge.<br>
Then, you create a veth pair and connect one end to it and the second<br>
one is given to neutron.<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><span class="gmaildefault"><span style="font-family:"Verdana",sans-serif;color:#1F497D">></span></span><span class="gmaildefault"><span style="font-family:"Verdana",sans-serif">Alternatively, if this is just for development, you can use
a dummy interface.</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">></span><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="gmaildefault"><span style="font-family:"Verdana",sans-serif;color:#1F497D">></span></span><span class="gmaildefault"><span style="font-family:"Verdana",sans-serif">ip link add link eth1 type dummy</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">></span><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="gmaildefault"><span style="font-family:"Verdana",sans-serif;color:#1F497D">></span></span><span class="gmaildefault"><span style="font-family:"Verdana",sans-serif">It's not persistent, but good enough for testing. If you need
external network access from it you could add a MASQUERADE iptables rule and enable the IP
<span style="color:#1F497D">></span>forwarding sysctl.</span></span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">That seems to be working. After googling a bit I was able to make it persistent:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[root@adjutant-poc ~]# cat /etc/modules-load.d/dummy.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">dummy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[root@adjutant-poc ~]# cat /etc/modprobe.d/dummy.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">install dummy /sbin/modprobe --ignore-install dummy; /sbin/ip link set name eth1 dev dummy0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[root@adjutant-poc ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">NAME=eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">BOOTPROTO=none<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">DEVICE=eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">ONBOOT=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">TYPE=Ethernet<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">NM_CONTROLLED=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">[root@adjutant-poc ~]# ip a<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> inet 127.0.0.1/8 scope host lo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> valid_lft forever preferred_lft forever<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> inet6 ::1/128 scope host<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> valid_lft forever preferred_lft forever<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8950 qdisc pfifo_fast state UP group default qlen 1000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> link/ether fa:16:3e:22:c4:e2 brd ff:ff:ff:ff:ff:ff<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> inet 192.168.1.83/22 brd 192.168.3.255 scope global dynamic eth0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> valid_lft 85821sec preferred_lft 85821sec<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> inet6 fe80::f816:3eff:fe22:c4e2/64 scope link<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> valid_lft forever preferred_lft forever<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">3: eth1: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> link/ether 7e:e1:fe:31:c9:2e brd ff:ff:ff:ff:ff:ff<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> inet6 fe80::7ce1:feff:fe31:c92e/64 scope link<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> valid_lft forever preferred_lft forever<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">-yoctozepto<br>
<br>
On Thu, Oct 29, 2020 at 12:49 PM Braden, Albert<br>
<<a href="mailto:C-Albert.Braden@charter.com" target="_blank">C-Albert.Braden@charter.com</a>> wrote:<br>
><br>
> I’m trying to setup an allinone kolla-ansible Train POC on a VM, and I’m following the instructions here:<br>
><br>
><br>
><br>
> <a href="https://docs.openstack.org/kolla-ansible/train/user/quickstart.html" target="_blank">
https://docs.openstack.org/kolla-ansible/train/user/quickstart.html</a><br>
><br>
><br>
><br>
> Under “Prepare initial configuration” where it talks about globals.yml, it says I need 2 network interfaces:<br>
><br>
><br>
><br>
> network_interface: "eth0"<br>
><br>
> neutron_external_interface: "eth1"<br>
><br>
><br>
><br>
> My VM has a private IP and a floating IP that I use to ssh to it:<br>
><br>
><br>
><br>
> | ID | Name | Status | Networks | Image | Flavor |<br>
><br>
> | 41f6782a-8ca8-4ab4-8fdc-776584139ba0 | adjutant-poc | ACTIVE | private=<primary IP>, <floating IP> | | s1-standard-08 |<br>
><br>
><br>
><br>
> I tried various options for eth1 but I can’t seem to get it to work:<br>
><br>
><br>
><br>
> [root@adjutant-poc network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth1<br>
><br>
> BOOTPROTO=dhcp<br>
><br>
> DEVICE=eth1<br>
><br>
> ONBOOT=yes<br>
><br>
> TYPE=Ethernet<br>
><br>
> NM_CONTROLLED=no<br>
><br>
><br>
><br>
> I tried creating another port and adding it but that didn’t seem to make a difference. What am I doing wrong? Do I really need 2 network interfaces on the VM? If so, what’s the correct way to add one?<br>
><br>
><br>
><br>
> [root@adjutant-poc network-scripts]# service network restart<br>
><br>
> Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.<br>
><br>
> [FAILED]<br>
><br>
><br>
><br>
> Log:<br>
><br>
><br>
><br>
> <a href="http://paste.debian.net/1168982/" target="_blank">http://paste.debian.net/1168982/</a><br>
><br>
><br>
><br>
> I apologize for the nonsense below. So far I have not been able to stop it from being attached to my external emails. I'm working on it.<br>
><br>
><br>
><br>
> The contents of this e-mail message and<br>
> any attachments are intended solely for the<br>
> addressee(s) and may contain confidential<br>
> and/or legally privileged information. If you<br>
> are not the intended recipient of this message<br>
> or if this message has been addressed to you<br>
> in error, please immediately alert the sender<br>
> by reply e-mail and then delete this message<br>
> and any attachments. If you are not the<br>
> intended recipient, you are notified that<br>
> any use, dissemination, distribution, copying,<br>
> or storage of this message or any attachment<br>
> is strictly prohibited.<o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
The contents of this e-mail message and <br>any attachments are intended solely for the <br>addressee(s) and may contain confidential <br>and/or legally privileged information. If you<br>are not the intended recipient of this message<br>or if this message has been addressed to you <br>in error, please immediately alert the sender<br>by reply e-mail and then delete this message <br>and any attachments. If you are not the <br>intended recipient, you are notified that <br>any use, dissemination, distribution, copying,<br>or storage of this message or any attachment <br>is strictly prohibited.</body>
</html>