-
Notifications
You must be signed in to change notification settings - Fork 75
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
ovirt_vm enhancements - nics, affinity groups #257
Conversation
@Gal-Zaidman : Awesome. Sure I will remove the affinity group from ovirt_vm. |
Yes sure. |
@Gal-Zaidman : All yours |
@emesika : Done |
Any chance to get this merged? |
@shantur on the surface this looks good, haven't tested it yet. However, I'm having a bit of a problem merging two features in one PR in case we need to roll it back. Could you split this PR so the AG data source and the NIC feature goes in separately? I'm sorry for the extra rounds needed on this, I'll work with you on getting both merged and released. |
@janoszen : created #260 for affinity group |
@emesika
Removing/Adding fields one by one can cause issues if something fails in the middle plus I think if a user specified nics for a VM he expects the nics to be the nics he specified and not added to what the template holds What do you think? @shantur after eli will take a look I think you will also need to add the update part to the resource |
@Gal-Zaidman : |
Any chance to get this in? |
Hey @shantur sorry for the delayed answer, we are still working on organizing things over here. I'll give you feedback during the coming 1 week. |
@shantur my apologies this took so long. I reviewed your code and I have no direct objections to the code quality, so I'm fine with having this change merged, but I'm also not an expert on oVirt internals. @Gal-Zaidman @emesika any objections? However, I have a problem with the NIC resource (and other resources) being directly implemented on the VM resource, which we should address, possibly in a later release. My main concern is that the VM resource is extremely bloated as it is and it is very hard to test and keep sane. It also doesn't allow for flexibility of using the oVirt API to its full potential. I believe we should split out at least the following resources:
Now, this is an idealistic approach and we may not end up doing this, especially since we don't have unlimited resources for developing the TF provider, but code quality is a pretty big concern. I found a number of bugs while working on #267 and we currently have no working test suite to verify that patches actually don't break anything beyond testing that it doesn't break the OpenShift installer. |
Hello contributor, thanks for submitting a PR for this project! I am the bot who triggers "standard-CI" builds for this project. In order to allow automated tests to run, please ask one of the project maintainers to review the code and then do one of the following:
|
@shantur feel free to ignore the ovirt-infra bot for the time being, I need to have a few things ironed out here before this actually starts working. |
@shantur (sorry, last ping). It might be easier if we talked on a call. If you'd like to do that please drop me an e-mail at [email protected]. |
Dear contributors, We are making some large-scale changes to the Terraform provider which affect this pull request. Please read the announcement on the oVirt blog. We are very sorry for the inconvenience and would like to hear your feedback on the community call on the 14th of October. |
Dear contributor, we are closing this pull request as a preparation for the move to the new Terraform provider announced above. If you feel that this PR is still relevant please re-file it once we have made the move to the new provider. |
Changes proposed in this pull request:
Support affinity_groups list when creating ovirt_vmMoved to seprate PR Add affinity group data source from #257 #260remove_cloned_nics
property to ovirt_vm to clean up nics cloned when cloning a templateinterface
property to define type ofnic
to attach to vm in ovirt_vmOutput from acceptance testing: