Skip to content

kairos-agent list-releases using wrong url #3814

@jasperdekeuk

Description

@jasperdekeuk

Kairos version:

<!-- Provide the output from "cat /etc/os-release" -->
<!-- Provide the output from "cat /etc/kairos-release" -->
KAIROS_ARCH="amd64"
KAIROS_BUG_REPORT_URL="https://github.com/kairos-io/kairos/issues"
KAIROS_FAMILY="debian"
KAIROS_FIPS="false"
KAIROS_FLAVOR="ubuntu"
KAIROS_FLAVOR_RELEASE="24.04"
KAIROS_HOME_URL="https://github.com/kairos-io/kairos"
KAIROS_ID="kairos"
KAIROS_ID_LIKE="kairos-core-ubuntu-24.04"
KAIROS_INIT_VERSION="v0.7.0"
KAIROS_MODEL="generic"
KAIROS_NAME="kairos-core-ubuntu-24.04"
KAIROS_RELEASE="v0.0.1"
KAIROS_TARGETARCH="amd64"
KAIROS_TRUSTED_BOOT="false"
KAIROS_VARIANT="core"
KAIROS_VERSION="v0.0.1"

CPU architecture, OS, and Version:

Azure vm X86

Linux vm-3 6.14.0-36-generic #36~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 15 15:45:17 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Describe the bug

Starting with an Azure vm with the default published kairos image. After changing the source and doing an upgrade, the upgrade is done fine and my custom image is running. But if I then do a kairos-agent upgrade list-releases I get a strange result. It uses my tag indeed but not the proper registry url

sudo kairos-agent upgrade list-releases
Using registry: quay.io/kairos
Current image:
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v0.0.1

Available releases with higher version:
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.6.0
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.5.10
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.5.9
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.5.8
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.5.7
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.5.6
quay.io/kairos/ubuntu:24.04-core-amd64-generic-v3.5.5

To Reproduce

  1. start with an installed machine
  2. change the source in the upgrade of cloud-config to a new (private) registry
  3. run an upgrade
  4. after upgrade is done check the list-releases

Expected behavior

I would expect the list-releases to always use the source as reference to check for updates (this also helps in testing if private repo is reachable with auth)

Logs

Additional context

Problem seems to be only for the list-releases, when doing an actual upgrade it works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAdd this label to issues that should be triaged and prioretized in the next planning callunconfirmed

    Type

    No type

    Projects

    Status

    Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions