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

show error message when service account is missing (hence revision will not be created) #36

Open
cppforlife opened this issue Nov 9, 2018 · 2 comments

Comments

@cppforlife
Copy link
Owner

knctl got stuck waiting for new revision because service account did not exist, hence Configuration wasnt updated, hence Revision will never be created.

$ knctl service show -s simple-app2
Service 'simple-app2'

Name             simple-app2
Domain           simple-app2.default.example.com
Internal Domain  simple-app2.default.svc.cluster.local
Annotations      -
Age              2m

Service 'simple-app2' conditions

Type                 Status  Age  Reason           Message
ConfigurationsReady  False   2m   RevisionFailed   Revision creation failed with message: "Internal error occurred: admission
                                                   webhook \"webhook.build.knative.dev\" denied the request: mutation failed:
                                                   serviceaccounts \"serv-acct1\" not found".
Ready                False   1s   RevisionMissing  Configuration "simple-app2" does not have any ready Revision.
RoutesReady          False   2m   RevisionMissing  Configuration "simple-app2" does not have any ready Revision.

Pods conditions

Pod  Type  Status  Age  Reason  Message

Succeeded
@drnic
Copy link
Contributor

drnic commented Nov 15, 2018

I've created an upstream Build issue so perhaps we can get status updates with error messages knative/build#471

@drnic
Copy link
Contributor

drnic commented Nov 15, 2018

The same category of issue occurs if --template buildpack references a BuildTemplate that doesn't exist yet. It only appears in build-controller logs:

knative-build/build-controller-79d6cc9d57-7svtq[build-controller]: {"level":"error","logger":"controller.build-controller","caller":"build/build.go:141","msg":"Failed to validate build: buildtemplates.build.knative.dev \"buildpack\" not found","knative.dev/controller":"controller","knative.dev/controller"

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

2 participants