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

VM creation #495

Closed
NikSudo opened this issue Jan 24, 2023 · 5 comments
Closed

VM creation #495

NikSudo opened this issue Jan 24, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@NikSudo
Copy link

NikSudo commented Jan 24, 2023

Describe the bug

O-virt provider v2.1.5
O-virt cluster 4.5.0.5-1.el8

To Reproduce

Terrafrom init, terraform plan no errors
Terraform apply, unless accept changes also no errors

2023-01-24T19:49:43.132+0400 [ERROR] provider.terraform-provider-ovirt_2.1.5: Response contains error diagnostic: tf_proto_version=5.3 tf_req_id=4a53855f-5495-edce-a5dd-a9c14f0007e4 tf_resource_type=ovirt_vm diagnostic_detail="generic_error: non-retryable error encountered while creating VM dxmatch-test-front1, giving up (Fault reason is "Request syntactically incorrect.". Fault detail is "For correct usage, see: https://ovirt-lab.prosp.devexperts.com/ovirt-engine/apidoc#services/vms/methods/add". HTTP response code is "400". HTTP response message is "400 Bad Request".)" diagnostic_summary="Failed to create VM" @module=sdk.proto diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/oVirt/ovirt tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:56 timestamp=2023-01-24T19:49:43.132+0400 2023-01-24T19:49:43.132+0400 [ERROR] provider.terraform-provider-ovirt_2.1.5: Response contains error diagnostic: tf_rpc=ApplyResourceChange @module=sdk.proto tf_resource_type=ovirt_vm tf_provider_addr=registry.terraform.io/oVirt/ovirt tf_req_id=39fcb601-2998-5657-53bf-c5765f856e9d @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:56 diagnostic_detail="generic_error: non-retryable error encountered while creating VM dxmatch-test-db1, giving up (Fault reason is "Request syntactically incorrect.". Fault detail is "For correct usage, see: https://ovirt-lab.prosp.devexperts.com/ovirt-engine/apidoc#services/vms/methods/add". HTTP response code is "400". HTTP response message is "400 Bad Request".)" diagnostic_severity=ERROR diagnostic_summary="Failed to create VM" tf_proto_version=5.3 timestamp=2023-01-24T19:49:43.132+0400 2023-01-24T19:49:43.132+0400 [INFO] provider.terraform-provider-ovirt_2.1.5: Giving up creating VM dxmatch-test-lb1 (generic_error: non-retryable error encountered while creating VM dxmatch-test-lb1, giving up (Fault reason is "Request syntactically incorrect.". Fault detail is "For correct usage, see: https://ovirt-lab.prosp.devexperts.com/ovirt-engine/apidoc#services/vms/methods/add". HTTP response code is "400". HTTP response message is "400 Bad Request".)): tf_rpc=ApplyResourceChange tf_req_id=11751705-607f-e932-2dcb-1bd06dee70fd tf_resource_type=ovirt_vm @caller=github.com/ovirt/terraform-provider-ovirt/v2/internal/ovirt/logger.go:30 @module=ovirt tf_provider_addr=registry.terraform.io/oVirt/ovirt timestamp=2023-01-24T19:49:43.132+0400

@NikSudo NikSudo added the bug Something isn't working label Jan 24, 2023
@engelmi
Copy link
Collaborator

engelmi commented Jan 24, 2023

Hi @NikSudo, could you also provide the respective terraform you used that resulted in these error logs?

@NikSudo
Copy link
Author

NikSudo commented Jan 24, 2023

@engelmi Terraform v1.3.6

@NikSudo
Copy link
Author

NikSudo commented Jan 24, 2023

I tried to commit initialization_custom_script field, and now get other error

generic_error: non-retryable error encountered while creating VM dxmatch-test-lb1, giving up (Fault reason is "Operation Failed". Fault detail is "[must be greater than or equal to 1, Attribute: vmStatic.memSizeMb, must be greater than or equal to 1, Attribute: vmStatic.memSizeMb]". HTTP response code is │ "400". HTTP response message is "400 Bad Request"

and

│ generic_error: non-retryable error encountered while creating VM dxmatch-test-mes2n3, giving up (Fault reason is "Operation Failed". Fault detail is "[must be greater than or equal to 1, Attribute: vmStatic.maxMemorySizeMb, must be greater than or equal to 1, Attribute: vmStatic.maxMemorySizeMb]". HTTP │ response code is "400". HTTP response message is "400 Bad Request".)

memory = var.vm_ram maximum_memory = var.vm_ram vmram = 16384

update: changed to 17179869184... My bad

@ghost
Copy link

ghost commented Jan 24, 2023

@NikSudo since you seem to have resolved the issue by providing the value in bytes, can we close this issue?

@engelmi
Copy link
Collaborator

engelmi commented Jul 31, 2023

I'd close this issue since it seems to be resolved. If it isn't, please reopen it.

@engelmi engelmi closed this as completed Jul 31, 2023
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

2 participants