[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvswitch-discuss
Subject:    [ovs-discuss] Bug on ovs-ctl force-reload-kmod
From:       shettyg () nicira ! com (Gurucharan Shetty)
Date:       2013-10-28 14:58:27
Message-ID: CAHbON5qLA1q7t+_x3uvHCLduAGpOYjLi4h0GHpBgmHkmSqZwoA () mail ! gmail ! com
[Download RAW message or body]

On Mon, Oct 28, 2013 at 7:51 AM, Sahid Ferdjaoui
<sahid.ferdjaoui at cloudwatt.com> wrote:
> Ok so there is a problem to update ovs from 1.4 this command seems do not respond.

Yes. The newer openvswitch userspace utilities are not compatible with
older openvswitch kernel module.

When you do a upgrade using 'force-reload-kmod', it is generally wiser
to upgrade one version at a time.

> 
> ----- Original Message -----
> From: "Gurucharan Shetty" <shettyg at nicira.com>
> To: "Sahid Ferdjaoui" <sahid.ferdjaoui at cloudwatt.com>
> Cc: "discuss" <discuss at openvswitch.org>
> Sent: Monday, October 28, 2013 3:36:46 PM
> Subject: Re: [ovs-discuss] Bug on ovs-ctl force-reload-kmod
> 
> On Mon, Oct 28, 2013 at 4:19 AM, Sahid Ferdjaoui
> <sahid.ferdjaoui at cloudwatt.com> wrote:
> > I found a bug when I tried to update to openvswitch 2.0:
> > 
> > It's on the script ovs-ctl when we want to use "force-reload-kmod". During the \
> > "save_ofports_if_required" the script are waiting indefinitely because a mistake \
> > in the command.
> If the script is waiting indefinitely, It is likely for some other reason.
> You probably tried to upgrade from a much older openvswitch version.
> > 
> > I past here a small diff to correct it:
> > 
> > 
> > diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
> > index 0735160..c291fbe 100755
> > --- a/utilities/ovs-ctl.in
> > +++ b/utilities/ovs-ctl.in
> > @@ -288,7 +288,7 @@ ovs_save () {
> > 
> > save_ofports_if_required () {
> > # Save ofports if we are upgrading from a pre-1.10 branch.
> > -    case `ovs-appctl version | sed 1q` in
> > +    case `ovs-appctl --version | sed 1q` in
> 
> ovs-appctl version gets the version information from the running ovs-vswitchd.
> "ovs-appctl --version" gives the version of the installed ovs-appctl
> utility. The code needs to know the version number of the running
> ovs-vswitchd.
> So the existing code looks correct to me.
> 
> > "ovs-vswitchd (Open vSwitch) 1."[0-9].*)
> > action "Saving ofport values" ovs_save save-ofports \
> > "${script_ofports}"
> > 
> > 
> > s.
> > _______________________________________________
> > discuss mailing list
> > discuss at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic