You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
1.29.0
Affected Resource(s)
ibm_is_virtual_endpoint_gateway
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
# Copy-paste your Terraform configurations here - for large Terraform configs,# please share a link to the ZIP file.
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "ReservedIPIdentity is invalid: ReservedIPIdentityByID is invalid: Validation Failure for field: id",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "ReservedIPIdentity is invalid: ReservedIPIdentityByHref is invalid: Validation Failure for field: href",
Community Note
Terraform CLI and Terraform IBM Provider Version
1.29.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: 2021-08-02T13:03:22.496Z [INFO] provider.terraform-provider-ibm_v1.29.0: 2021/08/02 13:03:22 Create Endpoint Gateway failed: {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "StatusCode": 400,
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Headers": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Cache-Control": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "max-age=0, no-cache, no-store, must-revalidate"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Cf-Cache-Status": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "DYNAMIC"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Cf-Ray": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "678781844cc95eba-IAD"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Content-Length": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "1116"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Content-Type": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "application/json"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Date": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Mon, 02 Aug 2021 13:03:22 GMT"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Expect-Ct": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Expires": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "-1"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Pragma": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "no-cache"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Server": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "cloudflare"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Strict-Transport-Security": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "max-age=31536000; includeSubDomains"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Vary": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Accept-Encoding"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "X-Content-Type-Options": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "nosniff"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "X-Request-Id": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "93ed1fde-fa9f-498f-b040-04f7a97cb556"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ],
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "X-Xss-Protection": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "1; mode=block"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ]
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "Result": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "errors": [
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "code": "validation_failed_oneof",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "Expected only one oneOf fields to be set: got 0",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "target": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "name": "EndpointGatewayReservedIP",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "type": "field"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "code": "validation_failed_oneof",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "ReservedIPIdentity is invalid: Expected only one oneOf fields to be set: got 0",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "target": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "name": "ReservedIPIdentity.ReservedIPIdentity",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "type": "field"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "code": "validation_failed_min_length",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "ReservedIPIdentity is invalid: ReservedIPIdentityByID is invalid: Validation Failure for field: id",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "target": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "name": "ReservedIPIdentity.ReservedIPIdentityByID.id",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "type": "field"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "code": "validation_failed_required",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "ReservedIPIdentity is invalid: ReservedIPIdentityByHref is invalid: Validation Failure for field: href",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "target": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "name": "ReservedIPIdentity.ReservedIPIdentityByHref.href",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "type": "field"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "code": "validation_failed_max_length",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "ReservedIPPrototypeTargetContext is invalid: Validation Failure for field: name",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "target": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "name": "ReservedIPPrototypeTargetContext.name",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "type": "field",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "value": "vpc-test-igwi1i-vpe-ntp-0717-a09730d2-2dd4-44c2-a106-2564d1028ea7"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: ]
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "RawResult": null
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
Create a ibm_is_virtual_endpoint_gateway and give the ips block a name that is longer than what is supported, the error returned will be:
{
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "code": "validation_failed_oneof",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "message": "Expected only one oneOf fields to be set: got 0",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "target": {
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "name": "EndpointGatewayReservedIP",
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: "type": "field"
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: }
TestTerraformVpc 2021-08-02T13:03:22Z logger.go:66: },
terraform apply
Important Factoids
the error should include all errors that have been returned by the api, not just the first. This issue can only be found by tracing the TF provider.
References
The text was updated successfully, but these errors were encountered: