Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1694034

Summary: Hosted engine deploy failed with RHVH STIG security profile
Product: [oVirt] ovirt-ansible-collection Reporter: Wei Wang <weiwang>
Component: hosted-engine-setupAssignee: Ido Rosenzwig <irosenzw>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Wang <weiwang>
Severity: urgent Docs Contact: Tahlia Richardson <trichard>
Priority: urgent    
Version: unspecifiedCC: bugs, cshao, huzhao, jikwang, qiyuan, sbonazzo, sborella, stirabos, weiwang, yaniwang, ycui, yturgema, yunyang
Target Milestone: ovirt-4.3.3Flags: sbonazzo: ovirt-4.3?
cshao: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-hosted-engine-setup-1.0.15 Doc Type: Bug Fix
Doc Text:
This fix updates the appliance password hash algorithm to SHA-256.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-16 13:58:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1591693    
Attachments:
Description Flags
Log file none

Description Wei Wang 2019-03-29 10:46:02 UTC
Created attachment 1549408 [details]
Log file

Description of problem:
Hosted engine deploy failed when RHVH security profile is selected STIG.
During the installation, if a user selects security profile as "STIG for Red Hat Virtualization Hypervisor", it will disable the ssh root login by adding "PermitRootLogin No" in the sshd_config. Deploy HE, it will fail at "Hash the appliance root password" ansible task no matter enable the root login or not.

ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-2019229172024-9gswwx.log
2019-03-29 17:24:38,530+0800 ERROR ansible failed {'status': 'FAILED', 'ansible_type': 'task', 'ansible_task': u'Hash the appliance root password', 'ansible_result': u'type: <type \'dict\'>\nstr: {\'changed\': True, \'censored\': "the output has been hidden due to the fact that \'no_log: true\' was specified for this result"}', 'task_duration': 1, 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml'}

Version-Release number of selected component (if applicable):
RHVH-4.3-20190328.0-RHVH-x86_64-dvd1.iso
cockpit-system-176-4.el7.noarch
cockpit-ws-176-4.el7.x86_64
cockpit-bridge-176-4.el7.x86_64
cockpit-storaged-176-4.el7.noarch
cockpit-ovirt-dashboard-0.12.6-1.el7ev.noarch
cockpit-machines-ovirt-176-4.el7.noarch
cockpit-dashboard-176-4.el7.x86_64
cockpit-176-4.el7.x86_64
ovirt-hosted-engine-setup-2.3.7-1.el7ev.noarch
ovirt-hosted-engine-ha-2.3.1-1.el7ev.noarch
rhvm-appliance-4.3-20190328.1.el7.rpm

How reproducible:
100%

Steps to Reproduce:
1. Clean install RHVH-4.3-20190328.0-RHVH-x86_64-dvd1.iso
2. Select "security profile" as "STIG for Red Hat Virtualization Hypervisor" while installing RHV-H.
3. Check the "PermitRootLogin" value is "no" in the sshd_config.
4. Deploy hosted-engine via cockpit UI

Actual results:
Hosted engine deploy failed when RHVH security profile is selected STIG.

Expected results:
Hosted engine deploy successfully when RHVH security profile is selected STIG.


Additional info:
1.The bug cannot reproduced with normal RHVH installation.
2.If changing the "PermitRootLogin" value to "yes" in the sshd_config, the bug can be reproduced.

Comment 4 Wei Wang 2019-04-10 03:42:12 UTC
Test Version
RHVH-4.3-20190404.1-RHVH-x86_64-dvd1.iso
cockpit-system-176-4.el7.noarch
cockpit-ws-176-4.el7.x86_64
cockpit-bridge-176-4.el7.x86_64
cockpit-storaged-176-4.el7.noarch
cockpit-ovirt-dashboard-0.12.7-1.el7ev.noarch
cockpit-machines-ovirt-176-4.el7.noarch
cockpit-dashboard-176-4.el7.x86_64
cockpit-176-4.el7.x86_64
ovirt-hosted-engine-ha-2.3.1-1.el7ev.noarch
ovirt-hosted-engine-setup-2.3.7-1.el7ev.noarch
rhvm-appliance-4.3-20190404.1.el7.x86_64

Test Steps:
According to comment 0

Result:
Hosted engine deploy successfully when RHVH security profile is selected STIG.

Bug is fixed, move it to "VERIFIED"

Comment 5 Sandro Bonazzola 2019-04-16 13:58:27 UTC
This bugzilla is included in oVirt 4.3.3 release, published on April 16th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.3 release, it has been closed with a resolution of CURRENT RELEASE.

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