tooz doesn't configure api_path for etcd3gw driver

Bug #1983668 reported by Manojkatari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tooz
Fix Released
Undecided
Manojkatari
tripleo
Fix Released
High
Manojkatari

Bug Description

etcd3gw driver supports configuring api_path which is the endpoint to communicate with etcd.

As the default api_path(/v3alpha) in etcd3gw driver is not supported by latest etcd versions(eg: 3.4.x), it results in errors like [1] in cinder_volume container.

So, tooz should configure correct api_path needed for the corresponding etcd version.

ref: https://github.com/dims/etcd3-gateway/issues/41#issuecomment-673558108

[1] ERROR oslo_service.service [-] Error starting thread.: etcd3gw.exceptions.Etcd3Exception: Not Found

Manojkatari (mkatari)
Changed in python-tooz:
assignee: nobody → Manojkatari (mkatari)
Changed in python-tooz:
status: New → In Progress
Changed in tripleo:
status: New → Triaged
assignee: nobody → Manojkatari (mkatari)
importance: Undecided → High
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tooz (master)

Reviewed: https://review.opendev.org/c/openstack/tooz/+/827492
Committed: https://opendev.org/openstack/tooz/commit/b64623daeb9e0f94fd5322a1c7e47403f187e7ed
Submitter: "Zuul (22348)"
Branch: master

commit b64623daeb9e0f94fd5322a1c7e47403f187e7ed
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Wed Feb 2 15:06:27 2022 +0200

    Support etcd3gw api version

    since etcd3 3.5 dropped support for v3alpha and v3beta api, replacing
    those with v3.

    etcd3gw library supports passing api_path (v3alpha by default), but tooz
    lacks such possibility and thus can not work with etcd3 3.5.

    This patch adds handling of "api_version" in the options to
    "ectd3+https" connection URLs (defaults to v3alpha as it is today and
    corresponds to etcd3 version shipped in major LTS distros at the
    moment).

    Closes-Bug: #1983668
    Depends-On: I49c480f573a4ba8294627a3ce730b816ded10aed
    Change-Id: Ib30c1e003f261cd7e1ac6fed87167f9974bf8542

Changed in python-tooz:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-tripleo/+/852368
Committed: https://opendev.org/openstack/puppet-tripleo/commit/ecda0e14213d82e337c0a81def19565bee460d1d
Submitter: "Zuul (22348)"
Branch: master

commit ecda0e14213d82e337c0a81def19565bee460d1d
Author: katarimanoj <email address hidden>
Date: Tue Aug 9 13:52:43 2022 +0530

    Add etcd3gw api_version to cinder backend_url

    tooz etcd3gw driver makes use of api_version in backend_url from cinder.conf

    api_version specifies the endpoint used for communication between etcd3gw and
    Etcd service.

    This patch ensures that the correct api_version is passed to tooz to
    implement Etcd <-> etcd3gw compatibility as shown below.

      EtcdV3.4 (el9) supports /v3/
      EtcdV3.2 (el8) supports /v3aplha/

    Depends-On: Ib30c1e003f261cd7e1ac6fed87167f9974bf8542
    Closes-Bug: 1983668
    Change-Id: I8f00c1b4299743e2ad21b25b6a1aeddca6edfd34

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tooz 3.1.0

This issue was fixed in the openstack/tooz 3.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 17.0.0

This issue was fixed in the openstack/puppet-tripleo 17.0.0 release.

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.