Bug 1846587 - 7.2 KVM Guest Image sshd.service not auto start after system reboot, even though it is enabled.
Summary: 7.2 KVM Guest Image sshd.service not auto start after system reboot, even tho...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-12 01:34 UTC by Jia Jian
Modified: 2020-06-23 14:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-23 14:38:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
systemd debug log (2.03 MB, text/plain)
2020-06-17 09:45 UTC, Jia Jian
no flags Details
My test vm sosreport (9.21 MB, application/x-xz)
2020-06-17 09:45 UTC, Jia Jian
no flags Details

Description Jia Jian 2020-06-12 01:34:56 UTC
Description of problem:
7.2 KVM Guest Image sshd.service not auto start after system reboot, even though it is enabled. 

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


How reproducible:
create a vm using RHEL 7.2 KVM Guest Image.

Steps to Reproduce:

1. Download RHEL 7.2 KVM Guest Image (SHA-256 Checksum: d4f931701ab3ab61bd958dc859518978eac40cef535f7a40d4017342409c1a27):
   https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.2/x86_64/product-software

2. Create a KVM guest with the image, change root password using guestfish tool, the link is:
   https://access.redhat.com/discussions/664843

3. root login, we can see sshd.service not auto start, even though reboot system.
[root@localhost ~]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name              
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1233/master                   
tcp6       0      0 ::1:25                  :::*                    LISTEN      1233/master 

[root@localhost ~]# systemctl is-enabled sshd.service
enabled
[root@localhost ~]# systemctl is-enabled sshd.socket 
disabled


Actual results:

sshd.service not auto start.

Expected results:

sshd.service should auto start.

Additional info:

- Tried the KCS, but not work:
        https://access.redhat.com/solutions/2534851
 
- RHEL 7.5 KVM Guest Image sshd.service could auto start.

Comment 2 Jia Jian 2020-06-15 01:59:25 UTC
Hi team, 

Any updates? 

If you need any other data, please let me know, thanks in advance.

Best regards,
Jian Jia

Comment 8 Jia Jian 2020-06-17 09:45:02 UTC
Created attachment 1697779 [details]
systemd debug log

Comment 9 Jia Jian 2020-06-17 09:45:57 UTC
Created attachment 1697780 [details]
My test vm sosreport

Comment 11 Jakub Jelen 2020-06-17 12:01:08 UTC
Only note that I found in that log related to sshd is the following:

[    4.824065] systemd[1]: Looking at job sshd-keygen.service/stop conflicted_by=no
[    4.824076] systemd[1]: Looking at job sshd-keygen.service/start conflicted_by=no
[    4.824082] systemd[1]: Fixing conflicting jobs sshd-keygen.service/stop,sshd-keygen.service/start by deleting job sshd-keygen.service/stop

then I do not see any information that it would be actually attempted to start.

sshd starts as part of multi-user.target as visible above. In your log, I see that it is queued

[    4.824535] systemd[1]: Installed new job sshd-keygen.service/start as 176
[    4.824684] systemd[1]: Installed new job multi-user.target/start as 96
[    4.824787] systemd[1]: Installed new job sshd.service/start as 175

But never executed. This does not even got to the start of sshd nor sshd-keygen so I will move this to systemd and hope systemd developers will be able to assist further.


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