Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Redis elasticache cannot be imported into xplane #196

Open
kumudkhk opened this issue May 6, 2022 · 2 comments
Open

Redis elasticache cannot be imported into xplane #196

kumudkhk opened this issue May 6, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@kumudkhk
Copy link

kumudkhk commented May 6, 2022

What happened?

Existing Redis replicationgroup cannot be imported when Redis is in non-cluster mode. Though the cluster mode is disabled, it tries to set the mode on and creates conflict.

    clusterMode:
    - numNodeGroups: 1
      replicasPerNodeGroup: 2

Error

observe failed: cannot run refresh: refresh failed: Conflicting configuration arguments: "number_cache_clusters": conflicts with cluster_mode.0.num_node_groups: File name: main.tf.json
      Conflicting configuration arguments: "cluster_mode.0.num_node_groups": conflicts with number_cache_clusters: File name: main.tf.json

How can we reproduce it?

Create elasticache replicationgroup manually in non cluster mode and try to import it.

apiVersion: elasticache.aws.jet.crossplane.io/v1alpha2
kind: ReplicationGroup
metadata:
  name: xplane-import
  annotations:
    crossplane.io/external-name: xplane
spec:
  providerConfigRef:
    name: jet-aws-provider
  forProvider:
    replicationGroupDescription: imported redis
    region: us-west-2
    tags:
      managed-by: crossplane

What environment did it happen in?

Crossplane version: v1.6.3
Terrajet version: v0.4.0-39
Cloud: AWS
K8S: EKS

@kumudkhk kumudkhk added the bug Something isn't working label May 6, 2022
@kumudkhk
Copy link
Author

kumudkhk commented May 6, 2022

It tries to include both "numberCacheClusters" and "clusterMode" even though when clusterMode is disabled.

    - numNodeGroups: 1
      replicasPerNodeGroup: 2
      .....
    numberCacheClusters: 3

@haarchri
Copy link
Member

@muvaf can be closed as of #199

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants