-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add support for changing root disk size #345
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
Here are a few preliminary comments.
Please modify go.mod
with a replace
directive (that will be later removed) to allow this PR to pick up your code in go-vcloud-director.
See go.mod in another PR as an example.
Once you've done that, please monitor the Travis task associated to this PR and address any issue that is making the check fail.
Regarding the PR itself, the inclusion of a new field should be reflected in creation, read, and update.
Furthermore, there should be either a new test or an expanded existing test that uses the new field.
I've added the replace clause in go.mod, and it's working as expected locally, but I don't see Travis performing a |
You need to run |
Thanks! And thanks for your patience - I haven't worked with Go modules before! Still learning the ropes. |
Thank you @cheald for contributing! I have some usage-based questions:
|
From perspective point of view. If we can change any disk size in OVA, maybe we should let it in terraform too, not only |
Under Linux, the larger disk size is immediately reflected via
vCD will not permit this; attempting to shrink a disk results in an API error.
That's certainly possible. This work could be expanded into full management of internal disks, to complement the independent disk attachment. The govcd APIs take bus/unit IDs and aren't hardcoded to the root disk, so the Terraform provider would just need additional work to consume it. (As an aside: how do I kick off a Travis build for my latest push? It didn't seem to happen automatically.) |
@cheald, Now we have yet another task #311 which we want to bring in. I am looking at them and thinking - as the root disk is same as any other disk (just mostly often having address What are your thoughts on such proposal? As this may become more time demanding should someone else pick #311 and cover the root disk size functionality as well in the solution of that issue or would you like to bring #311 forward? |
I'm happy to let you all take it if you'd like. My disk management needs
are pretty simple, and I'm still quite new to vCloud, so someone with a
broader view of the tool may be more suited to take that one over the
finish line. Hopefully my work provides a jump start!
…On Wed, Nov 6, 2019, 2:54 AM Dainius ***@***.***> wrote:
@cheald <https://github.com/cheald>,
Sorry for this being silent for so long. We have been busy on rolling out
2.5.0 and got buried under other tasks.
Now we have yet another task #311
<https://github.com/terraform-providers/terraform-provider-vcd/issues/311>
which we want to bring in. I am looking at them and thinking - as the root
disk is same as any other disk (just mostly often having address 0:0, but
I believe not necessarily for some templates) we could design a structure
to accomplish both goals.
What are your thoughts on such proposal? As this may become more time
demanding should someone else pick #311
<https://github.com/terraform-providers/terraform-provider-vcd/issues/311>
and cover the root disk size functionality as well in the solution of that
issue or would you like to bring #311
<https://github.com/terraform-providers/terraform-provider-vcd/issues/311>
forward?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/terraform-providers/terraform-provider-vcd/pull/345?email_source=notifications&email_token=AAACMZRNX66LLLCPBNOQXKTQSKH4DA5CNFSM4I5GME2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDF6P4I#issuecomment-550234097>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACMZSDBYG7F23VHDENEWLQSKH4DANCNFSM4I5GME2A>
.
|
Hi @cheald. I started work on different approach due that we need support various features, not only |
Looking good! I'll close this PR, since it looks like you're headed in a more robust direction. Thank you! |
This depends on vmware/go-vcloud-director#251
This simply adds the ability to specify a
root_disk
parameter when defining a VM, which indicates the disk's size in megabytes. For example: