Comments (6)
@eduleboss There is a probable bug in go-ovh
, something about gzip encoding the request or the response to the ovh api. I raised the issue there ovh/go-ovh#53
No fix or workaround, I resorted to creating the nodepool in the UI. The error is in creating the ovh_cloud_project_kube resource for you ? For me, that part worked. It was the nodepool creation that failed
from terraform-provider-ovh.
Found this issue using ovh-ca today:
2021/03/08 13:53:57 [DEBUG] setting computed for "next_upgrade_versions" from ComputedKeys
2021-03-08T13:53:57.559-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: 2021/03/08 13:53:57 [DEBUG] Will create kube: poc(BHS5):
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: 2021/03/08 13:53:57 [DEBUG] OVH API Request Details:
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: ---[ REQUEST ]---------------------------------------
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: POST /1.0/cloud/project/__REDACTED__/kube HTTP/1.1
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: Host: ca.api.ovh.com
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: User-Agent: Go-http-client/1.1
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: Content-Length: 43
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: Accept: application/json
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: Content-Type: application/json;charset=utf-8
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: X-Ovh-Application: __REDACTED__
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: X-Ovh-Consumer: __REDACTED__
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: X-Ovh-Signature: __REDACTED__
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: X-Ovh-Timestamp: 1615229637
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: Accept-Encoding: gzip
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0:
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: {
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: "name": "poc",
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: "region": "BHS5",
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: "version": ""
2021-03-08T13:53:57.560-0500 [DEBUG] plugin.terraform-provider-ovh_v0.11.0: }
from terraform-provider-ovh.
In the docs, it's said we can omit the version parameter, but
resource "ovh_cloud_project_kube" "cluster" { service_name = var.ovh_project name = "kube-cluster" region = var.ovh_region }
gives us an error:
Error: calling Post /cloud/project/341edd7a85dd4fe0b0e2c63dacc09f95/kube with params kube-cluster-dev(GRA7): : "Error 400: \"Body parameter version isn't formated correctly\""
The version is passed as "" (empty string)
while (for example)resource "ovh_cloud_project_kube" "cluster-dev" { service_name = var.ovh_project name = "kube-cluster-dev" region = var.ovh_region version = "1.20" }
seems to work 👍
Hey @rienafairefr ! I got the same issue and added the version in my resource creation definition but ended up with another issue. Concretely,
resource "ovh_cloud_project_kube" "dev-cluster" {
service_name = var.ovh_project
name = "dev-cluster"
region = var.ovh_region
version = "1.20"
}
gives me now
Error: calling Post /cloud/project/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/kube with params dev-cluster(GRA7): 1.20:
"gzip: invalid header"
Did you have the same problem? Any idea of what could be wrong?
from terraform-provider-ovh.
Adding a version = "1.20" fixed the issue for me.
from terraform-provider-ovh.
I had this same issue in the past, but then with some update, it was fixed. Maybe is better to close the issue.
from terraform-provider-ovh.
Closing this issue since it should be resolved now, don't hesitate to re-open it if needed.
from terraform-provider-ovh.
Related Issues (20)
- [BUG] Impossible to terraform apply if an instance is in rescue HOT 3
- [BUG] ovh_cloud_project_gateway import doesn't work HOT 3
- [BUG] list order not consistent in containerregistry_ip_restrictions HOT 3
- [BUG] when creating a public cloud project, got 403 "This order can't be paid with 'bankAccount'" error HOT 6
- [DOCS] Error with doc for datasource ovh_order_cart_product_plan in cloud_project resource on 0.44.0 HOT 1
- [BUG] ovh_cloud_project_kube_oidc crashed HOT 4
- [FEATURE] Project id (Service name) should not be required HOT 3
- [FEATURE] Support `access_token` based provider authentication HOT 4
- [BUG] ovh_domain_zone_record: can't use ttl default value of '0' HOT 2
- When importing `ovh_cloud_project` it forces replacement HOT 3
- [BUG] Impossible to use terraform to configure a compute instance - No suitable endpoint could be found in the service catalog HOT 2
- [BUG] ovh_dedicated_server_install_task fail on invalid partition schema (with no error) HOT 2
- [FEATURE] Create Gateway Interface using the provider HOT 2
- [FEATURE] Use existing floating IP on gateway HOT 3
- [FEATURE] Missing "description" argument in ovh_dedicated_nasha_partition_access HOT 4
- [BUG] `ovh_cloud_project_kube` requires `load_balancers_subnet_id` but doesn't properly update it on the resource HOT 1
- [FEATURE] : allow dedicated server displayName configuration HOT 5
- [FEATURE] [Logs Data Platform] Get the write token of a logs data stream HOT 4
- [FEATURE] [Logs Data Platform] Setting the retention period of a logs data stream HOT 7
- [BUG] Error: Provider produced inconsistent final plan (resource ovh_cloud_project_database with changed node subnet) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-ovh.