Bug 1888987
Summary: | When starting VM connected to Network Attachment Definition configured for CNV Linux Bridge and VLAN ID specified, Virt-launcher pod fails to start. | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Bill Souhrada <souhrada> |
Component: | Networking | Assignee: | Petr Horáček <phoracek> |
Status: | CLOSED DUPLICATE | QA Contact: | Meni Yakove <myakove> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.4.0 | CC: | cnv-qe-bugs, phoracek, zshi |
Target Milestone: | --- | ||
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: | 2020-10-22 16:24:43 UTC | 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
Bill Souhrada
2020-10-16 17:07:38 UTC
looks like vlan value in net-attach-def is quoted as string: #### config: '{"name":"br-cnv-vlan874-tagged","cniVersion":"0.3.1","plugins":[{"type":"cnv-bridge","bridge":"br874","vlan":"874","ipam":{}},{"type":"cnv-tuning"}]}' #### so the bridge CNI complains the type error: ### failed to load netconf: json: cannot unmarshal string into Go struct field NetConf.vlan of type int ### you might need to create the net-attach-def using integer vlan value (remove the double quotes) Thanks Zenghui. Bill, could you try the suggested change with VLAN? Hi, Thanks for the info. I modified the Network Attachment Definition using the integer value of the VLAN and the VM powered up. Just note, that initially I created the Network Attachment Definition using the GUI panel, specifying: Network Type = CNV Linux Bridge VLAN Tag Number: 888 The resulting yaml had the vlan as string ("888"). --Bill Souhrada Thanks Bill, that explains it. We tracked that issue via https://bugzilla.redhat.com/show_bug.cgi?id=1858317 and it should be fixed in 4.6. *** This bug has been marked as a duplicate of bug 1858317 *** |