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

Feature Request: Add oVirt/RHEV Provider #16150

Open
LukeFlynn opened this issue Sep 21, 2017 · 26 comments

Comments

Projects
None yet
@LukeFlynn
Copy link

commented Sep 21, 2017

I've recently begun moving away from ESXi/vSphere to oVirt (upstream of Red Hat Enterprise Virtualization). I've been wanting to get into Terraform and can't find any functional providers at this time. I think it would be super cool to see this as a native provider in Terraform!

@QuentinMoss

This comment has been minimized.

Copy link

commented Dec 5, 2017

@LukeFlynn Do you know if this got any traction? Did you figure out another solution?

@apparentlymart

This comment has been minimized.

Copy link
Member

commented Dec 8, 2017

Hi @LukeFlynn! Thanks for this request.

In the short term we (the Terraform team at HashiCorp) have no plans to develop a provider for oVirt in-house, and we have no oVirt expertise on the team currently. If some members of the oVirt community are interested in developing a provider, we'd love to work with them to bring it into the fray via the provider development program, which is the way to bring a new provider into the set that is tested by and distributed by HashiCorp.

We are also planning to, in the medium term, extend the provider auto-installation mechanism to support third-party providers that are not distributed via the HashiCorp releases infrastructure, so that community developers can maintain a provider themselves as an alternative to the official program.

@jboero

This comment has been minimized.

Copy link

commented Jan 31, 2018

Hi @LukeFlynn thanks for your interest.
I myself am a big fan of OVirt and have recently joined Hashicorp. I'm happy to take this on a but I can see it's already been started. There is a partially built shell that I can sort out a bit here: https://github.com/chriscowley/terraform-provider-ovirt

Have you done anything in the meantime since this post? I know things have changed a bit lately with the 4.2 release.

@gageorsburn

This comment has been minimized.

Copy link

commented Feb 12, 2018

An oVirt provider would be awesome. I'd love to help out.

@funixz

This comment has been minimized.

Copy link

commented Feb 21, 2018

+1 for an oVirt / RHV provider!!

@IcedGoblin

This comment has been minimized.

Copy link

commented Mar 8, 2018

Another +1 for an oVirt / RHV provider please! We have implemented our first oVirt cluster and are about to run a trial of Terraform Enterprise targeting vSphere but are very keen to include oVirt in that testing if possible. Happy to help as much as I can, probably can't help too much with the development but can assist with testing.

@mgoldboi

This comment has been minimized.

Copy link

commented Mar 14, 2018

Has anyone looked at this implementation already?
https://github.com/EMSL-MSC/terraform-provider-ovirt

@holmesb

This comment has been minimized.

Copy link

commented Mar 24, 2018

+1 oVirt will get more traction since Citrix crippled the free edition of Xenserver. Be good to see a Terraform provider.

@QuentinMoss

This comment has been minimized.

Copy link

commented Mar 24, 2018

@jboero The people have spoken!

@jboero

This comment has been minimized.

Copy link

commented Apr 26, 2018

Sorry I've been MIA but just attempted https://github.com/EMSL-MSC/terraform-provider-ovirt and can vouch that it works!

Thanks to PNL and @Maigard for publishing that. I have experimented with the provider and it takes a bit of versioning but it comes out beatifully. Steps to get it working currently:

As per Ken's notes, you'll need the following, with caveats:

$ go get github.com/EMSL-MSC/terraform-provider-ovirt
$ mkdir ~/.terraform.d/plugins
$ cp $GOPATH/bin/terraform-provider-ovirt ~/.terraform.d/plugins

Note with Terraform MASTER currently at 1.11.x, the build fails for me on t.Helper() in testing added to Terraform 8 months ago. My solution for this was to revert the local Terraform to tag 1.10.x:

$ cd $GOPATH/src/github.com/hashicorp/terraform/
$ git checkout tags/v0.10.0
$ go get github.com/EMSL-MSC/terraform-provider-ovirt
$ mkdir ~/.terraform.d/plugins
$ cp $GOPATH/bin/terraform-provider-ovirt ~/.terraform.d/plugins

Then if you've used self-signed certs, make sure your engine CA is registered locally or the API will fail on unknown CA. On EL/Fedora:

wget http://${ENGINEFQDN}/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA
sudo cp $RESULT /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust extract

You should now be able to terraform {plan,apply}. Happy days! I'll see if we can get this registered and supported on the public registry.

Thanks

@jboero

This comment has been minimized.

Copy link

commented Apr 26, 2018

Note this provider uses API v3 which will be deprecated but works for now in 4.2. I'll try to upgrade it to 4.x.

