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

Implement ovirt_vm_disk_attachments data source #343

Closed
ghost opened this issue May 6, 2022 · 0 comments · Fixed by #371
Closed

Implement ovirt_vm_disk_attachments data source #343

ghost opened this issue May 6, 2022 · 0 comments · Fixed by #371
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented May 6, 2022

Please describe what you would like to see

Implement a ovirt_vm_disk_attachments data source that returns all disk attachments for a VM.

Please describe the solution you'd like

The data source should look like this:

data "ovirt_vm_disk_attachments" "foo" {
  vm_id = var.vm_id
}

The result should contain the following fields:

  • disk_id

Optionally, it may contain all additional fields from the DiskAttachment objects from go-ovirt-client.

Please describe your use case

We need to implement a resource that resizes all disks inherited from the template after VM creation. See openshift/installer#5867 for details.

@ghost ghost assigned engelmi and eslutsky May 6, 2022
@ghost ghost added the new-data-source label May 6, 2022
@ghost ghost added this to the v2.0.0 milestone May 6, 2022
@eslutsky eslutsky assigned engelmi and unassigned engelmi and eslutsky May 16, 2022
engelmi added a commit to engelmi/terraform-provider-ovirt that referenced this issue May 16, 2022
engelmi added a commit to engelmi/terraform-provider-ovirt that referenced this issue May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants