Bug 1655003 - Failed to start OpenSSH server daemon
Summary: Failed to start OpenSSH server daemon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.2.8
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ovirt-4.3.0
: ---
Assignee: Yuval Turgeman
QA Contact: cshao
URL:
Whiteboard:
Depends On:
Blocks: 1658053
TreeView+ depends on / blocked
 
Reported: 2018-11-30 10:12 UTC by chyan
Modified: 2019-05-08 12:32 UTC (History)
9 users (show)

Fixed In Version: imgbased-1.1.3
Doc Type: Bug Fix
Doc Text:
Cause: vdsm-tool may change /etc/group resulting in a changed label for selinux Consequence: Openssh fails when trying to run chgrp for creating the host keys Fix: Move selinux relabel after calling vdsm-tool Result: /etc/group has the right selinux label, and the system is stable
Clone Of:
: 1658053 (view as bug list)
Environment:
Last Closed: 2019-05-08 12:32:23 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot, ks file and log related (781.53 KB, application/x-gzip)
2018-11-30 10:12 UTC, chyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:1053 0 None None None 2019-05-08 12:32:35 UTC
oVirt gerrit 95954 0 master MERGED osupdater: call relabel_selinux at the very end 2018-12-10 13:10:38 UTC
oVirt gerrit 95957 0 ovirt-4.2 MERGED osupdater: call relabel_selinux at the very end 2018-12-10 13:10:29 UTC
oVirt gerrit 96878 0 None None None 2019-01-15 09:37:55 UTC

Description chyan 2018-11-30 10:12:42 UTC
Created attachment 1510098 [details]
screenshot, ks file and log related

Description of problem:
1.RHVH 4.2.8 installed in local machine, the status of service sshd : activating(auto-restart),Failed to start OpenSSH server daemon.
2.RHVH 4.2.8 installed in vm, the status of service sshd: inactive(dead).
2.RHVH4.2.7 installed, the status of service sshd : active(running)

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.2.8-20181128.0.el7_6



How reproducible:
100%
Regression bug
Keywords: sshd

 Steps to Reproduce:
1. install redhat-virtualization-host-4.2.8-20181128.0 via ks.
2. enter command "service sshd status"


Actual results:

1.local machine:Active:activating(auto-restart)
Nov 30 07:10:58 systemctl[1]:Failed to start OpenSSH server daemon.
2. VM (see attachment )

Expected results:

active(running)

Comment 8 chyan 2019-01-14 10:56:16 UTC
The bug still exists.

Version:
1.Red Hat Virtualization Host 4.3.0(el7.6)
2.imgbase layout:rhvh-4.3.0.2-0.20190109

Steps to Reproduce:
1. install redhat-virtualization-host-4.2.8-20181128.0 via ks.
2. enter command "service sshd status"

Comment 9 Yuval Turgeman 2019-01-14 11:50:17 UTC
(In reply to chyan from comment #8)
> The bug still exists.
> 
> Version:
> 1.Red Hat Virtualization Host 4.3.0(el7.6)
> 2.imgbase layout:rhvh-4.3.0.2-0.20190109
> 
> Steps to Reproduce:
> 1. install redhat-virtualization-host-4.2.8-20181128.0 via ks.
> 2. enter command "service sshd status"

4.2.8 or 4.3 ?

Comment 10 cshao 2019-01-14 12:58:42 UTC
(In reply to Yuval Turgeman from comment #9)
> (In reply to chyan from comment #8)
> > The bug still exists.
> > 
> > Version:
> > 1.Red Hat Virtualization Host 4.3.0(el7.6)
> > 2.imgbase layout:rhvh-4.3.0.2-0.20190109
> > 
> > Steps to Reproduce:
> > 1. install redhat-virtualization-host-4.2.8-20181128.0 via ks.
> > 2. enter command "service sshd status"
> 
> 4.2.8 or 4.3 ?

RHVH 4.3 (redhat-virtualization-host-4.3-20190109.0.el7_6)
imgbased-1.1.2-0.1.el7ev

Comment 11 chyan 2019-01-15 02:17:41 UTC
Sorry I commented wrong, the steps to reproduce should be:
1. install redhat-virtualization-host-4.3-20190109.0.el7_6 via ks.
2. enter command "service sshd status"

Comment 12 Sandro Bonazzola 2019-01-15 09:11:23 UTC
According to Martin, this may be caused by system running out of entropy. Are you testing in a VM? If so can you run rngd on the host to ensure some more entropy is generated?

Comment 13 Sandro Bonazzola 2019-01-15 09:12:06 UTC
does it work with selinux disabled?

Comment 14 Yuval Turgeman 2019-01-15 09:37:56 UTC
vdsm-tool configure during installation (in anaconda) changes the context for some essential files.  In imgbased-1.1.3 we relabel those files after vdsm-tool.

Comment 15 chyan 2019-01-15 10:47:52 UTC
(In reply to Sandro Bonazzola from comment #12)
> According to Martin, this may be caused by system running out of entropy.
> Are you testing in a VM? If so can you run rngd on the host to ensure some
> more entropy is generated?

I am testing in physical machine and the probability to be reproduced is about 33%.
Machine version:
1.hp-dl385pg8(active)
2.dell-per730(active)
3.dell-OPTIPLEX-790(activating)

(In reply to Sandro Bonazzola from comment #13)
> does it work with selinux disabled?
No, it doesn't.

Comment 16 chyan 2019-01-18 11:17:31 UTC
Verified this bug:
1. install redhat-virtualization-host-4.3-20190115.0.el7_6 via ks or iso.
2. enter command "service sshd status"

Result:active(running)

The physical machine (dell-OPTIPLEX-790) and vm encountered this problem beforealso work fine now.

Comment 19 errata-xmlrpc 2019-05-08 12:32:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:1053


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