2018-06-21 21:42 GMT+02:00 Nir Soffer <nsoffer(a)redhat.com>:
On Wed, Jun 20, 2018 at 9:25 PM Nir Soffer <nsoffer(a)redhat.com>
> On Wed, Jun 20, 2018 at 11:06 AM Sandro Bonazzola <sbonazzo(a)redhat.com>
>> 2018-06-20 0:21 GMT+02:00 Nir Soffer <nsoffer(a)redhat.com>:
>>> I'm trying to add a host running Fedora 28 to engine 4.2, and
>>> fails with:
>>> 2018-06-20 01:14:26,137+0300 DEBUG otopi.context
>>> context._executeMethod:143 method exception
>>> Traceback (most recent call last):
>>> File "/tmp/ovirt-Z5BGYej3Qa/pythonlib/otopi/context.py", line
>>> in _executeMethod
>>> line 84, in _packages
>>> File "/tmp/ovirt-Z5BGYej3Qa/pythonlib/otopi/packager.py", line
>>> in install
>>> raise NotImplementedError(_('Packager install not implemented'))
>>> NotImplementedError: Packager install not implemented
>>> 2018-06-20 01:14:26,138+0300 ERROR otopi.context
>>> context._executeMethod:152 Failed to execute stage 'Environment packages
>>> setup': Packager install not implemented
>> Can you please send output of "rpm -qa|grep otopi" ? Please note that
>> otopi and ovirt-host-deploy are installed on the 4.2 engine host and
>> executed with ssh on the fedora 28 host. So you'll need otopi and
>> ovirt-host-deploy from master installed on the 4.2 engine host.
> On the 4.2 engine host I'm using latest 4.2 release and repos.
Tried again with engine master (2e3a05ffc83611a2cb18c2ca7268be2d489834f9)
on CentOS 7.5 (1804).
$ rpm -qa | egrep 'otopi|ovit-host'
$ rpm -qa | egrep 'ovirt-release'
Building and installing engine was great pain. Developer documentation is
in the same poor state it was 5 years ago. Thanks Daniel for the help!
Adding Fedora 28 host fails with (in host deploy log):
AttributeError: 'str' object has no attribute 'decode'
2018-06-21 02:12:18,864+0300 ERROR otopi.context
context._executeMethod:152 Failed to execute stage 'Initializing': 'str'
object has no attribute 'decode'
After fixing this we fail with (in host deploy log):
TypeError: a bytes-like object is required, not 'str'
2018-06-21 02:21:50,148+0300 ERROR otopi.context
context._executeMethod:152 Failed to execute stage 'Setup validation': a
bytes-like object is required, not 'str'
Both issues fixed in https://gerrit.ovirt.org/#/c/92437/
With this patch we reach the next failure in otopi, fixed in
Thanks for the patches, Didi can you please review / merge if good?
Next failure is in TASK [ovirt-provider-ovn-driver : Install
The conditional check 'ovn_central | ipaddr' failed. The error was: The
ipaddr filter requires python-netaddr be installed on the ansible
After installing python-netaddr on the engine host, we passed
Ondra, is one of the role rpms missing the dependency?
I don't know why this ansible playbook is running, I answered NO
when engine-setup asked about OVN.
I'm not sure where the dependency on python-netaddr should be.
Next failure is in TASK [ovirt-host-deploy-firewalld : Enable SSH port]
unsupported version of firewalld, requires >= 0.2.11
# rpm -q firewalld
Obviously the complain is incorrect, "0.5.2" > "0.2.11".
I worked around this by disabling firewall configuration when adding
The host was added but was not reachable.
To fix this, I disabled the firewall on the host using:
The next issue is missing ovirtmgmt bridge on the host, using setup
fixed the issue - and the host became UP.
This should have been done by ovirt-host-deploy, can you please share the
host deploy logs?
I tried to add storage, and found that:
- engine "New Domain" dialog is very broken now. See attached screenshots.
- block storage is broken because of lvm bug, caused by GCC bug
- file storage is broken because sanlock fail to write to its lockfile -
To work around this, I switch to permissive mode:
At this point I could upload and download images from engine UI!
So in summary, to add Fedora 28 host:
- patch ovirt-host-deploy: https://gerrit.ovirt.org/#/c/92437/
install on engine host
- patch otopi: https://gerrit.ovirt.org/#/c/92435/
and install on engine
- install python-netaddr on engine host
- need to file a bug
- disable firewall setup in engine "Add host" dialog
- need to file a bug
- disable firewall on the host
- use setup networks to add ovirtmgmt network to the host
- forget about block storage for now
- change selinux to permissive mode
- we need a tracker bug for fedora 28 issues
here's the tracker https://bugzilla.redhat.com/show_bug.cgi?id=1460625
ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
Red Hat EMEA <https://www.redhat.com/>