Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling when target Object Storage service lacks a service-key #7

Open
joshisa opened this issue Jan 27, 2017 · 0 comments
Open

Comments

@joshisa
Copy link

joshisa commented Jan 27, 2017

boilerup@macrox ~ $ cf os auth myObjectStorage
Authenticating with org [email protected] / space dev as [email protected]...

FAILED
Failed to fetch a new set of credentials (Try running `cf login`): Failed to locate target service's credentials: Could not find credentials for target service

boilerup@macrox ~ $ cf service-keys myObjectStorage
Getting keys for service instance myObjectStorage as [email protected]...
No service key for service instance myObjectStorage

boilerup@macrox ~ $ cf create-service-key myObjectStorage myCreds
Creating service key myCreds for service instance myObjectStorage as [email protected]...
OK

boilerup@macrox ~ $ cf os auth myObjectStorage
Authenticating with org [email protected] / space dev as [email protected]...
OK

Authenticated with myObjectStorage
boilerup@macrox ~ $

Observation: Failure to fetch a new set of credentials provides guidance for trying cf login. However, the root cause can also be the lack of a service-key as well.

Suggestion(s):

  1. Update the error message to also guide users to investigate whether a service-key exists and to leverage cf create-service-key if one is not present.

  2. Perhaps we could provide a flag (or simply default) to auto-creation of a service-key for the service instance under investigation.

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

No branches or pull requests

1 participant