I have an openSUSE Tumbleweed instance on OpenStack. I got a problem which is the instance failed to get an IP Address for eth0 interface at boot.

During cloud init, I found that cloud init failed on network configuration. Here is the solution:

Disable network config in cloud init:

vi /etc/cloud/cloud.cfg
1
2
network:
  config: disabled

Edit eth0 configuration:

vi /etc/sysconfig/network/ifcfg-eth0
1
2
3
4
5
6
7
8
BOOTPROTO='dhcp'
DEVICE='eth0'
HWADDR='fa:16:3e:03:7a:3d'
NM_CONTROLLED='no'
ONBOOT='yes'
TYPE="Ethernet"
USERCTL='no'
STARTMODE='auto'

Reboot the instance:

reboot

Referensi: