Combustion script fails to install kubernetes

This is my script

#!/bin/bash

cp vconsole.conf /etc/vconsole.conf && chmod 644 /etc/vconsole.conf
rm /etc/localtime && ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
echo root:root | chpasswd

cp sshd_config /etc/ssh
mkdir -p /root/.ssh
echo <censored> >> /root/.ssh/authorized_keys

zypper dup -y
zypper in -y containerd
zypper in -y conntrack-tools
zypper in -y socat
zypper in -y ethtool
zypper addrepo https://download.opensuse.org/repositories/devel:kubic/openSUSE_Tumbleweed/devel:kubic.repo
zypper refresh
zypper install kubernetes1.29-kubeadm
zypper install kubernetes1.29-kubelet

mkdir -p /etc/modules-load.d

sudo tee /etc/modules-load.d/containerd.conf << EOF
overlay
br_netfilter
EOF

cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
overlay
br_netfilter
EOF

mkdir -p /etc/sysctl.d
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-iptables  = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_forward                 = 1
EOF

systemctl enable containerd
systemctl enable kubelet
systemctl enable kubeadm

cp firstbootreboot.service /etc/systemd/system/
systemctl enable firstbootreboot.service

exec > >(exec tee -a /dev/tty0) 2>&1

when entering with ssh to run kubeadm init results that it was not installed, not even containerd was installed

What is the output from your script?

Inexistent so far I know, because (1) it restart the machine, and for what I know combustion does not print it.

You could run the commands without combustion and see what the output is.

I don’t know anything about combustion itself, but I would be really surprised if there was no logging anywhere that said what the results of a script were. But it’s just a bash script, so my approach would be to run the commands in a test environment and see what the outputs are. That’ll probably tell you what’s not working.

The examples that I’ve found that include zypper seem to specify --non-interactive - the man page suggests that -y should not be used, and --non-interactive is preferred. Perhaps that has something to do with it.

Found the logs:

