huaweicloud / huaweicloud-service-broker

Huawei Cloud Service Broker
Apache License 2.0
18 stars 12 forks source link

Create ReadReplica for RDS MySql instance on Flexible Engine #81

Open Maellooou opened 5 years ago

Maellooou commented 5 years ago

Hello,

I use the huaweicloud-service-broker on a kubernetes 1.14 cluster deployed on Flexible Engine. After I created a RDS Mysql Primary/Standby Cluster, I would like to create a Read Replica link to this instance.

Bellow my configuration and the errors :

apiVersion: servicecatalog.k8s.io/v1beta1 kind: ServiceInstance metadata: name: my-service-instance spec: clusterServiceClassExternalName: rds-mysql clusterServicePlanExternalName: 5.7.21 parameters: name: "myinstancemysql" database_password: "Password1234!" speccode: "rds.mysql.s1.medium.rr"

I have the following error :

Warning ProvisionCallFailed 11s (x5 over 32s) service-catalog-controller-manager Error provisioning ServiceInstance of ClusterServiceClass (K8S: "a05f3e0b-86fd-4303-946c-171374d29150" ExternalName: "rds-mysql") at ClusterServiceBroker "cluster-service-broker": Status: 500; ErrorMessage: <nil>; Description: provision rds instance failed. **Error: Invalid request due to incorrect syntax or missing required parameters**.; ResponseError: <nil>

Following the API documentation, it is necessary to create a read replica to precise the parameter "replica_of_id". I don't see anything about this parameter on the broker...

Thank you for your help.

zhongjun2 commented 5 years ago

The huaweicloud-service-broker don't support create a rds instance with a read replica now. We will tring to support it later.