RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 805540 - rhev-h regenerates SSH host keys on every system boot
Summary: rhev-h regenerates SSH host keys on every system boot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Fabian Deutsch
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 834728 (view as bug list)
Depends On: 799333
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-21 14:40 UTC by Marko Myllynen
Modified: 2018-11-27 19:43 UTC (History)
11 users (show)

Fixed In Version: ovirt-node-2.3.0-1.el6
Doc Type: Bug Fix
Doc Text:
Previously, the Hypervisor's SSH key was regenerated on every boot. Now, the SSH key is generated during installation and persisted to disk. This ensures that the key is only generated once.
Clone Of:
Environment:
Last Closed: 2012-07-19 14:19:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0741 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2012-07-19 18:10:46 UTC

Description Marko Myllynen 2012-03-21 14:40:08 UTC
Description of problem:
After installing and configuring rhev-h everything works as expected but if the host is rebooted the SSH host keys are being regenerated on every boot. This can be seen when booting without the rhgb boot parameter or trying to ssh into the host.

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

Comment 1 Mike Burns 2012-03-23 12:06:04 UTC
Patch is available and merged upstream.  Just need backport

Comment 3 Guohua Ouyang 2012-03-31 03:04:27 UTC
Verified on 6.3-20120330.0, 
1. ssh to rhevh host successfully.
2. reboot rhevh host.
3. after rhevh host is up, ssh to rhevh host again is successfully.

try several times, can ssh to rhevh host after reboot it.

set bug status to be verified.

Comment 4 Mike Burns 2012-06-13 16:51:41 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, RHEV-H would regenerate it's ssh keys on every boot.  Now, the ssh key is generated during installation and persisted to disk so that it will not be regenerated each boot.

Comment 5 Stephen Gordon 2012-06-13 19:01:31 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Previously, RHEV-H would regenerate it's ssh keys on every boot.  Now, the ssh key is generated during installation and persisted to disk so that it will not be regenerated each boot.+Previously, the Hypervisor's SSH key would be regenerated on every boot.  Now, the SSH key is generated during installation and persisted to disk so that it will not be regenerated each time the Hypervisor boots.

Comment 6 Stephen Gordon 2012-06-13 19:04:48 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Previously, the Hypervisor's SSH key would be regenerated on every boot.  Now, the SSH key is generated during installation and persisted to disk so that it will not be regenerated each time the Hypervisor boots.+Previously, the Hypervisor's SSH key was regenerated on every boot. Now, the SSH key is generated during installation and persisted to disk. This ensures that the key is only generated once.

Comment 7 Mike Burns 2012-06-22 23:34:32 UTC
*** Bug 834728 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2012-07-19 14:19:41 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.

http://rhn.redhat.com/errata/RHBA-2012-0741.html


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