Bug 440974

Summary: resolver wants to remove uninstalled packages
Product: [openSUSE] openSUSE 11.1 Reporter: Uwe Gansert <ug>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: schubi
Version: Beta 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Uwe Gansert 2008-11-03 09:53:37 UTC
I do an autoyast installation with the following software section:

  <software>
    <patterns config:type="list">
       <pattern>base</pattern>
       <pattern>enhanced_base</pattern>
       <pattern>sw_management</pattern>
    </patterns>
  </software>

the proposal screen shows that the correct patterns are selected but when I start the installation and the package installation should start, an error popup raises up that it's not possible to remove package "yast2-....". Of course it's not possoible to remove the package - not a single package is installed so far. If I click away that error box, the next one raises up with the same text for a different yast2 package.

Logs attached
Comment 1 Uwe Gansert 2008-11-03 09:54:14 UTC
Created attachment 249338 [details]
y2logs
Comment 2 Stefan Schubert 2008-11-18 11:20:44 UTC
The remove requests coming from the package bindings and clients/inst_deploy_image.ycp

2008-11-03 09:39:14 <1> sevy.suse.de(4237) [Pkg] Resolvable_Install.cc(ResolvableInstallOrDelete):278 Removing: package:scpm 
2008-11-03 09:39:14 <1> sevy.suse.de(4237) [YCP] ImageInstallation.ycp:1088 Removing type: `package, name: apparmor-parser version: 2.3.1-1.19
2008-11-03 09:39:14 <1> sevy.suse.de(4237) [Pkg] ImageInstallation.ycp:1090 Pkg Builtin called: ResolvableRemove
2008-11-03 09:39:14 <1> sevy.suse.de(4237) [Pkg] Resolvable_Install.cc(ResolvableInstallOrDelete):278 Removing: package:apparmor-parser 
2008-11-03 09:39:14 <1> sevy.suse.de(4237) [YCP] ImageInstallation.ycp:1088 Removing type: `package, name: audit version: 1.7.7-1.8

Lukas, could you please have a look ?
Comment 3 Uwe Gansert 2008-11-18 12:02:32 UTC
it's very likely that this is fixed. I'll take a look later.
Comment 4 Lukas Ocilka 2008-11-18 13:21:07 UTC
This should be already fixed but ...

It would be nice to say what was actually the reason of this bug:
As you can see in the YaST log, there are several entries like this one:
--- cut ---
ImageInstallation.ycp:1088 Removing type: `package, name: glibc version: 2.8.90-16.2
ImageInstallation.ycp:1090 Pkg Builtin called: ResolvableRemoveResolvable_Install.cc(ResolvableInstallOrDelete):278 Removing: package:glibc
--- cut ---
(removing glibc doesn't seem to be very clever ;) though)

Image installation was selected
ImageInstallation.ycp:761 Images: $[
    "base-i386.tar.lzma":$[
        "file":"base-i386.tar.lzma", "name":"BASE [2]", "type":"tar"
    ], 
    "base-meta-i386.tar.lzma":$[
        "file":"base-meta-i386.tar.lzma", "name":"BASE [1]", "type":"tar"
    ],
    "common-base-i386.tar.lzma":$[
        "file":"common-base-i386.tar.lzma", "name":"BASE [3]", "type":"tar"
    ]
]
Image installation order: ["base-meta-i386.tar.lzma", "base-i386.tar.lzma", "common-base-i386.tar.lzma"]
Image with software management metadata: base-meta-i386.tar.lzma

Later, you can see downloading files from media is broken.

Later, images are deployed...

Deploying image base-meta-i386.tar.lzma to /mnt
Deploying image: Total bytes read: 12247040 (12MiB, 15MiB/s)

Deploying image base-i386.tar.lzma to /mnt
(failed)

Deploying image common-base-i386.tar.lzma to /mnt
(failed)

---

After discussing this issue with LSlezak -> DUPLICATE

*** This bug has been marked as a duplicate of bug 444549 ***