@Maigard

This comment has been minimized.

Copy link

commented Apr 27, 2018

It's good to see someone using it. I have it mostly working right now, but I am trying to get it working with a different oVirt library so I don't have to maintain both. If anyone has suggestions, I'm willing to make some changes.

@helloIAmPau

This comment has been minimized.

Copy link

commented May 24, 2018

👍

@imjoey

This comment has been minimized.

Copy link
Contributor

commented May 28, 2018

Hi all, I just commited a PR to https://github.com/EMSL-MSC/terraform-provider-ovirt, which utilizes the golang sdk for ovirt-engine v4.x to re-implement the existing codes. This PR makes the provider to support oVirt API v4.x. Please go to EMSL-MSC/terraform-provider-ovirt#5 for details.

@imjoey

This comment has been minimized.

Copy link
Contributor

commented Jul 18, 2018

hi all, please see sinokylin/terraform-provider-ovirt for latest implementation of terraform oVirt provider. While it is still unstable and under heavy development, issues and pull requests are always welcome.

@slmingol

This comment has been minimized.

Copy link

commented Nov 9, 2018

I believe this is another implementation of a libvirt provider for terraform - dmacvicar/terraform-provider-libvirt. It's demonstrated here in this article - https://titosoft.github.io/kvm/terraform-and-kvm/.

@funixz

This comment has been minimized.

Copy link

commented Apr 22, 2019

any updates on this?

@imjoey

This comment has been minimized.

Copy link
Contributor

commented Apr 23, 2019

any updates on this?

Not yet. As far as I know, there is no plan to support this from oVirt community. You could try the unofficial imjoey/terraform-provider-ovirt , which is still under development. Any feedbacks are appreciated. Thanks.

@rgolangh

This comment has been minimized.

Copy link

commented May 16, 2019

I'm considering incubating @Maigard @imjoey work under ovirt organization. Its good to see there is a lot of interest around it, and I hope this would translate into contributions.

If there is a preference to have it under terraform and not under ovirt please explain, and lets discuss it.

@rgolangh

This comment has been minimized.

Copy link

commented Jun 4, 2019

@Maigard and @imjoey if that's ok with you, in order to proceed I'd like to sync this with you:

  1. I'll upload the code - while preserving history(!), to https://github.com/ovirt/terraform-provider-ovirt
  2. make sure you the Authors file is updated and correct
  3. update the licence to apache 2 license
  4. comment a redirection notice from your forks to ovirt
@imjoey

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2019

@Maigard and @imjoey if that's ok with you, in order to proceed I'd like to sync this with you:

  1. I'll upload the code - while preserving history(!), to https://github.com/ovirt/terraform-provider-ovirt
  2. make sure you the Authors file is updated and correct
  3. update the licence to apache 2 license
  4. comment a redirection notice from your forks to ovirt

Hi @rgolangh @Maigard , how about leveraging the Github Transfer [1] functionality to move the repo under oVirt organization? The main benefit, I think, is that besides the git commits history, it could also be able to keep the history of issues, pull-requests and etc for us. What's your insights on that?

If so, as I have no rights to create a new repo under oVirt organization, perhaps current repo could be transferred to you @rgolangh first, and you proceed to transfer it to oVirt organization. The whole process would be very much like the transfer of ovirt-engine-sdk-go repo previously.

@rgolangh

This comment has been minimized.

Copy link

commented Jun 5, 2019

There will be a permission thing with ovirt organization. So you can transfer to me and I'll transfer to ovirt.

I'm still interested in @Maigard voice.

@rgolangh

This comment has been minimized.

Copy link

commented Jun 19, 2019

Happy to announce that the provider has moved under oVirt organization
and can be found at https://github.com/oVirt/terraform-provider-ovirt

@Maigard

This comment has been minimized.

Copy link

commented Jun 19, 2019

Sorry I didn't get back to you. I had to ask our legal department about it and it ended up getting dropped. The only thing we need is to make sure is to make sure there is documentation that the earlier contributions are made under the original license (so there is no patent license granted by Battelle). Other than that, I am happy someone is going to continue development. My job duties changed just as I released it and I couldn't keep doing development. I can make a note that active development has moved to the oVirt fork.

@rgolangh

This comment has been minimized.

Copy link

commented Jun 20, 2019

@Maigard In the new license Battelle and the original license appear at the end, and its mentioned that it was forked from this organization - please have a look.

@Maigard

This comment has been minimized.

Copy link

commented Jun 20, 2019

It looks good. I noted the development change in my repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.