Juju's netpan uses the depricated gateway4 and has wrong permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Undecided
|
Joseph Phillips |
Bug Description
In testing netplan 0.106 we noticed that there are some warnings when applying the netplan on a juju machine:
===================
ubuntu@
2.9.42-ubuntu-amd64
ubuntu@
Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-73-generic x86_64)
* Documentation: https:/
* Management: https:/
* Support: https:/
System information as of Thu Jun 1 11:58:12 UTC 2023
System load: 1.6142578125 Users logged in: 0
Usage of /: 39.5% of 91.11GB IPv4 address for br-eth0: 10.244.40.108
Memory usage: 11% IPv4 address for br-eth1-2678: 10.244.8.5
Swap usage: 0% IPv4 address for br-eth1-2733: 192.168.33.35
Temperature: 41.0 C IPv4 address for lxdbr0: 10.162.62.1
Processes: 558 IPv4 address for virbr0: 192.168.122.1
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https:/
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https:/
Last login: Thu Jun 1 11:58:12 2023 from 10.245.212.182
ubuntu@elgyem:~$ dpkg -s netplan.io
Package: netplan.io
Status: install ok installed
Priority: important
Section: net
Installed-Size: 446
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Multi-Arch: foreign
Version: 0.106-0ubuntu1~
Replaces: nplan (<< 0.34~)
Provides: nplan
Depends: libc6 (>= 2.34), libglib2.0-0 (>= 2.70.0), libnetplan0 (= 0.106-0ubuntu1~
Suggests: network-manager | wpasupplicant, openvswitch-switch, iw
Breaks: nplan (<< 0.34~)
Conflicts: netplan
Description: YAML network configuration abstraction for various backends
netplan reads YAML network configuration files which are written
by administrators, installers, cloud image instantiations, or other OS
deployments. During early boot it then generates backend specific
configuration files in /run to hand off control of devices to a particular
networking daemon.
.
Currently supported backends are networkd and NetworkManager.
Homepage: https:/
Original-
ubuntu@elgyem:~$ sudo netplan apply
** (generate:1362196): WARNING **: 11:58:32.080: Permissions for /etc/netplan/
** (generate:1362196): WARNING **: 11:58:32.080: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
** (generate:1362196): WARNING **: 11:58:32.080: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
Cannot call openvswitch: ovsdb-server.
** (process:1362194): WARNING **: 11:58:32.702: Permissions for /etc/netplan/
** (process:1362194): WARNING **: 11:58:32.702: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
** (process:1362194): WARNING **: 11:58:32.702: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
['eth6', 'eth7', 'bond0', 'bond0.2735', 'bond0.2736']
Cannot find unique matching interface for eth6
['eth1', 'eth1.2678', 'eth1.2733']
Cannot find unique matching interface for eth1
[]
Cannot find unique matching interface for eth7
** (process:1362194): WARNING **: 11:58:34.035: Permissions for /etc/netplan/
** (process:1362194): WARNING **: 11:58:34.035: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
** (process:1362194): WARNING **: 11:58:34.035: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
** (process:1362194): WARNING **: 11:58:34.035: Permissions for /etc/netplan/
** (process:1362194): WARNING **: 11:58:34.035: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
** (process:1362194): WARNING **: 11:58:34.036: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
===================
The "unique gateway" and gateway4 deprecation warning where there in netplan 0.105 as well, the permissions warning is new in netplan 0.106
Changed in juju: | |
assignee: | nobody → Joseph Phillips (manadart) |
status: | New → Triaged |