[Bug 1174067] New: "zypper migration" on Leap 15.1
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 Bug ID: 1174067 Summary: "zypper migration" on Leap 15.1 Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Upgrade Problems Assignee: screening-team-bugs@suse.de Reporter: Ulrich.Windl@rz.uni-regensburg.de QA Contact: jsrain@suse.com Found By: --- Blocker: --- Trying the easy way to upgrade Leap 15.1 to 15.2, this is what I get: # zypper migration Executing 'zypper patch-check --updatestack-only' Loading repository data... Reading installed packages... Considering 0 out of 5 applicable patches: 0 patches needed (0 security patches) Executing 'zypper refresh' Repository 'nVidia Graphics Drivers' is up to date. Repository 'openSUSE-Leap-15.1-1' is up to date. Repository 'Packman Repository' is up to date. Repository 'Non-OSS Repository' is up to date. Repository 'Main Repository' is up to date. Repository 'Main Update Repository' is up to date. Repository 'Update Repository (Non-Oss)' is up to date. All repositories have been refreshed. Can't get available migrations from server: SUSE::Connect::CannotBuildBasicAuth: Cannot read username and password from /etc/zypp/credentials.d/SCCcredentials. '/usr/lib/zypper/commands/zypper-migration' exited with status 1 --- Is this the way it is intended to be? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c1 --- Comment #1 from Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> --- Still the same with zypper-1.14.37-lp151.2.14.1.x86_64. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c2 --- Comment #2 from Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> --- As there is no comment, I wonder: Is "zypper migration" only available for SLES? I think (even if it's just to test the migration tools), it should be available to OpenSUSE "customers" as well... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c4 --- Comment #4 from Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> --- (In reply to Chenzi Cao from comment #3) Unfortunately the error message shown is not very helpful. I guess it could be improved. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c5 --- Comment #5 from Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> --- If I try "zypper dup -D" (dry-run), this is what I get: [...] Computing distribution upgrade... The following 7 packages are going to be REMOVED: libass5 libgif6 libgnutls28 libhogweed2 liblcms1 libmng1 libnettle4 The following 6 packages are going to be downgraded: libdcadec0 libopencore-amrnb0 libopencore-amrwb0 librtmp1 libvo-aacenc0 xboard 6 packages to downgrade, 7 to remove. Overall download size: 1.8 MiB. Already cached: 0 B. After the operation, 2.7 MiB will be freed. Continue? [y/n/v/...? shows all options] (y): --- It does not look OK IMHO (to few changes suggested). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c6 Vladimir Nadvornik <nadvornik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|nadvornik@suse.com |tschmidt@suse.com --- Comment #6 from Vladimir Nadvornik <nadvornik@suse.com> --- Migration needs 2 steps: 1. replace repositories with the new ones 2. call zypper dup zypper migration uses SUSEConnect library for step 1. It currently works only with SCC account. IMO all potential fixes should go to the library - improve error message or even handle Leap repos. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c7 Thomas Schmidt <tschmidt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|"zypper migration" on Leap |Use "zypper migration" for |15.1 |Leap version upgrades --- Comment #7 from Thomas Schmidt <tschmidt@suse.com> --- I would not recommend to have "zypper migration" in it's current implementation as a documented way to migrate openSUSE Leap to the next version. The implemented usecase is only migration Leap to SLES. I could make sense to add special handling to the "zypper migration" plugin to handle the openSUSE Leap upgrade case by just replacing the local repos and running "zypper dup". This would be a feature request to be evaluated by openSUSE. @Ulrich: Before running "zypper dup", you need to change your local repositories to point to the Leap version you want to upgrade to. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c8 --- Comment #8 from Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> --- (In reply to Thomas Schmidt from comment #7)
@Ulrich: Before running "zypper dup", you need to change your local repositories to point to the Leap version you want to upgrade to.
I got that from comment #6. The challenge is to swap the repositories. One could guess to replace just any "15.1" to "15.2", but that wouldn't cover any new repositories. I don't know where zypper gets the correct repositories, but some comfort would be right in place (That's why I wanted to try "zypper migration": It would offer the possible upgrades, and then do the necessary steps). Even if you know the correct repository paths, doing the change with YaST or zypper is still somewhat time-consuming, changing or editing the repositories one by one. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c9 Thomas Schmidt <tschmidt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FEATURE --- Comment #9 from Thomas Schmidt <tschmidt@suse.com> --- @Ulrich: You could use this shorter method: sudo sed -i 's/15.1/15.2/g' /etc/zypp/repos.d/* sudo zypper ref sudo zypper dup a more detailed, official description is here: https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.start... Or by booting from a 15.2 media: https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.start... Pro-tip: I am adding my repositories by replacing the version number in the url with "$releasever". That makes the upgrade procedure to 15.2 as easy as: sudo zypper --releasever 15.2 ref sudo zypper --releasever 15.2 dup This report, I will need to close, because it is a non-existing feature/usecase of zypper-migration to upgrade between openSUSE Leap versions. However, I added a patch to improve the error message here: https://github.com/SUSE/connect/pull/439, this can get included in the next release. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174067 http://bugzilla.opensuse.org/show_bug.cgi?id=1174067#c10 --- Comment #10 from Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> --- (In reply to Thomas Schmidt from comment #9)
sudo sed -i 's/15.1/15.2/g' /etc/zypp/repos.d/*
I guess the line should really be sudo sed -i 's/15\.1/15.2/g' /etc/zypp/repos.d/* -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com