KeyError: 'NETMASK2'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
Unassigned |
Bug Description
cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.5 (Arctic Sphynx)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_
PRETTY_
ANSI_COLOR="0;34"
CPE_NAME=
HOME_URL="https:/
DOCUMENTATION_URL="https:/
BUG_REPORT_URL="https:/
ALMALINUX_
ALMALINUX_
rpm -qa | grep cloud-init
cloud-init-
cloud-init status -w
status: error
2022-01-20 08:12:51,021 - subp.py[DEBUG]: Running command ['ip', '-6', 'addr', 'show', 'permanent', 'scope', 'global'] with allowed return codes [0] (shell=False, capture=True)
2022-01-20 08:12:51,039 - subp.py[DEBUG]: Running command ['ip', '-4', 'addr', 'show'] with allowed return codes [0] (shell=False, capture=True)
2022-01-20 08:12:51,052 - __init__.py[DEBUG]: achieving renaming of [['52:54:
2022-01-20 08:12:51,052 - subp.py[DEBUG]: Running command ['ip', 'link', 'set', 'ens3', 'name', 'eth0'] with allowed return codes [0] (shell=False, capture=True)
2022-01-20 08:12:51,068 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'version': 2, 'ethernets': {'eth0': {'set-name': 'eth0', 'mtu': 1400, 'match': {'macaddress': '52:54:00:27:b0:7a'
}, 'addresses': ['10.54.2.35/21', '2a00:1730:
0/0', 'via': '10.54.0.1', 'scope': 'link'}, {'to': '2a00:1730:
0.52.1.1', '10.52.1.71', '2001:4860:
2022-01-20 08:12:51,069 - __init__.py[DEBUG]: Selected renderer 'sysconfig' from priority list: None
2022-01-20 08:12:51,069 - network_
{'type': 'physical', 'name': 'eth0', 'mac_address': '52:54:
1', 'dns_nameservers': ['10.52.1.1', '10.52.1.71', '2001:4860:
y': '10.54.0.1', 'network': '0.0.0.0', 'prefix': 0, 'netmask': '0.0.0.0'}, {'gateway': '::0', 'network': '2a00:1730:
0}]}, {'type': 'static', 'address': '2a00:1730:
2022-01-20 08:12:51,084 - network_
{'eth0': {'set-name': 'eth0', 'mtu': 1400, 'match': {'macaddress': '52:54:
, 'routes': [{'to': '10.54.0.1/32', 'via': '0.0.0.0', 'scope': 'link'}, {'to': '0.0.0.0/0', 'via': '10.54.0.1', 'scope': 'link'}, {'to': '2a00:1730:
', 'via': '2a00:1730:
2022-01-20 08:12:51,085 - sysconfig.
2022-01-20 08:12:51,095 - util.py[WARNING]: failed stage init-local
2022-01-20 08:12:51,100 - util.py[DEBUG]: failed stage init-local
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
return self.distro.
File "/usr/lib/
dev_names = self._write_
File "/usr/lib/
return self._supported
File "/usr/lib/
renderer.
File "/usr/lib/
templates=
File "/usr/lib/
templates=
File "/usr/lib/
contents[cpath] = iface_cfg.
File "/usr/lib/
netmask_value = str(self.
KeyError: 'NETMASK2'
Cloud-init v. 21.1-7.el8_5.3.alma running 'init-local' at Thu, 20 Jan 2022 08:12:50 +0000. Up 7.59 seconds.
2022-01-20 08:12:51,095 - util.py[WARNING]: failed stage init-local
failed run of stage init-local
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
init.
File "/usr/lib/
return self.distro.
File "/usr/lib/
dev_names = self._write_
File "/usr/lib/
return self._supported
File "/usr/lib/
renderer.
File "/usr/lib/
templates=
File "/usr/lib/
templates=
File "/usr/lib/
contents[cpath] = iface_cfg.
File "/usr/lib/
netmask_value = str(self.
KeyError: 'NETMASK2'
-------
Cloud-init v. 21.1-7.el8_5.3.alma running 'init' at Thu, 20 Jan 2022 08:13:51 +0000. Up 69.37 seconds.
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | eth0 | True | fe80::1e54:
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
ci-info: | lo | True | ::1/128 | . | host | . |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Interface | Flags |
ci-info: +------
ci-info: | 1 | fe80::/64 | :: | eth0 | U |
ci-info: | 3 | local | :: | eth0 | U |
ci-info: | 4 | multicast | :: | eth0 | U |
ci-info: +------
The same error in RockyLinux
# grep NETMASK2 /var/log/
KeyError: 'NETMASK2'
[root@pablo-qtfsts ~]# cat /etc/os-release | grep PRETTY_NAME
PRETTY_NAME="Rocky Linux 8.4 (Green Obsidian)"
description: | updated |
description: | updated |
Thank you for the detailed bug report. In order to help debug, please also run "cloud-init collect-logs" on an affected instance and attach the tarball here. Additionally, please attach/pastebin any network configuration that was provided to the instance.
Once you've attached these items, feel free to change the status back to "New".