Bug 1142696 - hosted-engine --deploy fails due to missing vdsm certificates
Summary: hosted-engine --deploy fails due to missing vdsm certificates
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-hosted-engine-setup
Version: 3.5
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 3.5.0
Assignee: Sandro Bonazzola
QA Contact: meital avital
URL:
Whiteboard: integration
Depends On:
Blocks: 1139020
TreeView+ depends on / blocked
 
Reported: 2014-09-17 08:41 UTC by Antoni Segura Puimedon
Modified: 2014-12-08 00:53 UTC (History)
8 users (show)

Fixed In Version: ovirt-3.5.0_rc3
Clone Of:
Environment:
Last Closed: 2014-10-17 12:24:21 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 32592 0 master MERGED packaging: setup: fix late setup stages ordering Never
oVirt gerrit 33074 0 ovirt-hosted-engine-setup-1.2 MERGED packaging: setup: fix late setup stages ordering Never

Description Antoni Segura Puimedon 2014-09-17 08:41:32 UTC
Description of problem:
after doing yum install ovirt-hosted-engine-setup, doing hosted-engine --deploy fails due to missing vdsm certs.

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.2.0-0.1.master.20140908073936.git480e272.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1.Set up the 3rd test day repo
2.yum install ovirt-hosted-engine-setup
3.hosted-engine --deploy

Actual results:
    [root@dell-r210ii-07 ~]# hosted-engine --deploy
    [ INFO  ] Stage: Initializing
              Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.
              Are you sure you want to continue? (Yes, No)[Yes]:
    [ INFO  ] Generating a temporary VNC password.
    [ INFO  ] Stage: Environment setup
              Configuration files: []
              Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140917102902-mqafce.log
              Version: otopi-1.3.0_master (otopi-1.3.0-0.0.master.20140911.git7c7d631.el6)
    [ INFO  ] Hardware supports virtualization
    [ INFO  ] Stage: Environment packages setup
    [ INFO  ] Stage: Programs detection
    [ INFO  ] Stage: Environment setup
    [ INFO  ] Generating VDSM certificates
    [ ERROR ] Failed to execute stage 'Environment setup': [Errno 2] No such file or directory: '/etc/pki/vdsm/certs/cacert.pem'
    [ INFO  ] Stage: Clean up
    [ INFO  ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
    [ INFO  ] Answer file '/etc/ovirt-hosted-engine/answers.conf' has been updated
    [ INFO  ] Stage: Pre-termination
    [ INFO  ] Stage: Termination
    [root@dell-r210ii-07 ~]# 

Expected results:
    Get to the stage where it asks installation questions


Additional info:
    It is possible to work around this issue by doing:
        vdsm-tool configure --force
    which regenerates the certs.

Comment 1 Sandro Bonazzola 2014-09-18 14:24:16 UTC
Re targeting to 3.5.1 since a simple workaround exist: 
run 
# vdsm-tool configure --force
before
# hosted-engine --deploy

Comment 2 Sandro Bonazzola 2014-10-17 12:24:21 UTC
oVirt 3.5 has been released and should include the fix for this issue.


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