[Bug 1203715] New: zypper serviceadd fails on idempotency check
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 Bug ID: 1203715 Summary: zypper serviceadd fails on idempotency check Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: lubos.kocman@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- from post of openSUSE-repos Spec is available here https://github.com/openSUSE/openSUSE-repos/blob/main/dist/package/openSUSE-r... Seems like installation is either not idempotent or fails if network is not availabile. This is how we call it in %post ZYPP_READONLY_HACK=1 zypper addservice %{_datadir}/zypp/local/service/openSUSE openSUSE The repoindex used in post https://github.com/openSUSE/openSUSE-repos/blob/main/opensuse-tumbleweed-rep... [ 27s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.AIoUiG [ 27s] + umask 022 [ 27s] + cd /home/abuild/rpmbuild/BUILD [ 27s] + cd openSUSE-repos-20220924.30f80ef [ 27s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/openSUSE-repos-20220924.30f80ef-lp155.1.1.s390x [ 27s] + exit 0 [ 27s] ... checking for files with abuild user/group [ 27s] ... running 00-check-install-rpms [ 27s] ... installing all built rpms [ 27s] Preparing packages... [ 27s] openSUSE-repos-Leap-20220924.30f80ef-lp155.1.1.s390x [ 27s] openSUSE-repos-Tumbleweed-20220924.30f80ef-lp155.1.1.s390x [ 27s] Setting new service openSUSEindeterminate indeterminate [ 27s] Service 'openSUSE' has been successfully added. [ 27s] ... running 50-check-binary-kernel-log [ 27s] ... running 50-check-core-files [ 27s] ... checking for core files [ 27s] ... running 50-check-debuginfo [ 27s] ... testing for empty debuginfo packages [ 27s] ... running 50-check-filelist [ 27s] ... checking filelist [ 27s] ... running 50-check-gconf-scriptlets [ 28s] ... testing GConf scriptlet presence [ 28s] ... running 50-check-installtest [ 28s] ... testing for pre/postinstall scripts that are not idempotent [ 28s] Setting new service openSUSEindeterminate indeterminate [ 28s] Error occurred while adding service 'openSUSE'. [ 28s] postinstall script of openSUSE-repos-Tumbleweed-20220924.30f80ef-lp155.1.1.s390x.rpm failed [ 28s] ### VM INTERACTION START ### [ 28s] [ 24.397465][ T1] sysrq: Power Off [ 28s] [ 24.397956][ T111] reboot: Power down [ 29s] ### VM INTERACTION END ### [ 29s] [ 29s] s390zp24 failed "build openSUSE-repos.spec" at Sat Sep 24 13:07:20 UTC 2022. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|zypp-maintainers@suse.de |lubos.kocman@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 http://bugzilla.opensuse.org/show_bug.cgi?id=1203715#c1 --- Comment #1 from Lubos Kocman <lubos.kocman@suse.com> --- Installation seem to pass (after bypassing post-build checks) lubos@localhost:~/Downloads> sudo zypper in openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm [sudo] password for root: Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: openSUSE-repos-Tumbleweed 1 new package to install. Overall download size: 9.4 KiB. Already cached: 0 B. After the operation, additional 848.0 B will be used. Continue? [y/n/v/...? shows all options] (y): y Retrieving package openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 (1/1), 9.4 KiB ( 848 B unpacked) openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID bdd7528052d16182: NOKEY V3 RSA/SHA256 Signature, key ID bdd7528052d16182: NOKEY warning: /var/tmp/zypp.NcixoI/zypper/_tmpRPMcache_/%CLI%/openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 52d16182: NOKEY Looking for gpg key ID 52D16182 in cache /var/cache/zypp/pubkeys. Repository Plain RPM files cache does not define additional 'gpgkey=' URLs. openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 (Plain RPM files cache): Signature verification failed [4-Signatures public key is not available] Abort, retry, ignore? [a/r/i] (a): i Checking for file conflicts: .............................................[done] warning: /var/cache/zypper/RPMS/openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 52d16182: NOKEY Setting new service openSUSEindeterminate indeterminate Service 'openSUSE' has been successfully added. (1/1) Installing: openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 ..[done --- Comment #2 from Lubos Kocman <lubos.kocman@suse.com> --- Installation seem to pass (after bypassing post-build checks) lubos@localhost:~/Downloads> sudo zypper in openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm [sudo] password for root: Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: openSUSE-repos-Tumbleweed 1 new package to install. Overall download size: 9.4 KiB. Already cached: 0 B. After the operation, additional 848.0 B will be used. Continue? [y/n/v/...? shows all options] (y): y Retrieving package openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 (1/1), 9.4 KiB ( 848 B unpacked) openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID bdd7528052d16182: NOKEY V3 RSA/SHA256 Signature, key ID bdd7528052d16182: NOKEY warning: /var/tmp/zypp.NcixoI/zypper/_tmpRPMcache_/%CLI%/openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 52d16182: NOKEY Looking for gpg key ID 52D16182 in cache /var/cache/zypp/pubkeys. Repository Plain RPM files cache does not define additional 'gpgkey=' URLs. openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 (Plain RPM files cache): Signature verification failed [4-Signatures public key is not available] Abort, retry, ignore? [a/r/i] (a): i Checking for file conflicts: .............................................[done] warning: /var/cache/zypper/RPMS/openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 52d16182: NOKEY Setting new service openSUSEindeterminate indeterminate Service 'openSUSE' has been successfully added. (1/1) Installing: openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 ..[done -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 http://bugzilla.opensuse.org/show_bug.cgi?id=1203715#c1 --- Comment #1 from Lubos Kocman <lubos.kocman@suse.com> --- Installation seem to pass (after bypassing post-build checks) lubos@localhost:~/Downloads> sudo zypper in openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm [sudo] password for root: Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: openSUSE-repos-Tumbleweed 1 new package to install. Overall download size: 9.4 KiB. Already cached: 0 B. After the operation, additional 848.0 B will be used. Continue? [y/n/v/...? shows all options] (y): y Retrieving package openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 (1/1), 9.4 KiB ( 848 B unpacked) openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID bdd7528052d16182: NOKEY V3 RSA/SHA256 Signature, key ID bdd7528052d16182: NOKEY warning: /var/tmp/zypp.NcixoI/zypper/_tmpRPMcache_/%CLI%/openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 52d16182: NOKEY Looking for gpg key ID 52D16182 in cache /var/cache/zypp/pubkeys. Repository Plain RPM files cache does not define additional 'gpgkey=' URLs. openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 (Plain RPM files cache): Signature verification failed [4-Signatures public key is not available] Abort, retry, ignore? [a/r/i] (a): i Checking for file conflicts: .............................................[done] warning: /var/cache/zypper/RPMS/openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 52d16182: NOKEY Setting new service openSUSEindeterminate indeterminate Service 'openSUSE' has been successfully added. (1/1) Installing: openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 ..[done -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 http://bugzilla.opensuse.org/show_bug.cgi?id=1203715#c3 --- Comment #3 from Lubos Kocman <lubos.kocman@suse.com> --- List of repositories seem to be correct as well Service 'openSUSE' has been successfully added. (1/1) Installing: openSUSE-repos-Tumbleweed-20220924.5761673-2.1.x86_64 ..[done] lubos@localhost:~/Downloads> sudo zypper ref -s Refreshing service 'openSUSE'. Adding repository 'repo-oss' .............................................[done] Adding repository 'repo-oss-debug' .......................................[done] Adding repository 'repo-oss-source' ......................................[done] Adding repository 'repo-non-oss' .........................................[done] Adding repository 'update-tumbleweed' ....................................[done] All services have been refreshed. Retrieving repository 'repo-non-oss' metadata ............................[done] Building repository 'repo-non-oss' cache .................................[done] Retrieving repository 'repo-oss' metadata ......................................................[done] Building repository 'repo-oss' cache ...........................................................[done] Retrieving repository 'update-tumbleweed' metadata .............................................[done] Building repository 'update-tumbleweed' cache ..................................................[done] All repositories have been refreshed. lubos@localhost:~/Downloads> -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 http://bugzilla.opensuse.org/show_bug.cgi?id=1203715#c4 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED --- Comment #4 from Michael Andres <ma@suse.com> --- (In reply to Lubos Kocman from comment #0)
Seems like installation is either not idempotent ...
You can't add the same service/repo twice. It's probably ok to let addservice succeed if alias and URL stay the same. I'll fix zypper to be more relaxed in this case. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 Max Lin <mlin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mlin@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 http://bugzilla.opensuse.org/show_bug.cgi?id=1203715#c5 --- Comment #5 from Michael Andres <ma@suse.com> --- https://github.com/openSUSE/zypper/pull/465 -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1203715 http://bugzilla.opensuse.org/show_bug.cgi?id=1203715#c6 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Michael Andres <ma@suse.com> --- Fixed for zypper 1.14.58 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com