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

Listing volumes order is not deterministic #387

Closed
fernando-villalba opened this issue Apr 25, 2024 · 0 comments · Fixed by #412
Closed

Listing volumes order is not deterministic #387

fernando-villalba opened this issue Apr 25, 2024 · 0 comments · Fixed by #412

Comments

@fernando-villalba
Copy link
Contributor

Issue

The cli does not list volumes in predictable order

How to replicate

  1. Create 8 volumes (optional, if there are no volumes in your account)
for volume in {1..8} ; do civo volumes create --size-gb 1 volume-$volume ; done
  1. List volumes multiple times to see the order changing
for _ in 1 2 3 ; do civo volumes ls ; done

In my case this was the output:

Info: Volumes with status 'dangling' mean they are attached to a cluster that no longer exists. You can attach them to an instance, or delete them if they are no longer needed.
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| ID                                   | Name     | Network | Cluster | Instance | Size | Mount Point | Status    |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 1698527f-2e0b-4f4a-86ed-fbb0acfdcf0a | volume-4 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 76170465-115e-4582-b184-9d87a435a605 | volume-8 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 412c21ed-4ded-482c-82c9-554388e9124c | volume-2 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| e16d72b7-32df-41ac-9e3f-6dc5a4fb99f2 | volume-6 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 3487ada6-2395-4fb1-a5c7-90f700ffd951 | volume-3 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| facf4a0f-2b0c-4d36-b05a-fedfa1b2232e | volume-5 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 433edd0e-c64d-4ea5-8d98-f3b8c1a0059a | volume-1 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| ccd063b2-9ab6-4993-8204-1103c78d8c0a | volume-7 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
Info: Volumes with status 'dangling' mean they are attached to a cluster that no longer exists. You can attach them to an instance, or delete them if they are no longer needed.
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| ID                                   | Name     | Network | Cluster | Instance | Size | Mount Point | Status    |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 433edd0e-c64d-4ea5-8d98-f3b8c1a0059a | volume-1 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 3487ada6-2395-4fb1-a5c7-90f700ffd951 | volume-3 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 1698527f-2e0b-4f4a-86ed-fbb0acfdcf0a | volume-4 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 76170465-115e-4582-b184-9d87a435a605 | volume-8 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 412c21ed-4ded-482c-82c9-554388e9124c | volume-2 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| e16d72b7-32df-41ac-9e3f-6dc5a4fb99f2 | volume-6 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| ccd063b2-9ab6-4993-8204-1103c78d8c0a | volume-7 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| facf4a0f-2b0c-4d36-b05a-fedfa1b2232e | volume-5 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
Info: Volumes with status 'dangling' mean they are attached to a cluster that no longer exists. You can attach them to an instance, or delete them if they are no longer needed.
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| ID                                   | Name     | Network | Cluster | Instance | Size | Mount Point | Status    |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| ccd063b2-9ab6-4993-8204-1103c78d8c0a | volume-7 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 3487ada6-2395-4fb1-a5c7-90f700ffd951 | volume-3 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 412c21ed-4ded-482c-82c9-554388e9124c | volume-2 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| e16d72b7-32df-41ac-9e3f-6dc5a4fb99f2 | volume-6 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 433edd0e-c64d-4ea5-8d98-f3b8c1a0059a | volume-1 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 76170465-115e-4582-b184-9d87a435a605 | volume-8 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| facf4a0f-2b0c-4d36-b05a-fedfa1b2232e | volume-5 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
| 1698527f-2e0b-4f4a-86ed-fbb0acfdcf0a | volume-4 | default |         |          | 1 GB |             | available |
+--------------------------------------+----------+---------+---------+----------+------+-------------+-----------+
@uzaxirr uzaxirr linked a pull request Apr 29, 2024 that will close this issue
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 a pull request may close this issue.

1 participant