Skip to content

Conversation

@kobajagi
Copy link
Contributor

@kobajagi kobajagi commented Jan 29, 2026

Description

This is a fix for a bug when listing instance snapshots per zone, introduced in 9e128ed.

Checklist

(For exoscale contributors)

  • Changelog updated (under Unreleased block)
  • Testing

Testing

Before:

$ exo c i snapshot list
warning: errors during listing, results might be incomplete.
1 error occurred:
        * unable to retrieve Compute instance "d373b9c7-8076-4330-b774-7e49115f6567": GetInstance: http response: Not Found: not found


┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼
│                  ID                  │         CREATION DATE         │ INSTANCE │  STATE   │   ZONE   │
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼
│ 405d7b9e-cee5-4eb6-96e4-d62ab4d43664 │ 2026-01-29 17:07:56 +0000 UTC │ myi      │ exported │ ch-gva-2 │
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼

$ exo c i snapshot list -z at-vie-1
warning: errors during listing, results might be incomplete.
1 error occurred:
        * unable to retrieve Compute instance "d373b9c7-8076-4330-b774-7e49115f6567": GetInstance: http response: Not Found: not found

Now:

$ go run . c i snapshot list
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼
│                  ID                  │         CREATION DATE         │ INSTANCE │  STATE   │   ZONE   │
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼
│ 405d7b9e-cee5-4eb6-96e4-d62ab4d43664 │ 2026-01-29 17:07:56 +0000 UTC │ myi      │ exported │ ch-gva-2 │
│ abe74534-d51a-49b0-b794-bf1d6f1b1489 │ 2026-01-29 17:08:30 +0000 UTC │ myi2     │ exported │ at-vie-1 │
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼

$ go run . c i snapshot list -z at-vie-1
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼
│                  ID                  │         CREATION DATE         │ INSTANCE │  STATE   │   ZONE   │
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼
│ abe74534-d51a-49b0-b794-bf1d6f1b1489 │ 2026-01-29 17:08:30 +0000 UTC │ myi2     │ exported │ at-vie-1 │
┼──────────────────────────────────────┼───────────────────────────────┼──────────┼──────────┼──────────┼

@kobajagi kobajagi merged commit 2c75587 into master Jan 29, 2026
1 of 2 checks passed
@kobajagi kobajagi deleted the predrag/instance-snapshot-zone-fix branch January 29, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants