Default Gateway is set in the wrong file in openSUSE

Bug #1805644 reported by Zurdo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

openSUSE's network renderer sets the gateway in `/etc/sysconfig/network/ifcfg-eth0` instead of `/etc/sysconfig/network/routes`.

I'm using openSUSE Leap 15.0, OpenStack build downloaded from [here](https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.0/images/). The included version of cloud-init is 18.4.

Data source is `nocloud`, using the image generated by Proxmox. Attached.

Revision history for this message
Zurdo (zurdos) wrote :
Revision history for this message
Zurdo (zurdos) wrote :
description: updated
Revision history for this message
Zurdo (zurdos) wrote :

Possibly related to:

 - https://bugs.launchpad.net/cloud-init/+bug/1799301 - SUSE sysconfig renderer enablement incomplete (This bugs sees cloud-init believing it should behave the same in RHEL/CentOS as in openSUSE, assuming /etc/sysconfig/network-scripts exists, when it's just /etc/sysconfig/network in SUSE)
 - https://bugs.launchpad.net/cloud-init/+bug/1733226 - cloud-init-local service fails on SUSE distros (Wicked appears to be unique to SUSE, and it apparently expects the default gateway in `routes` instead of `ifcfg-eth0`. This is another easily overlooked difference when compared to RHEL)

SLES remains untested, but given that the "sles.py" distro loads the "opensuse.py" distro, I expect the same behaviour.

Revision history for this message
Ryan Harper (raharper) wrote :

Thanks for filing the issue. the sysconfig renderer does need some updates for opensuse specifically around routes files.

Changed in cloud-init:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Confirmed → Expired
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.