openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #20608
Re: openvswitch rpm on RHEL 6.3 frustration
Ken'ichi, thank you again. You actually had the answer to my problem in
your first reply, but I did not listen.
If you install openvswitch first, it fails dependency checking looking for
"openvswitch-kmod". However, if you install "kmod-openvswitch" *first*,
the dependency checks for the "openvswitch" rpm passes somehow.
The vagaries of rpms. If I had time, I'd crack open these rpms and see how
this was possible. Clearly it's not as simple as checking the name of the
rpm.
On Fri, Feb 1, 2013 at 2:53 AM, Ken'ichi Ohmichi
<oomichi@xxxxxxxxxxxxxxxxx>wrote:
>
> Hi Greg,
>
> On Fri, 1 Feb 2013 02:25:00 -0500
> Greg Chavez <greg.chavez@xxxxxxxxx> wrote:
> >
> > Arigato gozaimasu. Where did you get that rpm?
>
> Dou itashimashite,
>
> I built the rpm files from source file by the following way:
>
> # wget http://openvswitch.org/releases/openvswitch-1.7.3.tar.gz
> # tar -zxvf openvswitch-1.7.3.tar.gz
> # vi ./openvswitch-1.7.3/datapath/linux/compat/include/linux/skbuff.h
> <-- To avoid compile error, I remove the following lines. -->
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
> -static inline struct page *skb_frag_page(const skb_frag_t *frag)
> -{
> - return frag->page;
> -}
> -#endif
> -
> # rm openvswitch-1.7.3.tar.gz
> # tar -zcvf openvswitch-1.7.3.tar.gz openvswitch-1.7.3/
> # mv openvswitch-1.7.3.tar.gz rpmbuild/SOURCES/
> # rpmbuild -bb -D `uname -r` openvswitch-1.7.3/rhel/openvswitch.spec
> # rpmbuild -bb -D `uname -r`
> openvswitch-1.7.3/rhel/openvswitch-kmod-rhel6.spec
> # ls ~/rpmbuild/RPMS/x86_64/
> kmod-openvswitch-1.7.3-1.el6.x86_64.rpm openvswitch-1.7.3-1.x86_64.rpm
> openvswitch-debuginfo-1.7.3-1.x86_64.rpm
> #
>
>
> Thanks
> Ken'ichi Ohmichi
>
> ---
>
> > On Fri, Feb 1, 2013 at 1:19 AM, Ken'ichi Ohmichi
> > <oomichi@xxxxxxxxxxxxxxxxx>wrote:
> >
> > >
> > > Hi Greg,
> > >
> > > I can install openvswitch-1.7.3-1.x86_64.rpm on CentOS6.3 if specifying
> > > with kmod-openkmod-openvswitch-1.7.3-1.el6.x86_64.rpm:
> > >
> > > # rpm -ivh openvswitch-1.7.3-1.x86_64.rpm
> > > kmod-openvswitch-1.7.3-1.el6.x86_64.rpm
> > > Preparing... ###########################################
> > > [100%]
> > > 1:kmod-openvswitch
> ########################################### [
> > > 50%]
> > > 2:openvswitch ###########################################
> > > [100%]
> > > #
> > >
> > >
> > > Thanks
> > > Ken'ichi Ohmichi
> > >
> > > ---
> > >
> > > On Thu, 31 Jan 2013 23:52:39 -0500
> > > Greg Chavez <greg.chavez@xxxxxxxxx> wrote:
> > > >
> > > > On RHEL 6.3, with EPEL repos, we have
> > > openstack-quantum-openvswitch.noarch.
> > > > It requires openvswitch.x86_64, which isn't provided by either RHEL
> > > > channels or EPEL!
> > > >
> > > > So I tracked down the openvswitch source (not that hard) , and after
> a
> > > few
> > > > hours of battling various compilation erros, ended up with three rpms
> > > that
> > > > I add to my mrepo yum repo:
> > > >
> > > > [root@cs-repo-02 SysEng6-x86_64]# ls *openv*
> > > > kmod-openvswitch-1.7.3-1.el6.x86_64.rpm
> openvswitch-1.7.3-1.x86_64.rpm
> > > > openvswitch-debuginfo-1.7.3-1.x86_64.rpm
> > > >
> > > > So I re-run my attempt to install the OpenVswitch plugin and guess
> what!
> > > >
> > > > Error: Package: openvswitch-1.7.3-1.x86_64 (syseng6)
> > > > Requires: openvswitch-kmod
> > > >
> > > > You say openvswitch-kmod, I say kmod-openvswitch, you say go F
> yourself.
> > > >
> > > > It's late, I've been working this for weeks. This is just the latest
> > > > obstacle. Please help.
> > > >
> > > > The OpenVswitch people are few and unresponsive, by the way. Useless
> > > > mailing lists.
> > > >
> > > > --
> > > > \*..+.-
> > > > --Greg Chavez
> > > > +//..;};
> > >
> > > _______________________________________________
> > > Mailing list: https://launchpad.net/~openstack
> > > Post to : openstack@xxxxxxxxxxxxxxxxxxx
> > > Unsubscribe : https://launchpad.net/~openstack
> > > More help : https://help.launchpad.net/ListHelp
> > >
> >
> >
> >
> > --
> > \*..+.-
> > --Greg Chavez
> > +//..;};
>
--
\*..+.-
--Greg Chavez
+//..;};
References