Thanks for the reply. So yes I was able to get this to install. There is a new problem which I describe here
https://github.com/openvswitch/ovs-issues/issues/263 Basically I need to install 2.17.2 + dpdk. The issue is that `--with-dpdk` shows missing dependencies and the rpm install won't finish. Anyone know a fix for this? On Thu, Sep 1, 2022, 7:43 AM Ilya Maximets <i.maxim...@ovn.org> wrote: > > Hi Dave, > > > > From my knowledge - RHEL has an FDP (Fast Data Path) repository, where > those packages reside. > > Here are the src rpms: > https://ftp.redhat.com/pub/redhat/linux/enterprise/8Base/en/Fast-Datapath/SRPMS/ > < > https://ftp.redhat.com/pub/redhat/linux/enterprise/8Base/en/Fast-Datapath/SRPMS/ > > > > Yep. RHEL provides OVS packages via Fast Datapath repository. > And since RHEL 8 there are no other OVS packages available. > > Also, FDP repos are not included into base RHEL subscription, > you need RH OpenStack or some other product subscription to > get access and support for these packages. > > Re-building the package from SRPMs above might be an easy option, > if you don't need RH support. You may also try packages from > CentOS Stream. > > > > > Best regards, > > Michal > > > >> On 31 Aug 2022, at 20:56, Dave Houser <davehouser1 at gmail.com> wrote: > >> > >> I got it to work. I did the following: > >> > >> - I adjusted the following in ./rhel/openvswithc.spec > >> Changed this: > >> `Requires: logrotate, hostname, python-six` > >> To this: > >> `Requires: logrotate, hostname, python2 >= 2.7, python2-six` > >> > >> - That error message from `yum localinstall` is not accurate. When > performing an install with `rpm -Uvh ./openvswitch-2.17.2-1.el8.x86_64.rpm` > I see the following > >> ``` > >> error: Failed dependencies: > >> python3 < 3.6.6-13 conflicts with (installed) > platform-python-3.6.8-45.el8.x86_64 > >> python3 < 3.6.6-9 conflicts with (installed) > platform-python-devel-3.6.8-45.el8.x86_64 > >> ``` > >> So I just installed with RPM instead > >> > >> `rpm -Uvh --force --nodeps ./openvswitch-2.17.2-1.el8.x86_64.rpm` > >> > >> This did the trick, and it installed. > > The spec file is a bit outdated. And you don't need python2, nor > python*-six. > > The following spec seems to be the most accurate and worked for me: > > diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in > index 9903dd10a..7eac52d63 100644 > --- a/rhel/openvswitch.spec.in > +++ b/rhel/openvswitch.spec.in > @@ -32,14 +32,12 @@ License: ASL 2.0 > Release: %{release_number}%{?dist} > Source: openvswitch-%{version}.tar.gz > Buildroot: /tmp/openvswitch-rpm > -Requires: logrotate, hostname, python >= 2.7, python-six > -BuildRequires: python-six > +Requires: logrotate, hostname, python3 >= 3.4 > BuildRequires: openssl-devel > BuildRequires: checkpolicy, selinux-policy-devel > BuildRequires: autoconf, automake, libtool > BuildRequires: python3-sphinx > BuildRequires: unbound-devel > -BuildRequires: libunwind-devel > > %bcond_without check > %bcond_with check_datapath_kernel > @@ -102,7 +100,6 @@ rm \ > $RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8 \ > $RPM_BUILD_ROOT/usr/share/man/man8/ovs-l3ping.8 > (cd "$RPM_BUILD_ROOT" && rm -rf usr/%{_lib}/*.la) > -(cd "$RPM_BUILD_ROOT" && rm -rf usr/include) > > install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch > install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch > @@ -255,6 +252,7 @@ exit 0 > %{_libdir}/lib*.a > %{_libdir}/pkgconfig > %{_includedir}/openvswitch/* > +%{_includedir}/openflow/* > > %files selinux-policy > %defattr(-,root,root) > --- > > $ rpmbuild -bb --without check rhel/openvswitch.spec > $ dnf localinstall /root/rpmbuild/RPMS/*/*openvswitch*.rpm > > This installed without issues on RHEL 8.6. Though I didn't check 2.17, > I used 3.0 instead. > > >> > >> > >> On Wed, Aug 31, 2022 at 12:57 PM Dave Houser <davehouser1 at gmail.com > <mailto:davehouser1 at gmail.com>> wrote: > >> I am tyring to install openvswitch 2.17.2 on RHEL 8. > >> > >> I tried using yum to install but running `yum install openvswitch` or > `yum install openvswitch-dpdk` do not work, nothing is found. Your site > reads this: > >> > >> "RHEL distributes openvswitch rpm package that supports kernel > datapath. DPDK accelerated Open vSwitch can be installed using > openvswitch-dpdk package." > > This is true for RHEL 7, but not for RHEL 8+, unfortunately. > > >> > >> This does not seem to be the case or is not as straight forward as the > instructions imply. As the packages are not found. > >> I then tried to compile an RPM and do a local install. > >> I downloaded the 2.17.2 tarball from here: > >> https://www.openvswitch.org/download/ < > https://www.openvswitch.org/download/> > >> > >> Then I installed all the required packages. There was one particular > that did not install clean. "python-six", after doing some research it > seems there is no "python-six" package only "python2-six" and > "python3-six". I installed both and adjusted the .spec anywhere > "python-six" was mentioned to "python3-six". Note I also tried using > "python2-six". > >> > >> I then built the rpm with `rpm -bb --nochecks > /root/rpmbuild/SOURCES/openvswitch-2.17.2/rhel/openvswitch.spec` > >> This created the rpm. Then I tried installing with `yum localinstall > openvswitch-2.17.2-1.el8.x86_64.rpm` > >> > >> But no matter what I try I keep getting these errors: > >> > >> ``` > >> Updating Subscription Management repositories. > >> Last metadata expiration check: 1:17:59 ago on Wed 31 Aug 2022 11:37:19 > AM EDT. > >> Error: > >> Problem: conflicting requests > >> - nothing provides python >= 2.7 needed by > openvswitch-2.17.2-1.el8.x86_64 > >> - nothing provides /bin/python3 needed by > openvswitch-2.17.2-1.el8.x86_64 > >> (try to add '--skip-broken' to skip uninstallable packages or > '--nobest' to use not only best candidate packages) > >> root at emd1:~/rpmbuild/RPMS/x86_64# > >> ``` > >> > >> I already confirmed that python2 is installed, there is even a symbolic > link for "python" -> /bin/python2.7. Also /bin/python3 is installed and the > path is valid. > >> Why am I getting these errors? How can I fix this or work around it? > Can I just install with --skip-broken or --nobest? > >> Is there a better way to install? > >> > >> -Dave > >
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss