Bug 13507 - [AnolisOS23] Abnormal behavior of the cockpit-bridge package in Anolis OS 23.
Summary: [AnolisOS23] Abnormal behavior of the cockpit-bridge package in Anolis OS 23.
Status: CONFIRMED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-14 12:25 UTC by young_estt
Modified: 2025-01-17 16:46 UTC (History)
1 user (show)

See Also:


Attachments
Differential reports of cockpit-bridge (180.42 KB, application/pdf)
2025-01-14 12:25 UTC, young_estt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description young_estt 2025-01-14 12:25:10 UTC
Created attachment 1278 [details]
Differential reports of cockpit-bridge

Description of problem:
Versify tool detection report: 
After installing cockpit-bridge.x86_64 on Anolis OS 23, running the cockpit-bridge --help command results in an error.

Version-Release number of selected component (if applicable):


How reproducible:
$ docker pull registry.openanolis.cn/openanolis/anolisos:23
$ docker run -d registry.openanolis.cn/openanolis/anolisos:23 tail -f /dev/null
$ docker exec -it [docker_id] /bin/bash
$ yum install -y cockpit-bridge
$ cockpit-bridge --help

Steps to Reproduce:
1.
2.
3.

Actual results:
retcode: 1
stdout: 
stderr: Traceback (most recent call last):
File "/usr/bin/cockpit-bridge", line 5, in <module>
from cockpit.bridge import main
File "/usr/lib/python3.11/site-packages/cockpit/bridge.py", line 32, in <module>
from cockpit._vendor.systemd_ctypes import bus, run_async
File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/__init__.py", line 22, in <module>
from .bus import Bus, BusError, BusMessage
File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/bus.py", line 24, in <module>
from . import bustypes, introspection, libsystemd
File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/bustypes.py", line 44, in <module>
from . import libsystemd, typing
File "/usr/lib/python3.11/site-packages/cockpit/_vendor/systemd_ctypes/libsystemd.py", line 326, in <module>
libsystemd = ctypes.CDLL("libsystemd.so.0")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/ctypes/__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libsystemd.so.0: cannot open shared object file: No such file or directory

Expected results:
retcode: 0
stdout: Usage:
cockpit-bridge [OPTION?]

Help Options:
-h, --help              Show help options

Application Options:
--interact=boundary     Interact with the raw protocol
--privileged            Privileged copy of bridge
--packages              Show Cockpit package information
--rules                 Show Cockpit bridge rules
--version               Show Cockpit version information

cockpit-bridge is run automatically inside of a Cockpit session. When
run from the command line one of the options above must be specified.
stderr: 


Additional info:

Analysis and Conclusion:
The cockpit-bridge package depends on systemd-libs (which provides libsystemd.so.0), but this dependency is not explicitly declared in the RPM package of Anolis OS 23, resulting in systemd-libs not being automatically installed.
Comment 1 mgb01105731 2025-01-17 16:46:03 UTC
由于未安装systemd,导致报错,考虑为cockpit添加安装依赖systemd