kairos: :bug: stages commands getting skipped if present on multiple cloud init files
Kairos version:
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
KAIROS_NAME="kairos-core-ubuntu-22-lts"
KAIROS_VERSION="v2.3.1"
KAIROS_ID="kairos"
KAIROS_ID_LIKE="kairos-core-ubuntu-22-lts"
KAIROS_VERSION_ID="v2.3.1"
KAIROS_PRETTY_NAME="kairos-core-ubuntu-22-lts v2.3.1"
KAIROS_BUG_REPORT_URL="https://github.com/kairos-io/kairos/issues"
KAIROS_HOME_URL="https://github.com/kairos-io/kairos"
KAIROS_IMAGE_REPO="quay.io/kairos/core-ubuntu-22-lts"
KAIROS_IMAGE_LABEL="latest"
KAIROS_GITHUB_REPO="kairos-io/kairos"
KAIROS_VARIANT="core"
KAIROS_FLAVOR="ubuntu-22-lts"
CPU architecture, OS, and Version:
edge-b2263842120d39bd52240124271196c4 5.19.0-50-generic #50-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 10 18:24:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug we have two files in /oem: 80_stylus.yaml
initramfs:
- commands:
- mkdir -p /opt/testing-80-stylus
85_cluster_config.yaml
initramfs:
- commands:
- mkdir -p /opt/testing-85-cluster-config
testing-80-stylus is getting created every time but testing-85-cluster-config is only getting created when I add a name flag. So, if I add a name flag like this:
initramfs:
- commands:
- mkdir -p /opt/testing-85-cluster-config
name: "creating 85"
and the folder got created.
On contrast, I rename the 85_cluster_config.yaml to 75_cluster_config.yaml with following contents:
initramfs:
- commands:
- mkdir -p /opt/testing-75-cluster-config
and this time testing-75-cluster-config directory got created but testing-80-stylus did not regardless of the name. It seems the file which is getting read first got executed first while the other command in the same stage is getting skipped.
Kairos-agent version: v2.1.12
Expected behavior
Both initramfs commands should get executed regardless of order.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (14 by maintainers)
@mauromorales suggested to use name in all command sub sections, we have hit some limitations with using this workaround as it will trigger notifications/repave of clusters. It would be good if this is prioritised higher!