Bug 1452182
Summary: | engine-backup restores pki packaged files | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Yedidyah Bar David <didi> |
Component: | Backup-Restore.Engine | Assignee: | Yedidyah Bar David <didi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Lucie Leistnerova <lleistne> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.1.2.2 | CC: | bugs, didi, lleistne, lsvaty, stirabos |
Target Milestone: | ovirt-4.1.3 | Flags: | rule-engine:
ovirt-4.1+
lsvaty: testing_ack+ |
Target Release: | 4.1.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
engine-backup --mode=restore used to restore/overwrite also the following files, which are packaged in ovirt-engine-backend:
/etc/pki/ovirt-engine/cacert.template.in
/etc/pki/ovirt-engine/cert.template.in
/etc/pki/ovirt-engine/openssl.conf
These files are marked '%config(noreplace)' in the spec file, so if the user changed them, rpm/yum will not overwrite them with the updated version, keeping the user's version. In this context, 'engine-backup --more=restore' is considered a manual change by the user.
Consequence:
When restoring with version X a backup taken with version Y, where these files where different, the backed up version will be kept, instead of the newer version from version X.
Fix:
These files are now excluded from 'engine-backup --mode=restore'.
Result:
The new version of the files will not be overwritten by restore.
Additional notes:
Main implication of current bug is that in 4.1.2 we changed cert.template.in, for bug 1449084.
So taking a backup with 4.1.1 or earlier and restoring it with 4.1.2 will cause current bug. To work around this in 4.1.2:
Restore the backup
rm /etc/pki/ovirt-engine/cert.template.in
yum reinstall ovirt-engine-backend
engine-setup
This is not needed when restoring with 4.1.3 or a later version, where the bug is fixed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-07-06 13:41:47 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
Yedidyah Bar David
2017-05-18 13:38:02 UTC
This bug probably exists since 3.3 or so, but was not discovered so far because we rarely change these files. However, we recently changed them - for bug 1449084 (4.1.2) and for sha256 [1] (4.1.0). [1] https://www.ovirt.org/documentation/how-to/migrate-pki-to-sha256/ The linked patch is enough if the bug is included in 4.1.2. If we fix in 4.1.3, we might want to consider what to do with an already-existing bad file from previous restore to 4.1.2 - since, as explained above, it's not overwritten by updates (because of '%config(noreplace)'). Updated doc text adding a workaround for 4.1.2. engine-backup doesn't overwrite files cacert.template.in, cert.template.in and openssl.conf. Issue with backup - setup - cleanup - setup was not reproduced. verified in ovirt-engine-4.1.3.2-0.1.el7.noarch |