https://flyte.org logo
k

Katrina P

07/13/2022, 3:28 PM
Anyone have a good way of testing the grpc end points (maybe with grpcurl) to debug networking issues? I upped the admin logging level, and hoping to see more logs to see if we're hitting admin correctly but can't tell if there's just no logs or if we're not hitting it 😅
k

katrina

07/13/2022, 4:22 PM
flytectl uses the grpc endpoints under the hood so something like
flytectl get projects
should be a simple test
k

Katrina P

07/13/2022, 4:32 PM
Something like ...
flytectl get projects --logger.level=6 --admin.insecure  --admin.endpoint dns:///host:81
or
flytectl get projects --logger.level=6 --admin.insecure  --admin.endpoint {ip}:81
1
And if I have logging level at 20 in my admin config I should be able to see admin logging requests right? I just want to make sure since the logs don't seem to outputting anything (which would suggest we're not hitting it)
k

katrina

07/13/2022, 6:09 PM
if you have auth enabled then the logging interceptor should log on every endpoint
k

Katrina P

07/13/2022, 6:09 PM
what if I do not have auth enabled 😞
I was able to hit
get projects
but dont have logs for it (without auth)
k

katrina

07/13/2022, 6:18 PM
you could try setting the grpc verbosity env var: https://github.com/grpc/grpc/blob/master/doc/environment_variables.md
k

Katrina P

07/13/2022, 6:18 PM
I did! The logging shows with pyflyte but not flytectl
k

katrina

07/13/2022, 6:33 PM
where are you setting that env var? can you set it for the admin service deployment?
k

Katrina P

07/13/2022, 6:34 PM
Ah, good call, I was setting it on the client, I'll do that
9 Views