MAAS netplan config uses deprecated items

Bug #1975750 reported by Jeff Lane 
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Low
Unassigned

Bug Description

I made some manual changes to the netplan config created by MAAS to set up a new network device that MAAS does not yet recognize... when I ran 'netplan apply', I got these warnings:

ubuntu@buzzar:~$ sudo netplan apply

** (generate:8213): WARNING **: 22:06:28.021: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:8211): WARNING **: 22:06:28.348: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

one of the four entries has a gateway configured using `gateway4`:
ubuntu@buzzar:~$ grep gateway /etc/netplan/50-cloud-init.yaml
            gateway4: IPADDR

Revision history for this message
Anton Troyanov (troyanov) wrote :

According to https://bugs.launchpad.net/netplan/+bug/1756590 it is indeed seems to be deprecated.

We generate netplan config in src/maasserver/preseed_network.py and we need to update it so it is using new syntax.

It is mentioned that
> if somebody uses the (now deprecated) gateway4/6 fields it will still work, but print a warning.

So I would assume it is not critical, but for sure needs to be handled until it becomes unsupported.

Changed in maas:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

We need to make sure we don't break Bionic deployments when updating the generation of netplan config in MAAS.

Changed in maas:
milestone: none → 3.4.0
Revision history for this message
Sho Shimizu (oshothebig) wrote :

+1 for this deprecation.

We'd like to configure the default route with high metric value. However, gateway4 doesn't support a custom metric value for a default route. Using routes field instead of gateway4 allow us to set a custom metric value much easier.

Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.x
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.