In the cloud-init log, I see:

2021-04-19 06:58:24,455 - stages.py[DEBUG]: applying net config names for 
{'version': 2, 'ethernets': {'eth0': {'match': {'driver': 'bcmgenet smsc95xx 
lan78xx'}, 'set-name': 'eth0', 'dhcp4': True, 'optional': True}}}
2021-04-19 06:58:24,456 - __init__.py[DEBUG]: no interfaces to rename

"driver" there can't be a space-separated list: netplan expects it to be
a single item (though globs are permitted):
https://github.com/canonical/netplan/blob/master/netplan/cli/utils.py#L215

I think what's happening is that, because there is no longer an "eth0"
interface in the system, cloud-init/netplan are using the match clause
(whereas previously they would just have identified that they already
_had_ eth0).  It doesn't find an interface using the driver named
"bcmgenet smsc95xx lan78xx" (of course, as that's three driver names
concatenated together), so it (correctly) concludes that there is no
config that matches NICs in this system and proceeds under that
assumption.

So: I think this is somewhere between a bug in that network
configuration and a feature request in netplan (and therefore cloud-
init), to update the semantics of the driver clause to support matching
on multiple drivers somehow.

Does that sound right?  (I'll move this to Incomplete, please do move
this back to New once you've responded!)

** Changed in: cloud-init (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1900904

Title:
  netplan yaml for rpi groovy server prevents usb ethernet

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1900904/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to