openstorage
openstorage copied to clipboard
GetToken returns weird error when no cluster pairs are setup
Is this a BUG REPORT or FEATURE REQUEST?: BUG
What happened: While
What you expected to happen: Sending the SDK command:
$ curl http://localhost:9110/v1/clusterpairs/token
{"error":"Cannot Get cluster information for token : Key not found","code":13}
"key not found" is a confusing error message
How to reproduce it (as minimally and precisely as possible):
$ make launch-sdk
$ curl http://localhost:9110/v1/clusterpairs/token
{"error":"Cannot Get cluster information for token : Key not found","code":13}
Not sure what that SDK call is trying to do. Looks like it is fetching a clusterpair with id=token