Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

HOw to build config.json file for FE ? #77

Open
jfpucheu opened this issue Apr 3, 2019 · 2 comments
Open

HOw to build config.json file for FE ? #77

jfpucheu opened this issue Apr 3, 2019 · 2 comments

Comments

@jfpucheu
Copy link

jfpucheu commented Apr 3, 2019

HEllo ,
How can we process to build config.json file ? because each time i try to build an RDS instance it crash:

{"timestamp":"1554282176.898674488","source":"ServiceBroker","message":"ServiceBroker.Received flavor ID: 39c59aff-0791-475c-b135-2505c26f9450","log_level":0,"data":{}}
{"timestamp":"1554282176.898707628","source":"ServiceBroker","message":"ServiceBroker.provision rds instance opts: {"name":"mysqlha1","datastore":{"type":"MySQL","version":"5.6.39"},"flavorRef":"39c59aff-0791-475c-b135-2505c26f9450","volume":{"type":"COMMON","size":100},"region":"eu-west-0","availabilityZone":"eu-west-0b","vpc":"72371135-56c3-4a1b-b6c3-61f8e3c3647c","nics":{"subnetId":"f74ce220-c62f-4d79-b7da-c6fe13a6e147"},"securityGroup":{"id":"64a60f3a-b496-44a3-8887-8d0b17bddb9a"},"backupStrategy":{"startTime":"00:00:00"},"dbRtPd":"Password1234!","ha":{"enable":false,"replicationMode":""}}","log_level":0,"data":{}}
{"timestamp":"1554282177.508063316","source":"ServiceBroker","message":"ServiceBroker.provision.unknown-error","log_level":2,"data":{"error":"provision rds instance failed. Error: Resource not found","instance-details":{"service_id":"d893b0ef-240b-44b4-926c-9f9594ba336f","plan_id":"d893b0ef-240b-44b4-926c-9f9594ba336f","organization_guid":"3d739609-5520-11e9-949e-32310a56ed55","space_guid":"e5c8a504-cb21-11e8-be37-fa163e1f56db","context":{"clusterid":"3d739609-5520-11e9-949e-32310a56ed55","namespace":"default","platform":"kubernetes"},"parameters":{"database_password":"Password1234!","name":"mysqlha1"}},"instance-id":"3eb80e56-55ef-11e9-bdfb-e6b5aaa732b1","session":"18"}}

Calling api I get :

},
{
"id": "9dae9226-5f8e-4b10-bd41-adae2e693e89",
"name": "5.6.39",
"datastore": "d893b0ef-240b-44b4-926c-9f9594ba336f",
"image": "52887a76-c133-4630-92d5-1ee6b54d989a",
"packages": "v5.6.39-MySQL-install_c258a9b931a1d7fee500fcba0df6112575bf83cc6663cab37458d179df03196c.tar.gz",
"active": 1
},

I create:

"catalog": {
    "services": [
        {
            "id": "d893b0ef-240b-44b4-926c-9f9594ba336f",
            "name": "rds-mysql",
            "description": "RDS MySQL Service",
            "bindable": true,
            "tags": [
                "mysql",
                "relational"
            ],
            "metadata": {
                "displayName": "RDS MySQL",
                "imageUrl": "data:image/png;",
                "longDescription": "RDS MySQL Service",
                "providerDisplayName": "Huawei Cloud Services",
                "documentationUrl": "https://support.huaweicloud.com/en-us/usermanual-rds/en-us_topic_0044262671.html",
                "supportUrl": "http://www.huaweicloud.com/en-us/product/rds.html"
            },
            "plan_updateable": true,
            "plans": [
                {
                    "id": "9dae9226-5f8e-4b10-bd41-adae2e693e89",
                    "name": "5.6.39",
                    "description": "RDS MySQL 5.6.39",
                    "metadata": {
                        "parameters": {
                            "datastore_type": "MySQL",
                            "datastore_version": "5.6.39",
                            "speccode": "rds.mysql.s1.xlarge",
                            "volume_type": "COMMON",
                            "volume_size": 100,
                            "availability_zone": "%s",
                            "vpc_id": "%s",
                            "subnet_id": "%s",
                            "security_group_id": "%s",
                            "database_username": "root"
                        }
@freesky-edward
Copy link

@jfpucheu It seems broker got "404" codes from cloud service. it may cause by some configuration parameters of instance are incorrect, could you please give me the detailed configuration file?

@freesky-edward
Copy link

@jfpucheu I tested it with my backend, I found that it will get the "Resource not found" error if the subnet_id is incorrect. it should be the value of network_id on console, please check that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants