{"action":"created","issue":{"url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker/issues/64","repository_url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker","labels_url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker/issues/64/comments","events_url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker/issues/64/events","html_url":"https://github.com/huaweicloud/huaweicloud-service-broker/issues/64","id":385185386,"node_id":"MDU6SXNzdWUzODUxODUzODY=","number":64,"title":"Problem with Volume type on RDS Flexible Engine","user":{"login":"yeplaa","id":1431047,"node_id":"MDQ6VXNlcjE0MzEwNDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1431047?v=4","gravatar_id":"","url":"https://api.github.com/users/yeplaa","html_url":"https://github.com/yeplaa","followers_url":"https://api.github.com/users/yeplaa/followers","following_url":"https://api.github.com/users/yeplaa/following{/other_user}","gists_url":"https://api.github.com/users/yeplaa/gists{/gist_id}","starred_url":"https://api.github.com/users/yeplaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeplaa/subscriptions","organizations_url":"https://api.github.com/users/yeplaa/orgs","repos_url":"https://api.github.com/users/yeplaa/repos","events_url":"https://api.github.com/users/yeplaa/events{/privacy}","received_events_url":"https://api.github.com/users/yeplaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-28T09:53:29Z","updated_at":"2018-11-28T10:47:23Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nFrom Openshift Origin, i use huaweicloud-service-broker for provision RDS Mysql 5.7.21 on Flexible Engine OBS.\r\n\r\nWhen I want deploy my ServiceInstance bellow the error generated by the service-broker pod : \r\n\r\n{\"timestamp\":\"1543335913.753563881\",\"source\":\"ServiceBroker\",\"message\":\"ServiceBroker.provision rds instance opts: {\\\"name\\\":\\\"rdsysqltest\\\",\\\"datastore\\\":{\\\"type\\\":\\\"MySQL\\\",\\\"version\\\":\\\"5.7.21\\\"},\\\"flavorRef\\\":\\\"39c59aff-0791-475c-b135-2505c26f9450\\\",\\\"volume\\\":{\\\"type\\\":\\\"SATA\\\",\\\"size\\\":100},\\\"region\\\":\\\"eu-west-0\\\",\\\"availabilityZone\\\":\\\"eu-west-0a\\\",\\\"vpc\\\":\\\"5ca053a-194c-4538-8265-0512c691d363\\\",\\\"nics\\\":{\\\"subnetId\\\":\\\"5e52de8f-1641-4525-8f72-d148b87fe0f2\\\"},\\\"securityGroup\\\":{\\\"id\\\":\\\"e37131c1-5464-4fde-991e-b0dd5c8b50e7\\\"},\\\"backupStrategy\\\":{\\\"startTime\\\":\\\"00:00:00\\\"},\\\"dbRtPd\\\":\\\"Password1234!\\\",\\\"ha\\\":{\\\"enable\\\":false,\\\"replicationMode\\\":\\\"\\\"}}\",\"log_level\":0,\"data\":{}}\r\n{\"timestamp\":\"1543335913.804447889\",\"source\":\"ServiceBroker\",\"message\":\"ServiceBroker.provision.unknown-error\",\"log_level\":2,\"data\":{\"error\":\"provision rds instance failed. Error: Invalid request due to incorrect syntax or missing required parameters.\",\"instance-details\":{\"service_id\":\"275f3e0b-86fd-4303-946c-171374d29150\",\"plan_id\":\"839f4458-309a-4e05-a069-807e950cf6da\",\"organization_guid\":\"7d306fb5-ec26-11e8-aea1-0a580a8000b0\",\"space_guid\":\"28c4800b-ee33-11e8-a51d-fa163ea276c9\",\"context\":{\"clusterid\":\"7d306fb5-ec26-11e8-aea1-0a580a8000b0\",\"namespace\":\"dbms\",\"platform\":\"kubernetes\"},\"parameters\":{\"database_password\":\"Password1234!\",\"ha_enable\":false,\"name\":\"rdsysqltest\"}},\"instance-id\":\"cec501c7-f25f-11e8-ad10-0a580a8000af\",\"session\":\"22\"}}\r\n{\"timestamp\":\"1543335913.961048603\",\"source\":\"ServiceBroker\",\"message\":\"ServiceBroker.Deprovision received. instanceID: cec501c7-f25f-11e8-ad10-0a580a8000af\",\"log_level\":0,\"data\":{}}\r\n{\"timestamp\":\"1543335913.962659836\",\"source\":\"ServiceBroker\",\"message\":\"ServiceBroker.deprovision.instance-missing\",\"log_level\":2,\"data\":{\"error\":\"instance does not exist\",\"instance-id\":\"cec501c7-f25f-11e8-ad10-0a580a8000af\",\"session\":\"23\"}}\r\n\r\nBellow my configuration : \r\n\r\nmysql-service-instance.yaml : \r\n                                                   \r\napiVersion: servicecatalog.k8s.io/v1beta1\r\nkind: ServiceInstance\r\nmetadata:\r\n  name: essaiii\r\n  namespace:  dbms\r\nspec:\r\n  clusterServiceClassExternalName: rds-mysql\r\n  clusterServicePlanExternalName: 5.7.21\r\n  parameters:\r\n    name: \"rdsysqltest\"\r\n    database_password: \"Password1234!\"\r\n    ha_enable: false\r\n\r\nconfig.json (only part of the file) : \r\n\r\n\r\n            \"cloud_credentials\": {\r\n                \"auth_url\": \"https://iam.eu-west-0.prod-cloud-ocb.orange-business.com\",\r\n                \"user_name\": \"<myusername>\",\r\n                \"password\": \"<mypassword>\",\r\n                 \"domain_name\": \"OCB0001982\",\r\n                 \"tenant_id\": \"<mytenant_id>\",\r\n                 \"tenant_name\": \"<mytetant_name>\",\r\n                 \"region\": \"eu-west-0\",\r\n                 \"access_key\": \"<myaccess_key>\",\r\n                 \"secret_key\": \"<mysecret_key>\"\r\n\r\n                            \"id\": \"839f4458-309a-4e05-a069-807e950cf6da\",\r\n                            \"name\": \"5.7.21\",\r\n                            \"description\": \"RDS MySQL 5.7.21\",\r\n                            \"metadata\": {\r\n                                \"parameters\": {\r\n                                    \"datastore_type\": \"MySQL\",\r\n                                    \"datastore_version\": \"5.7.21\",\r\n                                    \"speccode\": \"rds.mysql.s1.xlarge\",\r\n                                    \"volume_type\": \"SATA\",\r\n                                    \"volume_size\": 100,\r\n                                    \"availability_zone\": \"eu-west-0a\",\r\n                                    \"vpc_id\": \"<vpc_id>\",\r\n                                    \"subnet_id\": \"<subnet_id>\",\r\n                                    \"security_group_id\": \"<security_group>\",\r\n                                    \"database_username\": \"root\"\r\n                                }\r\n\r\n\r\nOn Flexible Engine, i activated \"Cloud Trace Service\" for debug my problem.\r\n It indicates the Volume type is invalid : \r\n\r\n![deployment_with_huaweicloud-service-broker](https://user-images.githubusercontent.com/1431047/49143647-c627a480-f2fb-11e8-88b8-5cb8a1114622.png)\r\n\r\n\r\nFor a deployment with the Console that works, the key is  \"ioType\" and not \"type\" : \r\n\r\n![deployment_with_console](https://user-images.githubusercontent.com/1431047/49143645-c4f67780-f2fb-11e8-9d20-4c486e57c432.png)\r\n  \r\nIt's not possible to modify the type on *config.json* File, Otherwise there is the following error : \r\n\r\n{\"timestamp\":\"1543398210.162670135\",\"source\":\"ServiceBroker\",\"message\":\"ServiceBroker.provision.unknown-error\",\"log_level\":2,\"data\":{\"error\":\"provision rds instance failed. Error: Missing input for argument [Type]\",\"instance-details\":{\"service_id\":\"275f3e0b-86fd-4303-946c-171374d29150\",\"plan_id\":\"839f4458-309a-4e05-a069-807e950cf6da\",\"organization_guid\":\"7d306fb5-ec26-11e8-aea1-0a580a8000b0\",\"space_guid\":\"28c4800b-ee33-11e8-a51d-fa163ea276c9\",\"context\":{\"clusterid\":\"7d306fb5-ec26-11e8-aea1-0a580a8000b0\",\"namespace\":\"dbms\",\"platform\":\"kubernetes\"},\"parameters\":{\"database_password\":\"Password1234!\",\"ha_enable\":false,\"name\":\"rdsysqltest\"}},\"instance-id\":\"10b27397-f2f2-11e8-ad10-0a580a8000af\",\"session\":\"3\"}}\r\n\r\n\r\nDo you have an idea? \r\n\r\nThank's\r\nLoïc\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker/issues/comments/442403408","html_url":"https://github.com/huaweicloud/huaweicloud-service-broker/issues/64#issuecomment-442403408","issue_url":"https://api.github.com/repos/huaweicloud/huaweicloud-service-broker/issues/64","id":442403408,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjQwMzQwOA==","user":{"login":"edisonxiang","id":28946359,"node_id":"MDQ6VXNlcjI4OTQ2MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/28946359?v=4","gravatar_id":"","url":"https://api.github.com/users/edisonxiang","html_url":"https://github.com/edisonxiang","followers_url":"https://api.github.com/users/edisonxiang/followers","following_url":"https://api.github.com/users/edisonxiang/following{/other_user}","gists_url":"https://api.github.com/users/edisonxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edisonxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisonxiang/subscriptions","organizations_url":"https://api.github.com/users/edisonxiang/orgs","repos_url":"https://api.github.com/users/edisonxiang/repos","events_url":"https://api.github.com/users/edisonxiang/events{/privacy}","received_events_url":"https://api.github.com/users/edisonxiang/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T10:47:23Z","updated_at":"2018-11-28T10:47:23Z","author_association":"COLLABORATOR","body":"hi, thanks for your issue.\r\n\r\nCould you try to add the following parameter in the mysql-service-instance.yaml?\r\n\r\nvolume_type: “SSD”\r\n\r\nOr\r\n\r\nvolume_type: “SAS”\r\n\r\nThe parameter in yaml will replace the one in the config.json.\r\n\r\nThanks very much.\r\n\r\n\r\n"}}
{"actor":{"display_login":"edisonxiang"}}