Bug 2217832

Summary: [machines] The mode of the NIC is still vepa mode
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Simon Kobyda <skobyda>
Status: NEW --- QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.9CC: jscotka, kkoukiou, mpitt, qzhang, wshi, xchen, ymao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description YunmingYang 2023-06-27 08:20:39 UTC
Description of problem:
Although we have fixed this issue - https://bugzilla.redhat.com/show_bug.cgi?id=2095967, but there are still some scenarios that the mode of the NIC is vepa:
1 Create a VM with PXE and a default network
2 Create a VM with PXE and no default network
3 Edit the network to direct

Version-Release number of selected components (if applicable):
cockpit-292-1.el8.x86_64
cockpit-machines-292-1.el8.noarch
libvirt-dbus-1.3.0-2.module+el8.8.0+16781+9f4724c2.x86_64

How reproducible:
100%

Steps to Reproduce:
1 Make sure that there is only one virtual network in the host, and it should be default, then create a VM with PXE, then check the interface element by "virsh dumpxml ${vm}"
2 Make sure that there is no virtual network in the host, then create a VM with PXE, then check the interface element by "virsh dumpxml ${vm}"
3 Create a VM by "Local install media", then enter the VM detail page, then edit the NIC to "direct" and "eno1", then check the interface element by "virsh dumpxml ${vm}"

Actual results:
1 In step 1, the mode in interface element is "vepa"
2 In step 2, the mode in interface element is "vepa"
3 In step 3, the mode in interface element is "vepa"

Expected results:
1 In step 1, the mode in interface element is "bridge"
2 In step 2, the mode in interface element is "bridge"
3 In step 3, the mode in interface element is "bridge"

Additional info: