Skip to content

[MLS] Mrs resource is never recognized #916

@dmicheneau

Description

@dmicheneau

Terraform Version

Terraform v1.3.7
TERRAFORM_PROVIDER_VERSION = 1.36.0

Affected Resource(s)

  • flexibleengine_mls_instance_v1

Terraform Configuration Files

"resource": {
        "flexibleengine_mls_instance_v1": {
            "example-mls-instance": {
                "flavor": "mls.c2.2xlarge.common",
                "lifecycle": {
                    "prevent_destroy": true
                },
                "mrs_cluster": [
                    {
                        "id": "5d5e03c4-2116-4074-9619-16d7f4849033"
                    }
                ],
                "name": "example-mls-instance",
                "network": [
                    {
                        "available_zone": "eu-west-0a",
                        "public_ip": [
                            {
                                "bind_type": "not_use"
                            }
                        ],
                        "subnet_id": "355f43be-ff60-4854-920d-7f00b3e7d37d",
                        "vpc_id": "16f0268e-a59b-4566-b7d7-a519454978aa"
                    }
                ],
                "version": "1.2.0"
            }
        }
    }

Panic Output

terraform apply

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # flexibleengine_mls_instance_v1.example-mls-instance will be created
  + resource "flexibleengine_mls_instance_v1" "example-mls-instance" {
      + agency          = (known after apply)
      + created         = (known after apply)
      + flavor          = "mls.c2.2xlarge.common"
      + id              = (known after apply)
      + inner_endpoint  = (known after apply)
      + name            = "example-mls-instance"
      + public_endpoint = (known after apply)
      + region          = (known after apply)
      + status          = (known after apply)
      + updated         = (known after apply)
      + version         = "1.2.0"

      + mrs_cluster {
          + id            = "5d5e03c4-2116-4074-9619-16d7f4849033"
          + user_name     = (known after apply)
          + user_password = (sensitive value)
        }

      + network {
          + available_zone = "eu-west-0a"
          + security_group = (known after apply)
          + subnet_id      = "355f43be-ff60-4854-920d-7f00b3e7d37d"
          + vpc_id         = "16f0268e-a59b-4566-b7d7-a519454978aa"

          + public_ip {
              + bind_type = "not_use"
              + eip_id    = (known after apply)
            }
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
flexibleengine_mls_instance_v1.example-mls-instance: Creating...
╷
│ Error: Error getting instance from result: Bad request with: [POST https://mls.eu-west-0.prod-cloud-ocb.orange-business.com/v1.0/bb4a068de4b24eea97b11d43e9b5910d/instances], error message: {"errCode":"MLS.10002","externalMessage":"The MRS cluster version is not supported!"} 
│ 
│   with flexibleengine_mls_instance_v1.example-mls-instance,
│   on main.tf.json line 1, in resource.flexibleengine_mls_instance_v1.example-mls-instance:
│    1: {"provider":{"flexibleengine":{"access_key":"xxxxxxxxx","domain_id":"","domain_name":"xxxxxx","insecure":false,"region":"eu-west-0","secret_key":"xxxxxxxxxxxxxxx","tenant_id":"","tenant_name":""}},"resource":{"flexibleengine_mls_instance_v1":{"example-mls-instance":{"flavor":"mls.c2.2xlarge.common","lifecycle":{"prevent_destroy":true},"mrs_cluster":[{"id":"5d5e03c4-2116-4074-9619-16d7f4849033"}],"name":"example-mls-instance","network":[{"available_zone":"eu-west-0a","public_ip":[{"bind_type":"not_use"}],"subnet_id":"355f43be-ff60-4854-920d-7f00b3e7d37d","vpc_id":"16f0268e-a59b-4566-b7d7-a519454978aa"}],"version":"1.2.0"}}},"terraform":{"required_providers":{"flexibleengine":{"source":"FlexibleEngineCloud/flexibleengine","version":"1.36.0"}}}}
│ 
╵

Expected Behavior

Create an MLS instance with MRS cluster with Spark module

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create a MRS cluster 1.8.9, 2.0.1 or 3.1.0 Analysis
  2. Create a MLS instance
  3. terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions