Hi Ales, Nir.

Sorry for the delayed answer. I didn't had the opportunity to answer it before.

I'm running RHV (not RHVH) on RHEL 8.4 and on top of ppc64le. So it's not vanilla oVirt.

Right now its based on:
ovirt-host-4.4.1-4.el8ev.ppc64le

I'm already with nmstate >= 0.3 as I can see:
nmstate-1.0.2-11.el8_4.noarch

VDSM in fact is old, I tried upgrading VDSM but there's a failed dependency on openvswitch:
[root@rhvpower ~]# dnf update vdsm
Updating Subscription Management repositories.
Last metadata expiration check: 0:11:15 ago on Mon 02 Aug 2021 12:06:44 PM EDT.
Error: 
 Problem 1: package vdsm-python-4.40.70.6-1.el8ev.noarch requires vdsm-network = 4.40.70.6-1.el8ev, but none of the providers can be installed
  - package vdsm-4.40.70.6-1.el8ev.ppc64le requires vdsm-python = 4.40.70.6-1.el8ev, but none of the providers can be installed
  - package vdsm-network-4.40.70.6-1.el8ev.ppc64le requires openvswitch >= 2.11, but none of the providers can be installed
  - cannot install the best update candidate for package vdsm-4.40.35.1-1.el8ev.ppc64le
  - nothing provides openvswitch2.11 needed by rhv-openvswitch-1:2.11-7.el8ev.noarch
  - nothing provides openvswitch2.11 needed by ovirt-openvswitch-2.11-1.el8ev.noarch
 Problem 2: package vdsm-python-4.40.70.6-1.el8ev.noarch requires vdsm-network = 4.40.70.6-1.el8ev, but none of the providers can be installed
  - package vdsm-4.40.70.6-1.el8ev.ppc64le requires vdsm-python = 4.40.70.6-1.el8ev, but none of the providers can be installed
  - package vdsm-network-4.40.70.6-1.el8ev.ppc64le requires openvswitch >= 2.11, but none of the providers can be installed
  - cannot install the best update candidate for package vdsm-hook-vmfex-dev-4.40.35.1-1.el8ev.noarch
  - nothing provides openvswitch2.11 needed by rhv-openvswitch-1:2.11-7.el8ev.noarch
  - nothing provides openvswitch2.11 needed by ovirt-openvswitch-2.11-1.el8ev.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Nothing seems to provide an openvswitch release that satisfies VDSM. There's no openvswitch package installed right now, nor available on the repositories:

[root@rhvpower ~]# dnf install openvswitch
Updating Subscription Management repositories.
Last metadata expiration check: 0:15:28 ago on Mon 02 Aug 2021 12:06:44 PM EDT.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides openvswitch2.11 needed by ovirt-openvswitch-2.11-1.el8ev.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Any ideias on how to past beyond this issue? This is probably only related to ppc64le.
I already opened a bugzilla about the openvswitch issue here: https://bugzilla.redhat.com/show_bug.cgi?id=1988507

Thank you all.

On 2 Aug 2021, at 02:09, Ales Musil <amusil@redhat.com> wrote:



On Fri, Jul 30, 2021 at 8:54 PM Nir Soffer <nsoffer@redhat.com> wrote:
On Fri, Jul 30, 2021 at 7:41 PM Vinícius Ferrão via Users
<users@ovirt.org> wrote:
...
> restore-net::ERROR::2021-07-30 12:34:56,167::restore_net_config::462::root::(restore) restoration failed.
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/site-packages/vdsm/network/restore_net_config.py", line 460, in restore
>     unified_restoration()
>   File "/usr/lib/python3.6/site-packages/vdsm/network/restore_net_config.py", line 112, in unified_restoration
>     classified_conf = _classify_nets_bonds_config(available_config)
>   File "/usr/lib/python3.6/site-packages/vdsm/network/restore_net_config.py", line 237, in _classify_nets_bonds_config
>     net_info = NetInfo(netswitch.configurator.netinfo())
>   File "/usr/lib/python3.6/site-packages/vdsm/network/netswitch/configurator.py", line 323, in netinfo
>     _netinfo = netinfo_get(vdsmnets, compatibility)
>   File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 268, in get
>     return _get(vdsmnets)
>   File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 76, in _get
>     extra_info.update(_get_devices_info_from_nmstate(state, devices))
>   File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 165, in _get_devices_info_from_nmstate
>     nmstate.get_interfaces(state, filter=devices)
>   File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 164, in <dictcomp>
>     for ifname, ifstate in six.viewitems(
>   File "/usr/lib/python3.6/site-packages/vdsm/network/nmstate/api.py", line 228, in is_dhcp_enabled
>     return util_is_dhcp_enabled(family_info)
>   File "/usr/lib/python3.6/site-packages/vdsm/network/nmstate/bridge_util.py", line 137, in is_dhcp_enabled
>     return family_info[InterfaceIP.ENABLED] and family_info[InterfaceIP.DHCP]
> KeyError: 'dhcp'

Looks like a mnstate or NetworkManager bug.

You did not mention any version - are you running the latest ovirt version?

Nir


Hi,

this was a bug in vdsm, in combination with newer nmstate (>=0.3) that was fixed in version 4.40.50.3. I would suggest you upgrade past this version.

Best regards,
Ales

--
Ales Musil
Software Engineer - RHV Network

Red Hat EMEA

amusil@redhat.com    IM: amusil