Skip to content
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

Use BTRFS transactional nature to keep Rootless user artifact storage consistent #1073

Open
PavelSosin-320 opened this issue Nov 23, 2021 · 2 comments

Comments

@PavelSosin-320
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

Description

Use BTRFS snapshot of the rootless user Podman storage area consistent over any possible failure in the container creation.

To avoid situations like
#containers/podman#12264
Since BTRFS subvolumes are well protected from writing by non-owner it can improve security too.

Steps to reproduce the issue:

  1. Create snapshot at the beginning of Podman container create or Buldah from
  2. Discard snapshot after container commit or successful starting of the container
  3. Restore User's storage in the consistent state in the case of failure.

Describe the results you received:

Describe the results you expected:
Something in the style of Use of btrfs snapshots
Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

(paste your output here)

Output of podman info --debug:

(paste your output here)

Package info (e.g. output of rpm -q podman or apt list podman):

(paste your output here)

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)

No

Additional environment details (AWS, VirtualBox, physical, etc.):

The most popular Linux desktop distros Fedora,Ubuntu, Suse used by developers support btrfs filesystem. The known btrfs weaknesses doesn't affect developer's productivity like inconsistency issues. Backup and restore of running on laptops dev. environment to the external storage is rarely usable. Uploading compressed subvolume to the cloud storage takes seconds.

@vrothberg
Copy link
Member

Probably something for containers/storage but we don't have BTRFS expertise in the team. Overlay has the best quality.

@rhatdan @giuseppe PTAL

@rhatdan
Copy link
Member

rhatdan commented Nov 23, 2021

Yup, definitely something that the upstream community would need to develop. I don't see the core team working on this.

@vrothberg vrothberg transferred this issue from containers/podman Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants