[ovs-discuss] Bug on ovs-ctl force-reload-kmod

Sahid Ferdjaoui sahid.ferdjaoui at cloudwatt.com
Mon Oct 28 14:51:05 UTC 2013


Ok so there is a problem to update ovs from 1.4 this command seems do not respond.

----- 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



More information about the discuss mailing list