Ubuntu 22.04 no longer uses gateway4 for default route entry[BUG] #63009
Labels
Bug
broken, incorrect, or confusing behavior
Deprecation
needs-triage
Salt-Cloud
ubuntu
affects this operating system
Description
A clear and concise description of what the bug is.
During salt-cloud deploy of ubuntu 22.04 if you use customization it sets the default gatway in netplan config with gateway4: ip address. This is deprecated and needs to be moved to routes statement
Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
cloud.profiles.d file
ubuntults22deploy:
deploy: True
customization: True
provider: name of provider file that links to our vcenter instance
clonefrom: UbuntuRaw
datacenter: our datacenter
folder: systems
cluster: vcenter cluster
devices:
network:
'Network adapter 1':
dvs_switch: 'VMNetwork'
switch_type: distributed
adapter_type: vmxnet3
subnet_mask: 255.255.255.0
dns_servers:
num_cpus: 2
memory: 8GB
tags:
{'Backup': 'Exempt'}
ssh_username: root
password:
minion:
master: salt master fqdn
This you can use in a map file, so specify it when you deploy
ubuntults22vm:
extends: ubuntults22deploy
Please be as specific as possible and give set-up details.
map file
ubuntults22vm:
testubuntu:
devices:
network:
'Network adapter 1':
name: 'VLANx'
ip: 'x.x.x.x'
subnet_mask: 255.255.255.192
gateway: 'x.xx.x'
domain: "our domain"
minion:
ID: testubuntu
Steps to Reproduce the behavior
(Include debug logs if possible and relevant)
salt-cloud -m /path_to_above_map_file
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
Salt Version: Salt: 3005.1Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.7.3
docker-py: Not Installed
gitdb: 2.0.6
gitpython: 3.0.7
Jinja2: 2.10.1
libgit2: 0.28.3
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: 1.4.4
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: 3.6.1
pygit2: 1.0.3
Python: 3.8.10 (default, Jun 22 2022, 20:18:18)
python-gnupg: 0.4.5
PyYAML: 5.3.1
PyZMQ: 20.0.0
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: ubuntu 20.04 focal
locale: utf-8
machine: x86_64
release: 5.4.0-125-generic
system: Linux
version: Ubuntu 20.04 focal
./salt-bootstrap.sh -- Version 2022.10.04
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
PASTE HERE
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: