Bug 1306301 - Hosted engine setup fails after first failed installation (workaround: remove empty /etc/pki/vdsm/libvirt-spice/server-cert.pem)
Summary: Hosted engine setup fails after first failed installation (workaround: remove...
Keywords:
Status: CLOSED DUPLICATE of bug 1001181
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 3.5.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-3.6.5
: ---
Assignee: Simone Tiraboschi
QA Contact: Ilanit Stein
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-10 14:00 UTC by Roman Hodain
Modified: 2016-03-22 13:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-22 13:29:48 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Roman Hodain 2016-02-10 14:00:29 UTC
Description of problem:
When the hoseted-engine --deploy fails on RHEV-H the second attempt to configure the hosted engine always fails with the following ERROR:

2016-02-10 10:40:55 DEBUG otopi.plugins.ovirt_hosted_engine_setup.pki.vdsmpki plugin.execute:932 execute-output: ('/bin/openssl', 'x50
9', '-noout', '-text', '-in', '/etc/pki/vdsm/libvirt-spice/server-cert.pem') stdout:


2016-02-10 10:40:55 DEBUG otopi.plugins.ovirt_hosted_engine_setup.pki.vdsmpki plugin.execute:937 execute-output: ('/bin/openssl', 'x50
9', '-noout', '-text', '-in', '/etc/pki/vdsm/libvirt-spice/server-cert.pem') stderr:
unable to load certificate
140287306053536:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE

2016-02-10 10:40:55 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
  File "/usr/share/ovirt-hosted-engine-setup/plugins/ovirt-hosted-engine-setup/pki/vdsmpki.py", line 281, in _late_setup
  File "/usr/share/ovirt-hosted-engine-setup/plugins/ovirt-hosted-engine-setup/pki/vdsmpki.py", line 126, in _getSPICEcerts
  File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 942, in execute
RuntimeError: Command '/bin/openssl' failed to execute


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

ovirt-node-plugin-hosted-engine-0.2.0-18.0.el7ev.noarch
ovirt-hosted-engine-setup-1.2.6.1-1.el7ev.noarch

How reproducible:
depends on the timing

Steps to Reproduce:
1.Start the deploy 
2.Interrupted the deployment by Ctrl+c combination.

Actual results:
The ERROR above

Expected results:
hosted engine does a proper cleaning before it starts or when it is interrupted.

Additional info:
issue is caused by existing file
     /etc/pki/vdsm/libvirt-spice/server-cert.pem
which is empty. When the file is removed, the deployment can be started again.

Comment 1 Sandro Bonazzola 2016-02-15 11:00:03 UTC
Roman, does this happen on RHEV-H only? Or on RHEL as well?

Comment 2 Roman Hodain 2016-02-15 13:13:45 UTC
(In reply to Sandro Bonazzola from comment #1)
> Roman, does this happen on RHEV-H only? Or on RHEL as well?

No idea I did not hit this in RHEL, but it does not seem to be RHEV-H related.

Comment 3 Simone Tiraboschi 2016-03-22 13:29:48 UTC

*** This bug has been marked as a duplicate of bug 1001181 ***


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