inlets-operator icon indicating copy to clipboard operation
inlets-operator copied to clipboard

[Feature] Add openstack provider

Open alexandrevilain opened this issue 6 years ago • 4 comments

Adding openstack provider will allow us to use great providers like OVH providing instances starting à 0,008€/hour.

I can work on it, submitting a PR on inletsctl.

Expected Behaviour

Adding the --provider openstack flag should provision a new instance on an openstack provider.

Current Behaviour

We can't provision an instance on providers using OpenStack.

Possible Solution

Using gophercloud: https://github.com/gophercloud/gophercloud And adding the following flags:

  • openstack-endpoint
  • openstack-username
  • openstack-password

alexandrevilain avatar Dec 22 '19 18:12 alexandrevilain

Interesting suggestion, I'd like to know more. Do all providers expose openstack directly? I don't think that Civo does that, they wrap it with a ruby REST API.

Are all instance names and images the same between every openstack deployment?

I'd think you may need more parameters, but I'm not an openstack expert.

alexellis avatar Dec 22 '19 18:12 alexellis

Ping @alexandrevilain

alexellis avatar Jan 01 '20 16:01 alexellis

Hi @alexellis! Sorry for the delay.

I don't know which provider exposes the OpenStack API. The only provider I know is OVH which exposes the OpenStack API. I think that instances types and images are different between providers. So you're right, I'll need more parameters.

I'm now working on EC2 provider, I'll start working on OpenStack after that. I think that I'll have more work to do as we will need to pass more parameters to the provider.

alexandrevilain avatar Jan 01 '20 18:01 alexandrevilain

Hi @alexellis
I think that I can take inspiration from the terraform openstack provider. There are many parameters: https://github.com/terraform-providers/terraform-provider-openstack/blob/master/openstack/provider.go

alexandrevilain avatar Jan 15 '20 15:01 alexandrevilain