Re: [ovs-discuss] Restart of Both Switches Required on Reboot
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. [root@o78sv1 system]# cat sx1.service [Unit] Description=sx1 Service Wants=network-online.target After=network-online.target sw1.service [Service] Type=oneshot User=root RemainAfterExit=yes ExecStart=/etc/network/openvswitch/crt_ovs_sx1.sh ExecStop=/usr/bin/ovs-vsctl del-br sx1 [Install] WantedBy=multi-user.target [root@o78sv1 system]# To get it to work properly on reboot on Oracle Linux 7, I had to change the "After=" line to this (removed sw1.service). After=network-online.target 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 ... From: Gilbert Standen Sent: Saturday, July 31, 2021 5:24 PM To: ovs-discuss@openvswitch.org Subject: Restart of Both Switches Required on Reboot 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. [ubuntu@o78sv1 ~]$ ifconfig sw1 sw1: flags=4163 mtu 1500 inet 10.209.53.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::c069:10ff:fe2b:94e prefixlen 64 scopeid 0x20 ether c2:69:10:2b:09:4e txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14 bytes 908 (908.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ ifconfig sx1 sx1: flags=4098 mtu 1500 ether b6:7d:f4:65:3e:4c txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ sudo service sw1 stop [sudo] password for ubuntu: Redirecting to /bin/systemctl stop sw1.service [ubuntu@o78sv1 ~]$ sudo service sx1 stop Redirecting to /bin/systemctl stop sx1.service [ubuntu@o78sv1 ~]$ sudo service sw1 start Redirecting to /bin/systemctl start sw1.service [ubuntu@o78sv1 ~]$ sudo service sx1 start Redirecting to /bin/systemctl start sx1.service [ubuntu@o78sv1 ~]$ [ubuntu@o78sv1 ~]$ ifconfig sw1 sw1: flags=4163 mtu 1500 inet 10.209.53.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::c069:10ff:fe2b:94e prefixlen 64 scopeid 0x20 ether c2:69:10:2b:09:4e txqueuelen 1000 (Ethernet) RX packets 135 bytes 15136 (14.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 15 bytes 978 (978.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ ifconfig sx1 sx1: flags=4163 mtu 1500 inet 172.29.108.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::b47d:f4ff:fe65:3e4c prefixlen 64 scopeid 0x20 ether b6:7d:f4:65:3e:4c txqueuelen 1000 (Ethernet) RX packets 10 bytes 696 (696.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 656 (656.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Restart of Both Switches Required on Reboot
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. [ubuntu@o78sv1 ~]$ ifconfig sw1 sw1: flags=4163 mtu 1500 inet 10.209.53.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::c069:10ff:fe2b:94e prefixlen 64 scopeid 0x20 ether c2:69:10:2b:09:4e txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14 bytes 908 (908.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ ifconfig sx1 sx1: flags=4098 mtu 1500 ether b6:7d:f4:65:3e:4c txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ sudo service sw1 stop [sudo] password for ubuntu: Redirecting to /bin/systemctl stop sw1.service [ubuntu@o78sv1 ~]$ sudo service sx1 stop Redirecting to /bin/systemctl stop sx1.service [ubuntu@o78sv1 ~]$ sudo service sw1 start Redirecting to /bin/systemctl start sw1.service [ubuntu@o78sv1 ~]$ sudo service sx1 start Redirecting to /bin/systemctl start sx1.service [ubuntu@o78sv1 ~]$ [ubuntu@o78sv1 ~]$ ifconfig sw1 sw1: flags=4163 mtu 1500 inet 10.209.53.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::c069:10ff:fe2b:94e prefixlen 64 scopeid 0x20 ether c2:69:10:2b:09:4e txqueuelen 1000 (Ethernet) RX packets 135 bytes 15136 (14.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 15 bytes 978 (978.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ ifconfig sx1 sx1: flags=4163 mtu 1500 inet 172.29.108.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::b47d:f4ff:fe65:3e4c prefixlen 64 scopeid 0x20 ether b6:7d:f4:65:3e:4c txqueuelen 1000 (Ethernet) RX packets 10 bytes 696 (696.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 656 (656.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [ubuntu@o78sv1 ~]$ ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] OVS 2.11.1 RPM build from source fails on Oracle Linux 7.8 and 7.9
Greg, thanks! You are exactly right. We standardized Orabuntu-LXC on 2.12.1 which fixed the problem because it's one of the release that has Aaron's patch built in. If end users want to use other versions, it's easy for them to reconfigure Orabuntu-LXC to do so. From: Gregory Rose Sent: Monday, November 16, 2020 10:48 AM To: Gilbert Standen ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] OVS 2.11.1 RPM build from source fails on Oracle Linux 7.8 and 7.9 On 11/12/2020 8:26 PM, Gilbert Standen wrote: > Hi, > > OVS 2.11.1 RPM builds and install fine on Oracle Linux 7.6, but on Oracle > Linux 7.8 and 7.9 the RPM build fails with the following errors: > > In file included from lib/netlink-conntrack.c:27:0: > /usr/include/linux/netfilter/nf_conntrack_sctp.h:25:2: error: unknown type > name 'u8' >u8 last_dir; >^ > /usr/include/linux/netfilter/nf_conntrack_sctp.h:26:2: error: unknown type > name 'u8' >u8 flags; >^ > make[2]: *** [lib/netlink-conntrack.lo] Error 1 > make[2]: Leaving directory > `/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-master/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-master/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' > make: *** [all] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.s2PkRp (%build) > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.s2PkRp (%build) > > I've looked at these URLs below, but do not know how to make use of them to > get the RPM build working on Oracle Linux 7.8 and 7.9 (I have not tested > Oracle Linux 7.7 yet). > > https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.redhat.com%2Fshow_bug.cgi%3Fid%3D1890095data=04%7C01%7C%7Ca92119d3193748d1be3908d88a4f85b9%7C84df9e7fe9f640afb435%7C1%7C0%7C637411421428266492%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=QwqKZqSg%2FIA5urH5lDSBTCxZDzjKXBqrl3%2FNs9xzii8%3Dreserved=0 > and > https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenvswitch%2Fovs%2Fcommit%2F8c7130da98c55bdf13eae62b5250434f8dfd366bdata=04%7C01%7C%7Ca92119d3193748d1be3908d88a4f85b9%7C84df9e7fe9f640afb435%7C1%7C0%7C637411421428266492%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=ewM%2FG5XJs3QLBl5dM24kUus4rWHdxrvHgYtOU29J3uE%3Dreserved=0 > > Is there a way I can get OVS 2.11.1 RPM to build successfully on Oracle LInux > 7.8 and 7.9 and what is causing the problem? Probably not - I haven't tried this or looked closely at the error but it looks like a header has been moved or changed in some way. The 'u8' type is fundamental to Linux so the header(s) that define it must have changed. You'll probably have to try a newer version of OVS. Is there some particular reason you need 2.11.1 specifically? - Greg > > Thanks, > > Gilbert Standen > Contributor Orabuntu-LXC > > > > > ___ > discuss mailing list > disc...@openvswitch.org > https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.openvswitch.org%2Fmailman%2Flistinfo%2Fovs-discussdata=04%7C01%7C%7Ca92119d3193748d1be3908d88a4f85b9%7C84df9e7fe9f640afb435%7C1%7C0%7C637411421428266492%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=Km%2FO0M0RYnBy2Agy%2F9LyxshZi7ss4I3ygiwkNf0VB68%3Dreserved=0 > ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Connecting two servers over layer 2 openvswitch without encapsulation
Ben, when I build a cluster database on a layer 3 network, I can push packets between cluster database nodes at MTU 1500 or use jumbo frames if I set that up and use MTU 9000. But when I cluster databases over layer 2, I have to use something like MTU 1420 or MTU 8920 which databases typically do not like and do not play well with at least in my experience. So that's what I'm asking really. But afaik encapsulating packets and using MTU 1420 or MTU 8920 is kind of a fundamental principle on layer 2 over layer 3, kind of like e=mc2 inescapable a fundamental principle that cannot be avoided. From: Ben Pfaff Sent: Thursday, November 12, 2020 11:44 PM To: Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Connecting two servers over layer 2 openvswitch without encapsulation On Fri, Nov 13, 2020 at 05:29:10AM +, Gilbert Standen wrote: > So this may be a very dumb question, but is there any way to connect > two separate physical servers with layer 2 openvswitches on each > separate server over a physical layer 3 network without using an > encapsulation scheme (e.g. GRE, VXLAN, etc) ? There are many > workloads that are somewhat hobbled by having to use MTU other than > 1500 or 9000, such as database workloads, and so I'm asking this > probably dumb question, because just me, I cannot see how it is > possible to avoid encapsulation when pushing data between servers over > a layer 2 network running on a physical layer 3 network, but I thought > I would ask anyway. Thanks, Gilbert It appears that you have described what networks do anyway. No special configuration is needed. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Connecting two servers over layer 2 openvswitch without encapsulation
So this may be a very dumb question, but is there any way to connect two separate physical servers with layer 2 openvswitches on each separate server over a physical layer 3 network without using an encapsulation scheme (e.g. GRE, VXLAN, etc) ? There are many workloads that are somewhat hobbled by having to use MTU other than 1500 or 9000, such as database workloads, and so I'm asking this probably dumb question, because just me, I cannot see how it is possible to avoid encapsulation when pushing data between servers over a layer 2 network running on a physical layer 3 network, but I thought I would ask anyway. Thanks, Gilbert ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] OVS 2.11.1 RPM build from source fails on Oracle Linux 7.8 and 7.9
Hi, OVS 2.11.1 RPM builds and install fine on Oracle Linux 7.6, but on Oracle Linux 7.8 and 7.9 the RPM build fails with the following errors: In file included from lib/netlink-conntrack.c:27:0: /usr/include/linux/netfilter/nf_conntrack_sctp.h:25:2: error: unknown type name 'u8' u8 last_dir; ^ /usr/include/linux/netfilter/nf_conntrack_sctp.h:26:2: error: unknown type name 'u8' u8 flags; ^ make[2]: *** [lib/netlink-conntrack.lo] Error 1 make[2]: Leaving directory `/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-master/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-master/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.s2PkRp (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.s2PkRp (%build) I've looked at these URLs below, but do not know how to make use of them to get the RPM build working on Oracle Linux 7.8 and 7.9 (I have not tested Oracle Linux 7.7 yet). https://bugzilla.redhat.com/show_bug.cgi?id=1890095 and https://github.com/openvswitch/ovs/commit/8c7130da98c55bdf13eae62b5250434f8dfd366b Is there a way I can get OVS 2.11.1 RPM to build successfully on Oracle LInux 7.8 and 7.9 and what is causing the problem? Thanks, Gilbert Standen Contributor Orabuntu-LXC ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] OpenvSwitch 2.11.2
This is just a purely informational / documentation question. I've been testing out the new "ovs" option of Orabuntu-LXC and I mistakenly set it to build RPMs for 2.11.2 and upgrade Openvswitch to 2.11.2. The RPM build and upgrade succeeded, but then I took a look at the OpenvSwitch Downloads page and noticed that there is no "2.11.2" listed there for download. Is that an omission on the download page, or is 2.11.2 a version that is "not being advertised" ? Just checking - maybe it is there and I'm not looking in the right spot ... [ubuntu@oracle81 olxc]$ sudo ovs-vsctl show [sudo] password for ubuntu: 79a5644f-5017-4b4e-8050-b3b23ff04006 ovs_version: "2.11.2" [ubuntu@oracle81 olxc]$ ovs-vsctl --version ovs-vsctl (Open vSwitch) 2.11.2 DB Schema 7.16.1 [ubuntu@oracle81 olxc]$ ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] OpenvSwitch Version after OpenvSwitch Upgrade
Doing some testing of a new "ovs" build functionality built-in to Orabuntu-LXC which allows Orabuntu-LXC to be used purely as a tool for testing building and upgrading OpenvSwitch from source on RedHat-family Linux flavors and distros. This mode of Orabuntu-LXC bypasses all the container deployment functionality and just builds RPM for any supported version of OpenvSwitch and then installs the RPMs, allowing Orabuntu-LXC to be used purely as an OpenvSwitch build method development tool separate from Orabuntu-LXC's larger functionalities. So I build OpenvSwitch 2.4.0 RPMs on Oracle Linux 6. Install them. Then I build OpenvSwitch 2.5.0 RPM's on same host. Install them. Then I build OpenvSwitch 2.5.9 RPMs on Oracle Linux 6 (same host) but this time run the full Orabuntu-LXC suite and create LXC linux containers and OpenvSwitches for them to run on, and VLAN's etc., i.e. a full container landscape, which also upgrades OpenvSwitch by RPM from 2.5.0 to 2.5.9. Alles gut and I check: [ubuntu@oracle61 uekulele]$ sudo ovs-vsctl --version ovs-vsctl (Open vSwitch) 2.5.9 Compiled Oct 25 2019 14:31:55 DB Schema 7.12.1 gives 2.5.9 but when I run "ovs-vsctl show" the output gives (at the end) as shown below and surprisingly goes all the way back to the original 2.4.0 that I installed in Orabuntu-LXC "ovs" mode for just building and install Openvswitch (but not creating any switches). So I'm wondering why if no switches were created between the upgrade of OpenvSwitch from 2.4.0 --> 2.5.0 why "ovs-vsctl show" does not at least show "2.5.0" since the switches themselves were not created until the 3rd run when I ran the full Orabuntu-LXC installer to create a container landscape. [ubuntu@oracle61 uekulele]$ sudo ovs-vsctl show (output truncated for brevity) Port "a5" tag: 11 Interface "a5" error: "could not open network device a5 (No such device)" ovs_version: "2.4.0" <-- (Shows the old 2.5.0 version here not the new 2.5.9 version) So then I reboot the host, and check again and now alles gut again all is as it was meant to be now. [ubuntu@oracle61 ~]$ sudo ovs-vsctl show [sudo] password for ubuntu: 181c8422-6caf-42cb-829c-7cc0f2e8c401 Bridge "sw6" Port "sw6" Interface "sw6" type: internal (output truncated for brevity) Bridge "sw7" Port "sw7" Interface "sw7" type: internal ovs_version: "2.5.9" <-- Now the versions match [ubuntu@oracle61 ~]$ sudo ovs-vsctl --version ovs-vsctl (Open vSwitch) 2.5.9 <-- Now the versions match Compiled Oct 25 2019 14:31:55 DB Schema 7.12.1 [ubuntu@oracle61 ~]$ ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] OpenvSwitch Version after OpenvSwitch Upgrade
Hi Ben, thanks! Well that solves my problem anyway. Prior to this "ovs" mode option, Orabuntu-LXC deployed a container landscape complete with OpenvSwitch RPM deployment and configuration of switches, and that was it. Any upgrade to OpenvSwitch was basically in the hands of the owner of the deployment. So the Orabuntu-LXC code just deployed and started OpenvSwitch up (no "start/stop" cycle of OpenvSwitch needed as it was a "one-time" install). So after your reply (thanks) light bulb went on and I had a D'oh! moment and just added the stop/start code below and that took care of it of course. So now Orabuntu-LXC users can maintain and upgrade their OpenvSwitch using Orabuntu-LXC "ovs" mode and are not "on their own" to deal with upgrading OpenvSwitch independently and therefore can take advantage of all the Orabuntu-LXC OpenvSwitch build logic that is built into the Orabuntu-LXC software. if [ $Release -ge 7 ] then sudo systemctl stop openvswitch.service <-- code added for "ovs" mode sudo systemctl start openvswitch.service elif [ $Release -eq 6 ] then sudo service openvswitch stop <-- code added for "ovs" mode sudo service openvswitch start sudo chkconfig openvswitch on fi And now the result immediate after the upgrade from 2.4.0 --> 2.5.0 [ubuntu@oracle61 anylinux]$ sudo ovs-vsctl show 6ed8c2bd-2cb0-4a9c-9f98-1626bff4357b ovs_version: "2.5.0" [ubuntu@oracle61 anylinux]$ ovs-vsctl --version ovs-vsctl (Open vSwitch) 2.5.0 Compiled Oct 25 2019 15:48:42 DB Schema 7.12.1 [ubuntu@oracle61 anylinux]$ ________ From: Ben Pfaff Sent: Friday, October 25, 2019 3:14 PM To: Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] OpenvSwitch Version after OpenvSwitch Upgrade Hi, good to hear from you. Thanks for maintaining OVS on Orabuntu-LXC. I took a look at the OVS scripts. The ovs-version gets set in the database at the step where ovs-ctl prints out "Configuring Open vSwitch system IDs". This happens just after starting ovsdb-server. If the upgrade process you're using does not go through that step, then it's possible that the database entry doesn't get updated. Can you check to see whether that's what is happening? (I guess that we could make ovs-vswitchd set this value, which might make it closer to 100% reliable, but that is not how it works now.) On Fri, Oct 25, 2019 at 08:02:11PM +, Gilbert Standen wrote: > Doing some testing of a new "ovs" build functionality built-in to > Orabuntu-LXC which allows Orabuntu-LXC to be used purely as a tool for > testing building and upgrading OpenvSwitch from source on RedHat-family Linux > flavors and distros. This mode of Orabuntu-LXC bypasses all the container > deployment functionality and just builds RPM for any supported version of > OpenvSwitch and then installs the RPMs, allowing Orabuntu-LXC to be used > purely as an OpenvSwitch build method development tool separate from > Orabuntu-LXC's larger functionalities. > > So I build OpenvSwitch 2.4.0 RPMs on Oracle Linux 6. Install them. Then I > build OpenvSwitch 2.5.0 RPM's on same host. Install them. Then I build > OpenvSwitch 2.5.9 RPMs on Oracle Linux 6 (same host) but this time run the > full Orabuntu-LXC suite and create LXC linux containers and OpenvSwitches for > them to run on, and VLAN's etc., i.e. a full container landscape, which also > upgrades OpenvSwitch by RPM from 2.5.0 to 2.5.9. Alles gut and I check: > > > [ubuntu@oracle61 uekulele]$ sudo ovs-vsctl --version > > ovs-vsctl (Open vSwitch) 2.5.9 > Compiled Oct 25 2019 14:31:55 > DB Schema 7.12.1 > > > gives 2.5.9 > > but when I run "ovs-vsctl show" the output gives (at the end) as shown below > and surprisingly goes all the way back to the original 2.4.0 that I installed > in Orabuntu-LXC "ovs" mode for just building and install Openvswitch (but not > creating any switches). So I'm wondering why if no switches were created > between the upgrade of OpenvSwitch from 2.4.0 --> 2.5.0 why "ovs-vsctl show" > does not at least show "2.5.0" since the switches themselves were not created > until the 3rd run when I ran the full Orabuntu-LXC installer to create a > container landscape. > > [ubuntu@oracle61 uekulele]$ sudo ovs-vsctl show > > (output truncated for brevity) > Port "a5" > tag: 11 > Interface "a5" > error: "could not open network device a5 (No such device)" > ovs_version: "2.4.0" <-- (Shows the old 2.5.0 version h
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
FYI This is what is working after several rounds of testing various methods so far. Some notes: (1) I've tried rolling my own python-six using py2pack (search google on keywords "py2pack james adam creating rpms" ) but it doesn't work because even though I can build the RPM, it won't install the resulting RPM because there are several "conflicting files" errors during the installed of the roll-your-own RPM that conflict with files in the python3-six that comes with the Oracle8 distro by default; and, the python3-six cannot be uninstalled because the new dnf capability in Oracle8 depends on that python3-six that comes with the distro so the OS blocks uninstall of python3-six. I haven't considered whether dnf could be uninstalled but won't go there because an Orabuntu-LXC design principle is we are a pure overlay we don't reconfigure anything unless absolutely unavoidable. However, as indicated in the recipe, the python-six noarch from the CentOS7 repo installs fine with no issues and moreover the openvswitch build likes it. (2) When I try to have the build depend entirely on python3-six (and skip the install of the CentOS7 python-six noarch rpm) and just update the spec file to use "python3-six" throughout I get errors in the OpenvSwitch build. I get errors that "files 'ovs-test' and 'ovs-l3ping' are missing and cannot be deleted." (3) The python py36env virtual python environment also is needed; without it I get errors in the build. (4) When I try to use python2 variants (set in the python alternatives step) I get errors in the build. Here is the code that is working on Oracle8 elif [ $Release -ge 7 ] then echo '' echo "==" echo "Build OpenvSwitch RPMs... " echo "==" echo '' cd /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild/SOURCES tar -zxvf openvswitch-"$OvsVersion".tar.gz cp -p openvswitch-"$OvsVersion"/rhel/*.spec /opt/olxc/"$DistDir"/uekulele/openvswitch/. cd /opt/olxc/"$DistDir"/uekulele/openvswitch if [ $Release -eq 8 ] then wget https://rpmfind.net/linux/centos/7.7.1908/os/x86_64/Packages/python-six-1.9.0-2.el7.noarch.rpm sudo yum -y localinstall python-six-1.9.0-2.el7.noarch.rpm sudo yum -y install python3-sphinx sudo yum -y install python3-six sudo yum -y install selinux-policy-devel unbound-devel sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx sed -i 's/BuildRequires: python-six/BuildRequires: python3-six/g' openvswitch.spec sed -i 's/BuildRequires: python-sphinx/BuildRequires: python3-sphinx/g' openvswitch.spec sleep 5 fi sed -i 's/python >= 2.7/python27/g' openvswitch.spec rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec echo '' echo "==" echo "Done: Build OpenvSwitch RPMs " echo "==" From: Orabuntu-LXC Sent: Sunday, October 6, 2019 5:24 PM To: Ben Pfaff Cc: Gilbert Standen ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 FYI This is what is working after several rounds of testing various methods so far. Some notes: (1) I've tried rolling my own python-six using py2pack (search google on keywords "py2pack james adam creating rpms" ) but it doesn't work because even though I can build the RPM, it won't install the resulting RPM because there are several "conflicting files" errors during the installed of the roll-your-own RPM that conflict with files in the python3-six that comes with the Oracle8 distro by default; and, the python3-six cannot be uninstalled because the new dnf capability in Oracle8 depends on that python3-six that comes with the distro so the OS blocks uninstall of python3-six. I haven't considered whether dnf could be uninstalled but won't go there because an Orabuntu-LXC design principle is we are a pure overlay we don't reconfigure anything unless absolutely unavoidable. However, as indicated in the recipe, the python-six noarch from the CentOS7 repo installs fine with no issues and moreover the openvswitch build likes it. (2) When I try to have the build depend entirely on python3-six (and skip the install of the CentOS7 python-six noarch rpm) and just update the spec file to use "python3-six" throughout I get errors in the OpenvSwitch build. I get errors that "files 'ovs-test' and 'ovs-l3ping' are missing and cannot be deleted." (3) The python py36env virtual python environment also is needed;
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
So this error about the missing files ovs-test and ovs-l3ping: rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test': No such file or directory rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install) had me stumped for most of the day. I had gotten everything to build correctly and install on the dev box but on a fresh machine, as mentioned, I got this error, indicating I had still failed to capture some step that was required for the successful openvswitch build. Finally I remembered that on the dev box I had done this step too: if [ $Release -eq 8 ] then wget https://rpmfind.net/linux/centos/7.7.1908/os/x86_64/Packages/python-six-1.9.0-2.el7.noarch.rpm <-- This step sudo yum -y localinstall python-six-1.9.0-2.el7.noarch.rpm <-- This step sudo yum -y module install python36 sudo yum -y module install python27 sudo yum -y install python3-sphinx sudo yum -y install python3-six sudo yum -y install selinux-policy-devel unbound-devel sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx sed -i 's/BuildRequires: python-six/BuildRequires: python3-six/g' openvswitch.spec sed -i 's/BuildRequires: python-sphinx/BuildRequires: python3-sphinx/g' openvswitch.spec sudo cat openvswitch.spec | grep python3 sleep 5 fi That step had been done early on when I was looking for some already-built rpm for python-six to just jerry-rig it into building successfully. That python-six comes from a CentOS7 repo and it installs with no issues on Oracle Linux 8. I think a better solution is needed such as building it from source on Oracle Linux 8. But it does work and it gets rid of the error about the missing ovs-test and ovs-l3ping during the build. I think it has to do with this part of the spec file: Requires: logrotate, hostname, python >= 2.7, python-six BuildRequires: python-six BuildRequires: openssl-devel BuildRequires: checkpolicy, selinux-policy-devel BuildRequires: autoconf, automake, libtool BuildRequires: python-sphinx BuildRequires: unbound-devel I can get around the "BuildRequires" as previously discussed by changing them to "python3-six" and "python3-sphinx" but I guess (?) that the "Requires" which includes "python-six" really does require "python-six" and not "python3-six" because when I change the Requires to "python3-six" and don't install the python-six from the CentOS7 repo, I get the error about the missing ovs-test and ovs-l3ping. So it is building OK now with no problems perfectly, and all the test suite is passed 100% successfully, but I will work on a better solution than just using the CentOS7 python-six. From: Gilbert Standen Sent: Wednesday, October 2, 2019 5:00 PM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Nothing is easy it seems ... it is working ok on my hacked up dev box ... but when I try to run it on a fresh machine the build seems to be running OK, and then I get this: rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test': No such file or directory rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install) so it seems I still have at least this issue to solve ... From: Gilbert Standen Sent: Wednesday, October 2, 2019 1:47 PM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re:
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
Also need "sudo yum -y install python27" which I had left out ... and that should be everything finally for this build of openvswitch 2.11.1 on Oracle Linux 8 if [ $Release -eq 8 ] then sudo yum -y install python27 <--this is also needed sudo yum -y install python3-sphinx sudo yum -y install python3-six sudo yum -y install selinux-policy-devel unbound-devel <--this is also needed sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx sed -i 's/python-six/python3-six/g' openvswitch.spec sed -i 's/python-sphinx/python3-sphinx/g' openvswitch.spec sleep 5 fi sed -i 's/python >= 2.7/python27/g' openvswitch.spec <--this is also needed rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec ____ From: Gilbert Standen Sent: Wednesday, October 2, 2019 5:00 PM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Nothing is easy it seems ... it is working ok on my hacked up dev box ... but when I try to run it on a fresh machine the build seems to be running OK, and then I get this: rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-test': No such file or directory rm: cannot remove '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILDROOT/openvswitch-2.11.1-1.x86_64/usr/bin/ovs-l3ping': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ah3XN9 (%install) so it seems I still have at least this issue to solve ... ____ From: Gilbert Standen Sent: Wednesday, October 2, 2019 1:47 PM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Ok the build and install of the RPM's for OpenvSwitch 2.11.1 was successful. There were a few additional lines needed for the recipe as shown below this is the scripting that worked completely successfully. There could possible be some things in here that are not absolutely needed, but I haven't had a chance to do that kind of testing yet. Below will work albeit possibly with more steps than minimally needed. if [ $Release -eq 8 ] then sudo yum -y install python3-sphinx sudo yum -y install python3-six sudo yum -y install selinux-policy-devel unbound-devel <--this is also needed sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx sed -i 's/python-six/python3-six/g' openvswitch.spec sed -i 's/python-sphinx/python3-sphinx/g' openvswitch.spec sleep 5 fi sed -i 's/python >= 2.7/python27/g' openvswitch.spec <--this is also needed rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec From: Gilbert Standen Sent: Wednesday, October 2, 2019 11:40 AM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 And also for completeness noting that these are needed for this build on Oracle8 sudo yum -y install python3-sphinx sudo yum -y install python3-six From: Gilbert Standen Sent: Wednesday, October 2, 2019 11:36 AM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Lin
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
And also for completeness noting that these are needed for this build on Oracle8 sudo yum -y install python3-sphinx sudo yum -y install python3-six From: Gilbert Standen Sent: Wednesday, October 2, 2019 11:36 AM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Ok I think I've got it - it's running the openvswitch 2.11.1 test suite atm - here is the solution that is working. if [ $Release -eq 8 ] then sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx fi sed -i 's/python-six/python3-six/g' openvswitch.spec sed -i 's/python-sphinx/python3-sphinx/g' openvswitch.spec fi rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec ________ From: Gilbert Standen Sent: Wednesday, October 2, 2019 11:21 AM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Thanks Ben. Progress ... I got past the Requires, but there's still issues later on related to Sphinx and Six. Any thoughts on solving this ? TIA sphinx-build -b html -W -n -d ./Documentation/_build/doctrees ./Documentation ./Documentation/_build/html && touch docs-check Traceback (most recent call last): File "/usr/local/bin/sphinx-build", line 11, in sys.exit(main()) File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 38, in main return build_main(argv) File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 22, in build_main from sphinx import cmdline File "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 20, in from six import text_type, binary_type ModuleNotFoundError: No module named 'six' make[2]: *** [Makefile:7107: docs-check] Error 1 make[2]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make[1]: *** [Makefile:6016: all-recursive] Error 1 make[1]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make: *** [Makefile:3594: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build) ____ From: Ben Pfaff Sent: Wednesday, October 2, 2019 9:45 AM To: Gilbert Standen Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote: > SO THE ABOVE DID NOT WORK: I still got: > > error: Failed build dependencies: > python-six is needed by openvswitch-2.11.1-1.x86_64 > python-sphinx is needed by openvswitch-2.11.1-1.x86_64 It looks like the packages are named python2-six and python2-sphinx on Oracle Linux. If so, then you can update the spec file to use those names, and then build. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
Ok I think I've got it - it's running the openvswitch 2.11.1 test suite atm - here is the solution that is working. if [ $Release -eq 8 ] then sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx fi sed -i 's/python-six/python3-six/g' openvswitch.spec sed -i 's/python-sphinx/python3-sphinx/g' openvswitch.spec fi rpmbuild --define "_topdir /opt/olxc/"$DistDir"/uekulele/openvswitch/rpmbuild" -ba openvswitch.spec ________ From: Gilbert Standen Sent: Wednesday, October 2, 2019 11:21 AM To: Ben Pfaff Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Thanks Ben. Progress ... I got past the Requires, but there's still issues later on related to Sphinx and Six. Any thoughts on solving this ? TIA sphinx-build -b html -W -n -d ./Documentation/_build/doctrees ./Documentation ./Documentation/_build/html && touch docs-check Traceback (most recent call last): File "/usr/local/bin/sphinx-build", line 11, in sys.exit(main()) File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 38, in main return build_main(argv) File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 22, in build_main from sphinx import cmdline File "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 20, in from six import text_type, binary_type ModuleNotFoundError: No module named 'six' make[2]: *** [Makefile:7107: docs-check] Error 1 make[2]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make[1]: *** [Makefile:6016: all-recursive] Error 1 make[1]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make: *** [Makefile:3594: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build) ____ From: Ben Pfaff Sent: Wednesday, October 2, 2019 9:45 AM To: Gilbert Standen Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote: > SO THE ABOVE DID NOT WORK: I still got: > > error: Failed build dependencies: > python-six is needed by openvswitch-2.11.1-1.x86_64 > python-sphinx is needed by openvswitch-2.11.1-1.x86_64 It looks like the packages are named python2-six and python2-sphinx on Oracle Linux. If so, then you can update the spec file to use those names, and then build. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
Thanks Ben. Progress ... I got past the Requires, but there's still issues later on related to Sphinx and Six. Any thoughts on solving this ? TIA sphinx-build -b html -W -n -d ./Documentation/_build/doctrees ./Documentation ./Documentation/_build/html && touch docs-check Traceback (most recent call last): File "/usr/local/bin/sphinx-build", line 11, in sys.exit(main()) File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 38, in main return build_main(argv) File "/usr/lib/python3.6/site-packages/sphinx/cmd/build.py", line 22, in build_main from sphinx import cmdline File "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 20, in from six import text_type, binary_type ModuleNotFoundError: No module named 'six' make[2]: *** [Makefile:7107: docs-check] Error 1 make[2]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make[1]: *** [Makefile:6016: all-recursive] Error 1 make[1]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.11.1' make: *** [Makefile:3594: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.XEARO1 (%build) From: Ben Pfaff Sent: Wednesday, October 2, 2019 9:45 AM To: Gilbert Standen Cc: Orabuntu-LXC ; ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 On Wed, Oct 02, 2019 at 02:53:23PM +, Gilbert Standen wrote: > SO THE ABOVE DID NOT WORK: I still got: > > error: Failed build dependencies: > python-six is needed by openvswitch-2.11.1-1.x86_64 > python-sphinx is needed by openvswitch-2.11.1-1.x86_64 It looks like the packages are named python2-six and python2-sphinx on Oracle Linux. If so, then you can update the spec file to use those names, and then build. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
el8.noarch 21/22 Verifying: python3-imagesize-1.0.0-2.el8.noarch 22/22 Installed: python3-sphinx-1:1.7.6-1.el8.noarch Lmod-8.1.17-3.epel8.playground.x86_64 lua-term-0.07-9.el8.x86_64 fontawesome-fonts-4.7.0-4.el8.noarch python3-docutils-0.14-12.module+el8.0.0+5333+22a49f57.noarch python3-sqlalchemy-1.3.2-1.module+el8.0.0+5333+22a49f57.x86_64 python3-pygments-2.2.0-20.module+el8.0.0+5333+22a49f57.noarch lato-fonts-2.015-5.el8.noarch tcl-1:8.6.8-2.el8.x86_64 python3-whoosh-2.7.4-9.el8.noarch python3-mock-2.0.0-11.el8.noarch python3-sphinx_rtd_theme-0.3.1-3.el8.noarch lua-filesystem-1.6.3-7.el8.x86_64 python3-snowballstemmer-1.2.1-6.el8.noarch fontawesome-fonts-web-4.7.0-4.el8.noarch python3-sphinxcontrib-websupport-1.0.1-10.20180316git.el8.noarch google-roboto-slab-fonts-1.100263-0.7.20150923git.el8.noarch python3-packaging-16.8-9.el8.noarch python-sphinx-locale-1:1.7.6-1.el8.noarch lua-posix-33.3.1-9.el8.x86_64 python3-sphinx-theme-alabaster-0.7.9-7.el8.noarch python3-imagesize-1.0.0-2.el8.noarch Complete! [ubuntu@oracle8 uekulele]$ sudo yum -y install python3-six Last metadata expiration check: 0:01:01 ago on Wed 02 Oct 2019 09:34:46 AM CDT. Package python3-six-1.11.0-8.el8.noarch is already installed. Dependencies resolved. Nothing to do. Complete! [ubuntu@oracle8 uekulele]$ sudo rpm -qa | egrep 'six|sphinx' lua-posix-33.3.1-9.el8.x86_64 python3-sphinx_rtd_theme-0.3.1-3.el8.noarch python3-six-1.11.0-8.el8.noarch python3-sphinxcontrib-websupport-1.0.1-10.20180316git.el8.noarch python3-sphinx-theme-alabaster-0.7.9-7.el8.noarch python-sphinx-locale-1.7.6-1.el8.noarch python3-sphinx-1.7.6-1.el8.noarch [ubuntu@oracle8 uekulele]$ SO THE ABOVE DID NOT WORK: I still got: error: Failed build dependencies: python-six is needed by openvswitch-2.11.1-1.x86_64 python-sphinx is needed by openvswitch-2.11.1-1.x86_64 == Done: Build OpenvSwitch RPMs == Even when I also install python2-sphinx and set alternatives to python2 it does not work. I wonder if it is looking for something actually called "python-sphinx" and "python-six" (not the python2- or python3- variants) and if a soft link somewhere would fix this. From: Orabuntu-LXC Sent: Tuesday, October 1, 2019 7:05 PM To: Ben Pfaff ; Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Thanks Ben. I will keep hacking away at it. The protocols and design principles of Orabuntu-LXC require all installed software to be packaged - rpm or deb - so I will have to keep working on a solution to get the rpm package to build successfully. BTW that was a typo earlier - we had been using ovs 2.5.4 not 2.0.5 - sorry - 2.0.5 is the LXC version we were using for this testing Sent from my BlackBerry 10 smartphone. Original Message From: Ben Pfaff Sent: Tuesday, October 1, 2019 7:00 PM To: Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 OK. It seems likely, then, that the Fedora RPM spec files are not suitable for Oracle Linux. If so, then you can install OVS without the RPM packaging, or create some new spec files for Oracle Linux. On Tue, Oct 01, 2019 at 11:55:20PM +, Gilbert Standen wrote: > I've tried all that - that was of course the first thing I tried. > > I've tried everything I can think of: > > [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx > [sudo] password for ubuntu: > Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM > CDT. > No match for argument: python-six > No match for argument: python-sphinx > Error: Unable to find a match > [ubuntu@oracle8 ~]$ > > and the above is with all repos enabled AND epel installed and enabled: > > [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx > Extra Packages for Enterprise Linux 8 - Playground - x86_64 463 kB/s | 2.6 MB > 00:05 > Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 589 kB/s > | 1.
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
I've tried all that - that was of course the first thing I tried. I've tried everything I can think of: [ubuntu@oracle8 ~]$ sudo yum install python-six python-sphinx [sudo] password for ubuntu: Last metadata expiration check: 0:27:33 ago on Tue 01 Oct 2019 06:20:33 PM CDT. No match for argument: python-six No match for argument: python-sphinx Error: Unable to find a match [ubuntu@oracle8 ~]$ and the above is with all repos enabled AND epel installed and enabled: [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx Extra Packages for Enterprise Linux 8 - Playground - x86_64 463 kB/s | 2.6 MB 00:05 Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug 589 kB/s | 1.6 MB 00:02 Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source 130 kB/s | 374 kB 00:02 Extra Packages for Enterprise Linux 8 - x86_64 35 kB/s | 18 kB 00:00 Extra Packages for Enterprise Linux 8 - x86_64 - Debug 295 kB/s | 656 kB 00:02 Extra Packages for Enterprise Linux 8 - x86_64 - Source 239 kB/s | 390 kB 00:01 No match for argument: python-six No match for argument: python-sphinx Error: Unable to find a match [ubuntu@oracle8 yum.repos.d]$ [ubuntu@oracle8 yum.repos.d]$ sudo yum install python-six python-sphinx Oracle Linux 8 Addons (x86_64) 2.6 kB/s | 3.2 kB 00:01 Oracle Linux 8 Application Stream (x86_64) 29 kB/s | 2.9 kB 00:00 Oracle Linux 8 BaseOS Latest (x86_64) 18 kB/s | 2.7 kB 00:00 Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported 27 kB/s | 2.7 kB 00:00 Oracle Linux 8 BaseOS GA (x86_64) 26 kB/s | 2.7 kB 00:00 No match for argument: python-six No match for argument: python-sphinx Error: Unable to find a match [ubuntu@oracle8 yum.repos.d]$ I've also tried setting up a python virtual environment within the script - that doesn't work either: sudo alternatives --set python /usr/bin/python3 python3 -m venv py36env source py36env/bin/activate python3 -m pip install six python3 -m pip install --upgrade pip python3 -m pip install six python3 -m pip install sphinx all those commands work, but openvswitch build doesn't see sphinx or six - do I need to set some switch on the build command ? error: Failed build dependencies: python-six is needed by openvswitch-2.11.1-1.x86_64 python-sphinx is needed by openvswitch-2.11.1-1.x86_64 From: Ben Pfaff Sent: Tuesday, October 1, 2019 6:40 PM To: Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 You're using two different packaging systems here. The RPM spec file requires the RPMs it mentions to be installed (for Python 2), but you used pip to install them (for Python 3). My guess is that "yum install python-six python-sphinx selinux-policy-devel unbound-devel" or its Oracle equivalent will fix the problem. On Tue, Oct 01, 2019 at 11:17:18PM +0000, Gilbert Standen wrote: > For example: > > [ubuntu@oracle8 anylinux]$ python3 -m pip install six > Require
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
For example: [ubuntu@oracle8 anylinux]$ python3 -m pip install six Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages [ubuntu@oracle8 anylinux]$ python3 -m pip install sphinx Requirement already satisfied: sphinx in /usr/local/lib64/python3.6/site-packages Requirement already satisfied: requests>=2.5.0 in /usr/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: babel!=2.0,>=1.3 in /usr/local/lib64/python3.6/site-packages (from sphinx) Requirement already satisfied: sphinxcontrib-serializinghtml in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: sphinxcontrib-jsmath in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: imagesize in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: packaging in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: sphinxcontrib-htmlhelp in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: sphinxcontrib-applehelp in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: docutils>=0.12 in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: Jinja2>=2.3 in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: sphinxcontrib-devhelp in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: sphinxcontrib-qthelp in /usr/local/lib/python3.6/site-packages (from sphinx) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx) Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx) Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests>=2.5.0->sphinx) Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3.6/site-packages (from babel!=2.0,>=1.3->sphinx) Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.6/site-packages (from packaging->sphinx) Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from packaging->sphinx) Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib64/python3.6/site-packages (from Jinja2>=2.3->sphinx) [ubuntu@oracle8 anylinux]$ sudo alternatives --config python There are 3 programs which provide 'python'. SelectionCommand --- * 1 /usr/libexec/no-python + 2 /usr/bin/python3 3 /usr/bin/python2 Enter to keep the current selection[+], or type selection number: 2 [ubuntu@oracle8 anylinux]$ But still when I go to build openvswitch, I get: error: Failed build dependencies: python-six is needed by openvswitch-2.11.1-1.x86_64 python-sphinx is needed by openvswitch-2.11.1-1.x86_64 selinux-policy-devel is needed by openvswitch-2.11.1-1.x86_64 unbound-devel is needed by openvswitch-2.11.1-1.x86_64 I guess it's going to be obvious I'm not much good with python ... they seem to be installed so why can't openvswitch use/see them? From: Gilbert Standen Sent: Tuesday, October 1, 2019 5:32 PM To: Ben Pfaff Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I run into needing python-six and python-sphinx and I've been trying for a couple days to figure out how to get those installed on Oracle Linux 8 to no avail ... "If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven reasons would I give, for BlackBerry 10 reasons hath one to give, I." Gilbert Standen after William Shakespeare, Henry IV . Sent from my BlackBerry 10 Classic. Original Message From: Ben Pfaff Sent: Tuesday, October 1, 2019 4:57 PM To: Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 On Tue, Oct 01, 2019 at 09:46:41PM +, Gilbert Standen wrote: > Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the > following errors. Any ideas on how to address this ? Thanks! OVS 2.0 was released in 2013. Use a newer version. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8
Thanks Ben. I've tried that too. When I try to install openvswitch 2.11.x I run into needing python-six and python-sphinx and I've been trying for a couple days to figure out how to get those installed on Oracle Linux 8 to no avail ... "If BlackBerrys were as plentiful as Apples, upon compulsions, no man seven reasons would I give, for BlackBerry 10 reasons hath one to give, I." Gilbert Standen after William Shakespeare, Henry IV . Sent from my BlackBerry 10 Classic. Original Message From: Ben Pfaff Sent: Tuesday, October 1, 2019 4:57 PM To: Gilbert Standen Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] Build OpenvSwitch on Oracle Linux 8 On Tue, Oct 01, 2019 at 09:46:41PM +0000, Gilbert Standen wrote: > Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the > following errors. Any ideas on how to address this ? Thanks! OVS 2.0 was released in 2013. Use a newer version. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Build OpenvSwitch on Oracle Linux 8
Hi, when I try to build OpenvSwitch 2.0.5 on Oracle Linux 8 I get the following errors. Any ideas on how to address this ? Thanks! lib/dhparams.c:2:12: error: static declaration of 'get_dh1024' follows non-static declaration static DH *get_dh1024(void) ^~ In file included from lib/dhparams.c:1: ./lib/dhparams.h:22:5: note: previous declaration of 'get_dh1024' was here DH *get_dh1024(void); ^~ lib/dhparams.c:38:12: error: static declaration of 'get_dh2048' follows non-static declaration static DH *get_dh2048(void) ^~ In file included from lib/dhparams.c:1: ./lib/dhparams.h:23:5: note: previous declaration of 'get_dh2048' was here DH *get_dh2048(void); ^~ lib/dhparams.c:87:12: error: static declaration of 'get_dh4096' follows non-static declaration static DH *get_dh4096(void) ^~ In file included from lib/dhparams.c:1: ./lib/dhparams.h:24:5: note: previous declaration of 'get_dh4096' was here DH *get_dh4096(void); ^~ lib/dhparams.c:87:12: warning: 'get_dh4096' defined but not used [-Wunused-function] static DH *get_dh4096(void) ^~ lib/dhparams.c:38:12: warning: 'get_dh2048' defined but not used [-Wunused-function] static DH *get_dh2048(void) ^~ lib/dhparams.c:2:12: warning: 'get_dh1024' defined but not used [-Wunused-function] static DH *get_dh1024(void) ^~ make[2]: *** [Makefile:4036: lib/dhparams.lo] Error 1 make[2]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.5.4' make[1]: *** [Makefile:4688: all-recursive] Error 1 make[1]: Leaving directory '/opt/olxc/home/ubuntu/Downloads/orabuntu-lxc-6.12.13-beta/uekulele/openvswitch/rpmbuild/BUILD/openvswitch-2.5.4' make: *** [Makefile:2626: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.jepWHo (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.jepWHo (%build) ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] DHCP for multiple subnets/VLANs across GRE tunnel using openvswitch patch ports
Hi actually I solved this myself. I call the solution to this problem "The Lawnmower Man" solution. The updated solution is here: https://sites.google.com/site/nandydandyoracle/openvswitch-ovs/networking-problem-1 ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] DHCP for multiple subnets/VLANs across GRE tunnel using openvswitch patch ports
Hi thanks I need help with a problem detailed at my blog here: https://sites.google.com/site/nandydandyoracle/openvswitch-ovs/networking-problem-1 How to configure or propose alternative solutions thanks!! ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss