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

Error by using drive-uuid because drive-name is set by default #18

Open
Fank opened this issue Feb 8, 2024 · 0 comments
Open

Error by using drive-uuid because drive-name is set by default #18

Fank opened this issue Feb 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Fank
Copy link

Fank commented Feb 8, 2024

Bug report

Describe the issue

I am running into this error: https://github.com/cloudsigma/docker-machine-driver-cloudsigma/blob/master/cloudsigma.go#L321
When only providing --cloudsigma-drive-uuid=3b80db9b-1d57-457c-b72e-ea06029b84ce because as it looks like the drive-name is set by default to "ubuntu" here https://github.com/cloudsigma/docker-machine-driver-cloudsigma/blob/master/cloudsigma.go#L119

System information

  • docker-machine-driver-cloudsigma version: v2.0.0
  • golang version:
  • OS: Ubuntu 22.04

Reproduction instructions

Create a docker machine using only uuid instead of name.

Expected behavior

Docker machine is created by defined drive uuid and not throwing an error.

Notes

Not sure if related to anything but i am using this driver in a gitlab runner instance, by using following configuration:

           "cloudsigma-api-location=...",
           "cloudsigma-username=....",
           "cloudsigma-password=.....",
           "cloudsigma-cpu=8000",
           "cloudsigma-memory=8192",
           "cloudsigma-drive-name=Ubuntu 20.04 LTS",
#           "cloudsigma-drive-uuid=3b80db9b-1d57-457c-b72e-ea06029b84ce",
           "cloudsigma-drive-size=250"

If i change it to

           "cloudsigma-api-location=...",
           "cloudsigma-username=....",
           "cloudsigma-password=.....",
           "cloudsigma-cpu=8000",
           "cloudsigma-memory=8192",
#           "cloudsigma-drive-name=Ubuntu 20.04 LTS",
           "cloudsigma-drive-uuid=3b80db9b-1d57-457c-b72e-ea06029b84ce",
           "cloudsigma-drive-size=250"

It is throwing the error mentioned above.

@Fank Fank added the bug Something isn't working label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant