[Bug 1223430] New: Zypper: Repo key fails to import, key url is rewritten by --gpg-auto-import-keys refresh
https://bugzilla.suse.com/show_bug.cgi?id=1223430 Bug ID: 1223430 Summary: Zypper: Repo key fails to import, key url is rewritten by --gpg-auto-import-keys refresh Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.5 Hardware: x86-64 OS: openSUSE Leap 15.5 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: dstoychev@symas.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Build Identifier: (This used to work with the same repo in previous zypper versions) I am adding a new repo, which is signed and the url for the gpg key is inside the .repo file However, when I do `zypper --debug --non-interactive --gpg-auto-import-keys refresh` I see the key is not imported by zypper due URL 'not found'. The repo URL is actually correct, but zypper rewrites the URL and then it says `not found`. The rewritten url adds the domain sub-directories twice as in: Looking for gpg key ID 887DCBEB in repository Symas OpenLDAP 2.6 RPM testing repository. gpgkey=https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key Retrieving: https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key/repo/gpg/R... .........[not found] Note how the `gpgkey=` and `Retrieving` URLs do not match, the Retieving one adds the part `repo/gpg/RPM-GPG-KEY-symas-com-signing-key` twice, and that is why it is not found Reproducible: Always Steps to Reproduce: 1. Make sure the repo was not added in the past and its key is not present or cached: zypper rr repo-soldap-testing26 rpm -e gpg-pubkey-887dcbeb-5bb4fb4c rm /var/cache/zypp/pubkeys/gpg-pubkey-887dcbeb-5bb4fb4c.key 2. Add the repo zypper --debug --non-interactive --gpg-auto-import-keys addrepo "https://repo.symas.com/configs/SOLDAP/sles153/testing26.repo" 3. Auto-import keys zypper --debug --non-interactive --gpg-auto-import-keys refresh Actual Results: Looking for gpg key ID 887DCBEB in repository Symas OpenLDAP 2.6 RPM testing repository. gpgkey=https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key Retrieving: https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key/repo/gpg/R... .........[not found] Expected Results: Looking for gpg key ID 887DCBEB in repository Symas OpenLDAP 2.6 RPM testing repository. gpgkey=https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key Retrieving: https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key .............................................[done (2.4 KiB/s)] Automatically importing the following key: Repository: Symas OpenLDAP 2.6 RPM testing repository Key Fingerprint: DE59 7FBC 7CF6 77B9 342E C82C DA26 A148 887D CBEB Key Name: Symas Support <support@symas.com> Key Algorithm: RSA 3072 Key Created: Wed 03 Oct 2018 05:24:28 PM UTC Key Expires: (does not expire) Subkey: 94C5DFC298D07BA7 2018-10-03 [does not expire] Rpm Name: gpg-pubkey-887dcbeb-5bb4fb4c #zypper se -i -s zypper ... zypper 1.14.71-150400.3.45.2 (x86_64) zypper-lifecycle-plugin 0.6.1601367426.843fe7a-1.60 zypper-log 1.14.71-150400.3.45.2 zypper-needs-restarting 1.14.71-150400.3.45.2 #cat /etc/*release NAME="openSUSE Leap" VERSION="15.5" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.5" PRETTY_NAME="openSUSE Leap 15.5" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.5" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap" LOGO="distributor-logo-Leap" NAME="openSUSE Leap" VERSION="15.5" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.5" PRETTY_NAME="openSUSE Leap 15.5" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.5" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap" LOGO="distributor-logo-Leap" -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223430 https://bugzilla.suse.com/show_bug.cgi?id=1223430#c1 --- Comment #1 from Dimitar Stoychev <dstoychev@symas.com> --- Created attachment 874521 --> https://bugzilla.suse.com/attachment.cgi?id=874521&action=edit Zypper log file -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223430 https://bugzilla.suse.com/show_bug.cgi?id=1223430#c6 --- Comment #6 from Dimitar Stoychev <dstoychev@symas.com> --- Do you mean it is fixed in libzypp >= 17.32.6 ? seems the link points to 32, not 23 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223430 https://bugzilla.suse.com/show_bug.cgi?id=1223430#c8 --- Comment #8 from Dimitar Stoychev <dstoychev@symas.com> --- Thanks! In Opensuse 15.5 the current libzypp is still 17.32.5, can you please provide a timeline for a 17.32.6 package landing into repos that a Suse installation can see? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com