Bug 551606

Summary: Calling yast wagon on a current system deletes packages
Product: [openSUSE] openSUSE 11.2 Reporter: Lars Müller <lmuelle>
Component: YaST2Assignee: Stephan Kulow <coolo>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P2 - High CC: locilka
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs as created with save_y2logs

Description Lars Müller 2009-10-30 22:18:43 UTC
Calling yast wagon on a current system deletes packages without asking the user.
Comment 1 Lars Müller 2009-10-30 22:22:56 UTC
Created attachment 324961 [details]
y2logs as created with save_y2logs
Comment 2 Lars Müller 2009-10-30 22:25:52 UTC
The same system was updated from 11.1 to 11.2 RC 1 (via DVD) and next to 11.2 RC (via the instructions as available at http://lizards.opensuse.org/2009/10/29/updating-from-factory-to-opensuse-11-2/).
Comment 3 Lukas Ocilka 2009-11-03 12:31:35 UTC
Wagon doesn't decide what to do with packages, that's solver. And additionally, Wagon is again (similarly to installation or update) just a framework for other modules. Reporting how many packages will be upgraded/deleted/... is work for software proposal.
Comment 4 Michael Andres 2009-11-03 14:51:14 UTC
The log does not tell me what yast is doing. The first action zypp is asked to perform is committing 69 packages tagged to delete. I suppose yast asked the solver to performed a dist upgrade. That's why zypp is also writing a testcase to /var/log/updateTestcase-2009-10-30-23-15-06.

Before I see SlideShowCallbacks.ycp and PackageInstallation.ycp being active, but Ladislav should know better what yast is doing there.

just guessing: maybe yast omits any popup because no package is to be installed, not checking if there are removals.
Comment 5 Ladislav Slezák 2009-11-18 15:59:44 UTC
Lars, what is the exact problem? I don't know how exactly Wagon works but on my system it displays a summary before installing the packages. So you can simply abort the module when you don't like the proposed upgrade.

But in my case the summary is:

Packages to Update: 0
New Packages to Install: 0
Packages to Remove: 0
Total Size of Packages to Update: 48.7 MB

But when I go the package selection there are 8 packages to update.

So I guess the real problem is the wrong summary. Could you comment on that?
(The log is not complete for some reason, the beginning is missing.)
Comment 6 Lars Müller 2009-11-18 16:07:06 UTC
I've not gotten such a summary.

I called yast wagon by curiosity and after clicking ok it started to uninstall packages.  No warning message and without an summary what will happen.

The system was already upgraded to openSUSE 11.2 but several packages from 11.1 had still been installed at that time.
Comment 7 Ladislav Slezák 2009-11-18 16:25:26 UTC
Lukas, is it possible to start package installation in Wagon without the proposal dialog? It looks strange...
Comment 8 Lukas Ocilka 2009-11-19 09:03:49 UTC
Yes, wagon uses this workflow:

1.) Update libzypp and wagon itself
2.) Restart wagon
3.) Run software proposal
4.) Upgrade the system

Wagon is an online migration tool for SLE 11 to its Service Pack
Comment 9 Ladislav Slezák 2009-11-19 12:13:35 UTC
So it seems that the packages were removed during the first step when it should just update the update stack.

Reassigning to Lukas to fix/improve Wagon (in case this is a supported scenario...)
Comment 10 Lukas Ocilka 2009-11-19 12:31:41 UTC
openSUSE is not supported scenario for WAGON
Comment 11 Lars Müller 2009-11-19 13:30:21 UTC
If that's the case please ensure to exclude it from the packages provided at download.openSUSE.org.
Comment 12 Stephan Kulow 2009-12-02 19:26:23 UTC
not supported does not mean not available.