Bug 1879199

Summary: ovirt-engine-extension-aaa-ldap-setup fails on cert import
Product: Red Hat Enterprise Virtualization Manager Reporter: Anitha Udgiri <audgiri>
Component: ovirt-engine-extension-aaa-ldapAssignee: Martin Perina <mperina>
Status: CLOSED ERRATA QA Contact: Petr Matyáš <pmatyas>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.4.1CC: aoconnor, kmashalk, lleistne, lsurette, lsvaty, mmartinv, mperina, sfroemer
Target Milestone: ovirt-4.4.3Keywords: ZStream
Target Release: ---Flags: pmatyas: testing_plan_complete+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-extension-aaa-ldap-1.4.2 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-24 13:10:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anitha Udgiri 2020-09-15 16:18:26 UTC
Description of problem:

 ovirt-engine-extension-aaa-ldap-setup results in the following error when using a CA certificate during setup

[ ERROR ] Failed to execute stage 'Environment customization': a bytes-like object is required, not 'str'

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

rhvm-4.4.1.10-0.1.el8ev.noarch
ovirt-engine-extension-aaa-ldap-1.4.0-1.el8ev.noarch
ovirt-engine-extension-aaa-ldap-setup-1.4.0-1.el8ev.noarch 

How reproducible:

Always


Actual results:

[ ERROR ] Failed to execute stage 'Environment customization': a bytes-like object is required, not 'str'

Expected results:

Should succeed in converting the .pem file to a jks file

Comment 2 Martin Perina 2020-09-15 19:01:29 UTC
The easiest workaround is to use Insecure option, where we are not importing CA certificate.

Comment 3 Anitha Udgiri 2020-09-15 19:07:00 UTC
(In reply to Martin Perina from comment #2)
> The easiest workaround is to use Insecure option, where we are not importing
> CA certificate.

Thanks Martin. This is what we have recommended one of the Customers to do. the other 2 are new cases and we will do provide them with the same workaround until the bug is patched.

Comment 12 Petr Matyáš 2020-11-09 12:27:46 UTC
Verified with ovirt-engine-extension-aaa-ldap-1.4.2-1.el8ev.noarch

Comment 16 errata-xmlrpc 2020-11-24 13:10:05 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 (Low: Red Hat Virtualization security, bug fix, and enhancement update), 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/RHSA-2020:5179