Skip to content

Conversation

@tdantas
Copy link
Member

@tdantas tdantas commented Jan 26, 2026

Description

INSTANCE


# CREATE INSTANCE 

$ go run main.go compute instance create testing-cli-acs --application-consistent-snapshot-enabled                                                                                        
 ✔ Creating instance "testing-cli-acs"... 21s
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│            COMPUTE INSTANCE             │                                      │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│ ID                                      │ 600cd805-caee-4869-874d-b4f25b8144cf │
│ Name                                    │ testing-cli-acs                      │
│ Creation Date                           │ 2026-01-26 09:02:15 +0000 UTC        │
│ Instance Type                           │ standard.medium                      │
│ Template                                │ Linux Ubuntu 22.04 LTS 64-bit        │
│ Zone                                    │ ch-gva-2                             │
│ Anti-Affinity Groups                    │ n/a                                  │
│ Deploy Target                           │ -                                    │
│ Security Groups                         │ default                              │
│ Private Instance                        │ No                                   │
│ Private Networks                        │ n/a                                  │
│ Elastic IPs                             │ n/a                                  │
│ IP Address                              │ 85.217.161.226                       │
│ IPv6 Address                            │ -                                    │
│ SSH Key                                 │ -                                    │
│ Disk Size                               │ 50 GiB                               │
│ State                                   │ running                              │
│ Labels                                  │ n/a                                  │
│ Secure Boot                             │ false                                │
│ Tpm                                     │ false                                │
│ Reverse DNS                             │                                      │
│ Application-Consistent Snapshot enabled │ true                                 │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
# SHOW INSTANCE
$ go run main.go compute instance show 600cd805-caee-4869-874d-b4f25b8144cf                                                                                                                                                                                                                                                ┼─────────────────────────────────────────┼──────────────────────────────────────┼
│            COMPUTE INSTANCE             │                                      │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│ ID                                      │ 600cd805-caee-4869-874d-b4f25b8144cf │
│ Name                                    │ testing-cli-acs                      │
│ Creation Date                           │ 2026-01-26 09:02:15 +0000 UTC        │
│ Instance Type                           │ standard.medium                      │
│ Template                                │ Linux Ubuntu 22.04 LTS 64-bit        │
│ Zone                                    │ ch-gva-2                             │
│ Anti-Affinity Groups                    │ n/a                                  │
│ Deploy Target                           │ -                                    │
│ Security Groups                         │ default                              │
│ Private Instance                        │ No                                   │
│ Private Networks                        │ n/a                                  │
│ Elastic IPs                             │ n/a                                  │
│ IP Address                              │ 85.217.161.226                       │
│ IPv6 Address                            │ -                                    │
│ SSH Key                                 │ -                                    │
│ Disk Size                               │ 50 GiB                               │
│ State                                   │ running                              │
│ Labels                                  │ n/a                                  │
│ Secure Boot                             │ false                                │
│ Tpm                                     │ false                                │
│ Reverse DNS                             │                                      │
│ Application-Consistent Snapshot enabled │ true                                 │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
# UPDATE INSTANCE


$ go run main.go compute instance update 600cd805-caee-4869-874d-b4f25b8144cf --name test-cli-with-acs                                                                                                                                                                                                                     [10:40:12]
 ✔ Updating instance "600cd805-caee-4869-874d-b4f25b8144cf"... 0s
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│            COMPUTE INSTANCE             │                                      │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│ ID                                      │ 600cd805-caee-4869-874d-b4f25b8144cf │
│ Name                                    │ test-cli-with-acs                    │
│ Creation Date                           │ 2026-01-26 09:02:15 +0000 UTC        │
│ Instance Type                           │ standard.medium                      │
│ Template                                │ Linux Ubuntu 22.04 LTS 64-bit        │
│ Zone                                    │ ch-gva-2                             │
│ Anti-Affinity Groups                    │ n/a                                  │
│ Deploy Target                           │ -                                    │
│ Security Groups                         │ default                              │
│ Private Instance                        │ No                                   │
│ Private Networks                        │ n/a                                  │
│ Elastic IPs                             │ n/a                                  │
│ IP Address                              │ 85.217.161.226                       │
│ IPv6 Address                            │ -                                    │
│ SSH Key                                 │ -                                    │
│ Disk Size                               │ 50 GiB                               │
│ State                                   │ running                              │
│ Labels                                  │ n/a                                  │
│ Secure Boot                             │ false                                │
│ Tpm                                     │ false                                │
│ Reverse DNS                             │                                      │
│ Application-Consistent Snapshot enabled │ false                                │
┼─────────────────────────────────────────┼──────────────────────────────────────┼

$ go run main.go compute instance update 600cd805-caee-4869-874d-b4f25b8144cf --application-consistent-snapshot-enabled                                                                                                                                                                                                    [10:40:28]
 ✔ Updating instance "600cd805-caee-4869-874d-b4f25b8144cf"... 0s
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│            COMPUTE INSTANCE             │                                      │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│ ID                                      │ 600cd805-caee-4869-874d-b4f25b8144cf │
│ Name                                    │ test-cli-with-acs                    │
│ Creation Date                           │ 2026-01-26 09:02:15 +0000 UTC        │
│ Instance Type                           │ standard.medium                      │
│ Template                                │ Linux Ubuntu 22.04 LTS 64-bit        │
│ Zone                                    │ ch-gva-2                             │
│ Anti-Affinity Groups                    │ n/a                                  │
│ Deploy Target                           │ -                                    │
│ Security Groups                         │ default                              │
│ Private Instance                        │ No                                   │
│ Private Networks                        │ n/a                                  │
│ Elastic IPs                             │ n/a                                  │
│ IP Address                              │ 85.217.161.226                       │
│ IPv6 Address                            │ -                                    │
│ SSH Key                                 │ -                                    │
│ Disk Size                               │ 50 GiB                               │
│ State                                   │ running                              │
│ Labels                                  │ n/a                                  │
│ Secure Boot                             │ false                                │
│ Tpm                                     │ false                                │
│ Reverse DNS                             │                                      │
│ Application-Consistent Snapshot enabled │ true                                 │
┼─────────────────────────────────────────┼──────────────────────────────────────┼

$ go run main.go compute instance update 600cd805-caee-4869-874d-b4f25b8144cf --name test-cli-acs-enabled                                                                                                                                                                                                                  [10:41:12]
 ✔ Updating instance "600cd805-caee-4869-874d-b4f25b8144cf"... 0s
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│            COMPUTE INSTANCE             │                                      │
┼─────────────────────────────────────────┼──────────────────────────────────────┼
│ ID                                      │ 600cd805-caee-4869-874d-b4f25b8144cf │
│ Name                                    │ test-cli-acs-enabled                 │
│ Creation Date                           │ 2026-01-26 09:02:15 +0000 UTC        │
│ Instance Type                           │ standard.medium                      │
│ Template                                │ Linux Ubuntu 22.04 LTS 64-bit        │
│ Zone                                    │ ch-gva-2                             │
│ Anti-Affinity Groups                    │ n/a                                  │
│ Deploy Target                           │ -                                    │
│ Security Groups                         │ default                              │
│ Private Instance                        │ No                                   │
│ Private Networks                        │ n/a                                  │
│ Elastic IPs                             │ n/a                                  │
│ IP Address                              │ 85.217.161.226                       │
│ IPv6 Address                            │ -                                    │
│ SSH Key                                 │ -                                    │
│ Disk Size                               │ 50 GiB                               │
│ State                                   │ running                              │
│ Labels                                  │ n/a                                  │
│ Secure Boot                             │ false                                │
│ Tpm                                     │ false                                │
│ Reverse DNS                             │                                      │
│ Application-Consistent Snapshot enabled │ true                                 │
┼─────────────────────────────────────────┼──────────────────────────────────────┼

TEMPLATES

