Bug 1218291

Summary: Does `zypper ps -s ` work correctly ?
Product: [openSUSE] openSUSE Distribution Reporter: Jane Cean <info>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jane Cean 2023-12-21 08:09:20 UTC
I've run in xfce4-terminal in Xorg:
[code]
zypper patch --category security 
Loading repository data...
Reading installed packages...
Patch 'openSUSE-SLE-15.5-2023-4927-1' is not in the specified category.
Patch 'openSUSE-SLE-15.5-2023-4913-1' is not in the specified category.
Resolving package dependencies...

The following 5 packages are going to be upgraded:
  ghostscript ghostscript-x11 xorg-x11-server xorg-x11-server-Xvfb xorg-x11-server-extra

The following 2 NEW patches are going to be installed:
  openSUSE-SLE-15.5-2023-4920 openSUSE-SLE-15.5-2023-4925

5 packages to upgrade.
Overall download size: 21.2 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: ghostscript-9.52-150000.177.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
                                                                                                        (1/5),  17.9 MiB    
Retrieving delta: ./x86_64/ghostscript-9.52-150000.173.2_150000.177.1.x86_64.drpm, 223.7 KiB
Retrieving: ghostscript-9.52-150000.173.2_150000.177.1.x86_64.drpm .......................................[done (2.0 MiB/s)]
Applying delta: ./ghostscript-9.52-150000.173.2_150000.177.1.x86_64.drpm .............................................[done]
Retrieving: ghostscript-x11-9.52-150000.177.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
                                                                                                        (2/5),  80.5 KiB    
Retrieving: ghostscript-x11-9.52-150000.177.1.x86_64.rpm .................................................[done (1.2 MiB/s)]
Retrieving: xorg-x11-server-Xvfb-21.1.4-150500.7.13.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
                                                                                                        (3/5), 803.0 KiB    
Retrieving delta: ./x86_64/xorg-x11-server-Xvfb-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm, 83.5 KiB
Retrieving: xorg-x11-server-Xvfb-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm .........................[done (15.0 KiB/s)]
Applying delta: ./xorg-x11-server-Xvfb-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm ................................[done]
Retrieving: xorg-x11-server-extra-21.1.4-150500.7.13.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
                                                                                                        (4/5),   1.1 MiB    
Retrieving delta: ./x86_64/xorg-x11-server-extra-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm, 98.9 KiB
Retrieving: xorg-x11-server-extra-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm .....................................[done]
Applying delta: ./xorg-x11-server-extra-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm ...............................[done]
Retrieving: xorg-x11-server-21.1.4-150500.7.13.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
                                                                                                        (5/5),   1.4 MiB    
Retrieving delta: ./x86_64/xorg-x11-server-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm, 98.9 KiB
Retrieving: xorg-x11-server-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm ...........................................[done]
Applying delta: ./xorg-x11-server-21.1.4-150500.7.10.1_150500.7.13.1.x86_64.drpm .....................................[done]

Checking for file conflicts: .........................................................................................[done]
(1/5) Installing: ghostscript-9.52-150000.177.1.x86_64 ...............................................................[done]
(2/5) Installing: ghostscript-x11-9.52-150000.177.1.x86_64 ...........................................................[done]
(3/5) Installing: xorg-x11-server-Xvfb-21.1.4-150500.7.13.1.x86_64 ...................................................[done]
(4/5) Installing: xorg-x11-server-extra-21.1.4-150500.7.13.1.x86_64 ..................................................[done]
Updating /etc/sysconfig/displaymanager ...
(5/5) Installing: xorg-x11-server-21.1.4-150500.7.13.1.x86_64 ........................................................[done]
 

zypper ps -s
No processes using deleted files found.

No core libraries or services have been updated since the last system boot.
Reboot is probably not necessary. 
[/code]

I expected Xorg was necessary to restart.

Happens in Tumbleweed 64 bit too.
Comment 1 Michael Andres 2023-12-22 14:55:39 UTC
You're absolutely right. This is how it should probably look like:

> PID   | PPID | UID | User | Command             | Service         | Files
> ------+------+-----+------+---------------------+-----------------+-----------------------------------------------------
> 1767  | 1758 | 0   | root | Xorg (deleted)      | display-manager | /usr/lib64/xorg/modules/extensions/xorg/xorg-libgl->
>       |      |     |      |                     |                 | /usr/lib64/xorg/modules/drivers/modesetting_drv.so
>       |      |     |      |                     |                 | /usr/lib64/xorg/modules/libglamoregl.so
>       |      |     |      |                     |                 | /usr/lib64/xorg/modules/libfb.so
>       |      |     |      |                     |                 | /usr/bin/Xorg (deleted)

The code wrongly assumes Xorg is running in a container.
Comment 2 Michael Andres 2023-12-22 15:43:52 UTC
https://github.com/openSUSE/libzypp/pull/508
Comment 3 Michael Andres 2023-12-22 16:13:31 UTC
fixed for libzypp-17.31.27
Comment 5 Jane Cean 2023-12-23 08:02:20 UTC
Thank you.
Comment 6 Maintenance Automation 2024-01-05 16:30:01 UTC
SUSE-RU-2024:0043-1: An update that has six fixes can now be installed.

Category: recommended (moderate)
Bug References: 1212160, 1215294, 1216412, 1217593, 1217873, 1218291
Sources used:
SUSE Linux Enterprise Server 15 SP2 (src): libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Server 15 SP3 (src): libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Enterprise Storage 7.1 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Micro 5.1 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Micro 5.2 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2
SUSE Linux Enterprise Micro for Rancher 5.2 (src): zypper-1.14.68-150200.70.2, libzypp-17.31.27-150200.84.1, libsolv-0.7.27-150200.23.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Maintenance Automation 2024-01-05 16:30:04 UTC
SUSE-RU-2024:0042-1: An update that has six fixes can now be installed.

Category: recommended (moderate)
Bug References: 1212160, 1215294, 1216412, 1217593, 1217873, 1218291
Sources used:
SUSE Linux Enterprise Server 15 SP1 (src): libzypp-17.31.27-150100.3.125.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): libzypp-17.31.27-150100.3.125.1, zypper-1.14.68-150100.3.93.2
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): libzypp-17.31.27-150100.3.125.1, zypper-1.14.68-150100.3.93.2
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): libzypp-17.31.27-150100.3.125.1, zypper-1.14.68-150100.3.93.2
SUSE CaaS Platform 4.0 (src): libzypp-17.31.27-150100.3.125.1, zypper-1.14.68-150100.3.93.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Maintenance Automation 2024-01-11 12:30:05 UTC
SUSE-RU-2024:0088-1: An update that has six fixes can now be installed.

Category: recommended (moderate)
Bug References: 1212160, 1215294, 1216412, 1217593, 1217873, 1218291
Sources used:
openSUSE Leap 15.5 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise High Performance Computing 15 SP4 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Server 15 SP4 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Manager Server 4.3 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Desktop 15 SP4 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Manager Retail Branch Server 4.3 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Manager Proxy 4.3 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise High Performance Computing 15 SP5 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Server 15 SP5 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Server for SAP Applications 15 SP5 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Desktop 15 SP5 (src): libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Micro for Rancher 5.3 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Micro 5.3 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Micro for Rancher 5.4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Micro 5.4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Micro 5.5 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
Basesystem Module 15-SP5 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
Development Tools Module 15-SP5 (src): libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Real Time 15 SP4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
openSUSE Leap 15.4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
openSUSE Leap Micro 5.3 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2
openSUSE Leap Micro 5.4 (src): zypper-1.14.68-150400.3.40.2, libzypp-17.31.27-150400.3.49.1, libsolv-0.7.27-150400.3.11.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.