Bug 1898294

Summary: initrd: vlan DEV_PLUS_VID form can throw off ip= parsing
Product: Red Hat Enterprise Linux 8 Reporter: Dusty Mabe <dustymabe>
Component: NetworkManagerAssignee: Beniamino Galvani <bgalvani>
Status: CLOSED ERRATA QA Contact: Vladimir Benes <vbenes>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: acardace, atragler, bgalvani, bsanford, fpokryvk, lrintel, miabbott, rkhan, sukulkar, till, travier, vbenes
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1903695 (view as bug list) Environment:
Last Closed: 2021-05-18 13:29: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:
Bug Depends On:    
Bug Blocks: 1903695    

Description Dusty Mabe 2020-11-16 18:36:57 UTC
Description of problem:

This is a downstream bug with corresponding upstream bug: 
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/581

It's common to name a vlan device in the DEV_PLUS_VID form. For example: eth0.100
This seems to throw off the nm-initrd-generator. Here's an example:

```
[core@localhost ~]$ /usr/libexec/nm-initrd-generator -s -- ip=eth0.100:dhcp vlan=eth0.100:eth0 
NetworkManager-Message: 18:35:19.274: <warn>  [1605551719.2744] cmdline-reader: Unrecognized address: eth0.100
NetworkManager-Message: 18:35:19.274: <warn>  [1605551719.2745] cmdline-reader: Ignoring peer: dhcp (not implemented)


*** Connection 'default_connection' ***

[connection]
id=Wired Connection
uuid=3847579a-bd73-48f1-af79-b0ccefe0b8cf
type=ethernet
multi-connect=3
permissions=

[ethernet]
mac-address-blacklist=

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=eui64
dns-search=
method=auto

[proxy]

*** Connection 'eth0.100' ***

[connection]
id=eth0.100
uuid=77412142-af77-434d-923d-a266fdd5c70f
type=vlan
interface-name=eth0.100
multi-connect=1
permissions=

[ethernet]
mac-address-blacklist=

[vlan]
egress-priority-map=
flags=1
id=100
ingress-priority-map=
parent=eth0

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=eui64
dns-search=
method=auto

[proxy]

```


Version-Release number of selected component (if applicable):

```
[core@localhost ~]$ rpm -qf /usr/libexec/nm-initrd-generator
NetworkManager-1.26.0-9.el8_3.x86_64
```

Comment 1 Antonio Cardace 2020-12-02 12:59:59 UTC
Fixed by https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/685 which is already merged upstream.

Comment 8 errata-xmlrpc 2021-05-18 13:29:43 UTC
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 (Moderate: NetworkManager and libnma security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1574