[OVN] local conf devstack for a ovn-northd (DB only) node does not work

Bug #1871730 reported by LIU Yulong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Maciej Jozefczyk

Bug Description

Code branch: master

Assuming you have 5 nodes to run a multi-node devstack deployment with neutron and OVN.
One node for "ovn-northd" DB only. Two chassis for compute, and two for gateway.

For the DB only node, if you do not set "ovn-controller" to the enable_services list.
The stack.sh of devstack will get failed. Here is an example local.conf:
http://paste.openstack.org/show/791811/

Error output:
http://paste.openstack.org/show/791832/

Tags: ovn devstack
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Hi, I have a smaller setup, with one all-in-one devstack with ovn, and one which serves as ovn-northd host.
For the all-in-one host I used this sample: https://opendev.org/openstack/neutron/src/branch/master/devstack/ovn-local.conf.sample
And for the ovn-northd host I used this one: https://opendev.org/openstack/neutron/src/branch/master/devstack/ovn-db-local.conf.sample

And for me stack.sh finished as expected.
BUT: I have no northd process or anything, so something weird is there for sure.

Revision history for this message
Lajos Katona (lajos-katona) wrote :

I think I found the log in my stack.sh run:
+functions-common:service_check:1622 sudo systemctl is-enabled <email address hidden>
Failed to get unit file state for <email address hidden>: No such file or directory

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/718735

Revision history for this message
Lajos Katona (lajos-katona) wrote :

After these additions (https://review.opendev.org/718735 ) to ovn-db-local.conf.sample I was able to reproduce your original issue Liu.

Changed in neutron:
status: New → Confirmed
assignee: nobody → Lajos Katona (lajos-katona)
importance: Undecided → Low
tags: added: devstack ovn
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/719972

Changed in neutron:
status: Confirmed → In Progress
Changed in neutron:
assignee: Lajos Katona (lajos-katona) → Maciej Jozefczyk (maciej.jozefczyk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.opendev.org/718735
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d84088135993e218d9ae852a200ff3f1c7c4a81b
Submitter: Zuul
Branch: master

commit d84088135993e218d9ae852a200ff3f1c7c4a81b
Author: elajkat <email address hidden>
Date: Thu Apr 9 17:25:08 2020 +0200

    Additions to ovn-db-local.conf.sample

    To run ovn-northd on a host the sample file is not enough as it is now.

    Change-Id: I20e61249cc91a5ea2c9652f99b6dac287462b305
    Related-Bug: #1871730

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

Reviewed: https://review.opendev.org/719972
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7718cc0a6f6f20bd9b40ef2565cb7a5be37eb8d8
Submitter: Zuul
Branch: master

commit 7718cc0a6f6f20bd9b40ef2565cb7a5be37eb8d8
Author: elajkat <email address hidden>
Date: Tue Apr 14 15:38:21 2020 +0200

    Start ovs if ovn-northd is enabled

    There are usecases where ovn-northd is running standalone with ovs, the
    suggested local.conf is among the sample files (see: [0]). The service
    however doesn't start as it needs OVS to run. This patch makes OVS
    installed and started by ovn devstack plugin if ovn-northd is enabled in
    local.conf.

    [0]: https://opendev.org/openstack/neutron/src/branch/master/devstack/ovn-db-local.conf.sample

    Change-Id: Ib12a076e50f010464735c6779d0e67bb218b66be
    Closes-Bug: #1871730

Changed in neutron:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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