-
Hi all, we have used Avocado VT for years now and never with OpenVSwitch which seems obligatory in here: mandatory_programs = {'qemu': basic_program_requirements + ['gcc'],
'spice': basic_program_requirements + ['gcc'],
'libvirt': basic_program_requirements,
'openvswitch': basic_program_requirements, Nevertheless, bootstrapping Avocado VT never failed for us and all we got was a rather annoying error message every few lines like def __init_openvswitch():
if (not __ovs.check()):
raise Exception("Check of OpenVSwitch failed.")
except Exception as e:
LOG.error("Host does not support OpenVSwitch: %s", e)
__ovs = None
return __ovs which never affected any of our VT tests. I was thinking of proposing a pull request and trying to drop or reduce the scope of the message but at present I am not sure if we are not missing out something with this dependency we don't use. Do you think it is indeed a mandatory dependency that should work and be used in all cases? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@luckyh I have separated this possibly optional import in a discussion to try and figure out if it could be included in a pull request to reduce its verbosity too. Do you happen to have an opinion whether the verbosity here could also be reduced? |
Beta Was this translation helpful? Give feedback.
-
I tried both changes but still see the error, now from def find_bridge_manager(br_name, ovs=None):
"""
Finds bridge which contain interface iface_name.
:param br_name: Name of interface.
:return: (br_manager) which contain bridge or None.
"""
# find ifname in standard linux bridge.
if br_name in __bridge.list_br():
return __bridge
if ovs is None:
ovs = __init_openvswitch() All of this makes me wonder if any of the above is even the right approach here since it seems most bridge management functions rely on optional
+ if ovs is None and REQUIRE_OVS:
ovs = __init_openvswitch() What do you think? |
Beta Was this translation helpful? Give feedback.
Alright, closing this as the suggested pull request was merged, I do hope we can improve on the overall design in the future though.