The loadbalancer (metallb) successfully provided a...
# announcements
b
The loadbalancer (metallb) successfully provided an IP address, and console is available through that address. Here is flyte config.yaml
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///192.168.111.220
  insecure: true
logger:
  show-source: true
  level: 0
Here is a screenshot of the console:
@Ketan (kumare3)
y
Hey, Can you validate your GRPC connection ? Please use flytectl
Copy code
flytectl config init --host=192.168.111.220
flytectl get projects --logger.level 6
b
heres what I got
Copy code
(flyte) (base) btyeung@by-mbp flyte-learning % flytectl config init --host=192.168.111.220
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags. 
This action will overwrite an existing config file at [/Users/btyeung/.flyte/config.yaml]. Do you want to continue? [y/n]: y
Init flytectl config file at [/Users/btyeung/.flyte/config.yaml]%                                                                               
(flyte) (base) btyeung@by-mbp flyte-learning % flytectl get projects --logger.level 6
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags. 
{"json":{},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-07-20T22:46:04-07:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xa8 pc=0x10398e278]

goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x104913d08|github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x104913d08>, 0x14000118000}, {0x140005bd860, 0x0, 0x103fdfe29?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
        /home/runner/work/flytectl/flytectl/cmd/get/project.go:82 +0xc8
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x1400093cc80|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x1400093cc80>?, {0x140005bd860, 0x0, 0x2})
        /home/runner/work/flytectl/flytectl/cmd/core/cmd.go:65 +0x508
<http://github.com/spf13/cobra.(*Command).execute(0x1400093cc80|github.com/spf13/cobra.(*Command).execute(0x1400093cc80>, {0x140005bd840, 0x2, 0x2})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x4c4
<http://github.com/spf13/cobra.(*Command).ExecuteC(0x1400093c780)|github.com/spf13/cobra.(*Command).ExecuteC(0x1400093c780)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x34c
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
        /home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x24
main.main()
        /home/runner/work/flytectl/flytectl/main.go:12 +0x20
(flyte) (base) btyeung@by-mbp flyte-learning %
y
what’s is your config ? Can you post the output of
cat ~/.flyte/config,yaml
b
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///192.168.111.220
  authType: Pkce
  insecure: false
logger:
  show-source: true
  level: 0
y
for insecure connection you need to pass
--insecure
flag
Copy code
flytectl config init --host=192.168.111.220 --insecure
b
same result
updated yaml here
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///192.168.111.220
  authType: Pkce
  insecure: true
logger:
  show-source: true
  level: 0
results:
Copy code
(flyte) (base) btyeung@by-mbp flyte-learning % flytectl get projects --logger.level 6                        
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags. 
{"json":{},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-07-20T22:52:15-07:00"}
{"json":{},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-07-20T22:52:15-07:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xa8 pc=0x1031d6278]

goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x10415bd08|github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x10415bd08>, 0x140000540c0}, {0x14000142ee0, 0x0, 0x103827e29?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
        /home/runner/work/flytectl/flytectl/cmd/get/project.go:82 +0xc8
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x140005ad680|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x140005ad680>?, {0x14000142ee0, 0x0, 0x2})
        /home/runner/work/flytectl/flytectl/cmd/core/cmd.go:65 +0x508
<http://github.com/spf13/cobra.(*Command).execute(0x140005ad680|github.com/spf13/cobra.(*Command).execute(0x140005ad680>, {0x14000142ec0, 0x2, 0x2})
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x4c4
<http://github.com/spf13/cobra.(*Command).ExecuteC(0x14000a2db80)|github.com/spf13/cobra.(*Command).ExecuteC(0x14000a2db80)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x34c
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
        /home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x24
main.main()
        /home/runner/work/flytectl/flytectl/main.go:12 +0x20
(flyte) (base) btyeung@by-mbp flyte-learning %
y
cc: @Prafulla Mahindrakar
b
(also validated this was successful on fully local sandbox…getting past the M1 bug) FWIW
y
Can you make this endpoint publicly available ? I can test from my machine. Looks weird it failed in creating client.
b
yup standby I’ll set up an ngrok (its behind a firewall)
will DM you
🙌 1
Thanks to @Yuvraj for hopping on a screenshare. What we found is that even though insecure:true in config.yaml, the port of 80 needs to be specified (it still routes to port 443). Example
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///<youriphere>:80
  authType: Pkce
  insecure: true
logger:
  show-source: true
  level: 0
❤️ 1
After setting it this way, then
Copy code
flytectl get projects --logger.level 6
returns projects (in other words makes a successful connection)
p
I think this is by design of grpc endpoint resolution https://github.com/grpc/grpc/blob/master/doc/naming.md
Copy code
port is the port to return for each address. If not specified, 443 is used (but some implementations default to 80 for insecure channels).
k
Thank you all @Bryan Yeung can you please propose a doc edit
👍 1
177 Views