# SHOW TEMPLATE
$ go run main.go compute instance-template show 64579336-1662-4a3d-9c5e-88425ba48d4d                                                                                                                                                                                                                                        
┼─────────────────────────────────────────┼───────────────────────────────────────┼
│                TEMPLATE                 │                                       │
┼─────────────────────────────────────────┼───────────────────────────────────────┼
│ ID                                      │ 64579336-1662-4a3d-9c5e-88425ba48d4d  │
│ Zone                                    │ ch-gva-2                              │
│ Name                                    │ Windows Server 2022                   │
│ Description                             │ Windows Server 2022 2026-01-14-86a559 │
│ Family                                  │ windows                               │
│ Creation Date                           │ 2026-01-15 12:05:33 +0000 UTC         │
│ Visibility                              │ public                                │
│ Size                                    │ 50 GiB                                │
│ Version                                 │ 2022                                  │
│ Build                                   │ 2026-01-14-86a559                     │
│ Maintainer                              │ Exoscale                              │
│ Default User                            │ administrator                         │
│ SSH key enabled                         │ false                                 │
│ Password enabled                        │ true                                  │
│ Boot Mode                               │ uefi                                  │
│ Checksum                                │ 86a5597fd9b0a977c7d28b0af59d0ccf      │
│ Application Consistent Snapshot Enabled │ false                                 │
┼─────────────────────────────────────────┼───────────────────────────────────────┼

SNAPSHOTS

# CREATE SNAPSHOT
$ go run main.go compute instance snapshot create 600cd805-caee-4869-874d-b4f25b8144cf                                                                                                                                                                                                                                     [10:32:57]
 ✔ Creating snapshot of instance "600cd805-caee-4869-874d-b4f25b8144cf"... 24s
┼─────────────────────────────────┼──────────────────────────────────────────┼
│            SNAPSHOT             │                                          │
┼─────────────────────────────────┼──────────────────────────────────────────┼
│ ID                              │ b0c0ef2c-106a-4f3c-a5aa-5e6176d0f105     │
│ Name                            │ testing-cli-acs_test-name_20260126103553 │
│ Creation Date                   │ 2026-01-26 10:35:53 +0000 UTC            │
│ State                           │ exported                                 │
│ Size (GB)                       │ 50                                       │
│ Instance                        │ testing-cli-acs                          │
│ Zone                            │ ch-gva-2                                 │
│ Application Consistent Snapshot │ false                                    │
┼─────────────────────────────────┼──────────────────────────────────────────┼
# SHOW SNAPSHOT

$ go run main.go compute instance snapshot show b0c0ef2c-106a-4f3c-a5aa-5e6176d0f105                                                                                                                                                                                                                                       [10:36:17]
┼─────────────────────────────────┼──────────────────────────────────────────┼
│            SNAPSHOT             │                                          │
┼─────────────────────────────────┼──────────────────────────────────────────┼
│ ID                              │ b0c0ef2c-106a-4f3c-a5aa-5e6176d0f105     │
│ Name                            │ testing-cli-acs_test-name_20260126103553 │
│ Creation Date                   │ 2026-01-26 10:35:53 +0000 UTC            │
│ State                           │ exported                                 │
│ Size (GB)                       │ 50                                       │
│ Instance                        │ testing-cli-acs                          │
│ Zone                            │ ch-gva-2                                 │
│ Application Consistent Snapshot │ false                                    │
┼─────────────────────────────────┼──────────────────────────────────────────┼

Checklist

(For exoscale contributors)

  • Changelog updated (under Unreleased block)
  • Testing

Testing

Copy link
Member

@sauterp sauterp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the code looks correct, just to be sure I would recommend doing a quick test before merging, that updates some other field of an instance unrelated to this change to verify that when you don't set the --application-consistent-snapshot that the state of this feature isn't touched. (I guess I would do two tests, one where it's true and one where it's false)

@tdantas
Copy link
Member Author

tdantas commented Jan 26, 2026

(I guess I would do two tests, one where it's true and one where it's false

thx @sauterp , I've updated the description with the tests

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