Created attachment 1088025 [details]
host with bridge network failure
Description of problem:
Host creation fails with the message:
Unable to save
Failed to power up a compute KVM (Libvirt) instance test.example.com: Call to virDomainCreateWithFlags failed: Unable to add bridge em1 port vnet0: Operation not supported
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Setup a KVM env and inetgrate with Satellite 6.1.3. Setup a bridged network in the KVM.
2.Create the host with physical (Bridge)network to encounter this error.
Host creation fails.
Should accept bridged network.
Workaround: Continue selecting Virtual NAT network with default network. Complete creating the host. Go to virt-manager, select the console for the new VM, and manually change the NIC setting to bridge desired.
This is caused selecting wrong interface for bridged networking. Existing bridge must be selected for this type of networking, according to screenshot a physical interface em1 was used.
We shouldn't list non-bridge interfaces in the select box, unfortunately ruby-libvirt does not give us enough information. I reported the issue against ruby-libvirt, meanwhile we have to parse XML ourselves (hopefully short-term solution).
Created redmine issue http://projects.theforeman.org/issues/14204 from this bug
Upstream bug component is Compute Resources
Moving to POST since upstream bug http://projects.theforeman.org/issues/14204 has been closed
Applied in changeset commit:01fde835c5f50561dcde4a4f8b7a0f1ecf1bb2db.
Verified with sat62 GA snap11.
I can create host on network_type -> "Physical(Bridge)". As soon as I select 'Libvirt' compute-resource, this option auto populated under 'Interfaces" tab.
And under Nic type, I can see 'virtio', rtl8139.
@Marek: Could you please confirm if anything else needs to be checked ?
As per comment2, where I shouln't see non-bridged interfaces ? Is it under Interfaces -> Libvirt section -> Nic_type ??
Please confirm ?
After you choose libvirt compute resource and you select Physical (Bridge) network type, there is a field Network. This field used to display all network interfaces on libvirt host but now it should display only bridges.
When there's at least one bridge it's a select box. Previously there were also non-bridge interfaces listed, usually one could see 'em1' which when selected caused problems during host build. Now you should not be able to select 'em1'. If there's not bridge on libvirt host, there is no select box but text input where user could specify bridge name (but it must exist on host, otherwise build would fail).
To test that you can select bridge, you might need to create some on libvirt host first. You can command similar to this
sudo virsh iface-bridge enp0s25 br0
where enp0s25 is interface that will be put into the bridge br0. To unbridge the interface use
sudo virsh iface-unbridge br0
Verified with sat6.2 GA snap12.1
I can see only bridge interfaces not all interfaces under 'Network' dropdown. And I can provision on selected bridge interface. Please see attached screenshot that shows bridge interfaces only under 'Network' dropdown. Thanks
Created attachment 1160481 [details]
'Network' dropdown shows only bridge interfaces.
Great, I think you can consider this verified.
Oh, forgot to change the state. Moving now.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.