A default 22.10 installation configures netplan with gateway4 which is reported as deprecated

Bug #1996151 reported by Frank Heimes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Confirmed
Low
Skipper Bug Screeners
subiquity
Confirmed
Undecided
Dan Bungert

Bug Description

I just noticed that a standard 22.10 installation produces a netplan yaml like this:

$ cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    enc600:
      addresses:
      - 10.123.123.123/24
      gateway4: 10.123.123.1
      nameservers:
        addresses:
        - 10.123.123.1
  version: 2

But netplan already reports the usage of 'gateway4' as deprecated:

$ sudo netplan apply --dry-run

** (generate:35929): WARNING **: 07:51:52.369: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:35927): WARNING **: 07:51:52.662: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:35927): WARNING **: 07:51:52.677: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:35927): WARNING **: 07:51:52.797: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:35927): WARNING **: 07:51:52.797: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

Tags: installation
Revision history for this message
Frank Heimes (fheimes) wrote :

Looks like this is the same on a 22.04.1 installation.

Changed in ubuntu-z-systems:
importance: Undecided → Low
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
Revision history for this message
Dan Bungert (dbungert) wrote :

I thought we fixed this, I wonder if this missed being merged properly.

Changed in subiquity:
assignee: nobody → Dan Bungert (dbungert)
Revision history for this message
XSpielinbox (xspielinbox) wrote :

I can reproduce the issue with Ubuntu Server 22.04.1 LTS Installer when not updating the installer (Subiquity Version 22.07.2).
When Updating the Installer to Subiquity Version 22.10.1 or using the Ubuntu Server 22.10 Installer (it does not prompt for a installer update wherefore I assume it also uses Subiquity Version 22.10.1) it always generates the "routes:" and not a "gateway4/6" anymore. This therefore seems fixed to me.
However it is very unfortunate that one has to manually update the installer to receive this fix.

Revision history for this message
Frank Heimes (fheimes) wrote :

Looks like this is still the case with subiquity 22.12.1 (build 4222, currently in beta channel).

Changed in subiquity:
status: New → Confirmed
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Confirmed
Revision history for this message
Frank Heimes (fheimes) wrote :

This still happens with 23.04: LP#2022030

Frank Heimes (fheimes)
tags: added: installation
removed: installer
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.