Bug 1866745

Summary: Configure imageio backend http CA file
Product: [oVirt] ovirt-engine Reporter: Vojtech Juranek <vjuranek>
Component: PKIAssignee: Vojtech Juranek <vjuranek>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.2.1CC: bugs, nsoffer, pkubica, sfishbai, tnisan
Target Milestone: ovirt-4.4.2Flags: pm-rhel: ovirt-4.4+
Target Release: 4.4.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.2.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-18 07:12:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vojtech Juranek 2020-08-06 09:10:10 UTC
Imageio added option to configure CA file for backend HTTP in release 2.0.10-1. This is needed in case used wants to use own PKI files for engine, see BZ #1862107 for more details. Configure this option in engine's imageio config (/etc/ovirt-imageio/conf.d/50-engine.conf) and set it to default engine CA.

Comment 1 Nir Soffer 2020-08-18 12:07:31 UTC
Fixing milestone, this is included in ovirt 4.4.2, and there is
no reason to wait for ovirt 4.4.3 for it.

Comment 2 Petr Kubica 2020-08-19 07:54:47 UTC
Hi Vojtech, 
did you mean 'set it to apache CA' instead of 'set it to default engine CA' ?
Or should be there the engine CA (/etc/pki/ovirt-engine/ca.pem)

Thank you,
Petr

Comment 3 Vojtech Juranek 2020-08-19 08:35:32 UTC
> did you mean 'set it to apache CA' instead of 'set it to default engine CA' ?
> Or should be there the engine CA (/etc/pki/ovirt-engine/ca.pem)

no, default engine CA is apache CA (right now, but it can change), so by default it should point to apache CA

Comment 4 Petr Kubica 2020-09-01 06:47:32 UTC
According to comments in code. It looks like that the value should point to Engine certificate which is not changed during using 3rd party certificates

In configuration I see
[backend_http]
# CA file used by HTTP backend client to verify imageio server certificate.
# Do not change, oVirt host pki setup is based on this CA.
ca_file = /etc/pki/ovirt-engine/ca.pem

Downloading and uploading images when using 3rd party certificates works as expected.

Verified in
# rpm -qa | grep ovirt-imageio
ovirt-imageio-common-2.0.10-1.el8ev.x86_64
ovirt-imageio-daemon-2.0.10-1.el8ev.x86_64

Comment 5 Sandro Bonazzola 2020-09-18 07:12:38 UTC
This bugzilla is included in oVirt 4.4.2 release, published on September 17th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.