Default Gateway is set in the wrong file in openSUSE

Bug #1805644 reported by Zurdo on 2018-11-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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]( The included version of cloud-init is 18.4.

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

Zurdo (zurdos) wrote :
Zurdo (zurdos) wrote :
description: updated
Zurdo (zurdos) wrote :

Possibly related to:

 - - 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)
 - - 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 "" distro loads the "" distro, I expect the same behaviour.

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers