Bug 828389

Summary: zypper dup tries to reinstall old version of kernel
Product: [openSUSE] openSUSE 12.3 Reporter: Markus Koßmann <markus.kossmann>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: list of installed kernels
zypper testcase part1
zypper testcase part2
zypper testcase part3
zypper testcase part4

Description Markus Koßmann 2013-07-07 19:10:58 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

zypper dup tries to install kernel version 3.7.10-1.11.1 even if the latest official update 3.7.10-1.16.1 is already installed. There also two additional newer kernels ( 3.9.8-1.1.gf3348a8 and 3.10.0-1.1.g3dcd746) from deactivated kernel-stable repo installed ( output  of rpm -qa | grep kernel attached as file installed-kernels). I've attached a zypper testcase

Reproducible: Always

Steps to Reproduce:
1.kernela instalels as described
2.zypper 
3.
Actual Results:  
zypper dup tries to reinstall old version of kernel

Expected Results:  
zypper dup shouldn't install another kernel version
Comment 1 Markus Koßmann 2013-07-07 19:11:50 UTC
Created attachment 547014 [details]
list of installed kernels
Comment 2 Markus Koßmann 2013-07-07 19:24:45 UTC
unfortunately the testcase is 37MB and the limit for upload is 10MB. How can I provide the testcase ?
Comment 3 Michael Andres 2013-07-08 09:03:21 UTC
In case the testcase exceeds the 10MB limit for bugzilla uploads, you can use 'split' to divide the file into smaller pieces:

  $ cd /tmp
  $ tar cvjf zypper.solverTestCase.tar.bz2 /var/log/zypper.solverTestCase/
  $ split -b 9M --additional-suffix=-zypper.solverTestCase.tar.bz2 \
    zypper.solverTestCase.tar.bz2

The created pieces will be named like this:
  xaa-zypper.solverTestCase.tar.bz2
  xab-zypper.solverTestCase.tar.bz2
  xac-zypper.solverTestCase.tar.bz2
  ...
Comment 4 Markus Koßmann 2013-07-08 16:21:43 UTC
Created attachment 547149 [details]
zypper testcase part1
Comment 5 Markus Koßmann 2013-07-08 16:24:23 UTC
Created attachment 547150 [details]
zypper testcase part2
Comment 6 Markus Koßmann 2013-07-08 16:40:10 UTC
Created attachment 547154 [details]
zypper testcase part3
Comment 7 Markus Koßmann 2013-07-08 16:42:54 UTC
Created attachment 547155 [details]
zypper testcase part4
Comment 8 Michael Andres 2013-07-09 14:41:43 UTC
>!> Solution :
>!> install kernel-desktop-3.7.10-1.11.1.x86_64[openSUSE:12.3:Update]
>!> install kernel-desktop-devel-3.7.10-1.11.1.x86_64[openSUSE:12.3:Update]
>!> install kernel-devel-3.7.10-1.11.1.noarch[openSUSE:12.3:Update]
>!> install kernel-source-3.7.10-1.11.1.noarch[openSUSE:12.3:Update]
>!> install libpng15-compat-devel-1.5.13-3.1.1.x86_64[repo-oss]
>!> install lomoco-1.0-118.1.1.x86_64[repo-oss]
>!> install mkinitrd-2.7.2-3.2.1.x86_64[repo-oss]
>!> update mkinitrd-2.7.2-219.1.x86_64

Michael, please have a look. kernel-desktop-3.7.10-1.16.1.x86_64 is installed and available in openSUSE:12.3:Update.
Comment 9 Michael Schröder 2013-07-10 14:57:15 UTC
Oh well. It's a lobsolv bug. Fixed in current git, will reach 12.3 with the next maintenance update.
(It only happens if a multiversion package is available in repositories that have different priorities.)
Comment 10 Benjamin Brunner 2013-07-26 12:34:37 UTC
Update released for openSUSE 12.3. Resolved fixed.
Comment 11 Swamp Workflow Management 2013-07-26 13:07:17 UTC
openSUSE-RU-2013:1259-1: An update that has 14 recommended fixes can now be installed.

Category: recommended (low)
Bug References: 640403,741758,779740,793809,798290,803316,811997,812608,819354,820444,824110,825490,827609,828389
CVE References: 
Sources used:
openSUSE 12.3 (src):    libqdialogsolver1-1.3.1-2.10.2, libsolv-0.3.2-2.10.1, libzypp-12.13.3-1.11.1, libzypp-bindings-0.5.14-1.10.1, libzypp-testsuite-tools-4.3.1-2.10.2, zypp-plugin-0.3-8.11.1, zypper-1.8.16-1.10.1