BOTOPROTO handling between RHEL/Centos/Fedora and SUSE distros is different
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Looks like we need to figure out how to do distribution specific handling in sysconfig.py for the file content anyway.
For a static network configuration on openSUSE and SLES BOTOPROTO must be set to "static", but based on the comment in sysconfig.py
# grep BOOTPROTO sysconfig.txt -A2 | head -3
# BOOTPROTO=
# 'bootp' or 'dhcp' cause a DHCP client
# to run on the device. Any other
# value causes any static configuration
# in the file to be applied.
# ==> the following should not be set to 'static'
# but should remain 'none'
# if iface_cfg[
# iface_cfg[
This might cause trouble on RHEL/Centos/Fedora
I will carry the following in the SUSE package for now:
--- cloudinit/ net/sysconfig. py.orig net/sysconfig. py renderer. Renderer) : 'BOOTPROTO' ] == 'none': 'BOOTPROTO' ] = 'static' 'BOOTPROTO' ] = 'static' is_ipv6( subnet) :
mtu_key = 'IPV6_MTU'
iface_cfg[ 'IPV6INIT' ] = True
+++ cloudinit/
@@ -314,7 +314,8 @@ class Renderer(
# ==> the following should not be set to 'static'
# but should remain 'none'
# if iface_cfg[
- # iface_cfg[
+ # For SUSE this is different set to "static"
+ iface_cfg[
if subnet_