[Bug 210552] New: Package Selections are still shown after update to 10.2
https://bugzilla.novell.com/show_bug.cgi?id=210552 Summary: Package Selections are still shown after update to 10.2 Product: openSUSE 10.2 Version: Alpha 5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wstephenson@novell.com QAContact: jsrain@novell.com Hi, I updated from 10.2 to Alpha4 and then Alpha5, and I still have a Selections entry in the yast package manager dropdown. What info do you need to troubleshoot it? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 stbinner@suse.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stbinner@suse.de ------- Comment #1 from stbinner@suse.de 2006-10-06 08:06 MST ------- Same for my workstation which is successive updated from 9.3 or so... -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |wstephenson@novell.com ------- Comment #2 from cthiel@novell.com 2006-10-09 02:06 MST ------- Please provide YaST2 logs as per http://en.openSUSE.org/Bugs/YaST and be more specific on what's wrong. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #3 from wstephenson@novell.com 2006-10-12 06:58 MST ------- Created an attachment (id=101305) --> (https://bugzilla.novell.com/attachment.cgi?id=101305&action=view) yast2 log The problem is that in the yast "Software Managment" module (sw_single) both Patterns and the Selections they replace are selectable in the main view combo box. Shouldn't Selections be removed by now? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #4 from stbinner@suse.de 2006-10-12 08:09 MST ------- What not do the real fix and remove local selection definition cruft during update? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |jsrain@novell.com |screening@forge.provo.novell| |.com | Status|NEEDINFO |NEW Info Provider|wstephenson@novell.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 jsrain@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@novell.com |aj@novell.com Status|ASSIGNED |NEW ------- Comment #5 from jsrain@novell.com 2006-10-25 03:01 MST ------- Removing selections is not the right approach. There may be selections comming from add-on products. The right appropach is to obsolete/provide the 10.1 selections by respective patterns. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@novell.com Status|NEW |NEEDINFO Info Provider| |jsrain@novell.com ------- Comment #6 from aj@novell.com 2006-10-25 03:08 MST ------- How can I remove selections coming from third party add-on products? Could you tell me what should be done exactly? Just give me an example and I'll do the rest ;-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 jsrain@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|jsrain@novell.com |dmacvicar@novell.com ------- Comment #7 from jsrain@novell.com 2006-10-25 06:34 MST ------- And do you want to remove such selection? IMO we should remove only our selection and keep the 3rd party selections installed, or? Duncan, can Obsoletes/Provides for selection be specified in the SUSEtags pattern metadata? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 dmacvicar@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dmacvicar@novell.com | ------- Comment #8 from dmacvicar@novell.com 2006-10-25 07:00 MST ------- The tags are Obs and Prv -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |dmacvicar@novell.com ------- Comment #9 from aj@novell.com 2006-10-25 07:11 MST ------- TEll me *exactly* what I should do. E.g. add to pattern basesystem the following: +Obs: list of all selections from 10.1 (with version numberS) example for this -Obs: +Prv: list of all exampe for this. -Prv: Just consider I'm really dumb ;-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #10 from aj@novell.com 2006-10-27 10:00 MST ------- So, what should I add there as obsoletes/provides: Voip-10.1-67 Voip <= 10.1 Voip Or what else? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkaempf@novell.com, dmacvicar@novell.com AssignedTo|aj@novell.com |jsrain@novell.com Severity|Normal |Blocker Status|NEEDINFO |NEW Info Provider|dmacvicar@novell.com | ------- Comment #11 from aj@novell.com 2006-11-09 06:34 MST ------- Klaus and myself discussed this and we think that during an update from pre-10.2 to 10.2 we should do: * Delete all installed selections * Delete all installed patches We do not handle selections anymore, let's not try to read old ones. Jiri, can you get this done until monday as part of yast2-update so that we can test it next week? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #12 from aj@novell.com 2006-11-09 06:36 MST ------- Note this is for all future products, we should *always* do: * Deletion of all installed patches * Deletion of all installed selections Patterns do not need to be touched, they will be updated. This might need further discussions for SPs. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 jsrain@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@novell.com |locilka@novell.com ------- Comment #13 from jsrain@novell.com 2006-11-09 07:46 MST ------- I think this can be fixed during tomorrow (uninstalling all patches/selections can be done before packages get updated). Lukas, please, have a look. Note that if there is an add-on product, it also deletes its patches. However, the updated packages keep installed, so it doesn't break the add-on product being up-to-date. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #14 from locilka@novell.com 2006-11-09 09:36 MST ------- Solution is ready, however it needs to be properly tested (At least with updated 10.1 maybe also with some other version). Bugfix can be expected by Friday afternoon. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |lslezak@novell.com ------- Comment #15 from locilka@novell.com 2006-11-09 10:25 MST ------- Hmm, testing on 10.1: Removing `patch-es removes [atom]s and [patch]es - OK However removing `selection-s removes also [package]s - Wrong :( Needs to be consulted with lslezak. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #16 from kkaempf@novell.com 2006-11-09 13:07 MST ------- I guess for selections and patches, we need a brute-force approach of directly accessing the zypp database on the to-be-upgraded partition, prior to starting libzypp on that partition. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #17 from suse-beta@cboltz.de 2006-11-09 15:53 MST ------- Sounds somewhat hackish ;-) Does zypp support something like the rpm --justdb (and/or --nodeps for the selections)? If yes, it should be the preferred way ;-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #18 from locilka@novell.com 2006-11-10 00:40 MST ------- Created an attachment (id=104603) --> (https://bugzilla.novell.com/attachment.cgi?id=104603&action=view) Testcase -- YCP Script Run the installation with Linuxrc parameter: start_shell=1 Then run: `/usr/lib/YaST2/bin/y2base /path/to/update_remove.ycp qt` See y2log... If you try to run this on a running and updated 10.1 machine, you will have to change two things: 1.) string target = "/mnt"; -> string target = "/"; 2.) Pkg::TargetInitialize (target); -> Pkg::TargetInit (target, false); -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #19 from locilka@novell.com 2006-11-10 00:42 MST ------- Created an attachment (id=104604) --> (https://bugzilla.novell.com/attachment.cgi?id=104604&action=view) Y2log from running this script in the inst-sys ~(There is a fully-updated 10.1 mounted in /mnt)~ -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 lslezak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@novell.com, ma@novell.com Info Provider|lslezak@novell.com |kkaempf@novell.com ------- Comment #20 from lslezak@novell.com 2006-11-10 02:59 MST ------- The problem with uninstalling packages could be solved using Pkg::PkgNeutral(), but I think that the problem should be solved in a better way. I just have tested a possibility of using zypp::storage::PersistentStorage directly. Using the storage it's possible to operate on the libzypp DB level (something like "rpm --justdb" as is mentioned in comment #17) and remove resolvables without touching the filesystem (except the DB). I propose a new pkg-binding Pkg::TargetStoreRemove(symbol kind), which will remove all resolvables of the kind (e.g. `patch, `selection). If we do not want global remove I can add "name" parameter. To remove the selection from the updated system we would use Pkg::TargetStoreRemove(`selection). But I'm not sure about patches, if they add new files to the system they should be probably cleanly uninstalled (using Pkg::ResolvableRemove). Someone from zypp team should comment my solution... -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #21 from lslezak@novell.com 2006-11-10 03:01 MST ------- Created an attachment (id=104619) --> (https://bugzilla.novell.com/attachment.cgi?id=104619&action=view) excerpt of Pkg::TargetStoreRemove() Here is code of the proposed binding. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 kkaempf@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|kkaempf@novell.com |ma@novell.com ------- Comment #22 from kkaempf@novell.com 2006-11-13 02:40 MST ------- comment #17,#20: Agreed, something like '--justdb' is probably the right approach. Michael, please have a look and comment. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 ------- Comment #23 from locilka@novell.com 2006-11-13 02:49 MST ------- OK, we are already implementing this solution: Patches will be removed one-by-one with Pkg::ResolvableRemove() call because there might be some additional files (added by patches) that needs to be removed. This is the right way to remove an installed patch. Selections will be removed by Pkg::TargetStoreRemove() call which only removes the information about selection but not the selection itself. This functionality will be called just before the installation of packages (in inst_rpmcopy script) is started (actually after the target is initialized). It will be called in both first and second stages because ... hmm it is safer :) and JSrain tells that some files/patches could stay there... It will be done and pre-tested today. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210552 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|ma@novell.com | Resolution| |FIXED ------- Comment #24 from locilka@novell.com 2006-11-13 05:23 MST ------- Hmm, calling Pkg::ResolvableRemove() just didn't work because it tried to also call some scripts, restart zmd, etc. Used fix: Calling Pkg::TargetStoreRemove() for both patches and selections (works) because this is the only way... This will be in yast2-packager-2.14.6 and yast2-package-bindings-2.14.0 Just testing... and it seems to work well. I'll reopen the bug by myself if it doesn't work. For now -> FIXED. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com