You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using states virt.network_defined or virt.network_running, with a forward: hostdev network type, Salt raises an error stating that bridge name is mandatory, although it does not make any sense.
full error is :
----------
ID: test
Function: virt.network_running
Result: False
Comment: Missing parameter bridge for state virt.network_running
Changes:
If I mention a bridge name in a sls (bridge: br0) , which does not make sense but anyway, the following error (libvirt generated I guess) appears instead :
----------
ID: test
Function: virt.network_running
Name: test
Result: False
Comment: XML error: bridge name not allowed in hostdev mode (network 'test')
Started: 13:37:49.955720
Duration: 11.871 ms
Changes:
Steps to Reproduce the behavior
Use this state to reproduce :
Same behavior when using interfaces instead of physical_function.
Expected behavior
The state should be valid and virt network should be created and running
Workaround
I found the following Workaround. If I mention bridge: "", it passes the salt validation without the libvirt error. Versions Report
Salt Version:
Salt: 3006.9Python Version:
Python: 3.10.14 (main, Jun 26 2024, 11:44:37) [GCC 11.2.0]Dependency Versions:
cffi: 1.14.6cherrypy: unknowncryptography: 42.0.5dateutil: 2.8.1docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.4libgit2: Not Installedlooseversion: 1.0.2M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.2msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 22.0pycparser: 2.21pycrypto: Not Installedpycryptodome: 3.19.1pygit2: Not Installedpython-gnupg: 0.4.8PyYAML: 6.0.1PyZMQ: 23.2.0relenv: 0.17.0smmap: Not Installedtimelib: 0.2.4Tornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: rhel 8.7 Ootpalocale: utf-8machine: x86_64release: 4.18.0-339.rt7.120.el8.x86_64system: Linuxversion: Red Hat Enterprise Linux 8.7 Ootpa
The text was updated successfully, but these errors were encountered:
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description
When using states virt.network_defined or virt.network_running, with a
forward: hostdev
network type, Salt raises an error stating that bridge name is mandatory, although it does not make any sense.full error is :
If I mention a bridge name in a sls (bridge: br0) , which does not make sense but anyway, the following error (libvirt generated I guess) appears instead :
Steps to Reproduce the behavior
Use this state to reproduce :
Same behavior when using
interfaces
instead ofphysical_function
.Expected behavior
The state should be valid and virt network should be created and running
Workaround
I found the following Workaround. If I mention
bridge: ""
, it passes the salt validation without the libvirt error.Versions Report
The text was updated successfully, but these errors were encountered: