Bug 780979

Summary: zypper dup from 12.1 to 12.2 failing for openssh
Product: [openSUSE] openSUSE 12.2 Reporter: Christian Wittmer <chris>
Component: NetworkAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper log with info about zypper dup

Description Christian Wittmer 2012-09-18 16:26:12 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

did 'zypper dup' from 12.1 to 12.2 and after reboot a 'zypper up', but
but openssh is still version from 12.1 and can not be started.

Sep 18 18:00:15 linux-uh1y sshd[2105]: Starting SSH daemonOpenSSL version mismatch. Built against 1000005f, you have 1000103f
Sep 18 18:00:15 linux-uh1y startproc: startproc:  exit status of parent of /usr/sbin/sshd: 255
Sep 18 18:00:15 linux-uh1y sshd[2105]: ..failed
Sep 18 18:00:15 linux-uh1y systemd[1]: sshd.service: control process exited, code=exited status=7
Sep 18 18:00:15 linux-uh1y systemd[1]: Unit sshd.service entered failed state.

Reproducible: Always

Steps to Reproduce:
1.install 12.1 +updates
2.add 12.2 repos
3.run zypper dup
4.reboot
5.run zypper up
Actual Results:  
openssh and openssh-askpass did not get updated.
And a remote driven 'zypper dup' is impossible cause there won't be a working sshd afterwards.

Expected Results:  
openssh and openssh-askpass should get updated.

And a manual update of openssh via yast is failing cause of version conflict in conjunction with openssh-askpass.
Comment 2 Michael Andres 2012-09-20 07:30:06 UTC
@Christian: Sounds like something blocks the update of openssh-askpass.

- If the issue is still unsolved (old openssh installed), please create and attach a solver testcase:
    # zypper in --debug-solver nopackage
    ...
    Generating solver test case...
    Solver test case generated successfully at /var/log/zypper.solverTestCase.  


- If you already managed to install the new packages please attach the zypper log that shows the failed openssh install. 

To see the execution dates and zypper commands included in a logfile you can  install the zypper-log package (available since zypper-1.6.11) and execute:

    zypper-log -l <logfile>

NOTE: zypper-log prior to 1.8.1 is not able to read lzma compressed logfiles
(.xz). In this case you can use `xzgrep` to find the execution dates and zypper commands:

    grep   main.cc /var/log/zypper.log
    xzgrep main.cc  /var/log/zypper.log-*.xz
    bzgrep main.cc  /var/log/zypper.log-*.bz2
    zgrep  main.cc  /var/log/zypper.log-*.gz
Comment 3 Jiaying Ren 2012-11-05 03:13:21 UTC
Long time no response.So closed. Feel free to reopen it.Thanks:)
Comment 4 Christian Wittmer 2012-11-05 11:32:59 UTC
not so fast with old people ;)
Comment 5 Jiaying Ren 2012-11-08 02:21:35 UTC
(In reply to comment #4)
> not so fast with old people ;)
Welcome back~~~ :-)
Comment 6 Christian Wittmer 2012-11-10 20:34:55 UTC
Created attachment 512763 [details]
zypper log with info about zypper dup

attached zypper.log of the system.
Hope will find in there what you are looking for.
If not, then tell me I will try to do it again.
Comment 7 Michael Andres 2013-09-30 15:46:37 UTC
 - alias       : i121_upd
 - enabled     : 1
 - url         : http://192.168.105.20/pub/opensuse/update/12.1
 - type        : rpm-md
 - priority    : 25

It's been due to the i121_upd repo which had priority 25, higher than the 12.2 repos (priority 99). So available packages were taken from i121_upd rather than the 12.2 repo.

Old distro repos should be disabled upon 'zypper dup'.