apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.49k stars 1.16k forks source link

cloudant configuration checker tool #475

Closed csantanapr closed 7 years ago

csantanapr commented 8 years ago

From @sjfink : We should have a script run as part of deployment that checks that the cloudant configuration is kosher. These checks should include that the username/password are valid, that the required databases and indices exist, the subjects table meets its invariants, and anything else that a user can screw up.

We have openwhisk/config/dbSetup.sh but we need another script

  1. Added bogus username in openwhisk/cloudant-local.env

provide a standalone tool /script that checks that a users cloudant configuration is valid, including all the properties listed above. I'd like this so that when a user complains "wsk cli is giving me an error", we ask them to run "checkDatabase.sh" to rule out misconfigured or corrupted databases.

rabbah commented 8 years ago

This can be done as part of wskadmin db operations, e.g., wsadmin db verify.

rabbah commented 7 years ago

wskadmin db get -h.