seunggs
09/23/2022, 10:44 PM{
project: "shelly-robotics-bidepal-robot",
domain: "development",
name: "my-project.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1",
spec: {
launch_plan: {
project: "shelly-robotics-bidepal-robot",
domain: "development",
name: "my-project.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1",
version: "0.0.1",
},
inputs: {
x: 1,
},
},
};
Yee
seunggs
09/23/2022, 10:58 PM{
"error": "size of name exceeded length 20 : my_project.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1",
"code": 3,
"message": "size of name exceeded length 20 : my_project.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1"
}
Yee
seunggs
09/23/2022, 11:12 PMYee
seunggs
09/23/2022, 11:15 PM2022/09/23 23:13:39 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/execution_repo.go:103
[1.064ms] [rows:9] SELECT "executions"."id","executions"."created_at","executions"."updated_at","executions"."deleted_at","executions"."execution_project","executions"."execution_domain","executions"."execution_name","executions"."launch_plan_id","executions"."workflow_id","executions"."task_id","executions"."phase","executions"."closure","executions"."spec","executions"."started_at","executions"."execution_created_at","executions"."execution_updated_at","executions"."duration","executions"."abort_cause","executions"."mode","executions"."source_execution_id","executions"."parent_node_execution_id","executions"."cluster","executions"."inputs_uri","executions"."user_inputs_uri","executions"."error_kind","executions"."error_code","executions"."user","executions"."state" FROM "executions" INNER JOIN workflows ON executions.workflow_id = workflows.id WHERE executions.execution_project = 'shelly-robotics-bipedal-robot' AND executions.execution_domain = 'development' AND (workflows.name = 'sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1') AND executions.state = 'EXECUTION_ACTIVE' ORDER BY created_at desc LIMIT 100
2022/09/23 23:13:39 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/workflow_repo.go:44 record not found
[1.267ms] [rows:0] SELECT * FROM "workflows" WHERE "workflows"."project" = 'shelly-robotics-bipedal-robot' AND "workflows"."domain" = 'development' AND "workflows"."name" = 'sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1' AND "workflows"."version" = 'draft' LIMIT 1
{"json":{"src":"workflow_manager.go:222","wf":"sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1"},"level":"info","msg":"Failed to get workflow with id [resource_type:WORKFLOW project:\"shelly-robotics-bipedal-robot\" domain:\"development\" name:\"sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1\" version:\"draft\" ] with err missing entity of type WORKFLOW with identifier project:\"shelly-robotics-bipedal-robot\" domain:\"development\" name:\"sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1\" version:\"draft\" ","ts":"2022-09-23T23:13:39Z"}
{"json":{"src":"workflow.go:43"},"level":"info","msg":"Adding resource type for unspecified value in request: [id:\u003cproject:\"shelly-robotics-bipedal-robot\" domain:\"development\" name:\"sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1\" version:\"0.0.18\" \u003e ]","ts":"2022-09-23T23:13:40Z"}
2022/09/23 23:13:40 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/workflow_repo.go:44
[0.571ms] [rows:1] SELECT * FROM "workflows" WHERE "workflows"."project" = 'shelly-robotics-bipedal-robot' AND "workflows"."domain" = 'development' AND "workflows"."name" = 'sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1' AND "workflows"."version" = '0.0.18' LIMIT 1
{"json":{"src":"execution_manager.go:818"},"level":"debug","msg":"Failed to validate ExecutionCreateRequest {Project:shelly-robotics-bipedal-robot Domain:development Name:sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1 Spec:launch_plan:\u003cproject:\"shelly-robotics-bipedal-robot\" domain:\"development\" name:\"sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1\" version:\"0.0.18\" \u003e inputs:\u003c\u003e security_context:\u003crun_as:\u003ck8s_service_account:\"flyte-executor\" \u003e \u003e Inputs: XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0} with err size of name exceeded length 20 : sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1","ts":"2022-09-23T23:13:44Z"}
2022/09/23 23:13:44 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/execution_repo.go:103
[1.265ms] [rows:9] SELECT "executions"."id","executions"."created_at","executions"."updated_at","executions"."deleted_at","executions"."execution_project","executions"."execution_domain","executions"."execution_name","executions"."launch_plan_id","executions"."workflow_id","executions"."task_id","executions"."phase","executions"."closure","executions"."spec","executions"."started_at","executions"."execution_created_at","executions"."execution_updated_at","executions"."duration","executions"."abort_cause","executions"."mode","executions"."source_execution_id","executions"."parent_node_execution_id","executions"."cluster","executions"."inputs_uri","executions"."user_inputs_uri","executions"."error_kind","executions"."error_code","executions"."user","executions"."state" FROM "executions" INNER JOIN workflows ON executions.workflow_id = workflows.id WHERE executions.execution_project = 'shelly-robotics-bipedal-robot' AND executions.execution_domain = 'development' AND (workflows.name = 'sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1') AND executions.state = 'EXECUTION_ACTIVE' ORDER BY created_at desc LIMIT 100
Yee
seunggs
09/23/2022, 11:16 PMYee
kubectl -n flyte logs <pod> | egrep -B 2 -A 2 "size of name"
seunggs
09/23/2022, 11:18 PM2022/09/23 23:13:40 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/workflow_repo.go:44
[0.571ms] [rows:1] SELECT * FROM "workflows" WHERE "workflows"."project" = 'shelly-robotics-bipedal-robot' AND "workflows"."domain" = 'development' AND "workflows"."name" = 'sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1' AND "workflows"."version" = '0.0.18' LIMIT 1
{"json":{"src":"execution_manager.go:818"},"level":"debug","msg":"Failed to validate ExecutionCreateRequest {Project:shelly-robotics-bipedal-robot Domain:development Name:sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1 Spec:launch_plan:\u003cproject:\"shelly-robotics-bipedal-robot\" domain:\"development\" name:\"sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1\" version:\"0.0.18\" \u003e inputs:\u003c\u003e security_context:\u003crun_as:\u003ck8s_service_account:\"flyte-executor\" \u003e \u003e Inputs: XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0} with err size of name exceeded length 20 : sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1","ts":"2022-09-23T23:13:44Z"}
2022/09/23 23:13:44 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/execution_repo.go:103
Inputs: XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0} with err size of name exceeded length 20 : sidetrek_generated.workflows.04b2ed0b-434b-4d7b-9220-90606fdc2afc.test_wf_1
Kevin Su
09/24/2022, 5:31 AMseunggs
09/24/2022, 3:11 PMKevin Su
09/24/2022, 4:16 PMseunggs
09/24/2022, 8:33 PMKevin Su
09/24/2022, 9:19 PMseunggs
09/25/2022, 3:25 AMkubectl edit deployment flyteadmin
and then update the spec.containers.image to <http://ghcr.io/flyteorg/flyteadmin:v1.1.43|ghcr.io/flyteorg/flyteadmin:v1.1.43>
and then delete the flyteadmin pod. Is this correct?<http://cr.flyte.org/flyteorg/flyteadmin-release:v1.2.0-b3|cr.flyte.org/flyteorg/flyteadmin-release:v1.2.0-b3>
in the flyteadmin deployment yaml file (strangely missing “g” in front of “cr.flyte.org”), for example in initContainers. Is it necessary to update all references to the old version?Kevin Su
09/25/2022, 6:53 AMcontainers:
- command:
- flyteadmin
- --config
- /etc/flyte/config/*.yaml
- serve
image: flyteorg/flyteadmin-release:v1.2.0-b3 # <- only need to update this image
imagePullPolicy: IfNotPresent
name: flyteadmin
ports:
seunggs
09/26/2022, 4:15 PMinvalid name format: <http://sidetrek.wf.wf|sidetrek.wf.wf>_<http://1.my|1.my>_test_wf1
.{
"json": {
"src": "execution_manager.go:818"
},
"level": "debug",
"msg": "Failed to validate ExecutionCreateRequest {Project:shelly-robotics-bipedal-robot Domain:development Name:sidetrek.wf.wf_1.my_test_wf1 Spec:launch_plan:<project:\"shelly-robotics-bipedal-robot\" domain:\"development\" name:\"sidetrek.wf.wf_1.my_test_wf1\" version:\"0.0.3\" > security_context:<run_as:<k8s_service_account:\"flyte-executor\" > > Inputs:literals:<key:\"scalar\" value:<> > XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0} with err invalid name format: sidetrek.wf.wf_1.my_test_wf1",
"ts": "2022-09-26T16:14:34Z"
}
2
POST /executions
{
project: "shelly-robotics-bipedal-robot",
domain: "development",
name: "sidetrek.wf.wf_1.my_test_wf1",
inputs: {
literals: {
scalar: {
primitive: {
integer: {
x: 2,
},
},
},
},
},
spec: {
launch_plan: {
project: "shelly-robotics-bipedal-robot",
domain: "development",
name: "sidetrek.wf.wf_1.my_test_wf1",
version: "0.0.3",
},
security_context: {
run_as: {
k8s_service_account: "flyte-executor",
},
},
},
};
Kevin Su
09/26/2022, 4:26 PM<http://sidetrek.wf.wf|sidetrek.wf.wf>_<http://1.my|1.my>_test_wf1
to test-wf
. IIRC, we can’t use underscore in the nameseunggs
09/26/2022, 4:29 PM<http://sidetrek.wf.wf|sidetrek.wf.wf>_<http://1.my|1.my>_test_wf1
)/sidetrek/wf/wf_1.py
with workflow function name my_test_wf1
my_wf
so it looks like underscore is not the issue??Kevin Su
09/26/2022, 4:34 PMproject: "shelly-robotics-bipedal-robot",
domain: "development",
name: "sidetrek.wf.wf_1.my_test_wf1", <- this one
inputs: {
literals: {
...
seunggs
09/26/2022, 4:35 PMKevin Su
09/26/2022, 4:36 PMseunggs
09/26/2022, 4:36 PMtest-wf
worked. But then there’s another error:Invalid reference entity resource type [UNSPECIFIED], only [map[TASK:<nil> LAUNCH_PLAN:<nil>]] allowed
Kevin Su
09/26/2022, 4:55 PMspec: {
launch_plan: {
project: "shelly-robotics-bipedal-robot",
domain: "development",
name: "sidetrek.wf.wf_1.my_test_wf1",
version: "0.0.3",
resource_type: 3 <- here, 3 is launch plan
},
security_context: {
run_as: {
...
seunggs
09/26/2022, 4:56 PMKevin Su
09/26/2022, 5:07 PMseunggs
09/26/2022, 5:08 PMmissing valid literal in inputs scalar
with this input:inputs: {
literals: {
scalar: {
primitive: {
integer: {
x: "2",
},
},
},
},
},
Kevin Su
09/26/2022, 5:17 PMseunggs
09/26/2022, 5:17 PM"integer": {
"type": "string",
"format": "int64"
},
Kevin Su
09/26/2022, 5:18 PMseunggs
09/26/2022, 5:18 PMKevin Su
09/26/2022, 5:21 PMinputs: {
literals {
x: {
scalar {
primitive: {
integer: {
"2"
...
seunggs
09/26/2022, 5:22 PMinputs: {
x: {
scalar: {
primitive: {
integer: '2',
},
},
},
},
Kevin Su
09/26/2022, 5:24 PMseunggs
09/26/2022, 5:25 PMexpected_inputs x missing
Kevin Su
09/26/2022, 5:31 PMseunggs
09/26/2022, 5:32 PMconst x = {
project: "shelly-robotics-bipedal-robot",
domain: "development",
name: "test-wf",
spec: {
inputs: {
literals: {
scalar: {
primitive: {
integer: {
x: '2',
},
},
},
},
},
launch_plan: {
project: "shelly-robotics-bipedal-robot",
domain: "development",
name: "sidetrek.wf.wf_1.my_test_wf1",
version: "0.0.3",
resource_type: 3,
},
security_context: {
run_as: {
k8s_service_account: "flyte-executor",
},
},
},
};
security_context
of courseinputs: {
literals: {
x: {
scalar: {
primitive: {
integer: '2',
},
},
},
}
},
Kevin Su
09/26/2022, 5:46 PMseunggs
09/26/2022, 5:46 PM