Hi, On Mon, Jan 2, 2023 at 6:35 PM Shengjing Zhu <z...@debian.org> wrote: > > Source: patroni > Version: 2.1.5-1 > Severity: serious > > Hi, > > I've uploaded etcd 3.4 to unstable. Your package's autopkgtest fails. > I believe it's because etcd 3.4 doesn't enable v2 API by default. > Please adjust your autopkgtest with ETCD_ENABLE_V2=true env, or --enable-v2 > option.
I noticed you uploaded 2.1.6 which has --enable-v2. But the autopkgtest failure still exists. I tried to reproduce it locally with the 2.1.6 version. First I run autopkgtest with the schroot backend, and I can't reproduce the error. The I tried the lxd backend. Now I indeed found the error. # autopkgtest -B -s --test-name=acceptance-etcd-basic patroni_2.1.6-1.dsc -- lxd autopkgtest/debian/unstable/amd64 root@autopkgtest-lxd-jzdcwl:/tmp/autopkgtest.VeGcZ8/build.2LX/src# cat features/output/etcd.log 2023-01-07 14:04:06.932041 W | pkg/flags: unrecognized environment variable ETCD_UNSUPPORTED_ARCH= [WARNING] Deprecated '--logger=capnslog' flag is set; use '--logger=zap' flag instead 2023-01-07 14:04:06.932117 I | etcdmain: etcd Version: 3.4.23 2023-01-07 14:04:06.932125 I | etcdmain: Git SHA: Not provided (use ./build instead of go build) 2023-01-07 14:04:06.932132 I | etcdmain: Go Version: go1.19.4 2023-01-07 14:04:06.932139 I | etcdmain: Go OS/Arch: linux/amd64 2023-01-07 14:04:06.932146 I | etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4 [WARNING] Deprecated '--logger=capnslog' flag is set; use '--logger=zap' flag instead 2023-01-07 14:04:06.932839 C | etcdmain: listen tcp 127.0.0.1:2380: bind: address already in use root@autopkgtest-lxd-jzdcwl:/tmp/autopkgtest.VeGcZ8/build.2LX/src# systemctl status etcd ● etcd.service - etcd - highly-available key value store Loaded: loaded (/lib/systemd/system/etcd.service; enabled; preset: enabled) Drop-In: /run/systemd/system/service.d └─zzz-lxc-service.conf Active: active (running) since Sat 2023-01-07 14:03:46 UTC; 44s ago Docs: https://etcd.io/docs man:etcd Main PID: 1677 (etcd) Tasks: 10 (limit: 9324) Memory: 31.1M CPU: 568ms CGroup: /system.slice/etcd.service └─1677 /usr/bin/etcd There is an etcd instance running. So you test can't start a new one. I'm not sure why etcd 3.4 behaviors differently with 3.3. But it doesn't seem wrong for etcd. So could you mask or kill etcd instances before running tests? I can run the test successfully with following command: autopkgtest --setup-commands="systemctl mask etcd" -U -B -s --test-name=acceptance-etcd-basic patroni_2.1.6-1.dsc -- lxd autopkgtest/debian/unstable/amd64 -- Shengjing Zhu