Feb 19 19:05:31 localhost systemd[1]: Starting Combustion...
Feb 19 19:07:12 localhost combustion[828]: Checking for newer version.
Feb 19 19:07:15 localhost combustion[829]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:15 localhost combustion[829]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:15 localhost combustion[829]: History:
Feb 19 19:07:15 localhost combustion[829]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:15 localhost combustion[829]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:15 localhost combustion[829]:    Error code: Connection failed
Feb 19 19:07:15 localhost combustion[829]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:15 localhost combustion[829]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:15 localhost combustion[829]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:15 localhost combustion[829]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:15 localhost combustion[829]: History:
Feb 19 19:07:15 localhost combustion[829]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:15 localhost combustion[829]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:15 localhost combustion[829]:    Error code: Connection failed
Feb 19 19:07:15 localhost combustion[829]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:15 localhost combustion[829]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:15 localhost combustion[829]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:15 localhost combustion[828]: transactional-update 4.1.4 started
Feb 19 19:07:15 localhost combustion[828]: Options: shell
Feb 19 19:07:16 localhost combustion[828]: Separate /var detected.
Feb 19 19:07:20 localhost combustion[828]: 2024-02-19 19:07:16 tukit 4.1.4 started
Feb 19 19:07:20 localhost combustion[828]: 2024-02-19 19:07:16 Options: -c1 open
Feb 19 19:07:20 localhost combustion[828]: Failure (dbus fatal exception).
Feb 19 19:07:20 localhost combustion[828]: 2024-02-19 19:07:18 Using snapshot 1 as base for new snapshot 2.
Feb 19 19:07:20 localhost combustion[828]: 2024-02-19 19:07:18 No previous snapshot to sync with - skipping
Feb 19 19:07:20 localhost combustion[828]: ID: 2
Feb 19 19:07:20 localhost combustion[828]: 2024-02-19 19:07:20 Transaction completed.
Feb 19 19:07:20 localhost combustion[828]: Opening chroot in snapshot 2, continue with 'exit'
Feb 19 19:07:20 localhost combustion[930]: 2024-02-19 19:07:20 tukit 4.1.4 started
Feb 19 19:07:20 localhost combustion[930]: 2024-02-19 19:07:20 Options: call 2 bash
Feb 19 19:07:20 localhost combustion[931]: Failure (dbus fatal exception).
Feb 19 19:07:20 localhost combustion[930]: 2024-02-19 19:07:20 Executing `bash`:
Feb 19 19:07:21 localhost combustion[940]: BAD PASSWORD: it is too short
Feb 19 19:07:21 localhost combustion[940]: BAD PASSWORD: is too simple
Feb 19 19:07:23 localhost combustion[945]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:23 localhost combustion[945]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:23 localhost combustion[945]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:23 localhost combustion[945]: History:
Feb 19 19:07:23 localhost combustion[945]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:23 localhost combustion[945]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:23 localhost combustion[945]:    Error code: Connection failed
Feb 19 19:07:23 localhost combustion[945]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:23 localhost combustion[945]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:23 localhost combustion[945]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:23 localhost combustion[945]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:23 localhost combustion[945]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:23 localhost combustion[945]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:23 localhost combustion[945]: History:
Feb 19 19:07:23 localhost combustion[945]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:23 localhost combustion[945]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:23 localhost combustion[945]:    Error code: Connection failed
Feb 19 19:07:23 localhost combustion[945]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:23 localhost combustion[945]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:23 localhost combustion[945]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:23 localhost combustion[945]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:23 localhost combustion[945]: Loading repository data...
Feb 19 19:07:23 localhost combustion[945]: Reading installed packages...
Feb 19 19:07:23 localhost combustion[945]: Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Feb 19 19:07:23 localhost combustion[945]: Computing distribution upgrade...
Feb 19 19:07:23 localhost combustion[945]: Nothing to do.
Feb 19 19:07:24 localhost combustion[979]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:24 localhost combustion[979]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:24 localhost combustion[979]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:24 localhost combustion[979]: History:
Feb 19 19:07:24 localhost combustion[979]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:24 localhost combustion[979]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:24 localhost combustion[979]:    Error code: Connection failed
Feb 19 19:07:24 localhost combustion[979]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:24 localhost combustion[979]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:24 localhost combustion[979]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:24 localhost combustion[979]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:24 localhost combustion[979]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:24 localhost combustion[979]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:24 localhost combustion[979]: History:
Feb 19 19:07:24 localhost combustion[979]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:24 localhost combustion[979]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:24 localhost combustion[979]:    Error code: Connection failed
Feb 19 19:07:24 localhost combustion[979]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:24 localhost combustion[979]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:24 localhost combustion[979]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:24 localhost combustion[979]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:24 localhost combustion[979]: Loading repository data...
Feb 19 19:07:24 localhost combustion[979]: Reading installed packages...
Feb 19 19:07:24 localhost combustion[979]: 'containerd' not found in package names. Trying capabilities.
Feb 19 19:07:24 localhost combustion[979]: No provider of 'containerd' found.
Feb 19 19:07:25 localhost combustion[1013]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:25 localhost combustion[1013]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:25 localhost combustion[1013]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:25 localhost combustion[1013]: History:
Feb 19 19:07:25 localhost combustion[1013]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:25 localhost combustion[1013]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:25 localhost combustion[1013]:    Error code: Connection failed
Feb 19 19:07:25 localhost combustion[1013]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:25 localhost combustion[1013]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:25 localhost combustion[1013]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:25 localhost combustion[1013]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:25 localhost combustion[1013]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:25 localhost combustion[1013]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:25 localhost combustion[1013]: History:
Feb 19 19:07:25 localhost combustion[1013]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:25 localhost combustion[1013]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:25 localhost combustion[1013]:    Error code: Connection failed
Feb 19 19:07:25 localhost combustion[1013]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:25 localhost combustion[1013]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:25 localhost combustion[1013]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:25 localhost combustion[1013]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:25 localhost combustion[1013]: Loading repository data...
Feb 19 19:07:25 localhost combustion[1013]: Reading installed packages...
Feb 19 19:07:25 localhost combustion[1013]: 'conntrack-tools' not found in package names. Trying capabilities.
Feb 19 19:07:25 localhost combustion[1013]: No provider of 'conntrack-tools' found.
Feb 19 19:07:27 localhost combustion[1047]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:27 localhost combustion[1047]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:27 localhost combustion[1047]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:27 localhost combustion[1047]: History:
Feb 19 19:07:27 localhost combustion[1047]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:27 localhost combustion[1047]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:27 localhost combustion[1047]:    Error code: Connection failed
Feb 19 19:07:27 localhost combustion[1047]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:27 localhost combustion[1047]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:27 localhost combustion[1047]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:27 localhost combustion[1047]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:27 localhost combustion[1047]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:27 localhost combustion[1047]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:27 localhost combustion[1047]: History:
Feb 19 19:07:27 localhost combustion[1047]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:27 localhost combustion[1047]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:27 localhost combustion[1047]:    Error code: Connection failed
Feb 19 19:07:27 localhost combustion[1047]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:27 localhost combustion[1047]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:27 localhost combustion[1047]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:27 localhost combustion[1047]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:27 localhost combustion[1047]: Loading repository data...
Feb 19 19:07:27 localhost combustion[1047]: Reading installed packages...
Feb 19 19:07:27 localhost combustion[1047]: 'socat' not found in package names. Trying capabilities.
Feb 19 19:07:27 localhost combustion[1047]: No provider of 'socat' found.
Feb 19 19:07:28 localhost combustion[1081]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:28 localhost combustion[1081]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:28 localhost combustion[1081]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:28 localhost combustion[1081]: History:
Feb 19 19:07:28 localhost combustion[1081]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:28 localhost combustion[1081]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:28 localhost combustion[1081]:    Error code: Connection failed
Feb 19 19:07:28 localhost combustion[1081]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:28 localhost combustion[1081]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:28 localhost combustion[1081]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:28 localhost combustion[1081]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:28 localhost combustion[1081]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:28 localhost combustion[1081]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:28 localhost combustion[1081]: History:
Feb 19 19:07:28 localhost combustion[1081]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:28 localhost combustion[1081]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:28 localhost combustion[1081]:    Error code: Connection failed
Feb 19 19:07:28 localhost combustion[1081]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:28 localhost combustion[1081]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:28 localhost combustion[1081]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:28 localhost combustion[1081]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:28 localhost combustion[1081]: Loading repository data...
Feb 19 19:07:28 localhost combustion[1081]: Reading installed packages...
Feb 19 19:07:28 localhost combustion[1081]: 'ethtool' not found in package names. Trying capabilities.
Feb 19 19:07:28 localhost combustion[1081]: No provider of 'ethtool' found.
Feb 19 19:07:28 localhost combustion[1115]: Download (curl) error for 'https://download.opensuse.org/repositories/devel:kubic/openSUSE_Tumbleweed/devel:kubic.repo':
Feb 19 19:07:28 localhost combustion[1115]: Error code: Connection failed
Feb 19 19:07:28 localhost combustion[1115]: Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:28 localhost combustion[1115]: Abort, retry, ignore? [a/r/i/...? shows all options] (a): Cannot read input: bad stream or EOF.
Feb 19 19:07:28 localhost combustion[1115]: If you run zypper without a terminal, use '--non-interactive' global
Feb 19 19:07:28 localhost combustion[1115]: option to make zypper use default answers to prompts.
Feb 19 19:07:28 localhost combustion[1115]: Problem encountered while trying to read the file at the specified URI:
Feb 19 19:07:28 localhost combustion[1115]: Cannot read input. Bad stream or EOF.
Feb 19 19:07:29 localhost combustion[1118]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:29 localhost combustion[1118]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:29 localhost combustion[1118]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:29 localhost combustion[1118]: History:
Feb 19 19:07:29 localhost combustion[1118]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:29 localhost combustion[1118]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:29 localhost combustion[1118]:    Error code: Connection failed
Feb 19 19:07:29 localhost combustion[1118]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:29 localhost combustion[1118]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:29 localhost combustion[1118]: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:29 localhost combustion[1118]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:29 localhost combustion[1118]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:29 localhost combustion[1118]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:29 localhost combustion[1118]: History:
Feb 19 19:07:29 localhost combustion[1118]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:29 localhost combustion[1118]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:29 localhost combustion[1118]:    Error code: Connection failed
Feb 19 19:07:29 localhost combustion[1118]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:29 localhost combustion[1118]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:29 localhost combustion[1118]: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:29 localhost combustion[1118]: Could not refresh the repositories because of errors.
Feb 19 19:07:30 localhost combustion[1152]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:30 localhost combustion[1152]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:30 localhost combustion[1152]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:30 localhost combustion[1152]: History:
Feb 19 19:07:30 localhost combustion[1152]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:30 localhost combustion[1152]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:30 localhost combustion[1152]:    Error code: Connection failed
Feb 19 19:07:30 localhost combustion[1152]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:30 localhost combustion[1152]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:30 localhost combustion[1152]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:30 localhost combustion[1152]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:30 localhost combustion[1152]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:30 localhost combustion[1152]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:30 localhost combustion[1152]: History:
Feb 19 19:07:30 localhost combustion[1152]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:30 localhost combustion[1152]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:30 localhost combustion[1152]:    Error code: Connection failed
Feb 19 19:07:30 localhost combustion[1152]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:30 localhost combustion[1152]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:30 localhost combustion[1152]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:30 localhost combustion[1152]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:30 localhost combustion[1152]: Loading repository data...
Feb 19 19:07:30 localhost combustion[1152]: Reading installed packages...
Feb 19 19:07:31 localhost combustion[1152]: 'kubernetes1.29-kubeadm' not found in package names. Trying capabilities.
Feb 19 19:07:31 localhost combustion[1152]: No provider of 'kubernetes1.29-kubeadm' found.
Feb 19 19:07:31 localhost combustion[1152]: Resolving package dependencies...
Feb 19 19:07:31 localhost combustion[1152]: Nothing to do.
Feb 19 19:07:32 localhost combustion[1186]: Retrieving repository 'Leap Micro Main Repository' metadata [.error]
Feb 19 19:07:32 localhost combustion[1186]: Repository 'Leap Micro Main Repository' is invalid.
Feb 19 19:07:32 localhost combustion[1186]: [repo-main|https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/] Valid metadata not found at specified URL
Feb 19 19:07:32 localhost combustion[1186]: History:
Feb 19 19:07:32 localhost combustion[1186]:  - [|] Error trying to read from 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/'
Feb 19 19:07:32 localhost combustion[1186]:  - Download (curl) error for 'https://download.opensuse.org/distribution/leap-micro/5.5/product/repo/Leap-Micro-5.5-x86_64-Media1/content':
Feb 19 19:07:32 localhost combustion[1186]:    Error code: Connection failed
Feb 19 19:07:32 localhost combustion[1186]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:32 localhost combustion[1186]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:32 localhost combustion[1186]: Warning: Skipping repository 'Leap Micro Main Repository' because of the above error.
Feb 19 19:07:32 localhost combustion[1186]: Retrieving repository 'SLE Micro Update Repository' metadata [.error]
Feb 19 19:07:32 localhost combustion[1186]: Repository 'SLE Micro Update Repository' is invalid.
Feb 19 19:07:32 localhost combustion[1186]: [repo-sle-update|https://download.opensuse.org/update/leap-micro/5.5/sle/] Valid metadata not found at specified URL
Feb 19 19:07:32 localhost combustion[1186]: History:
Feb 19 19:07:32 localhost combustion[1186]:  - [|] Error trying to read from 'https://download.opensuse.org/update/leap-micro/5.5/sle/'
Feb 19 19:07:32 localhost combustion[1186]:  - Download (curl) error for 'https://download.opensuse.org/update/leap-micro/5.5/sle/content':
Feb 19 19:07:32 localhost combustion[1186]:    Error code: Connection failed
Feb 19 19:07:32 localhost combustion[1186]:    Error message: Could not resolve host: download.opensuse.org
Feb 19 19:07:32 localhost combustion[1186]: Please check if the URIs defined for this repository are pointing to a valid repository.
Feb 19 19:07:32 localhost combustion[1186]: Warning: Skipping repository 'SLE Micro Update Repository' because of the above error.
Feb 19 19:07:32 localhost combustion[1186]: Some of the repositories have not been refreshed because of an error.
Feb 19 19:07:32 localhost combustion[1186]: Loading repository data...
Feb 19 19:07:32 localhost combustion[1186]: Reading installed packages...
Feb 19 19:07:32 localhost combustion[1186]: 'kubernetes1.29-kubelet' not found in package names. Trying capabilities.
Feb 19 19:07:32 localhost combustion[1186]: No provider of 'kubernetes1.29-kubelet' found.
Feb 19 19:07:32 localhost combustion[1186]: Resolving package dependencies...
Feb 19 19:07:32 localhost combustion[1186]: Nothing to do.
Feb 19 19:07:32 localhost combustion[1222]: overlay
Feb 19 19:07:32 localhost combustion[1222]: br_netfilter
Feb 19 19:07:32 localhost combustion[1225]: overlay
Feb 19 19:07:32 localhost combustion[1225]: br_netfilter
Feb 19 19:07:32 localhost combustion[1229]: net.bridge.bridge-nf-call-iptables  = 1
Feb 19 19:07:32 localhost combustion[1229]: net.bridge.bridge-nf-call-ip6tables = 1
Feb 19 19:07:32 localhost combustion[1229]: net.ipv4.ip_forward                 = 1
Feb 19 19:07:32 localhost combustion[1230]: Failed to enable unit, unit containerd.service does not exist.
Feb 19 19:07:32 localhost combustion[1231]: Failed to enable unit, unit kubelet.service does not exist.
Feb 19 19:07:33 localhost combustion[1232]: Failed to enable unit, unit kubeadm.service does not exist.
Feb 19 19:07:33 localhost combustion[1234]: Created symlink /etc/systemd/system/default.target.wants/firstbootreboot.service -> /etc/systemd/system/firstbootreboot.service.
Feb 19 19:07:33 localhost combustion[930]: 2024-02-19 19:07:33 Application returned with exit status 0.
Feb 19 19:07:37 localhost combustion[930]: 2024-02-19 19:07:37 Transaction completed.
Feb 19 19:07:37 localhost combustion[1240]: 2024-02-19 19:07:37 tukit 4.1.4 started
Feb 19 19:07:37 localhost combustion[1240]: 2024-02-19 19:07:37 Options: close 2
Feb 19 19:07:37 localhost combustion[1240]: Failure (dbus fatal exception).
Feb 19 19:07:40 localhost combustion[1240]: 2024-02-19 19:07:40 New default snapshot is #2 (/.snapshots/2/snapshot).
Feb 19 19:07:40 localhost combustion[1240]: 2024-02-19 19:07:40 Transaction completed.
Feb 19 19:07:40 localhost combustion[828]: Please reboot your machine to activate the changes and avoid data loss.
Feb 19 19:07:40 localhost combustion[828]: New default snapshot is #2 (/.snapshots/2/snapshot).
Feb 19 19:07:40 localhost combustion[828]: transactional-update finished
Feb 19 19:07:40 localhost systemd[1]: combustion.service: Deactivated successfully.
Feb 19 19:07:40 localhost systemd[1]: Finished Combustion.
-- Boot e4364a9672f94ccda6cdd5c13641ff92 --
Feb 19 19:09:38 localhost systemd[1]: Condition check resulted in Combustion being skipped.
-- Boot 11a03acdd4e64f80a3af4e4b33b0f783 --
Feb 20 06:15:01 localhost systemd[1]: Condition check resulted in Combustion being skipped.

Seems that at this point of the script, the network isn’t yet up and running.

That’s what I’d start looking at.

My actual attempt at solution How can I install gpg key in a non interactive combistion 'script'

Here are my logs:
journalclt -u secondstage.service:
https://paste.opensuse.org/pastes/1abd6a144462

It seems you have multiple threads covering issues that come back to the same root - and that Malcolm is helping you in one of those threads. I’d suggest sticking with one thread rather than 2 or 3 so the help is concentrated and efforts aren’t duplicated.

Anyway how can I get connection in the combustion script without doing that systemd trickery?

What are you using to manage network?

I am using a unmodified preconfigured image from OpenSUSE get https://software.opensuse.org/

Looks like this is the solution:

…which is the reason to keep this in one thread so the troubleshooting can be coordinated and consolidated, rather than spreading it over multiple threads.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.