Bug 1530630 - [downstream clone - 4.1.9] vdsm-tool remove-config does not revert changes
Summary: [downstream clone - 4.1.9] vdsm-tool remove-config does not revert changes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ovirt-4.1.9
: ---
Assignee: Yaniv Bronhaim
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On: 1528816
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-03 14:25 UTC by rhev-integ
Modified: 2019-05-16 12:55 UTC (History)
9 users (show)

Fixed In Version: vdsm v4.19.44
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1528816
Environment:
Last Closed: 2018-01-24 14:44:27 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0136 0 normal SHIPPED_LIVE VDSM bug fix and enhancement update 4.1.9 2018-01-24 19:39:10 UTC
oVirt gerrit 85719 0 master MERGED configurator: adding removeConf to libvirt and abrt 2018-01-03 14:25:46 UTC
oVirt gerrit 85767 0 ovirt-4.2.0 ABANDONED configurator: adding removeConf to libvirt and abrt 2018-01-03 14:25:46 UTC
oVirt gerrit 85970 0 ovirt-4.1 MERGED configurator: adding removeConf to libvirt and abrt 2018-01-09 07:41:15 UTC

Description rhev-integ 2018-01-03 14:25:33 UTC
+++ This bug is an upstream to downstream clone. The original bug is: +++
+++   bug 1528816 +++
======================================================================

Description of problem:

See bug 1528813.

ovirt-hosted-engine-cleanup calls 'vdsm-tool remove-config', but this leaves at least some files changed by vdsm with the changes.

First one I noticed is that libvirtd fails to start with:

Dec 24 13:21:57 lvc7host1.home.local libvirtd[16297]: 2017-12-24 11:21:57.641+0000: 16297: error : virNetTLSContextCheckCertFile:120 : Cannot read CA certificate '/etc/pki/vdsm/certs/cacert.pem': No such file or directory

Because /etc/libvirt/libvirtd.conf has:

## beginning of configuration section by vdsm-4.20.0
auth_unix_rw="sasl"
ca_file="/etc/pki/vdsm/certs/cacert.pem"
cert_file="/etc/pki/vdsm/certs/vdsmcert.pem"
host_uuid="88f843a0-fdda-4eb2-bdb4-b6edacd7ad6e"
keepalive_interval=-1
key_file="/etc/pki/vdsm/keys/vdsmkey.pem"
unix_sock_group="qemu"
unix_sock_rw_perms="0770"
## end of configuration section by vdsm-4.20.0

which is not removed, while the cleanup script later does remove vdsmcert.pem , so libvirtd fails to read it.

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

Current master

How reproducible:

Not sure, I think always

Steps to Reproduce:
1. deploy hosted-engine. It's probably enough to 'vdsm-tool configure --force'.
2. vdsm-tool remove-config
3.

Actual results:

All configuration files changed by (1.) are reverted to their original state.

Expected results:

At least some are not.

Additional info:

(Originally by didi)

Comment 1 Petr Matyáš 2018-01-16 11:51:09 UTC
Verified on vdsm-4.19.44-1.el7ev.x86_64

Comment 4 errata-xmlrpc 2018-01-24 14:44:27 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.

https://access.redhat.com/errata/RHEA-2018:0136

Comment 5 Franta Kust 2019-05-16 12:55:19 UTC
BZ<2>Jira re-sync


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