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

Cannot specify target container when adding disks to a virtual machine resource #78

Closed
sbourdeaud opened this issue Sep 13, 2019 · 2 comments · Fixed by #138
Closed

Comments

@sbourdeaud
Copy link

Problem: When creating a virtual machine resource and specifying additional data disks, there is no way to specify the target storage container in disk_list, which means all data disk are added to the SelfServiceContainer by default, even if the VM itself was created in a different container.

Proposed solution: The API in Prism lets you specify a storage container when you add a disk to a VM. This should be added to the disk_list attribute in the nuanix_virtual_machine resource specification.

@sbourdeaud
Copy link
Author

After checking, it seems only API v2 has a way to specify a target container. v3 does not offer that facility. Looks like this will be added in 5.13 (https://jira.nutanix.com/browse/ENG-212697)

@PacoDw
Copy link
Contributor

PacoDw commented Jun 10, 2020

Hello, @sbourdeaud I added the necessary changes to reference a container in the VM, you can check them in the PR #138.

Let me know if you have a comment or concern, thanks.

PacoDw added a commit that referenced this issue Jun 19, 2020
Fix #78: Cannot specify target container when adding disks to a virtual machine resource
yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue Nov 9, 2021
Fix nutanix#78: Cannot specify target container when adding disks to a virtual machine resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants
@sbourdeaud @PacoDw and others