This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
[merged] Various syscontainers fixes #497
Closed
giuseppe
wants to merge
9
commits into
projectatomic:master
from
giuseppe:various-syscontainers-fixes
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
76ae1cc
prune: always prune OSTree references
giuseppe 2e81bc4
syscontainers: use temporarily CLI ostree for checkouts
giuseppe bdec0f9
syscontainers: use syncfs for checkouts from OSTree
giuseppe b3db3c0
syscontainers: do not leave broken symlink on uninstall
giuseppe 1dd0041
ps: do not raise an error on crashed containers
giuseppe 90aa5cb
delete: support images from the OSTree repository
giuseppe e7be3eb
syscontainers: 'pull' always create the metadata commit
giuseppe 0c7f31d
tests: write to file before using grep
giuseppe 0165fa5
Revert "Migrate script should now work since we are after docker-1.10"
giuseppe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I would prefer that this not return true/false, since it should really throw an exception on failure. And caller should not call if it is not an ostree image.
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.
are you fine if I add an
allow_no_image
parameter? I would like that thedelete_image
does not need a time of check to time of use race condition, that can happen if another process deletes the same image between the time the caller check its existence and deletes it.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.
I am fine with catching the IMAGE DOES NOT EXIST and returning success. If the intent is to remove an object and the object does not exist, I consider that a success.
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.
ok thanks, I have pushed a new version which implements this (and removed the
allow_no_image
parameter). We don't report the IMAGE DOES NOT EXIST anymore and attempt to delete the image from OSTree after checking there is one.