With the bump to Gophercloud v1.1.1, the library should be able to
handle HTTP status 204 responses without `content-type` without
erroring. The workaround that was in place to force contentful responses
can then be removed.
* Replace terraform modules with github.com/hashicorp/terraform-exec.
* Remove all terraform providers.
* Remove all unneeded replaces.
* Tidy up the replace stanzas so that it is more clear why each replace is needed.
* Remove and re-create all indirect requires to clean up ones that are
no longer needed.
Bump gophercloud/utils to include
https://github.com/gophercloud/utils/pull/149
This commit ensures gophercloud keeps working fine when using a custom
CA cert and Proxy at the same time.
* github.com/gophercloud/gophercloud
* github.com/gophercloud/utils
* github.com/terraform-provider-openstack/terraform-provider-openstack
Also adjust a call to servergroup.List to comply with the new function
signature[1].
[1]: gophercloud/gophercloud#2070
Signed-off-by: Emilien Macchi <emilien@redhat.com>
A new helper was added into gophercloud/utils to list the available
availability zones.
Switch the getZones() function in cloudinfo to use it, so we don't
have the carry that logic in the installer anymore.
Related bug: https://issues.redhat.com/browse/OSASINFRA-1848
Signed-off-by: Emilien Macchi <emilien@redhat.com>
In order to get a change from gophercloud-utils (TLS options when
creating a service, see https://github.com/gophercloud/utils/pull/131),
we also need to update terraform-provider-openstack since mutexkv and
hashcode were moved to their own packages in gophercloud/utils and
these modules need to be updated together or we end-up with an error
like:
`plugin.terraform-provider-openstack: panic: assignment to entry in nil
map`
Signed-off-by: Emilien Macchi <emilien@redhat.com>
gophercloud for openstack has a set of update and bug fix
while the current code last update is 8 months before.
those 2 commands has been executed:
dep ensure -update github.com/gophercloud/utils
dep ensure -update github.com/gophercloud/gophercloud
gophercloud and gophercloud utils are a library and a set of utilities
that provide common functionality to interact with OpenStack clouds,
configurations, etc.
We need these libraries to manage OpenStack configs as it's done
upstream and for future work like adding an OpenStack destroyer.