ovn southdb connection information is not being set in octavia.conf

Bug #1980290 reported by Felipe Reyes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Octavia Charm
Fix Committed
Undecided
Unassigned

Bug Description

Octavia needs to talk to ovnsdb since ovn-octavia-provider 1.1.0[0], the charm is only configuring the information to talk to ovnndb.

This is what octavia-driver-agent daemon is logging on focal-yoga when ovn-chassis is related to octavia:

2022-06-29 22:08:14.306 139907 DEBUG ovn_octavia_provider.event [-] LogicalSwitchPortUpdateEvent logged, update, Logical_Switch_Port(uuid=UUID('72484a2d-41ce-4a5e-b9fe-1b935e257d63'), up=[True], name='e7c5e783-401f-4c0c-8418-1e306708e274', external_ids={'neutron:cidrs': 'fc00:2bbb:839b:eff4:f816:3eff:fe99:5c79/64', 'neutron:device_id': '', 'neutron:device_owner': 'neutron:LOADBALANCERV2', 'neutron:network_name': 'neutron-96a97ae1-b949-491b-b98e-2bbb839beff4', 'neutron:port_name': 'octavia-health-manager-octavia-0-listen-port', 'neutron:project_id': 'cf472f9e79a943e4bde50de35c5f98c0', 'neutron:revision_number': '138', 'neutron:security_group_ids': 'f600c8da-34c2-4eed-93d6-68f8dffeacd2'}, parent_name=[], options={'mcast_flood_reports': 'true', 'requested-chassis': 'juju-b53f99-zaza-bc1ca0e8242a-29.project.serverstack'}, ha_chassis_group=[], enabled=[True], type='', dhcpv6_options=[], port_security=['fa:16:3e:99:5c:79 fc00:2bbb:839b:eff4:f816:3eff:fe99:5c79'], tag_request=[], addresses=['fa:16:3e:99:5c:79 fc00:2bbb:839b:eff4:f816:3eff:fe99:5c79'], dynamic_addresses=[], dhcpv4_options=[], tag=[]) run /usr/lib/python3/dist-packages/ovn_octavia_provider/event.py:57
2022-06-29 22:08:15.281 139907 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2022-06-29 22:08:19.287 139907 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2022-06-29 22:08:27.299 139907 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2022-06-29 22:08:43.317 139907 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2022-06-29 22:09:15.345 139907 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused

[0] https://opendev.org/openstack/ovn-octavia-provider/commit/8bbd8f1b

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (master)
Changed in charm-octavia:
status: New → In Progress
Revision history for this message
Nobuto Murata (nobuto) wrote :

This error is also spamming the log:

$ fgrep -c 'ERROR ovsdbapp.backend.ovs_idl.' /var/log/octavia/octavia-driver-agent.log
31132

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

Reviewed: https://review.opendev.org/c/openstack/charm-octavia/+/848297
Committed: https://opendev.org/openstack/charm-octavia/commit/a70543515682ccae99f64a46653bc9d6601083e5
Submitter: "Zuul (22348)"
Branch: master

commit a70543515682ccae99f64a46653bc9d6601083e5
Author: Felipe Reyes <email address hidden>
Date: Thu Jun 30 09:58:56 2022 -0400

    Configure OVN southdb connection.

    OVN Octavia provider gained support for health monitoring, this is
    achieved by allowing the octavia-driver-agent connect to the southdb,
    this change adds the connection strings otherwise the daemon tries to
    connect to 127.0.0.1:6442 .

    Change-Id: I6f7f1b9252e74ddcc2729a11c74b3c08ee8a7eb2
    Closes-Bug: #1980290

Changed in charm-octavia:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/charm-octavia/+/860754

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (stable/21.10)

Fix proposed to branch: stable/21.10
Review: https://review.opendev.org/c/openstack/charm-octavia/+/860755

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-octavia (stable/21.10)

Change abandoned by "Felipe Reyes <email address hidden>" on branch: stable/21.10
Review: https://review.opendev.org/c/openstack/charm-octavia/+/860755

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/charm-octavia/+/860756

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/charm-octavia/+/860754
Committed: https://opendev.org/openstack/charm-octavia/commit/d5fd6d7ac04d3f1324549ac2e5719c091ef220ee
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit d5fd6d7ac04d3f1324549ac2e5719c091ef220ee
Author: Felipe Reyes <email address hidden>
Date: Thu Jun 30 09:58:56 2022 -0400

    Configure OVN southdb connection.

    OVN Octavia provider gained support for health monitoring, this is
    achieved by allowing the octavia-driver-agent connect to the southdb,
    this change adds the connection strings otherwise the daemon tries to
    connect to 127.0.0.1:6442 .

    Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/949
    Change-Id: I6f7f1b9252e74ddcc2729a11c74b3c08ee8a7eb2
    Closes-Bug: #1980290
    (cherry picked from commit a70543515682ccae99f64a46653bc9d6601083e5)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/charm-octavia/+/860756
Committed: https://opendev.org/openstack/charm-octavia/commit/848a62c595a3cb22e917ba60b2890cd60782be18
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 848a62c595a3cb22e917ba60b2890cd60782be18
Author: Felipe Reyes <email address hidden>
Date: Thu Jun 30 09:58:56 2022 -0400

    Configure OVN southdb connection.

    OVN Octavia provider gained support for health monitoring, this is
    achieved by allowing the octavia-driver-agent connect to the southdb,
    this change adds the connection strings otherwise the daemon tries to
    connect to 127.0.0.1:6442 .

    Change-Id: I6f7f1b9252e74ddcc2729a11c74b3c08ee8a7eb2
    Closes-Bug: #1980290
    (cherry picked from commit a70543515682ccae99f64a46653bc9d6601083e5)

tags: added: in-stable-xena
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.