Justin Tyberg
09/14/2022, 11:48 PMflyte
namespace
• flytectl running in foo
namespace
If I run flytectl from within the pod in foo
namespace, and hit the external endpoint (through the ingress), it works
bin/flytectl get projects \
--admin.endpoint dns:///EXTERNAL_FQDN:443 \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /etc/secrets/client_secret
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
----- ------ -----------------
| ID | NAME | DESCRIPTION |
----- ------ -----------------
| dpp | dpp | dpp description |
----- ------ -----------------
1 rows
However, if I try to hit the internal grpc endpoint, I get nada. No output.
bin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
echo $?
0
🤔Samhita Alla
Prafulla Mahindrakar
09/15/2022, 9:59 AM--logger.level 6
Justin Tyberg
09/15/2022, 11:21 AMbin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --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-09-15T11:19:14Z"}
{"json":{},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-09-15T11:19:14Z"}
{"json":{},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2022-09-15T11:19:14Z"}
{"json":{},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T11:19:14Z"}
{"json":{},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2022-09-15T11:19:14Z"}
{"json":{},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2022-09-15T11:19:14Z"}
{"json":{},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T11:19:14Z"}
Prafulla Mahindrakar
09/15/2022, 11:24 AM{"json":{},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2022-09-15T11:19:14Z"}
{"json":{},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T11:19:14Z"}
But it doesn’t print the o/p though . hmm.-o yaml
output formatJustin Tyberg
09/15/2022, 11:35 AMbin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --output yaml
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
Prafulla Mahindrakar
09/15/2022, 11:38 AMJustin Tyberg
09/15/2022, 11:49 AMPrafulla Mahindrakar
09/15/2022, 11:56 AMdpp
bin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --output yaml \
>. --logger.level 6 \
>. dpp
flyteadmin.flyte.svc.cluster.local:81
Justin Tyberg
09/15/2022, 11:59 AMbin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --output yaml \
> --logger.level 6 \
> --project dpp
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T11:58:54Z"}
{"json":{},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2022-09-15T11:58:54Z"}
{"json":{},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2022-09-15T11:58:54Z"}
{"json":{},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T11:58:54Z"}
Prafulla Mahindrakar
09/15/2022, 12:00 PMJustin Tyberg
09/15/2022, 12:03 PMbin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --output yaml \
> --logger.level 6 \
> --project foo
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T12:02:55Z"}
{"json":{},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2022-09-15T12:02:55Z"}
{"json":{},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2022-09-15T12:02:55Z"}
{"json":{},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T12:02:55Z"}
Prafulla Mahindrakar
09/15/2022, 12:04 PM--project foo
Can you pass the project the way i sent youJustin Tyberg
09/15/2022, 12:08 PMbin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --output yaml \
> --logger.level 6 \
> dpp
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-09-15T12:07:50Z"}
{"json":{},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-09-15T12:07:50Z"}
{"json":{},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T12:07:50Z"}
{"json":{},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2022-09-15T12:07:50Z"}
{"json":{},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2022-09-15T12:07:50Z"}
{"json":{},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T12:07:50Z"}
description: dpp description
domains:
- id: default
name: default
id: dpp
name: dpp
bin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --output yaml \
> foo
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
description: dpp description
domains:
- id: default
name: default
id: dpp
name: dpp
bin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> foo
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
----- ------ -----------------
| ID | NAME | DESCRIPTION |
----- ------ -----------------
| dpp | dpp | dpp description |
----- ------ -----------------
1 rows
Prafulla Mahindrakar
09/15/2022, 12:18 PM(lab_project) ➜ flytectl git:(device-auth) ✗ flytectl get projects flyteexamples --logger.level=0
--------------- --------------- ---------------------------
| ID | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
1 rows
(lab_project) ➜ flytectl git:(device-auth) ✗ flytectl get projects --logger.level=0
--------------- --------------- ---------------------------
| ID | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
| flytetester | flytetester | flytetester description |
--------------- --------------- ---------------------------
| flytesnacks | flytesnacks | flytesnacks description |
--------------- --------------- ---------------------------
Can you move all flags to you config.yaml file . You can define one using flytectl config init --host=flyteadmin.flyte.svc.cluster.local:81
and update the authType, clientId, clientSecretLocation in that file. Also assuming you have latest flytectlJustin Tyberg
09/15/2022, 12:26 PMPrafulla Mahindrakar
09/15/2022, 12:30 PM(lab_project) ➜ flytectl git:(device-auth) ✗ mv ~/.flyte/config.yaml ~/.flyte/config.yaml_bkp
(lab_project) ➜ flytectl git:(device-auth) ✗ flytectl get projects --logger.level=0 --admin.endpoint dns:///localhost:30081
--------------- --------------- ---------------------------
| ID | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
| flytetester | flytetester | flytetester description |
--------------- --------------- ---------------------------
| flytesnacks | flytesnacks | flytesnacks description |
--------------- --------------- ---------------------------
3 rows
(lab_project) ➜ flytectl git:(device-auth) ✗ flytectl get projects --logger.level=0 --admin.endpoint dns:///localhost:30081 flyteexamples
--------------- --------------- ---------------------------
| ID | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
1 rows
~/.flyte/config.yaml
which i have moved to backupJustin Tyberg
09/15/2022, 12:36 PMbin/flytectl get projects \
> --admin.endpoint dns:///EXTERNAL:443 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.clientSecretLocation /etc/secrets/client_secret
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
----- ------ -----------------
| ID | NAME | DESCRIPTION |
----- ------ -----------------
| dpp | dpp | dpp description |
----- ------ -----------------
1 rows
external endpoint, with positional argument = OK
bin/flytectl get projects \
> --admin.endpoint dns:///EXTERNAL:443 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> dpp
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
----- ------ -----------------
| ID | NAME | DESCRIPTION |
----- ------ -----------------
| dpp | dpp | dpp description |
----- ------ -----------------
1 rows
internal endpoint, without positional argument = FAIL (no output)
bin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
internal endpoint, with positional argument = OK
bin/flytectl get projects \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.insecure true \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> dpp
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
----- ------ -----------------
| ID | NAME | DESCRIPTION |
----- ------ -----------------
| dpp | dpp | dpp description |
----- ------ -----------------
1 rows
Prafulla Mahindrakar
09/15/2022, 12:37 PMinternal endpoint, with positional argument = OK
Justin Tyberg
09/15/2022, 12:38 PMPrafulla Mahindrakar
09/15/2022, 12:40 PMProjectToProtoMessages
func ProjectToProtoMessages(l []*admin.Project) []proto.Message {
messages := make([]proto.Message, 0, len(l))
for _, m := range l {
messages = append(messages, m)
}
return messages
}
Justin Tyberg
09/15/2022, 12:48 PMPrafulla Mahindrakar
09/15/2022, 12:50 PMJustin Tyberg
09/15/2022, 12:53 PM{
"App": "flytectl",
"Build": "f18901c",
"Version": "0.6.13",
"BuildTime": "2022-09-15 12:53:00.692399756 +0000 UTC m=+0.025439443"
}
Prafulla Mahindrakar
09/15/2022, 12:57 PMflytectl get workflows
Justin Tyberg
09/15/2022, 1:39 PMflytectl register files
if i use the external endpoint, it SUCCEEDS
bin/flytectl register files \
> --project dpp \
> --domain default \
> --archive msat-platform-flyte-package.tgz \
> --version 7b89d7d \
> --force \
> --admin.endpoint dns:///EXTERNAL:443 \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.clientSecretLocation /etc/secrets/client_secret
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
...
85 rows
but if i use internal endpoint, FAIL. here it complains about the tarball not being a tar gzipped file, but it is.
bin/flytectl register files \
> --project dpp \
> --domain default \
> --archive msat-platform-flyte-package.tgz \
> --version 7b89d7d \
> --force \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.insecure true \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.clientSecretLocation /etc/secrets/client_secret
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"error","msg":"error while un-archiving files in tmp dir due to only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T13:32:23Z"}
Error: only .tar, .tar.gz and .tgz extension archives are supported
{"json":{},"level":"error","msg":"only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T13:32:23Z"}
file msat-platform-flyte-package.tgz
msat-platform-flyte-package.tgz: gzip compressed data, was "msat-platform-flyte-7b89d7d.tgz", last modified: Thu Sep 15 13:20:16 2022, max compression, original size modulo 2^32 327680
bin/flytectl register files \
> --project dpp \
> --domain default \
> --archive msat-platform-flyte-package.tgz \
> --version 7b89d7d \
> --force \
> --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 \
> --admin.insecure true \
> --admin.authType ClientSecret \
> --admin.clientId flytepropeller \
> --admin.clientSecretLocation /etc/secrets/client_secret \
> --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-09-15T13:43:09Z"}
{"json":{},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-09-15T13:43:09Z"}
{"json":{},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2022-09-15T13:43:09Z"}
{"json":{},"level":"debug","msg":"Config section [files] updated. No update handler registered.","ts":"2022-09-15T13:43:09Z"}
{"json":{},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T13:43:09Z"}
{"json":{},"level":"error","msg":"error while un-archiving files in tmp dir due to only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T13:43:09Z"}
Error: only .tar, .tar.gz and .tgz extension archives are supported
{"json":{},"level":"error","msg":"only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T13:43:09Z"}
Prafulla Mahindrakar
09/15/2022, 1:47 PMJustin Tyberg
09/15/2022, 1:47 PMget projects
Prafulla Mahindrakar
09/15/2022, 1:49 PMJustin Tyberg
09/15/2022, 1:51 PMPrafulla Mahindrakar
09/15/2022, 1:53 PMJustin Tyberg
09/15/2022, 1:54 PMPrafulla Mahindrakar
09/15/2022, 1:56 PMJustin Tyberg
09/15/2022, 2:41 PMkubectl port-forward -n flyte deployment/flyteadmin 8081:81
Forwarding from 127.0.0.1:8081 -> 81
Forwarding from [::1]:8081 -> 81
register files fails in the same manner
flytectl register files \
--project dpp \
--domain default \
--archive msat-platform-flyte-package.tgz \
--version 7b89d7d \
--force \
--admin.endpoint dns:///localhost:8081 \
--admin.insecure true \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth
Error: only .tar, .tar.gz and .tgz extension archives are supported
and drops the connection to flyteadmin
E0915 10:31:57.321401 41651 portforward.go:406] an error occurred forwarding 8081 -> 81: error forwarding port 81 to pod babec7281e7ff3e68177473150b934fb7102177d8b28be37bf6cba7c9d1e4359, uid : failed to execute portforward in network namespace "/var/run/netns/cni-0a96f076-33e0-b2f2-65a8-2b5b2db28fe1": failed to dial 81: dial tcp4 127.0.0.1:81: connect: connection refused
E0915 10:31:57.321751 41651 portforward.go:234] lost connection to pod
Handling connection for 8081
E0915 10:31:57.322387 41651 portforward.go:346] error creating error stream for port 8081 -> 81: EOF
same behavior from get projects command. connection drops.
flytectl get projects \
--admin.endpoint dns:///localhost:8081 \
--admin.insecure true \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth
Error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:8081: connect: connection refused"
Prafulla Mahindrakar
09/15/2022, 2:43 PMJustin Tyberg
09/15/2022, 2:47 PMflytectl get projects \
--admin.endpoint dns:///localhost:8089 \
--admin.insecure true \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth \
--logger.level 6
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-09-15T10:46:48-04:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-09-15T10:46:48-04:00"}
{"json":{"src":"client.go:64"},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T10:46:48-04:00"}
{"json":{"src":"project.go:89"},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T10:46:48-04:00"}
Prafulla Mahindrakar
09/15/2022, 2:48 PMJustin Tyberg
09/15/2022, 2:48 PMflytectl get projects \
--admin.endpoint dns:///localhost:8089 \
--admin.insecure true \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth \
--logger.level 6 \
> foo
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-09-15T10:48:20-04:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-09-15T10:48:20-04:00"}
{"json":{"src":"viper.go:400"},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2022-09-15T10:48:20-04:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [files] updated. No update handler registered.","ts":"2022-09-15T10:48:20-04:00"}
{"json":{"src":"client.go:64"},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T10:48:20-04:00"}
{"json":{"src":"project.go:102"},"level":"debug","msg":"Retrieved 1 projects","ts":"2022-09-15T10:48:20-04:00"}
----- ------ -----------------
| ID | NAME | DESCRIPTION |
----- ------ -----------------
| dpp | dpp | dpp description |
----- ------ -----------------
1 rows
Prafulla Mahindrakar
09/15/2022, 2:49 PMJustin Tyberg
09/15/2022, 2:51 PMregister files
.
flytectl register files \
--project dpp \
--domain default \
--archive msat-platform-flyte-package.tgz \
--version 7b89d7d \
--force \
--admin.endpoint dns:///localhost:8089 \
--admin.insecure true \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth \
--logger.level 6
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-09-15T10:51:10-04:00"}
{"json":{"src":"client.go:64"},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T10:51:10-04:00"}
{"json":{"src":"files.go:131"},"level":"error","msg":"error while un-archiving files in tmp dir due to only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T10:51:10-04:00"}
Error: only .tar, .tar.gz and .tgz extension archives are supported
{"json":{"src":"main.go:13"},"level":"error","msg":"only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T10:51:10-04:00"}
unclear if protobufs are also at issue herePrafulla Mahindrakar
09/15/2022, 2:56 PMmsat-platform-flyte-package.tgz
towards the endJustin Tyberg
09/15/2022, 2:58 PM--archive Pass in archive file either an http link or local path.
flytectl register files \
--project dpp \
--domain default \
--archive msat-platform-flyte-package.tgz \
--version 7b89d7d \
--force \
--admin.endpoint dns:///EXTERNAL:443 \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth
Prafulla Mahindrakar
09/15/2022, 3:05 PMJustin Tyberg
09/15/2022, 3:12 PMPrafulla Mahindrakar
09/15/2022, 3:13 PMJustin Tyberg
09/15/2022, 3:13 PMflytectl register files \
--project dpp \
--domain default \
--archive \
--version 7b89d7d \
--force \
--admin.endpoint dns:///localhost:8089 \
--admin.insecure true \
--admin.authType ClientSecret \
--admin.clientId flytepropeller \
--admin.clientSecretLocation /tmp/flyte-secret-auth \
--logger.level 6 \
msat-platform-flyte-package.tgz
{"json":{"src":"client.go:64"},"level":"info","msg":"Initialized Admin client","ts":"2022-09-15T11:13:01-04:00"}
{"json":{"src":"files.go:131"},"level":"error","msg":"error while un-archiving files in tmp dir due to only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T11:13:01-04:00"}
Error: only .tar, .tar.gz and .tgz extension archives are supported
{"json":{"src":"main.go:13"},"level":"error","msg":"only .tar, .tar.gz and .tgz extension archives are supported","ts":"2022-09-15T11:13:01-04:00"}
Prafulla Mahindrakar
09/15/2022, 4:01 PMmsat-platform-flyte-package.tgz
Curious how are you running these. Is it directly as command on terminal or you run some script which contains this commandJustin Tyberg
09/15/2022, 5:07 PMkatrina
Justin Tyberg
09/15/2022, 5:11 PMflytectl
commands with success or expected results when I run from INSIDE the kubernetes cluster, hitting the internal flyteadmin endpoint, flyteadmin.flyte.svc.cluster.local:81
katrina
Justin Tyberg
09/15/2022, 6:24 PMflytectl register files
, but it fails all the time, because i don’t think it can find the right tarball archive file from the CLI args. this is REALLY what i need to work
https://flyte-org.slack.com/archives/CP2HDHKE1/p1663249419061439?thread_ts=1663199286.385729&cid=CP2HDHKE1i don’t know that we’ve seen this before with different behavior based on the endpoint, that is unexpectedagreed. seems to me that flytectl <> flyteadmin struggles with inputs/outputs when using internal endpoint
katrina
Justin Tyberg
09/15/2022, 6:27 PMkatrina
"error while un-archiving files in tmp dir due to only .tar, .tar.gz and .tgz extension archives are supported"
this seems separate tooJustin Tyberg
09/15/2022, 6:30 PM--archive msat-platform-flyte-package.tgz
no idea what it thinks i passed inkatrina
Prafulla Mahindrakar
09/16/2022, 11:34 AMget project
.
I have no name!@minio-68744577b6-kmfrn:/opt/bitnami/minio-client$ flytectl get projects --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 --admin.insecure
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
--------------- --------------- ---------------------------
| ID | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
| flytetester | flytetester | flytetester description |
--------------- --------------- ---------------------------
| flytesnacks | flytesnacks | flytesnacks description |
--------------- --------------- ---------------------------
3 rows
I have no name!@minio-68744577b6-kmfrn:/opt/bitnami/minio-client$ flytectl get projects --admin.endpoint dns:///flyteadmin.flyte.svc.cluster.local:81 --admin.insecure flyteexamples
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
--------------- --------------- ---------------------------
| ID | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
1 rows