abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
17.73k stars 364 forks source link

colima ls won't work when using --profile flag #1025

Open hernan82arg opened 1 month ago

hernan82arg commented 1 month ago

Description

On a fresh installation of colima/lima on a new M3 MBP I run:

% brew install colima lima
==> Downloading https://formulae.brew.sh/api/formula.jws.json
################################################################################################################################ 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
################################################################################################################################ 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/colima/manifests/0.6.8
Already downloaded: /Users/hernan/Library/Caches/Homebrew/downloads/9a65846049cefd1d0f9bc1c1f97a8380d8d24458f046f68fa02846b67b36fa8c--colima-0.6.8.bottle_manifest.json
==> Fetching dependencies for colima: lima
==> Downloading https://ghcr.io/v2/homebrew/core/lima/manifests/0.22.0
Already downloaded: /Users/hernan/Library/Caches/Homebrew/downloads/490835697886f276d83b52724db82635cd0bf9a7f78643a9808ca0f39ab29ee9--lima-0.22.0.bottle_manifest.json
==> Fetching lima
==> Downloading https://ghcr.io/v2/homebrew/core/lima/blobs/sha256:31c8d1a5164f001587f3f31c23351bba4f8699c0354c21e7f5ec239b03333149
Already downloaded: /Users/hernan/Library/Caches/Homebrew/downloads/143d69d9381b2720cfa84535f518ccf3882c7122a82a1d71d60a23083b5e372f--lima--0.22.0.arm64_sonoma.bottle.tar.gz
==> Fetching colima
==> Downloading https://ghcr.io/v2/homebrew/core/colima/blobs/sha256:69af395c2207b9e0b9c917cdff036b3e2b968053a1a8b697cccb0bc6a59f66b6
Already downloaded: /Users/hernan/Library/Caches/Homebrew/downloads/ada6a193c4bfb7b91da5b1c447ed1c1c47b42abe195455145560025c224d8f11--colima--0.6.8.arm64_sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/lima/manifests/0.22.0
Already downloaded: /Users/hernan/Library/Caches/Homebrew/downloads/490835697886f276d83b52724db82635cd0bf9a7f78643a9808ca0f39ab29ee9--lima-0.22.0.bottle_manifest.json
==> Installing dependencies for colima: lima
==> Installing colima dependency: lima
==> Downloading https://ghcr.io/v2/homebrew/core/lima/manifests/0.22.0
Already downloaded: /Users/hernan/Library/Caches/Homebrew/downloads/490835697886f276d83b52724db82635cd0bf9a7f78643a9808ca0f39ab29ee9--lima-0.22.0.bottle_manifest.json
==> Pouring lima--0.22.0.arm64_sonoma.bottle.tar.gz
🍺  /opt/homebrew/Cellar/lima/0.22.0: 108 files, 175.4MB
==> Installing colima
==> Pouring colima--0.6.8.arm64_sonoma.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions

To start colima now and restart at login:
  brew services start colima
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/colima/bin/colima start -f
==> Summary
🍺  /opt/homebrew/Cellar/colima/0.6.8: 10 files, 5.7MB
==> Running `brew cleanup colima`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Running `brew cleanup lima`...
==> Caveats
==> colima
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions

To start colima now and restart at login:
  brew services start colima
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/colima/bin/colima start -f

% colima start --profile blueprint
INFO[0000] starting colima [profile=blueprint]
INFO[0000] runtime: docker
INFO[0000] creating and starting ...                     context=vm
INFO[0071] provisioning ...                              context=docker
INFO[0071] starting ...                                  context=docker
INFO[0072] done

Run:

% colima ls
PROFILE      STATUS     ARCH       CPUS    MEMORY    DISK     RUNTIME    ADDRESS
blueprint    Running    aarch64    2       2GiB      60GiB    docker

% colima ls --profile blueprint
FATA[0000] error retrieving instances: exit status 1

% colima ls --profile blueprint --json
FATA[0000] error retrieving instances: exit status 1

% colima ls
PROFILE      STATUS     ARCH       CPUS    MEMORY    DISK     RUNTIME    ADDRESS
blueprint    Running    aarch64    2       2GiB      60GiB    docker

% colima ls --profile blueprint --very-verbose
TRAC[0000] cmd ["limactl" "list" "--json" "" "colima-blueprint"]
FATA[0000] error retrieving instances: exit status 1

Version

% colima version && limactl --version && qemu-img --version
colima version 0.6.8
git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f
limactl version 0.22.0
qemu-img version 9.0.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Operating System

Output of colima status

% colima status --very-verbose
TRAC[0000] cmd ["limactl" "list" "colima" "--json"]
TRAC[0000] error retrieving running instance: error retrieving instance: exit status 1
FATA[0000] colima is not running

Reproduction Steps

  1. brew install colima lima
  2. colima start --profile something
  3. colima ls --profile something --json

Expected behaviour

I expect to retrieve the output in json format

Additional context

This was working, from one day to another it stopped... might been an OS update in between. Currently using macOS: 14.4.1 (23E224)