Bug 693230

Summary: Upgrade of system left rpms installed of old version.
Product: [openSUSE] openSUSE 11.4 Reporter: Carlos Robinson <carlos.e.r>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P4 - Low CC: tgoettlicher
Version: Final   
Target Milestone: Factory   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: List of obsolete rpms

Description Carlos Robinson 2011-05-11 20:11:26 UTC
Created attachment 429183 [details]
List of obsolete rpms

I upgraded an 11.2 to 11.4, using the DVD boot method. I just noticed, while investigating another bug, that I have this rpm from 11.2 still installed:


rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \
   %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \
   %25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}\n" \
  | sort | cut --fields="2-" > rpmlist



Tue Nov 03 2009    Mon Oct 19 2009 ozerocdoff                                       0.4-4.1     x86_64                     openSUSE http://bugs.opensuse.org == openSUSE 11.2 (none)


See the distribution version? It is 11.2. This package is available for 11.4 

This causes Bug 693227

There are 94 packages affected. I'm reviewing the list, some have to be manually upgraded, some removed.
Comment 2 Michael Schröder 2011-05-12 07:57:32 UTC
"ozerocdoff" is not on the 11.4 DVD. The update stack leaves packages that have no "update candidate" installed if they don't conflict with new packages.

(A 'zypper dup' should update the package if the 11.4 oss repo is available)
Comment 3 Carlos Robinson 2011-05-12 08:40:18 UTC
I know that. Nevertheless, the DVD upgrade procedure should mark those rpms for later upgrade, the procedure is not complete.

However, network was available, the procedure could have activate the network repos and updated them.

At worst, the procedure should do a last verification check, find packages that should be upgraded, and somehow inform the user, or somehow mark them for "work later". It is easy enough to find those packages.
Comment 4 Carlos Robinson 2011-05-12 09:52:52 UTC
For the record: I did two upgrade attempts.

The first time I edited the list of disabled repos (the procedure disabled all existing 11.2 repos). I tried editing and activating the packman, oss, and non-oss repos, and proceeded to upgrade. The problem is that the upgrade then attempted to download thousands of packages from internet that were already available in the DVD! It would have taken days with my internet connection.

So I had to abort the upgrade, dd in the backup copy of the partition, and restart the procedure, this time only editing packman repo.


Notice that it is very awkward to activate external repos during the upgrade. The DVD disables all existing repos, while allowing one to edit and reactivate them. It should offer the addition of the standard oss, non-oss repos for the system to be, giving priority to the DVD.

Network discovery is too awkward. Wireless was discovered, but it attempted DHCP before asking for the wifi password. That can not ever work. I had to connect the ethernet cable, which worked instantly.
Comment 5 Michael Andres 2011-05-16 14:34:42 UTC
Repo handling and summary information are probably issues for the YaST UI.
Comment 6 Thomas Göttlicher 2011-06-28 13:27:34 UTC
(In reply to comment #5)
> Repo handling and summary information are probably issues for the YaST UI.
That's done by yast2-packager.
Comment 7 Ladislav Slezák 2011-07-20 13:36:24 UTC
Yast could check if there are upgrade candidates after adding oss and non-oss repos.


"It should offer the addition of the standard oss, non-oss repos for the
system to be, giving priority to the DVD."

Well, some people prefer the opposite (incl. me), because then you can remove the DVD from the drive and use it for different purpose (movie playing etc.) and if you need to install something later you don't have to search for the installation DVD.

But you can override the behavior in /etc/zypp/zypp.conf, see
download.media_preference option.
Comment 8 Carlos Robinson 2011-07-21 21:47:10 UTC
(In reply to comment #7)

> "It should offer the addition of the standard oss, non-oss repos for the
> system to be, giving priority to the DVD."
> 
> Well, some people prefer the opposite (incl. me), because then you can remove
> the DVD from the drive and use it for different purpose (movie playing etc.)
> and if you need to install something later you don't have to search for the
> installation DVD.

That doesn't make sense during the upgrade process, once we have downloaded the DVD precisely to avoid downloading things during the upgrade. Nothing can be played on that phase.

Notice that priorities are different during the upgrade process and during normal usage.


In any case, the priority should be the DVD if the DVD is in the drive, and internet if it is not. And in the case of this report, the DVD was in.


> But you can override the behavior in /etc/zypp/zypp.conf, see
> download.media_preference option.

And how can we do that during the DVD upgrade process?
Comment 9 Ladislav Slezák 2011-08-05 07:55:26 UTC
I have added a new check into yast2-installation-2.21.12, it displays a popup message when a possible update from OSS repository is found. The popup allows to start the software manager and install the updates or to skip it.

The CD/DVD preference has been fixed in yast2-packager-2.21.9.

Though I haven't check it yet in real installation/upgrade, it should be included in openSUSE-12.1 Milestone 4.
Comment 10 Carlos Robinson 2011-08-05 10:32:59 UTC
Thanks!
I can not try this now, I will be out of reach of my computer for a month at least. But I'll try it when I can.
Comment 11 Ladislav Slezák 2011-11-15 10:37:56 UTC
*** Bug 693227 has been marked as a duplicate of this bug. ***