Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 kairos-agent upgrade is wrong #1320

Closed
Tracked by #1222
Itxaka opened this issue Apr 19, 2023 · 5 comments · Fixed by #1323
Closed
Tracked by #1222

🐛 kairos-agent upgrade is wrong #1320

Itxaka opened this issue Apr 19, 2023 · 5 comments · Fixed by #1323
Assignees
Labels
bug Something isn't working

Comments

@Itxaka
Copy link
Member

Itxaka commented Apr 19, 2023

Kairos version:

kairos-LVM:~ # cat /etc/os-release 
NAME="kairos-core-opensuse-leap"
VERSION="v2.0.0-28-g434edb5-dirty"
ID="kairos"
ID_LIKE="kairos-core-opensuse-leap"
VERSION_ID="v2.0.0-28-g434edb5-dirty"
PRETTY_NAME="kairos-core-opensuse-leap v2.0.0-28-g434edb5-dirty"
ANSI_COLOR="0;32"
BUG_REPORT_URL="https://github.com/kairos-io/kairos/issues"
HOME_URL="https://github.com/kairos-io/kairos"
IMAGE_REPO="quay.io/kairos/core-opensuse-leap"
IMAGE_LABEL="latest"
GITHUB_REPO="kairos-io/kairos"
VARIANT="core"

CPU architecture, OS, and Version:

Linux kairos-LVM 5.14.21-150500.48-default #1 SMP PREEMPT_DYNAMIC Thu Apr 6 08:23:23 UTC 2023 (50e397b) x86_64 x86_64 x86_64 GNU/Linux

Describe the bug
running kairos-agent upgrade results in the agent suggesting to use version v1.0.0 as latest.

To Reproduce

kairos-LVM:~ # kairos-agent upgrade
Latest release is v1.0.0
Are you sure you want to upgrade to this release? (y/n) n

Expected behavior
running kairos-agent upgrade suggest the real latest version (i.e. v2.0.0 in this particular case?

Logs

Additional context

@Itxaka Itxaka added the bug Something isn't working label Apr 19, 2023
@mudler mudler mentioned this issue Apr 19, 2023
26 tasks
@mudler mudler removed their assignment Apr 19, 2023
@mudler
Copy link
Member

mudler commented Apr 19, 2023

this should be an easy fix and possibly go in the next patch release

@mauromorales
Copy link
Member

running kairos-agent upgrade suggest the real latest version (i.e. v2.0.0 in this particular case?

There's no later release in this case IMO. Since you're already running v2.0. Instead, it should show a message saying it's running latest already.

How does it look if executed from v1.6?

@Itxaka
Copy link
Member Author

Itxaka commented Apr 19, 2023

running kairos-agent upgrade suggest the real latest version (i.e. v2.0.0 in this particular case?

There's no later release in this case IMO. Since you're already running v2.0. Instead, it should show a message saying it's running latest already.

How does it look if executed from v1.6?

well, I guess because Im using a non-final 2.0.0 it may be confused? In any case, if it has to suggest the latest, it would still need to suggest 2.0.0 instead of 1.0.0 :D

@mauromorales
Copy link
Member

So this would be the expected behaviour?

  • v2.0-asdfasdf -> suggest v2.0
  • v2.0 -> message saying there's nothing newer
  • anything else -> suggest v2.0

@Itxaka
Copy link
Member Author

Itxaka commented Apr 19, 2023

So this would be the expected behaviour?

  • v2.0-asdfasdf -> suggest v2.0
  • v2.0 -> message saying there's nothing newer
  • anything else -> suggest v2.0

Yep, I guess that would be the expected outcome, so if you are on an rcX it would get you upgrade to the final version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants