-
Notifications
You must be signed in to change notification settings - Fork 218
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
nydusify: fix the issue of blob not found when modifying image name d… #1667
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1667 +/- ##
==========================================
- Coverage 60.42% 60.40% -0.02%
==========================================
Files 146 146
Lines 48943 48943
Branches 46380 46380
==========================================
- Hits 29573 29566 -7
- Misses 17906 17911 +5
- Partials 1464 1466 +2
|
…uring commit Signed-off-by: yumy <[email protected]> Signed-off-by: yumy <[email protected]>
Use `inspect_err` instead of `inspect` to to correctly handle and log errors when parsing the `failover-policy` argument. Signed-off-by: Yang Kaiyong <[email protected]> Signed-off-by: yumy <[email protected]> Signed-off-by: yumy <[email protected]>
@@ -504,8 +504,8 @@ fn process_fs_service( | |||
.value_of("failover-policy") | |||
.unwrap_or(&"flush".to_string()) | |||
.try_into() | |||
.inspect(|_e| { | |||
error!("Invalid failover policy"); | |||
.inspect_err(|e| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, please rebase the latest master, it seems have a merge op introduces the additional commit.
logrus.Infof("copying layer %s", layer.Digest) | ||
|
||
// Try to use mount API first | ||
err := targetRemoter.Mount(ctx, layer, sourceRef) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the mount request necessary? can we just use sourceRemoter.Pull
and targetRemoter.Push
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or can we use the mount hint in containerd push implementation: https://github.com/containerd/containerd/blob/f18cc4622e75b63895e9fcd616e7a5b9817fd3ac/remotes/docker/pusher.go#L174
Relevant Issue (if applicable)
If there are Issues related to this PullRequest, please list it.
Details
There are some bugs in nydusify commit image, following bugs are fixed in this:
Use the mount blob api in the same repository
Types of changes
What types of changes does your PullRequest introduce? Put an
x
in all the boxes that apply:Checklist
Go over all the following points, and put an
x
in all the boxes that apply.