jasonmimick / atlas-osb

DEPRECATED: See https://github.com/mongodb/atlas-osb
https://github.com/mongodb/atlas-osb
Apache License 2.0
0 stars 2 forks source link

Scrum Call Tues July 21 #41

Closed jasonmimick closed 4 years ago

jasonmimick commented 4 years ago

1st scrum call -- whooopie!! :)

Jumped into going through Sani's list of issues. Here are main todos:

jasonmimick commented 4 years ago

Here's an example of how to set the MongoDB version on a service. This same command should work for both create and update service.

cf update-service <SERVICE_NAME> -c '{ "cluster": { "mongoDBMajorVersion": "4.0" } }'
tanjoht commented 4 years ago

@jasonmimick the create/update service while specifying a specific version has issues. It creates the cluster successfully, but the cf create-service operations hangs in the "create in progress" state. On mongo atlas, i can see that the cluster has been created successfully, but there are no database users (unexpected).

jasonmimick commented 4 years ago

Hi @tanjoht -

Thanks, we will investigate. Is for the sample_basic.yml.tpl ? It would also help to see your exact command, for example did you get this error trying the example in the comment above or did you change the plan?

In general - plan, command, and then logs from cf logs <your-broker-app> are basic things we need for issues.

Thanks-

tanjoht commented 4 years ago

Plan: name: replica-m10 description: This is the Basic Plan template for 1 project, 1 cluster, 1 dbuser, and 1 secure connection. free: true apiKey: {{ mustToJson (index .credentials.Orgs (default "" .org_id)) }} project: name: {{ .instance_name }} desc: Created from a template orgId: cluster: name: {{ .instance_name }} providerBackupEnabled: {{ default "true" .backups }} providerSettings: providerName: {{ default "AZURE" .provider }} instanceSizeName: {{ default "M10" .instance_size }} regionName: {{ default "US_EAST_2" .region }} labels:

command: cf create-service mongodb-atlas-template replica-m10 atlas-replica-m10-test4 -c '{"cluster":{"mongoDBMajorVersion":"4.0"}}'

running the command the first time errors: Service broker error: POST https://cloud.mongodb.com/api/atlas/v1.0/groups/5f1858f6575ad654e60364bc/databaseUsers: 400 (request "Bad Request") Database name invalid. Users can only be created on the admin database. FAILED

re-running the command the second time is successful

I can see the cluster created on mongodb atlas, but the task is stuck in creating service in progress for a long time.

leo-ri commented 4 years ago

about Spring Music application (current version does not support mongo+srv protocol) : 1) if VCAP_SERVICES has URI = connectionString (master version) - It doesn't work 2) if VCAP_SERVICES has database field - it doesn't work 3) if VCAP_SERVICES has connectionString with mongo protocol - it doesn't work 4) if VCAP_SERVICES has URI with mongo protocol - it works if we have to USE spring automation then we should change URI to full Mongo protocol

tanjoht commented 4 years ago

Here's an example of how to set the MongoDB version on a service. This same command should work for both create and update service.

cf update-service <SERVICE_NAME> -c '{ "cluster": { "mongoDBMajorVersion": "4.0" } }'

is there a issue to track this? it is stuck on "create in progress"