I’m booting a MicroOS with the an Ignition-configuration (relevant parts below). I’m basically trying to set a static ip (+ default route) and a static DNS resolver.
This has been working for a few months, but recently I updated the base-image I’m spawning MicroOS-instances from and suddenly I run into problems.
By trial-and-error I’ve come down to this: As soon as the file /etc/sysconfig/network/config is included/overwritten by ignition, once I run transactional-update pkg install python3 (or similar command) I get:
# transactional-update pkg install python3
Checking for newer version.
transactional-update 3.1.4 started
Options: pkg install python3
Separate /var detected.
ERROR: filesystem error: cannot copy: File exists [/run/netconfig] /.snapshots/2/snapshot/run/netconfig]
Calling zypper install
2021-02-23 14:14:00 tukit 3.1.4 started
2021-02-23 14:14:00 Options: call bash -c exec -a tu_keep-transaction-alive sleep 1d
ERROR: Snapshot does not exist.
And then it just keeps hanging…
What does that mean? Can I debug it somehow?
I can see in http://mirrors.dotsrc.org/opensuse/tumbleweed/iso/Changes.MicroOS.20210218.txt that transactional-update has been updated to a new major - Don’t know if that is related. I can’t seem to find older versions of MicroOS images so I could test when exactly this issue occured (Is there any archive?)
Relevant Ignition file (network/config copied from an image without it overwritten and removed comments, adding static DNS and NTP)
storage:
files:
- path: /etc/sysconfig/network/ifcfg-eth0
mode: 0600
overwrite: true
contents:
inline: |
BOOTPROTO='static'
STARTMODE='auto'
IPADDR='{{ip6}}/64'
- path: /etc/sysconfig/network/ifroute-eth0
mode: 0644
overwrite: true
contents:
inline: |
default {{ipv6defaultgw}} - eth0
- path: /etc/sysconfig/network/config
mode: 0644
overwrite: true
contents:
inline: |
AUTO6_WAIT_AT_BOOT=""
AUTO6_UPDATE=""
LINK_REQUIRED="auto"
WICKED_DEBUG="yes"
WICKED_LOG_LEVEL=""
CHECK_DUPLICATE_IP="yes"
SEND_GRATUITOUS_ARP="auto"
DEBUG="yes"
WAIT_FOR_INTERFACES="30"
FIREWALL="no"
NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime"
NETCONFIG_VERBOSE="yes"
NETCONFIG_FORCE_REPLACE="no"
NETCONFIG_DNS_POLICY="auto"
NETCONFIG_DNS_FORWARDER="resolver"
NETCONFIG_DNS_FORWARDER_FALLBACK="no"
NETCONFIG_DNS_STATIC_SEARCHLIST=""
NETCONFIG_DNS_STATIC_SERVERS=""
#NETCONFIG_DNS_STATIC_SERVERS="2606:4700:4700::1001"
NETCONFIG_DNS_RANKING=""
NETCONFIG_DNS_RESOLVER_OPTIONS=""
NETCONFIG_DNS_RESOLVER_SORTLIST=""
NETCONFIG_NTP_POLICY="auto"
NETCONFIG_NTP_STATIC_SERVERS="2.pool.ntp.org"
NETCONFIG_NIS_POLICY=""