-
Notifications
You must be signed in to change notification settings - Fork 24
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
unableto create empty volume #324
Comments
Terraform supports creating attached volumes. This is why it also requires server_id. Maybe you can try using ansible for this meanwhile? https://github.com/ionos-cloud/module-ansible/blob/master/docs/api/compute-engine/volume.md |
I know that and i am able to create a volume. |
You can try to set licence_type to "Unknown", see if that helps. |
Usually licence_type is required. But if if an image_name or image_alias is provided the licence_type is already configured at the image and will be used instead. In that case the licence_type can be omitted. |
ok i tested adding a volume with
Does not work (same with 'licence_type = "UNKNOWN"') ''' |
Hello, we will take a look and then will inform you when we'll have a solution. |
There was a backend maintenance and that might have cauised the 500 err response. Would it be possible to try again and let us know if it reproduces? Thanks! |
Hello, I managed to reproduce the behavior for the volume. We opened a issue too because it's an api error, but if you want to create a empty volume, you can remove the ssh_key_path for the moment.
We'll lelt you know when the pronlem with ssh_key_path will be solved and thank you for let us know. |
nope unfortunately also not working... |
hello, this is the error for the plan that I provided above? I am asking, because with that example I was not able to reproduce this error, but looking to the error, I think you have the user_data field set in terraform plan, which force you to provide either image or image_alias field. |
yap, correct |
but you have the user_data field set in terraform plan? Normally this field will trigger this error. If you want to use user_data field, you need to provide either a public image or image_alias. if not it will return an the api error from above |
negative, no "user_data" field set datacenter_id = var.datacenter_id
server_id = ionoscloud_server.host.id
name = "Volume Example"
availability_zone = var.availability_zone
size = "33"
disk_type = var.disk_type
licence_type = "UNKNOWN"
#ssh_key_path = [var.public_key_file]
#image_password = random_string.root_password.result
}``` |
can you please attach the server too to a message here be more easy to reproduce? |
server ressource
|
Thank you, I'll try to reproduce and come with some updates |
I could't managed to reproduce the error with the tf plan that you provided, so here is a working example:
maybe there is a variable value which trigger this error, so if you want, you can provide the values for vars, except sensitive data, of course to try to use them and see if I can get 422 error. |
Hello, again, we found a case for the error, if you provide a licence_type for the volume resource, but the server does not have a image_name, then a 500 error will be displayed. We opened a ticket for this for another team and we will reply wen we'll have some updates. |
Description
im unable to create an empty volume - unlike in the dcd i have to name
i just want to create additional empty drives with hosts easy in dcd but with terraform that seems not possible
Expected behavior
create empty volume
Environment
Terraform version:
Provider version:
OS:
Configuration Files
How to Reproduce
Error and Debug Output
The text was updated successfully, but these errors were encountered: