-
Notifications
You must be signed in to change notification settings - Fork 32
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
Release 0.4.0 #61
Release 0.4.0 #61
Conversation
- Utilize asynchronous Functions for proxmox
- Fix required disk interface parameter - Fix datastore move to same datastore error - Fix compare sizes for resize disk
…f' into release-0.4.0
I'll check if i can patch that :) But you didn't define the initialization {} field, right? |
@luhahn thanks 👍 |
no, I defined the initialization. the configuration I used: https://github.com/ryan4yin/pulumi-proxmox#examples |
Mh, if initialization is defined the provider will try to create the cloudinit file. Without it won't. |
@ryan4yin Ok, I had a look at the code. And the problem with existing cloud init files is, that we currently have cloud-init and cdrom on fixed IDE devices. Cloud init on ide2 and cd on ide3. However if your vm which you are cloning from already has a cloud init device and you want the provider to dynamically use that device instead of the fixed ones. We need to change alot of the current logic. This is because terraform providers are using read and update function in order to determine if changes have been made, so we need to make quite a few changes in the code. Since I already had a look I tried to set the interfaces for cd and cloudinit dynamically, like the disk interfaces. I also added some checks to see if a cloud init device is already existing. But i am stuck in how to update those correctly without terraform deleting them all the time. Another idea would be to delete the current cloud init device, which has been received from your clone. And override the settings with the ones from your initialization configuration. The last solution would be that you simply remove the initialization config.. |
@luhahn thanks, I got it. now I solve this by manually deleteing the cloudinit disk from the template VM. |
The current state of this PR is running in our test/development cluster for quite some time now. Except for the existing cloud-init i couldn't notice any bugs for cloning :) |
Hi, first comment on this provider! I downloaded the PR code and built it to my test setup.
edit: is this because of the source disk that is defined as an img from a datastore? |
can you provide more information, like logs? |
sure, if you want I can upload the full copy-paste of my terminal somewhere the full logs but this is the terraform plan that is subsequent to a successful apply.
I can understand why terraform would destroy a vm created that way since iit seems correct from it's perspective, but then I can not figure out how we could create a new vm(not a clone) with an image uploaded that way. EDIT: this sould fix it, I didn't think about it before
|
Fix a small typo in resourceVirtualEnvironmentVMCreateCustom function and make the provider capable to import disk with the correct interface
Fix a typo and make disk import coherent with disk interface
I've finally managed to finish a pile of very important tasks, so I'll be dedicating a lot of time next week to get v0.4.0 released. Based on your testing and what I managed to test earlier, it seems we're close to a stable version so I won't pull in more PRs. Instead, I'll begin work on the v0.5.0 release next week once v0.4.0 is released. |
I can't find any major issues with this release so I'll take one last look at the documentation and changelog before releasing it. I'll also push the final changes to the release flow before merging this PR. |
…w as a replacement for Travis
Merging this now. Any issues will be fixed against the master branch. |
Community Note
Closes #47
Closes #51
Closes #52
Closes #53
Closes #54
Closes #55
Closes #56
Closes #57
Closes #59
Closes #60
Release note for CHANGELOG: