Bug 1850118

Summary: Python error - a bytes-like object is required, not 'str' - seen when trying to set hosted-engine shared config for storage
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: bugs, eslutsky, mavital, rhs-bugs
Target Milestone: ---   
Target Release: RHHI-V 1.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1850117 Environment:
Last Closed: 2020-08-04 14:52:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1850117    
Bug Blocks: 1779977    

Description SATHEESARAN 2020-06-23 15:06:36 UTC
Description of problem:
-----------------------
When trying to set hosted-engine shared config for storage, python error is seen - "a bytes-like object is required, not 'str'"

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
ovirt-hosted-engine-setup-2.4.5-1.el8ev.noarch
ovirt-hosted-engine-ha-2.4.3-1.el8ev.noarch

How reproducible:
------------------
Always

Steps to Reproduce:
-------------------
1. Set the shared storage config - # hosted-engine --set-shared-config storage newhost.example.com

Actual results:
---------------
Error seen

Expected results:
------------------
Successfully modify shared config storage

--- Additional comment from SATHEESARAN on 2020-06-23 15:02:41 UTC ---

[root@ ]# hosted-engine --set-shared-config storage rhsqa-grafton12.lab.eng.blr.redhat.com:/engine --type=he_shared
a bytes-like object is required, not 'str'

Comment 3 SATHEESARAN 2020-07-09 09:29:54 UTC
Tested with ovirt-hosted-engine-ha-2.4.4-1.el8ev.noarch

When setting the shared config, no errors are seen

[root@ ]# hosted-engine --set-shared-config storage rhsqa-grafton12.lab.eng.blr.redhat.com:/engine --type=he_shared
[root@ ]# echo $?
[root@ ]# 0

Comment 4 errata-xmlrpc 2020-08-04 14:52:36 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 (RHHI for Virtualization 1.8 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/RHEA-2020:3314