rackspace (openstack) provider

233 views
Skip to first unread message

Daniel Lüning

unread,
Oct 19, 2015, 8:13:25 AM10/19/15
to Terraform
I'm trying out terraform against rackspace but have some problems to get it to work smoothly,
I have to confess that I'm learning terraform, openstack and the rackspace variant at the same time.

Anyone in this group that has gotten terraform and rackspace to play nice with each other and could tell me which arguments are mandatory for rackspace?

By trial and error I found out that:

I could only get terraform to work with provider password and not with api_key

I have had a lot of struggle with network, until I found the clue to use both uuid and name (https://github.com/hashicorp/terraform/issues/3460) I could not create servers.
I still haven't figured out how to create networks:

this config
resource "openstack_networking_network_v2" "tf-test" {
  region = "LON"
  name = "tf-test"
  admin_state_up = "true"

results in this response

Error applying plan:

1 error(s) occurred:

* openstack_networking_network_v2.tf-test: Error creating OpenStack Neutron network: Expected HTTP response code [201 202] when accessing [POST https://lon.networks.api.rackspacecloud.com/v2.0/v2.0/networks], but got 404 instead
404 Not Found

The resource could not be found.

looks like I get an extra /v2.0/ in the url, is this a terraform or rackspace issue?

rackspace has a lot of rackspace specific types in its service catalog e.g.  "type": "rax:autoscale", I'm guess these aren't supported?


 

Joe Topjian

unread,
Oct 19, 2015, 11:40:50 AM10/19/15
to terrafo...@googlegroups.com
Hi Daniel,

AFAIK, there are enough differences between OpenStack and Rackspace that using Terraform on Rackspace requires a separate provider. There was one being developed some time ago, but was closed due to inactivity:


Hope that helps,
Joe

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/6852e9b0-6deb-4019-b7b6-73be9aea70d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Lüning

unread,
Oct 20, 2015, 2:55:01 AM10/20/15
to Terraform
Thanks joe, it does help.
explains a lot of the strangeness I encountered, to bad it looks like that PR was really close to be done and that there is a lot of people wanting rackspace as a provider.

will need checkout the PR and see how close it is.

regards,
daniel
Reply all
Reply to author
Forward
0 new messages