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

Region flag isn't respected when creating instances #460

Closed
dwoolger opened this issue Sep 5, 2024 · 1 comment
Closed

Region flag isn't respected when creating instances #460

dwoolger opened this issue Sep 5, 2024 · 1 comment

Comments

@dwoolger
Copy link

dwoolger commented Sep 5, 2024

Description

When creating instances, the region flag is not respected.

Reproducing

  1. Switch to a region where the diskimage isn't available (in this case phx1)

$ civo region current phx1
The default region was set to (phx1) phx1

  1. Confirm disk image isn't available...
    $ civo diskimage ls | grep debian-9
    ...no results returned...

  2. Attempt instance creation...

$ civo instance create -t debian-9 -s host --region lon1
Please check if you are using the latest version of CLI and retry the command
If you are still facing issues, please report it on our community slack or open a GitHub issue
Error: The provided disk image is not valid

  1. Switch region to lon1 & confirm disk image...

$ civo region current lon1
The default region was set to (lon1) lon1
$ civo diskimage ls | grep debian-9
| 9b661c46-ac4f-46e1-9f3d-aaacde9b4fec | debian-9 | 9 | available | debian |

  1. Instance creation is then successful...

$ civo instance create -t debian-9 -s host --region lon1
The instance host has been created

$ civo instance rm -y host

  1. Switching to a region where the diskimage is valid...

$ civo region current fra1
You are already using that region: fra1
$ civo diskimage ls | grep debian-9
| 2d0985a8-c011-4c82-b163-e95b26df0a82 | debian-9 | 9 | available | debian |

  1. Creating an instance targeted at lon1, but gets created in fra1...

$ civo instance create -t debian-9 -s host --region lon1
The instance host has been created

$ civo instance ls
+--------------------------------------+----------+--------+-----------+-----------+------+----------+---------------+--------------+--------+
| ID | Hostname | Region | Size | Cpu Cores | Ram | SSD disk | Public IP | Private IP | Status |
+--------------------------------------+----------+--------+-----------+-----------+------+----------+---------------+--------------+--------+
| e3b8fb3d-bb68-4c61-a8d0-b08c7fcc4f62 | host | fra1 | g3.medium | 2 | 4096 | 50 | x.x.x.x | x.x.x.x | ACTIVE |

@uzaxirr
Copy link
Member

uzaxirr commented Sep 7, 2024

Hey, this has probably been fixed by: #453

can you update your CLI to latest version and check again.

@uzaxirr uzaxirr closed this as completed Sep 9, 2024
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

No branches or pull requests

2 participants