Bug 1214429

Summary: zypper lu lists everything updated, zypper lp lists patches, zypper patch has conflict
Product: [openSUSE] openSUSE Distribution Reporter: andreas bittner <abittner>
Component: libzyppAssignee: Mr Maintenance <maintenance>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: meissner
Version: Leap 15.4   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description andreas bittner 2023-08-21 08:30:59 UTC
dont know if anyone still cares for 15.4, but currently, i have (had) a situation where the daily online_update patch script in crond.daily wouldnt be running and would abort due to unresolved question

so i issued a zypper up manually and it updated over 300+ packages/updates that amassed apparently over the last few weeks or so.

eventually i tried again zypper lu  - shows everything uptodate, but zypper lp shows patches pending and zypper patch comes up with queston to be answered about conflict, missing stuff etc.

this somehow reminds me of my other bug at <https://bugzilla.opensuse.org/show_bug.cgi?id=1202448> with 15.4 all the same.


-----------

zypper lu
Loading repository data...
Reading installed packages...
No updates found.

------

zypper lp
Loading repository data...
Reading installed packages...

Repository                                                   | Name                        | Category    | Severity  | Interactive | Status | Since | Summary
-------------------------------------------------------------+-----------------------------+-------------+-----------+-------------+--------+-------+-----------------------------------------
Update repository with updates from SUSE Linux Enterprise 15 | openSUSE-SLE-15.4-2022-2487 | recommended | moderate  | ---         | needed | -     | Recommended update for python-urlgrabber
Update repository with updates from SUSE Linux Enterprise 15 | openSUSE-SLE-15.4-2022-3600 | recommended | moderate  | ---         | needed | -     | Recommended update for python-urlgrabber
Update repository with updates from SUSE Linux Enterprise 15 | openSUSE-SLE-15.4-2023-2190 | recommended | important | ---         | needed | -     | Recommended update for python-urlgrabber

Found 3 applicable patches:
3 patches needed (0 security patches)

---------

zypper patch
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: the to be installed patch:openSUSE-SLE-15.4-2023-2190-1.noarch conflicts with 'python-urlgrabber.noarch < 4.1.0-150400.4.9.1' provided by the installed python-urlgrabber-3.9.1-1.37.noarch
 Solution 1: Following actions will be done:
  do not install patch:openSUSE-SLE-15.4-2023-2190-1.noarch
  do not install patch:openSUSE-SLE-15.4-2022-3600-1.noarch
  do not install patch:openSUSE-SLE-15.4-2022-2487-1.noarch
 Solution 2: deinstallation of python-urlgrabber-3.9.1-1.37.noarch

Choose from above solutions by number or cancel [1/2/c/d/?] (c): ^C

-------

etc/cron.daily/opensuse-online_update   script terminates all the same with "c" cancel....

sane or releated to: https://bugzilla.opensuse.org/show_bug.cgi?id=1202448  ?

thanks.
Comment 1 Marcus Meissner 2023-08-21 09:21:51 UTC
python-urlgrabber-3.9.1-1.37.noarch

 is older than the GA version.

can you run

rpm -qi --qf '%{DISTURL}\n' python-urlgrabber


I think the reason of the conflict is that this package comes from a non leap repo.

So usually the fix would to be to use option 2 from zypper above to switch to the openSUSE version.
Comment 2 andreas bittner 2023-08-21 11:48:04 UTC
just a single hit:

rpm -qi --qf '%{DISTURL}\n' python-urlgrabber
Name        : python-urlgrabber
Version     : 3.9.1
Release     : 1.37
Architecture: noarch
Install Date: Mon 30 Aug 2021 01:59:28 AM CEST
Group       : Development/Languages/Python
Size        : 304495
License     : LGPL-2.1
Signature   : RSA/SHA256, Sat 26 May 2018 07:45:08 PM CEST, Key ID 70af9e8139db7c82
Source RPM  : python-urlgrabber-3.9.1-1.37.src.rpm
Build Date  : Sat 26 May 2018 07:45:01 PM CEST
Build Host  : sheep10
Relocations : (not relocatable)
Packager    : https://www.suse.com/
Vendor      : SUSE LLC <https://www.suse.com/>
URL         : http://urlgrabber.baseurl.org
Summary     : A high-level cross-protocol url-grabber
Description :
A high-level cross-protocol url-grabber for python supporting HTTP, FTP
and file locations.  Features include keepalive, byte ranges,
throttling, authentication, proxies and more.
Distribution: SUSE Linux Enterprise 15
obs://build.suse.de/SUSE:SLE-15:GA/standard/e9884e169c79eb16357604dca54000ab-python-urlgrabber
Comment 3 andreas bittner 2023-08-21 11:49:57 UTC
my zypper lr -d   looks all vanilla default if im not mistaken:




 zypper lr -d
#  | Alias                       | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                     | Service
---+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------+--------
 1 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/update/leap/15.4/backports_debug/          |
 2 | repo-backports-update       | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/backports/                |
 3 | repo-debug                  | Debug Repository                                                                            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.4/repo/oss/     |
 4 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                                                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.4/repo/non-oss/ |
 5 | repo-debug-update           | Update Repository (Debug)                                                                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/oss/                |
 6 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                                          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/non-oss/            |
 7 | repo-non-oss                | Non-OSS Repository                                                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/       |
 8 | repo-oss                    | Main Repository                                                                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/oss/           |
 9 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/sle/                |
