On Tue, Jul 30, 2019 at 1:48 PM Simone Tiraboschi <stirabos@redhat.com> wrote:


On Tue, Jul 30, 2019 at 9:48 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
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?

Maybe is a side effect of https://gerrit.ovirt.org/#/c/102204/ on python 3 env.

Indeed. Pushed this to solve it for now: https://gerrit.ovirt.org/#/c/102259/
 
Didi?
 

Thanks,
--
Regards,
Eyal Shenitzky
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/OXHERFXZVEJVTJSJA2CNCXNWCFYIWOPW/


--

Simone Tiraboschi

He / Him / His

Principal Software Engineer

Red Hat

stirabos@redhat.com   

_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/EFC3IDDP3TRLPDKM7K4BHWF3A4H5ITRY/