Description of problem: Setup of Websocket-Proxy or Grafana on a separate machine, and then choosing "manual_files" when asked about how to access the engine, fails with: [ERROR] Failed to execute stage 'Misc configuration': a bytes-like object is required, not 'str' With this in the log: 2020-07-09 09:46:03,426+0200 DEBUG otopi.transaction transaction._prepare:66 exception during prepare phase Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62, in _prepare element.prepare() File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line 253, in prepare os.write(fd, self._content) TypeError: a bytes-like object is required, not 'str' 2020-07-09 09:46:03,429+0200 DEBUG otopi.context context._executeMethod:145 method exception Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in _executeMethod method['method']() File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/websocket_proxy/pki.py", line 175, in _misc_pki uninstall_group_desc='WSP PKI keys', File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/remote_engine.py", line 465, in add_to_transaction modifiedList=uninstall_files, File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 106, in append self._prepare(element=element) File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62, in _prepare element.prepare() File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line 253, in prepare os.write(fd, self._content) TypeError: a bytes-like object is required, not 'str' Version-Release number of selected component (if applicable): Current master How reproducible: Always Steps to Reproduce: 1. See above 2. 3. Actual results: See above Expected results: Works Additional info: This is actually part of bug 1624732, but I didn't test manual_files so didn't notice. I am opening current bug to prevent postponing bug 1624732.
Do you think this is worth a 4.4.1 async?
(In reply to Sandro Bonazzola from comment #1) > Do you think this is worth a 4.4.1 async? No, because IMO almost no-one uses manual_files. However, if we do release an async, can include this there.
not a blocker -> 4.4.2
Verified on: ovirt-engine-4.4.2.3-0.6.el8ev.noarch ovirt-engine-websocket-proxy-4.4.2.3-0.6.el8ev.noarch Steps: 1. Installed rhv on a machine without websocket 2. Installed websocket on a different machine selecting manual_files method Results: Installation done successfully and websocket working as expected
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.