[ovs-dev] [PATCH ovn] ovn-openstack.rst: Add check for Gateway_Chassis table

Numan Siddique nusiddiq at redhat.com
Wed Sep 11 07:24:31 UTC 2019


On Thu, Sep 5, 2019 at 7:57 PM Flavio Fernandes <flavio at flaviof.com> wrote:

> This is related to the section called "Adding a Gateway".
>
> Added workaround command for a known issue in networking-ovn.
> Even after the issue is resolved, it may be useful to have this
> in the tutorial, so folks have a feel for how OVN keeps track
> of chassis gateway.
>
> Also, removed redundant route command when assigning an address
> to the br-ex interface.
>
> Signed-off-by: Flavio Fernandes <flavio at flaviof.com>
>

Thanks for the patch. I applied this to master.

Numan


> ---
>  Documentation/tutorials/ovn-openstack.rst | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/tutorials/ovn-openstack.rst
> b/Documentation/tutorials/ovn-openstack.rst
> index 353ef209e..ed30e3044 100644
> --- a/Documentation/tutorials/ovn-openstack.rst
> +++ b/Documentation/tutorials/ovn-openstack.rst
> @@ -1331,6 +1331,20 @@ with an IP address from the "private" network, then
> we create a
>  floating IP address on the "public" network, then we associate the
>  port with the floating IP address.
>
> +As of this writing, you may need to run the following to fix a
> +problem with associating a logical port of router with the external
> +gateway::
> +
> +  $ CHASSIS=$(ovn-nbctl --bare --columns="_uuid" find gateway_chassis) ; \
> +    [ -z "${CHASSIS}" ] && PORT_NAME='' || \
> +    PORT_NAME=$(ovn-nbctl --bare --columns=name \
> +    find logical_router_port gateway_chassis="${CHASSIS}")
> +
> +  $ [ -z "${PORT_NAME}" ] && {
> +      openstack router unset --external-gateway router1 && \
> +      openstack router set --external-gateway public router1
> +    } || echo logical port \"${PORT_NAME}\" in chassis \"${CHASSIS}\"
> +
>  Let's add a new VM ``d`` with a floating IP::
>
>    $ openstack server create --nic net-id=private --flavor m1.nano --image
> $IMAGE_ID --key-name demo d
> @@ -1347,7 +1361,6 @@ It's also necessary to configure the "public"
> network because DevStack
>  does not do it automatically::
>
>    $ sudo ip link set br-ex up
> -  $ sudo ip route add 172.24.4.0/24 dev br-ex
>    $ sudo ip addr add 172.24.4.1/24 dev br-ex
>
>  Now you should be able to "ping" VM ``d`` from the OpenStack host::
> --
> 2.17.1
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list