From e3e4ad0ada58a49f5921ef6ca341f942dae49406 Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Tue, 3 Jan 2023 15:39:30 +0100 Subject: [PATCH] Start etcd with V2 API enabled for V2 etcd acceptance tests (#2509) Otherwise, the etcd (not etcd3) behave tests fail to connect: ``` Jan 02 09:56:18 HOOK-ERROR in before_all: AssertionError: etcd instance is not available for queries after 5 seconds ``` --- features/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/environment.py b/features/environment.py index 853e079c..6a45de29 100644 --- a/features/environment.py +++ b/features/environment.py @@ -441,7 +441,7 @@ class AbstractEtcdController(AbstractDcsController): self._client_cls = client_cls def _start(self): - return subprocess.Popen(["etcd", "--data-dir", self._work_directory], + return subprocess.Popen(["etcd", "--enable-v2=true", "--data-dir", self._work_directory], stdout=self._log, stderr=subprocess.STDOUT) def _is_running(self):