Bug 1832517

Summary: after failed deployment /etc/libvirt/qemu.conf has stalled entries to vnc certs
Product: Red Hat Enterprise Virtualization Manager Reporter: Joachim von Thadden <j.thadden>
Component: ovirt-hosted-engine-setupAssignee: Asaf Rachmani <arachman>
Status: CLOSED DUPLICATE QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: high    
Version: 4.4.0CC: lsurette, rbarry, sbonazzo
Target Milestone: ovirt-4.4.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-14 08:42:49 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:

Description Joachim von Thadden 2020-05-06 18:37:31 UTC
Description of problem:
After a failed installation of the hosted engine, there are remaining entries in /etc/libvirt/qemu.conf about certs:

/etc/libvirt/qemu.conf:vnc_tls=1
/etc/libvirt/qemu.conf:vnc_tls_x509_cert_dir="/etc/pki/vdsm/libvirt-vnc"

They are not removed by issuing ovirt-hosted-engine-cleanup and inhibit a re-run of the deployment.

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

How reproducible:
always

Steps to Reproduce:
1. run hosted-engine --deploy
2. if it fails, run ovirt-hosted-engine-cleanup
3. tail /etc/libvirt/qemu.conf to see remaining entries
4. run hosted-engine --deploy again and it will fail

Actual results:
re-deployment fails

Expected results:
re-deployment succeeds

Additional info:
Workaround: remove last 4 lines of /etc/libvirt/qemu.conf and re-deploy

Comment 1 Ryan Barry 2020-05-07 12:23:30 UTC
Sandro, why would a bug about HE installation failing be virt?

Comment 2 Sandro Bonazzola 2020-05-13 15:23:20 UTC
(In reply to Ryan Barry from comment #1)
> Sandro, why would a bug about HE installation failing be virt?

I think I just moved the wrong bug. Reverting my changes.

Comment 3 Sandro Bonazzola 2020-05-14 07:08:10 UTC
Can you please attach logs of the failed deployment?

Comment 4 Sandro Bonazzola 2020-05-14 08:42:49 UTC
Closing as duplicate of bug #1634742

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

Comment 5 Red Hat Bugzilla 2023-09-14 05:57:35 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days