Bug 2236057 - Failed to preset virtsecretd/virtsecretd*.socket service when installing libvirt pkgs
Summary: Failed to preset virtsecretd/virtsecretd*.socket service when installing libv...
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Andrea Bolognani
QA Contact: Lili Zhu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-30 09:10 UTC by yafu
Modified: 2023-09-04 02:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version: 9.7.0
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-166925 0 None None None 2023-08-30 09:18:14 UTC

Description yafu 2023-08-30 09:10:45 UTC
Description of problem:
Failed to preset virtsecretd/virtsecretd*.socket service when installing libvirt pkgs. It is caused by spelling mistake: "virsecretd" should be "virtsecretd"

Version-Release number of selected component (if applicable):
libvirt-9.5.0-6.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Install libvirt pkgs:
#dnf -y install libvirt*
...
Running scriptlet: libvirt-daemon-driver-secret-9.5.0-6.el9.x86_64                                                                      145/145 
Failed to preset unit: Unit file ***virsecretd.socket*** does not exist.
Failed to preset unit: Unit file ***virsecretd-ro.socket*** does not exist.
Failed to preset unit: Unit file ***virsecretd-admin.socket*** does not exist.
Failed to preset unit: Unit file ***virsecretd.service*** does not exist.
...

2.Check the service status of virtsecretd.socket:
# systemctl status virtsecretd.socket
○ virtsecretd.socket - Libvirt secret local socket
     Loaded: loaded (/usr/lib/systemd/system/virtsecretd.socket; disabled; preset: enabled)
     Active: inactive (dead)
   Triggers: ● virtsecretd.service
     Listen: /run/libvirt/virtsecretd-sock (Stream)


3.

Actual results:
Failed to preset virtsecretd/virtsecretd*.socket service when installing libvirt pkgs because of spelling mistake for 'virtsecretd'.

Expected results:
Preset virtsecretd/virtsecretd*.socket service when installing libvirt pkgs and virtsecretd.socket service should be enabled after installing.

Additional info:
It's a regression issue. Can not reproduced with libvirt-9.5.0-6.el9.x86_64

Comment 1 Andrea Bolognani 2023-08-30 15:40:30 UTC
(In reply to yafu from comment #0)
> Failed to preset virtsecretd/virtsecretd*.socket service when installing
> libvirt pkgs. It is caused by spelling mistake: "virsecretd" should be
> "virtsecretd"

Good catch!

I'll prepare and push a fix upstream right away.

Comment 2 Andrea Bolognani 2023-08-30 16:04:42 UTC
Fix pushed upstream.

  commit e7d26c5dcd3b988fa02ac1e45baf2f9934623381
  Author: Andrea Bolognani <abologna>
  Date:   Wed Aug 30 17:41:14 2023 +0200

    rpm: Fix typo in daemon name
    
    The name of the virtsecretd daemon was misspelled, resulting
    in multiple errors during installation:
    
      Running scriptlet: libvirt-daemon-driver-secret-9.5.0-6.el9.x86_64
      Failed to preset unit: Unit file virsecretd.socket does not exist.
      Failed to preset unit: Unit file virsecretd-ro.socket does not exist.
      Failed to preset unit: Unit file virsecretd-admin.socket does not exist.
      Failed to preset unit: Unit file virsecretd.service does not exist.
    
    Spell the name correctly.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=2236057
    
    Signed-off-by: Andrea Bolognani <abologna>

  v9.7.0-rc2-1-ge7d26c5dcd

Comment 5 Andrea Bolognani 2023-08-31 13:23:53 UTC
Backport posted.

  https://gitlab.com/redhat/centos-stream/src/libvirt/-/merge_requests/9


Note You need to log in before you can comment on or make changes to this bug.