-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman-remote container restore: panic #12007
Comments
Thanks, Ed! I'll take a look. |
I wonder how we ended up with checkpoint being supported on remote and having e2e tests for it disabled. |
Fixing the panic is easy: diff --git a/pkg/bindings/containers/checkpoint.go b/pkg/bindings/containers/checkpoint.go
index 7f7080f13be8..eea2b7b1f8d5 100644
--- a/pkg/bindings/containers/checkpoint.go
+++ b/pkg/bindings/containers/checkpoint.go
@@ -49,7 +49,7 @@ func Restore(ctx context.Context, nameOrID string, options *RestoreOptions) (*en
}
// The import key is a reserved golang term
params.Del("ImportArchive")
- if i := options.GetImportAchive(); options.Changed("ImportArchive") {
+ if i := options.GetImportAchive(); i != "" {
params.Set("import", i)
}
response, err := conn.DoRequest(nil, http.MethodPost, "/containers/%s/restore", params, nil, nameOrID) Getting checkpoint/restore to fully work (i.e., enabling the e2e tests for remote) is a bigger chunk of work. I have quite some work on my plate at the moment, but I try to push it forward as time allows. |
Can you open a PR? |
I prefer doing all at once. |
... continuing now |
Nothing was working before, and it's too much to summarize. To make sure we're not regressing in the future again, enable the remote e2e tests. Fixes: containers#12007 Signed-off-by: Valentin Rothberg <[email protected]>
Followup: confirmed that However, there's a deeply troubling failure in a recent active PR run on f34. Filed #12334 for that. |
I have no opinion on whether
podman-remote container restore
should work or not; but I would prefer if it didn't panic:The text was updated successfully, but these errors were encountered: