You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem you're trying to solve?. finch inspect cannot return State.Error field today.
finch run -d public.ecr.aws/amazonlinux/amazonlinux:2
21763af8553f5c077ba53b2cd0bb1857a77aeae979fa06829060209ceafaa7e5
finch inspect --format
{{.State.Status}}:{{.State.Error}} 21763af8553f5c077ba53b2cd0bb1857a77aeae979fa06829060209ceafaa7e5
WARN[0000] failed to inspect NetNS error="failed to Statfs \"/proc/3772/ns/net\": no such file or directory" id=21763af8553f5c077ba53b2cd0bb1857a77aeae979fa06829060209ceafaa7e5
FATA[0000] 1 errors: [template parsing error: template: :1:26: executing "" at <.State.Error>: map has no entry for key "Error"]
FATA[0000] exit status 1
# State.Error does not exist
finch inspect 21763af8553f5c077ba53b2cd0bb1857a77aeae979fa06829060209ceafaa7e5
...
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"Pid": 3772,
"ExitCode": 0,
"FinishedAt": "2023-02-25T10:57:13.718764398Z"
},
...
Describe the feature you'd like
State.Error should exist in the inspect response
Additional context
Can reproduce in nerdctl.
$ nerdctl run -d public.ecr.aws/amazonlinux/amazonlinux:2
2fd4c9d197320279055bfca5a109433935e762fc91bcbe371815a6cf7f39fe03
$ nerdctl inspect --format {{.State.Status}}:{{.State.Error}} 2fd4c9d197320279055bfca5a109433935e762fc91bcbe371815a6cf7f39fe03
WARN[0000] failed to inspect NetNS error="failed to Statfs \"/proc/4058/ns/net\": no such file or directory" id=2fd4c9d197320279055bfca5a109433935e762fc91bcbe371815a6cf7f39fe03
FATA[0000] 1 errors: [template parsing error: template: :1:26: executing "" at <.State.Error>: map has no entry for key "Error"]
The text was updated successfully, but these errors were encountered:
…rror (#64)
verify the result of finch inspect has State.Status and State.Error
runfinch/finch#242
*Description of changes:*
Test for the scenario of the issue
*Testing done:*
Tested locally.
- [ X ] I've reviewed the guidance in CONTRIBUTING.md
#### License Acceptance
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Signed-off-by: Ziwen Ning <[email protected]>
What is the problem you're trying to solve?.
finch inspect
cannot return State.Error field today.Describe the feature you'd like
State.Error should exist in the inspect response
Additional context
Can reproduce in nerdctl.
The text was updated successfully, but these errors were encountered: