Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkT7W-0003gM-RE for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 29 Apr 2022 16:05:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkT7V-0003PY-Ej for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 29 Apr 2022 16:05:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkT7V-0003PO-8f for pgsql-pkg-debian@lists.postgresql.org; Fri, 29 Apr 2022 16:05:25 +0000 Received: from mail-ej1-f47.google.com ([209.85.218.47]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nkT7S-0006CV-OV for pgsql-pkg-debian@lists.postgresql.org; Fri, 29 Apr 2022 16:05:24 +0000 Received: by mail-ej1-f47.google.com with SMTP id l18so16289365ejc.7 for ; Fri, 29 Apr 2022 09:05:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=iqddTL/iEpWB7TJWJDnd+w77Tmg7CCRi77FAEI/yuCg=; b=ciZI1bjPXsKLTNvbm+MF28YEoB6dwZypXBgliJbuq9z++k/UphoDT2deyk42+S2171 jFDaCrKuy+fU8pgwLFbpdhlvW5k+gnOYG/s2Ox7sgQj1uf954rgfFXXVvneJYFxnm8Fb a507B79UsQkxK7JOy5iAfMXkhFCYvJYbTrhLP39Ia0aGu6X2weKRlYu4AzIv5QiUTyez TLs07W69d75cNCA+ZzOdX1iVzidoquqYp7LzTmDiDlIoyIFSIjJZAJOaYQsMMa1msQSC eO4mqj6cJ0veD+HQFeuCqSyifXa6d8JUPYg5OErcdUjkpdPXfxzKxKHPfHnWhukVoFLl oBgQ== X-Gm-Message-State: AOAM530OXKfcH/Pn0p8rCBXbE+um/MJ80DQ404gnpl0OatweLQXtwH6F 9Lr/Yk+7e8QE4Kj4TiVo0us= X-Google-Smtp-Source: ABdhPJxlXnvpu1+OIsazVd1bxlcdlkzYxTg0RyBhGXuJxO5MBMV5eqPXiRXJNvDvvwdOuKR9MzC7AQ== X-Received: by 2002:a17:906:9b8a:b0:6f3:fcc9:f863 with SMTP id dd10-20020a1709069b8a00b006f3fcc9f863mr29345ejc.672.1651248321487; Fri, 29 Apr 2022 09:05:21 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:3b75:9d01:b8f:88fd:f8ad:3b58]) by smtp.gmail.com with ESMTPSA id jy27-20020a170907763b00b006f3ef214e54sm761673ejc.186.2022.04.29.09.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 09:05:20 -0700 (PDT) Message-ID: <626c0cc0.1c69fb81.3d144.536d@mx.google.com> X-Google-Original-Message-ID: <20220429160519.GI29807@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1nkT7Q-0002jv-1X; Fri, 29 Apr 2022 18:05:20 +0200 Date: Fri, 29 Apr 2022 18:05:20 +0200 From: Michael Banck To: Kirill Cc: pgsql-pkg-debian@lists.postgresql.org Subject: Re: patroni debian bullseye package file inconsistency References: <1651059454.883106565@f420.i.mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1651059454.883106565@f420.i.mail.ru> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, (I'm not on pgsql-pkg-debian, somebody forwarded me your mail) On Wed, Apr 27, 2022 at 02:37:34PM +0300, Kirill wrote: > I am using that package: >   > $ apt-cache policy patroni > patroni: >   Installed: 2.1.3-2.pgdg110+1 >   Candidate: 2.1.3-2.pgdg110+1 >   Version table: >  *** 2.1.3-2.pgdg110+1 500 >         500 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages >         100 /var/lib/dpkg/status >   > During the usage of patroni I got an error: >   > $ patroni --validate-config /etc/patroni-server/config.yaml [...] > Traceback (most recent call last): [...] >   File "/usr/lib/python3/dist-packages/patroni/validator.py", line 244, in iter_dict >     validator = self.validator[key]._schema[d] > KeyError: 'etcd3' Apparently, running --validate-config on a config using etc3 has been broken for quite a long time, and nobody noticed.   > I started to investigate and found that actual file: >   > $ dpkg -S  /usr/lib/python3/dist-packages/patroni/validator.py > patroni: /usr/lib/python3/dist-packages/patroni/validator.py >   > is different from source file: This is because there is a Debian patch that reverts an upstream change that adds some RAFT tests which (as Debian does not ship RAFT yet) when run would make the testsuite fail: https://salsa.debian.org/postgresql/patroni/-/blob/debian/2.1.3-2/debian/patches/regression_tests_disable_raft_tests.py However, that upstream change we reverted also added etcd3 validation, which is what is now missing for you. I've reworked the patch[1] so that only the RAFT-specifc changes remain, and in my testing the above traceback is gone. I will upload it once CI passes. Michael [1] https://salsa.debian.org/postgresql/patroni/-/commit/538cc5f0f9d6bd1704513f7280a0fd35cd193edf