-
Notifications
You must be signed in to change notification settings - Fork 52
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
F-27: enable vm config update #145
F-27: enable vm config update #145
Conversation
@@ -970,6 +971,28 @@ func resourceOpennebulaVirtualMachineUpdate(d *schema.ResourceData, meta interfa | |||
} | |||
} | |||
|
|||
if d.HasChange("context") { |
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.
You also should update Provider doc as this is only possible from release 5.10 of OpenNebula.
Chaning context on oldest release won't have effect
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.
The updateconf method seems a bit older than that.
It seems to be introduced by this commit: OpenNebula/one@32e1560
From version 5.0 of OpenNebula
Hi ! Thanks for this functionality, it's very much needed on my side. Actually, it's so much needed that yesterday I did a fork of this commit ID ( The Variables differences are visible in the Terraform Plan output, and it shows that it will be updated, but nothing has changed after the Terraform Apply. I'm running on OpenNebula KVM v6.0.0.2 which is already supporting Context Update through the WebUI. Do you know if your changes are supposed to be backwards compatible with the version v6.0.0.2 ? Or are they only working with the upcoming version v6.2 ? I'm happy to run some more tests if needed. |
Context update works from release 5.10. So you won't have problem with v6. |
Yes, that's kind of what I was expecting, that this improvement would be "backward compatible", starting version 5.10. That means that normally I should be able to build the Terraform Provider from this Commit ID/PR and be able to start using this functionality with my current OpenNebula KVM v6.0.0.2 installation, but that's not the case. Have you tested it on a OpenNebula v6.0.0.2 installation ? Or are you running on the latest Master branch's commit for your testing ? I'm happy to do some more testing and provide you with Terraform debug logs. |
6fbad05
to
f274a29
Compare
@Th0masL there was small mistakes in the code I didn't see (probably introduced in resolving some conflicts), I made a fix and some quick tests and it seems better now. Thank you for your feedback and feel free to share with us if it works as expected now |
f274a29
to
2357469
Compare
Hi ! Thanks for your message. I've tried one more time with the new changes, and I can confirm that this is working now ! Thanks !
One another interesting thing to note, and that might not be related to this improvement on the Context/VM Config, is that Terraform is complaining/showing that the resource That's probably due to another change that happened on the code since the release of 0.3.0.
|
@Th0masL: To answer you: For this PR, I'll rebase the branch and push it again. |
2357469
to
fca77bb
Compare
Thanks for your message ! Yes, I can confirm that I didn't have the vm group problem with the 0.3.0 version of the provider. I'll don't have too much information to provide, but if I do I'll add them to #160 |
fca77bb
to
2193297
Compare
Allow to update CONTEXT, OS, GRAPHICS parts of a virtual machine.
Related issues: #27 #134 #63