Ubuntu 22.04 no longer uses gateway4 for default route entry[BUG]
@Akm0d is already working on this.
Since Mar 21, 2024.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
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:
- dns server 1
- dns server 2
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
- on-prem machine
- VM (Virtualbox, KVM, etc. please specify)
- VM running on a cloud service, please be explicit and add details
- container (Kubernetes, Docker, containerd, etc. please specify)
- or a combination, please be explicit
- jails if it is FreeBSD
- classic packaging
- onedir packaging
- used bootstrap to install
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.