<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ok I seem to have "solved" this.  It seems it was a symptom of a setting in the systemd service file for the sx1.service.  The version of sx1.service that did NOT work had "sw1.service" in the "After=" line.  The version of sx1.service that did NOT work is
 this one below.  <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Courier New", monospace; font-size: 10pt;">[root@o78sv1 system]# cat sx1.service</span>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">[Unit]</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">Description=sx1 Service</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">Wants=network-online.target</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">After=network-online.target sw1.service</span><br>
</div>
<div><br>
</div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">[Service]</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">Type=oneshot</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">User=root</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">RemainAfterExit=yes</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">ExecStart=/etc/network/openvswitch/crt_ovs_sx1.sh</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">ExecStop=/usr/bin/ovs-vsctl del-br sx1</span></div>
<div><br>
</div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">[Install]</span></div>
<div><span style="font-family: "Courier New", monospace; font-size: 10pt;">WantedBy=multi-user.target</span></div>
<span style="font-family: "Courier New", monospace; font-size: 10pt;">[root@o78sv1 system]#
</span><span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>To get it to work properly on reboot on Oracle Linux 7, I had to change the "After=" line to this (removed sw1.service).<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span></span><span style="font-family: "Courier New", monospace; font-size: 10pt;">After=network-online.target</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Courier New", monospace; font-size: 10pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Courier New", monospace; font-size: 10pt;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt;">No idea really why this actually fixed the problem of switch sx1 failing to come up and acquire an ip address on
 reboot, and also no idea why the version that included sw1.service in the "After=" line works ok on Oracle Linux 8 but not on Oracle Linux 7.  Anyway, problem "solved" I think ...</span><br>
</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Gilbert Standen<br>
<b>Sent:</b> Saturday, July 31, 2021 5:24 PM<br>
<b>To:</b> ovs-discuss@openvswitch.org <ovs-discuss@openvswitch.org><br>
<b>Subject:</b> Restart of Both Switches Required on Reboot</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Just looking for thoughts on where to dig to find and solve this problem.  My OpenvSwitch deployment works fine on Oracle Linux 8, but the exact same deployment on Oracle Linux 7 has a quirk whereby after reboot, I have to stop both switches manuall (sw1 and
 sx1), as shown below, and then restart both switches, in the following order, and then all is good.<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ ifconfig sw1</span>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">sw1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        inet 10.209.53.1  netmask 255.255.255.0  broadcast 0.0.0.0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        inet6 fe80::c069:10ff:fe2b:94e  prefixlen 64  scopeid 0x20<link></span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        ether c2:69:10:2b:09:4e  txqueuelen 1000  (Ethernet)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX packets 0  bytes 0 (0.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX errors 0  dropped 0  overruns 0  frame 0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX packets 14  bytes 908 (908.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ ifconfig sx1</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">sx1: flags=4098<BROADCAST,MULTICAST>  mtu 1500</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        ether b6:7d:f4:65:3e:4c  txqueuelen 1000  (Ethernet)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX packets 0  bytes 0 (0.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX errors 0  dropped 0  overruns 0  frame 0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX packets 0  bytes 0 (0.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ sudo service sw1 stop</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[sudo] password for ubuntu:
</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">Redirecting to /bin/systemctl stop sw1.service</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ sudo service sx1 stop</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">Redirecting to /bin/systemctl stop sx1.service</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ sudo service sw1 start</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">Redirecting to /bin/systemctl start sw1.service</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ sudo service sx1 start</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">Redirecting to /bin/systemctl start sx1.service</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$
</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ ifconfig sw1</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">sw1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        inet 10.209.53.1  netmask 255.255.255.0  broadcast 0.0.0.0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        inet6 fe80::c069:10ff:fe2b:94e  prefixlen 64  scopeid 0x20<link></span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        ether c2:69:10:2b:09:4e  txqueuelen 1000  (Ethernet)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX packets 135  bytes 15136 (14.7 KiB)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX errors 0  dropped 0  overruns 0  frame 0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX packets 15  bytes 978 (978.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$ ifconfig sx1</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">sx1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        inet 172.29.108.1  netmask 255.255.255.0  broadcast 0.0.0.0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        inet6 fe80::b47d:f4ff:fe65:3e4c  prefixlen 64  scopeid 0x20<link></span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        ether b6:7d:f4:65:3e:4c  txqueuelen 1000  (Ethernet)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX packets 10  bytes 696 (696.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        RX errors 0  dropped 0  overruns 0  frame 0</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX packets 8  bytes 656 (656.0 B)</span></div>
<div><span style="font-family:"Courier New",monospace; font-size:10pt">        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</span></div>
<div><br>
</div>
<span style="font-family:"Courier New",monospace; font-size:10pt">[ubuntu@o78sv1 ~]$
</span><br>
</div>
</div>
</body>
</html>