devstack installation fails for neutron- ovn_agent on master branch

Bug #1930360 reported by Vishal Manchanda
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
High
Unassigned

Bug Description

./stack/sh scripts fails at line [1] with error msg ``Error: any valid prefix is expected rather than "/27"``.
My local.conf file can be found here http://paste.openstack.org/show/805864/ .
I think devstack failing due to some recent patches merged related to ovn into master branch.

[1] https://github.com/openstack/devstack/blob/master/lib/neutron_plugins/ovn_agent#L286

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Hello:

If you are using OVN and you defined a FLOATING_RANGE, then you need to set PUBLIC_NETWORK_GATEWAY [1].
"""
The PUBLIC_NETWORK_GATEWAY is the gateway that server would normally use to get off the network. Q_FLOATING_ALLOCATION_POOL controls the range of floating ips that will be handed out. As we are sharing your existing network, you'll want to give it a slice that your local dhcp server is not allocating. Otherwise you could easily have conflicting ip addresses, and cause havoc with your local network.
"""

Regards.

[1]https://github.com/openstack/devstack/blob/master/doc/source/networking.rst#shared-guest-interface

Changed in devstack:
status: New → Incomplete
Revision history for this message
Vishal Manchanda (vishalmanchanda) wrote :

@Rodolfo, hi thanks for the quick response, what if I didn't define a FLOATING_RANGE in my local.conf then in that case still I have to set PUBLIC_NETWORK_GATEWAY in local.conf file?

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Yes, you need to define PUBLIC_NETWORK_GATEWAY, in the same CIDR as FLOATING_RANGE.

I need to check with Lucas Gomes if [1] should create a subnet in the external network, with range FLOATING_RANGE, same as in "_neutron_create_public_subnet_v4". Then, retrieve the subnet info, including the gateway, that could be used if PUBLIC_NETWORK_GATEWAY is not defined.

[1]https://github.com/openstack/devstack/blob/22038a9a8c4418d6d49bed83024a3cd97e627860/lib/neutron_plugins/ovn_agent#L276-L304

Revision history for this message
Akihiro Motoki (amotoki) wrote :

This issue happens if a user just follows DevStack quick start https://docs.openstack.org/devstack/latest/#create-a-local-conf . It happens as a result of switching the network defualt backend to OVN. We need to consider this bug as the gap in OVN migration.

As another workaround, if you do not care a network backend used, you can use OVS as backend as a workaround. If so, you can check the details in http://lists.openstack.org/pipermail/openstack-discuss/2021-May/022410.html.

Revision history for this message
Vishal Manchanda (vishalmanchanda) wrote :

I see because if I didn't add any FLOATING_RANGE in my local.conf http://paste.openstack.org/show/806211/
I still get a similar error on the master branch ``Error: any valid prefix is expected rather than "/24".

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Vishal, I guess you just use local.conf similar to https://docs.openstack.org/devstack/latest/#create-a-local-conf (i.e., local.conf without any specific network related configurations), right?

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Okay, you pasted your local.conf during I wrote a comment.

Changed in devstack:
status: Incomplete → Confirmed
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I changed the status to "Confirmed" as I confirmed this happens with the sample local.conf in the "Quick Start" page.

Changed in devstack:
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Hi,

I believe this problem is cause by this patch https://review.opendev.org/c/openstack/devstack/+/793397/, previously this OVN_L3_CREATE_PUBLIC_NETWORK was set to False and the create_public_bridge method wasn't been called when running devstack locally. However we needed to change the default to True in order to fix some problems with the nodepool jobs from infra because they do not rely on customized zuul configurations (only defaults) to run their jobs now that OVN is the default in DevStack.

I will look into this problem, but, as a workaround for this problem please set the following variable in your local.conf:

OVN_L3_CREATE_PUBLIC_NETWORK=False

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/793962

Changed in devstack:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to devstack (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/793997

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by "Pavlo Shchelokovskyy <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/793997

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/795371

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by "Rodolfo Alonso <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/793962
Reason: Superseded by https://review.opendev.org/c/openstack/devstack/+/795371

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.opendev.org/c/openstack/devstack/+/795371
Committed: https://opendev.org/openstack/devstack/commit/95298788085de38342e789bf10c35849c7117dfc
Submitter: "Zuul (22348)"
Branch: master

commit 95298788085de38342e789bf10c35849c7117dfc
Author: Radosław Piliszek <email address hidden>
Date: Tue Jun 8 16:19:40 2021 +0000

    [OVN] Set up routing on public bridge like OVS did

    This fixes various reported and unreported issues with the new
    behaviour.

    Removes code repetition as well to pay off some technical debt.

    Closes-Bug: #1930360
    Change-Id: I726c532e96ca434520838ae8a35d5b88b6dd337b

Changed in devstack:
status: In Progress → Fix Released
Revision history for this message
bilelsalem (bilelsalem) wrote :

Hello! I have the same error ! how can I resolve it please?

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Checkout the current master branch contents. It's fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.