Bug 1859505 - "Replacing the oVirt Engine Apache CA Certificate": engine-backup part is broken
Summary: "Replacing the oVirt Engine Apache CA Certificate": engine-backup part is broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Documentation
Version: 4.4.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.3
: ---
Assignee: Steve Goodman
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks: 1841203
TreeView+ depends on / blocked
 
Reported: 2020-07-22 09:46 UTC by Yedidyah Bar David
Modified: 2020-09-10 11:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-06 10:56:14 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)

Description Yedidyah Bar David 2020-07-22 09:46:12 UTC
Description of problem:

In the procedure to replace Apache CA Cert, we recently added a step (14, currently). It says to create some file, with content:

=========================================================
BACKUP_PATHS="${BACKUP_PATHS}
/etc/ovirt-engine-backup"
cp -f /etc/pki/ovirt-engine/apache-ca.pem
/etc/pki/ca-trust/source/anchors/3rd-party-ca-cert.pem
update-ca-trust
=========================================================

This is broken - the third line and fourth line should be a single long line, or perhaps better, we should add a backslash, e.g.:

=========================================================
BACKUP_PATHS="${BACKUP_PATHS}
/etc/ovirt-engine-backup"
cp -f /etc/pki/ovirt-engine/apache-ca.pem \
    /etc/pki/ca-trust/source/anchors/3rd-party-ca-cert.pem
update-ca-trust
=========================================================

Or, even better, provide concrete command-lines, that users can copy/paste directly, e.g.:

=========================================================
Enable engine-backup to update the system on restore. You can replace '3rd-party-ca-cert' with a more suitable name:

mkdir -p /etc/ovirt-engine-backup/engine-backup-config.d
cat << __EOF__ > \
    /etc/ovirt-engine-backup/engine-backup-config.d/update-system-wide-pki.sh
BACKUP_PATHS="\${BACKUP_PATHS}
/etc/ovirt-engine-backup"
cp -f /etc/pki/ovirt-engine/apache-ca.pem \\
    /etc/pki/ca-trust/source/anchors/3rd-party-ca-cert.pem
update-ca-trust
__EOF__
=========================================================

Comment 2 Steve Goodman 2020-09-03 08:47:33 UTC
Reviewed by Didi in the merge request.

Merged.


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