Bug 1225267 - openSUSE-release and sles-release can be removed and updated even with zypper lock applied
Summary: openSUSE-release and sles-release can be removed and updated even with zypper...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-24 15:37 UTC by Vanda Barata
Modified: 2024-07-15 15:50 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vanda Barata 2024-05-24 15:37:13 UTC
This issue is happening on both SLES 15 SP4 and openSUSE Leap 15.4, as well as Tumbleweed.

Zypper is able to lock, and resolve the locks, for the `sles-release` package and the `openSUSE-release` package (on their OS respectively), but the packages can still be upgraded and removed.

`zypper ll --solvables` shows the lock
-------------------------------------------------------------------------
7  | openSUSE-release    | 3       | package | (any)      | 
    Keep installed : openSUSE-release-15.4-lp154.166.1.x86_64 (@System)
    Do not install : [2]
        openSUSE-release-15.4-lp154.166.1.x86_64 (repo-update)
        openSUSE-release-15.4-lp154.153.1.x86_64 (repo-oss)
-------------------------------------------------------------------------
but when saving the testcase, it doesn't containt said lock, and it's possible to remove the package.

If the product itself is locked (shipped by the release package), it can't be removed, as expected:
-------------------------------------------------------------------------
hobbes:~ (0)# zypper al product:Leap
Specified lock has been successfully added.
hobbes:~ (0)# zypper in -- -openSUSE-release
Problem: 1: conflicting requests
 Solution 1: Following actions will be done:
  remove lock to allow removal of product:Leap-15.4-1.x86_64
  remove lock to allow removal of product:Leap-15.4-1.x86_64
 Solution 2: do not ask to delete all solvables providing openSUSE-release.x86_64 = 15.4-lp154.166.1
-------------------------------------------------------------------------

It seems the product lock is applied to the -release package but not the other way around.
Comment 1 Michael Andres 2024-07-03 13:06:28 UTC
https://github.com/openSUSE/libzypp/pull/558
Comment 2 Michael Andres 2024-07-04 08:03:44 UTC
fixed in zypper-1.14.77