Hi All,

I am failing to run engine-setup due to the following issue:

[ INFO  ] Generating post install configuration file '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
[ ERROR ] Failed to execute stage 'Misc configuration': a bytes-like object is required, not 'str'
[ INFO  ] Rolling back database schema


In the setup log I can see - 

2019-07-30 10:41:31,418+0300 DEBUG otopi.transaction transaction._prepare:61 preparing 'File transaction for '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-s
etup-ovirt-post.conf''
2019-07-30 10:41:31,418+0300 DEBUG otopi.filetransaction filetransaction.prepare:184 file '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.con
f' missing
2019-07-30 10:41:31,419+0300 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'
2019-07-30 10:41:31,420+0300 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 "/home/eshenitz/ovirt-engine/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/base/core/postinstall.py", line 98, in _misc
   otopicons.CoreEnv.MODIFIED_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'
2019-07-30 10:41:31,421+0300 ERROR otopi.context context._executeMethod:154 Failed to execute stage 'Misc configuration': a bytes-like object is required, not 'str'
2019-07-30 10:41:31,421+0300 DEBUG otopi.transaction transaction.abort:119 aborting 'CinderLib Database Transaction'

Does anyone encounter it?

Thanks,
--
Regards,
Eyal Shenitzky