10 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/sle/                      |
11 | repo-source                 | Source Repository                                                                           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.4/repo/oss/    |
12 | repo-update                 | Main Update Repository                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/oss/                      |
13 | repo-update-non-oss         | Update Repository (Non-Oss)                                                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/non-oss/                  |
Comment 4 Marcus Meissner 2023-08-21 12:26:20 UTC
hmm, ok sle15 ga version

did you migrate the system to 15.4 or was this a fresh install?
Comment 5 andreas bittner 2023-08-21 12:34:19 UTC
yes migrated, this system is long grown i guess. zypper dup from remote back then.
Comment 6 andreas bittner 2023-08-21 12:37:43 UTC
i have old log data, i can offer the following grep hits:

/var/log/zypp # zgrep -i grabber history-20210908.xz
2011-04-16 14:21:55|install|python-urlgrabber|3.1.0-178.8|i586||openSUSE 11.1-0|62079b7196473f9a1d72b064e4e6251df227e67a
2011-04-16 14:52:33|install|python-urlgrabber|3.1.0-182.1|noarch||openSUSE 11.2-0|0884b5829436d4c9e9dba76ec2954073986552f3
2011-04-16 15:26:35|install|python-urlgrabber|3.1.0-185.1|noarch||openSUSE-11.3 11.3-1.82|737c12c394e58dc70fbe1b878c837823f8b7ac19
2011-04-16 21:58:27|install|python-urlgrabber|3.1.0-188.1|noarch||repo-oss|b9dfe1142a9ae9e6b0f0d0b2aeb26e6a0251ae14
2011-04-16 22:16:24|install|python-urlgrabber|3.1.0-188.1|noarch|10589:y2base|repo-oss|b9dfe1142a9ae9e6b0f0d0b2aeb26e6a0251ae14
2012-08-18 13:38:26|install|python-urlgrabber|3.9.1-2.1.2|noarch||openSUSE-12.1-12.1-1.4|ee8deaa989ba1154c80a2955d645bce744f9e12f
2013-06-18 19:42:13|install|python-urlgrabber|3.9.1-4.1.1|noarch||repo-oss|2af4d8a3f5b7b7553c6a2ebfb8b71d11f0ea3a81065f092058092ab804177bac
2013-06-19 15:56:36|install|python-urlgrabber|3.9.1-7.2.1|noarch||repo-oss|0e930293206a3caf88a67d87c7345c26b6531feabcd988b79bb7e707eaa2c7bc
2014-11-01 17:58:30|install|python-urlgrabber|3.9.1-10.1.2|noarch||repo-oss|7a631231b91c6a6e49c885e4771dfa55d3bbffc719feb43092a18d68f772b79a|
2014-11-02 19:56:51|install|python-urlgrabber|3.9.1-12.2.2|noarch||repo-oss|403e10ec1cb595990c259e48bfffdfe7555e5b6e|
2015-11-08 03:07:34|install|python-urlgrabber|3.9.1-13.1|noarch||42.1-oss|624a72723a8b9787a7f909f72d67221abad69206|
2017-02-01 18:08:21|install|python-urlgrabber|3.9.1-14.3|noarch||42.1-oss|93de390901465f755702bcff0b158b3ab4b7a103|
2017-07-23 20:22:58|install|python-urlgrabber|3.9.1-16.4|noarch||42.1-oss|f4f6352686e255d598b169a614349ec4cae828c0|
# 2018-05-26 18:04:36 python-urlgrabber-3.9.1-lp150.1.7.noarch.rpm installed ok
2018-05-26 18:04:36|install|python-urlgrabber|3.9.1-lp150.1.7|noarch||42.1-oss|05524c9fe228bf5c17e3263545ff0cc9a4dd246c77c6500e9177bae2b33194a6|
2019-05-17 17:12:49|install|python-urlgrabber|3.9.1-lp151.2.1|noarch||15.0-oss|aeef9654028199735c5346d2a0ee43e855f11e070a49da195a3d4b1f95dba104|
2020-06-28 04:40:24|install|python-urlgrabber|3.9.1-lp152.3.3|noarch||main-oss-15.2|01f3b2b2e0fc44883b07d7e2231a59d3d5896f57ed28a32abf30af2d5447bbe0|
2021-08-30 01:59:28|install|python-urlgrabber|3.9.1-1.37|noarch||repo-oss|a7c7a587a35ca3191ee43e54c0ff01798f900506787aaae8bd26ac5cb8652fc7|
Comment 7 andreas bittner 2023-08-21 12:39:22 UTC
and there is no grabber results at all in the still used and current history file in there. so nothing after august 2021. odd?
Comment 8 Michael Andres 2023-08-24 15:08:55 UTC
(In reply to Marcus Meissner from comment #1)
> I think the reason of the conflict is that this package comes from a non
> leap repo.
> 
> So usually the fix would to be to use option 2 from zypper above to switch
> to the openSUSE version.

But this may just fix the symptom, but most probably not the cause.

This is most probably a duplicate of bug#1202448. We should IMO not recommend using online_update because it lacks feedback to the user if a patch fails. From there on the system stays without any updates at all and likely no one recognizes it.