Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

update kubectl logs cmmand and it's output #1180

Merged
merged 3 commits into from
Oct 1, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions docs/debug-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,17 @@ INFO[0000] Check the deployment status executing 'kubeless function ls foo'
$ kubeless function ls
NAME NAMESPACE HANDLER RUNTIME DEPENDENCIES STATUS
foo default hello,foo python3.6 MISSING: Check controller logs
$ kubectl logs -n kubeless -l kubeless=controller
time="2018-04-27T15:12:28Z" level=info msg="Processing update to function object foo Namespace: default" controller=cronjob-trigger-controller
time="2018-04-27T15:12:28Z" level=error msg="Function can not be created/updated: failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
time="2018-04-27T15:12:28Z" level=error msg="Error processing default/foo (will retry): failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
$ kubectl logs -n kubeless -l kubeless=controller -c kubeless-function-controller
time="2020-10-01T01:48:29Z" level=info msg="Processing change to Function default/foo" pkg=function-controller
time="2020-10-01T01:48:29Z" level=error msg="Function can not be created/updated: failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
time="2020-10-01T01:48:29Z" level=error msg="Error processing default/foo (will retry): failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
time="2020-10-01T01:48:29Z" level=info msg="Processing change to Function default/foo" pkg=function-controller
time="2020-10-01T01:48:29Z" level=error msg="Function can not be created/updated: failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
time="2020-10-01T01:48:29Z" level=error msg="Error processing default/foo (will retry): failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
time="2020-10-01T01:48:29Z" level=info msg="Processing change to Function default/foo" pkg=function-controller
time="2020-10-01T01:48:29Z" level=error msg="Function can not be created/updated: failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
time="2020-10-01T01:48:29Z" level=error msg="Error processing default/foo (giving up): failed: incorrect handler format. It should be module_name.handler_name" pkg=function-controller
ERROR: logging before flag.Parse: E1001 01:48:29.164740 1 function_controller.go:185] failed: incorrect handler format. It should be module_name.handler_name
donhui marked this conversation as resolved.
Show resolved Hide resolved
```

From the logs we can see that there is a problem with the handler: we specified `hello,foo` while the correct value is `hello.foo`.
Expand Down