etcd changed API version from v3beta to v3alpha, then v3, and because
of transition available api versions are different according to
the etcd server available.
This change implements the mechanism to detect the current api version
according to the etcd version obtained via the version API. So that
the url without api version works regardless of the etcd server used.
Reviewed: https:/ /review. opendev. org/c/openstack /tooz/+ /901247 /opendev. org/openstack/ tooz/commit/ f180411f42b77f8 5123e44983f0799 e688a21044
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f180411f42b77f8 5123e44983f0799 e688a21044
Author: Takashi Kajinami <email address hidden>
Date: Fri Nov 17 23:38:08 2023 +0900
etcd3gw: Discover API version automatically
etcd changed API version from v3beta to v3alpha, then v3, and because
of transition available api versions are different according to
the etcd server available.
This change implements the mechanism to detect the current api version
according to the etcd version obtained via the version API. So that
the url without api version works regardless of the etcd server used.
Closes-Bug: #2043810 /review. opendev. org/c/openstack /etcd3gw/ +/901244 e08d007db1ced4d 0ceb3bde212
Depends-on: https:/
Change-Id: Ib81390eb73feaf