[Bug 556469] New: Update to 11.2 removes all old repos
http://bugzilla.novell.com/show_bug.cgi?id=556469#c0 Summary: Update to 11.2 removes all old repos Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mls@novell.com QAContact: jsrain@novell.com CC: coolo@novell.com, ma@novell.com Found By: --- Blocker: --- The update to 11.2 deletes all old repos (and backups them to a place no user knows) instead of just disabling them. The is bad because it makes it hard for the user to just change the distribution name to update the repo urls. Furthermore it deletes the repos by just deleting the .repo file instead of using libzypp to delete them. Thus, all cached rpms/repository metadata/solv files in /var/cache/zypp stay on disk. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469#c1 Markus Elfring <Markus.Elfring@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Markus.Elfring@web.de --- Comment #1 from Markus Elfring <Markus.Elfring@web.de> 2009-11-18 14:22:30 UTC --- Does this happen at a step during the installation from a CD or DVD? Is your experience related to previous issues? - Bug #461595: Check handling of installation sources during distribution update - Bug #478024: Repositories were not saved after proceed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |locilka@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c2 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |WORKSFORME --- Comment #2 from Lukas Ocilka <locilka@novell.com> 2009-11-23 09:21:48 UTC --- No logs attached, closing as CANTFIX. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c3 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|WORKSFORME | --- Comment #3 from Michael Schröder <mls@novell.com> 2009-11-23 09:54:54 UTC --- Huh, how about setting it to NEEDINFO first? Why do you need logs anyway? This is about function BackUpAllTargetSources of clients/pkg_finish.ycp from the yast2-packager package. Relevant part of logs: 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:49 These repos currently exist on a target: ["KDE:KDE4:UNSTABLE:Desktop.repo", "openSUSE 11.1-0.repo", "openSUSE:Tools.repo", "repo-debug.repo", "repo-oss.repo", "FATE.repo", "openSUSE Fa ctory.repo", "repo-source.repo", "openSUSE 11.2-0.repo", "repo-non-oss.repo", "repo-update.repo"] 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/KDE:KDE4:UNSTABLE:Desktop.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/openSUSE 11.1-0.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/openSUSE:Tools.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/repo-debug.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/repo-oss.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/FATE.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/openSUSE Factory.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/repo-source.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/openSUSE 11.2-0.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/repo-non-oss.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:74 Removing target repository /etc/zypp/repos.d/repo-update.repo 2009-11-17 11:55:24 <1> f229.suse.de(3452) [YCP] clients/pkg_finish.ycp:82 All old repositories were removed from the target -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c4 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |lslezak@novell.com Info Provider| |mls@novell.com --- Comment #4 from Lukas Ocilka <locilka@novell.com> 2009-11-23 10:14:40 UTC --- It seems to be correct. Please, attach YaST logs and not only the 'relevant part'. Thanks in advance. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c5 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|mls@novell.com | --- Comment #5 from Michael Schröder <mls@novell.com> 2009-11-23 10:25:51 UTC --- Could you please read the initial description of this bug? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c6 --- Comment #6 from Michael Schröder <mls@novell.com> 2009-11-23 10:28:35 UTC --- Created an attachment (id=328930) --> (http://bugzilla.novell.com/attachment.cgi?id=328930) y2log -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c7 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #7 from Lukas Ocilka <locilka@novell.com> 2009-11-24 12:52:30 UTC --- This is actually the relevant part: 2009-11-17 11:55:23 <1> f229.suse.de(3452) [Pkg] clients/inst_extrasources.ycp:192 Pkg Builtin called: SourceSaveAll Bad luck, it cannot be fixed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c8 --- Comment #8 from Michael Schröder <mls@novell.com> 2009-11-24 13:44:47 UTC --- Argh, what are you talking about? Please read the initial description: This is about BackUpAllTargetSources(): - it removes old repos instead of disabling them - it removes them by just deleting the .repo file instead of calling libzypp to do the job. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c9 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com AssignedTo|locilka@novell.com |lslezak@novell.com --- Comment #9 from Lukas Ocilka <locilka@novell.com> 2009-11-24 14:10:41 UTC --- 1.) During the initial stage of update, client inst_upgrade_urls is called and correctly registers previously used repositories, e.g., KDE:KDE4:UNSTABLE:Desktop 2.) Later, at the end of the installation, pkg_finish.ycp calls inst_extrasources which adds the repositories defined by product. Repositories are then saved by Pkg::SourceSaveAll. You can see, for instance KDE:KDE4:UNSTABLE:Desktop being saved. 3.) Then a backup of configuration of repositories is done, configurations are removed and Pkg::SourceSaveAll is called to finally save the "current" configuration. It's actually a mistake that #3 is called after #2 - it should be vice versa. Anyway, saving all the sources dumps only the newly added repositories. The real issue seems to be that Pkg::SourceSaveAll does something different in #3 then it does in #2. Lado, please, check what has happened there. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c10 --- Comment #10 from Lukas Ocilka <locilka@novell.com> 2009-11-24 14:13:12 UTC --- Of course, libzypp is intentionally not used to remove the old configurations, the issue is that they "are not old". -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556469 http://bugzilla.novell.com/show_bug.cgi?id=556469#c Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=556469 https://bugzilla.novell.com/show_bug.cgi?id=556469#c11 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|YaST2 |YaST2 AssignedTo|lslezak@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 11.2 |openSUSE 11.3 Summary|Update to 11.2 removes all |Update to 11.3 removes one |old repos |old repo from 11.2 --- Comment #11 from Ladislav Slezak <lslezak@novell.com> 2010-11-11 14:27:18 UTC --- I just have tested update from 11.2 to 11.3 - during the initial workflow I have changed the "remove" state in the repository overview to "disabled" (so the old repositories and not removed but kept in disabled state). After update the old 11.2 repositories were present in the system in disabled state, except one repo that was missing completely. This is a bug in inst_upgrade_urls.ycp - it removes repo with "ID: 0" from the list of upgraded repos. (I guess because it doesn't want to remove the repo which is used for update, see line 1012. The ids are assigned starting from 0, maybe this is the problem...) Also after going back from the upgrade proposal the first repo is marked as "remove" in upgrade repo dialog (although I set it to "disabled" originally). Reassigning to Lukas to fix inst_upgrade_urls.ycp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=556469 https://bugzilla.novell.com/show_bug.cgi?id=556469#c12 --- Comment #12 from Ladislav Slezak <lslezak@novell.com> 2010-11-11 14:30:33 UTC --- Created an attachment (id=399700) --> (http://bugzilla.novell.com/attachment.cgi?id=399700) y2log from update to 11.3 The most important is this part: 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:946 Checking repo: $["alias":"download.opensuse.org-non-oss", "autorefresh":false, "enabled":true, "id":"ID: 0", "initial_url_stat us":"removed", "keeppackages":false, "name":"Main Repository (NON-OSS)", "new_status":"disabled", "type":"yast2", "url":"http://download.opensuse.org/distribution/11.2/repo/non-oss/"] 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:983 Source to add disabled: ID: 0 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:946 Checking repo: $["alias":"openSUSE 11.2-0", "autorefresh":false, "enabled":true, "id":"ID: 1", "initial_url_status":"removed", "keeppackages":false, "name":"openSUSE 11.2-0", "new_status":"disabled", "type":"yast2", "url":"http://fallback.suse.cz/netboot/find/openSUSE-11.2-DVD-x86_64"] 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:983 Source to add disabled: ID: 1 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:946 Checking repo: $["alias":"download.opensuse.org-update", "autorefresh":true, "enabled":true, "id":"ID: 2", "initial_url_status ":"removed", "keeppackages":false, "name":"Main Update Repository", "new_status":"disabled", "type":"rpm-md", "url":"http://download.opensuse.org/update/11.2/"] 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:983 Source to add disabled: ID: 2 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:946 Checking repo: $["alias":"download.opensuse.org-oss", "autorefresh":false, "enabled":true, "id":"ID: 3", "initial_url_status": "removed", "keeppackages":false, "name":"Main Repository (OSS)", "new_status":"disabled", "type":"yast2", "url":"http://download.opensuse.org/distribution/11.2/repo/oss/"] 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:983 Source to add disabled: ID: 3 So there are 4 disabled repos, but then only 3 are actually used: 2010-11-11 09:21:00 <1> dhcp40.suse.cz(2979) [YCP] clients/inst_upgrade_urls.ycp:593 Add ["ID: 1", "ID: 2", "ID: 3"] disabled repos -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=556469 https://bugzilla.novell.com/show_bug.cgi?id=556469#c13 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |locilka@novell.com |ovo.novell.com | --- Comment #13 from Ladislav Slezak <lslezak@novell.com> 2010-11-11 14:32:38 UTC --- Lukas, see comment #11. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=556469 https://bugzilla.novell.com/show_bug.cgi?id=556469#c14 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FEATURE --- Comment #14 from Lukas Ocilka <locilka@novell.com> 2011-01-07 09:48:14 UTC --- Entered as a new feature: FATE #311045: Old-repositories handling during upgrade (inst_upgrade_urls) needs rewriting -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com