uyuni-project / uyuni-tools

Tools to work with containerized Uyuni server
Apache License 2.0
14 stars 18 forks source link

show output of podman image search --list-tags command #407

Closed mbussolotto closed 2 months ago

mbussolotto commented 2 months ago

What does this PR change?

show output of podman image search --list-tags command, so in case of failure it would provide more info. E.g.

suma50:~ # ./mgradm upgrade podman list --image registry.suse.com/suse/manager/5.0/x86_64/server
3:53PM INF Welcome to mgradm
3:53PM INF Executing command: list
3:53PM INF Running podman image search --list-tags registry.suse.com/suse/manager/5.0/x86_64/server --format={{.Tag}}
Error: 1 error occurred:
    * getting repository tags: fetching tags list: requested access to the resource is denied

or

suma50:~ # ./mgradm upgrade podman list
3:58PM INF Welcome to mgradm
3:58PM INF Executing command: list
3:58PM INF Running podman image search --list-tags registry.opensuse.org/uyuni/server --format={{.Tag}}
2024.05
2024.05.37.23.uyuni3
latest

Test coverage

Links

Issue(s): https://github.com/uyuni-project/uyuni-tools/issues/372

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!