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

[v4.3] system reset: show graphRoot/runRoot before removal #19875

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

vrothberg
Copy link
Member

Backport of commit 6aaf6a2.

system reset it says it will delete containers, images, networks, etc... However it will also delete the graphRoot and runRoot directories. Normally this is not an issue, however in same cases these directories were set to the users home directory or some other important system directory.

As first step simply show the directories that are configured and thus will be deleted by reset. As future step we could implement some safeguard will will not delete some known important directories however I tried to keep it simple for now.

[NO NEW TESTS NEEDED]

see #18349 and #18295

Does this PR introduce a user-facing change?

Show the graphRoot and runRoot directories when running podman system reset before we ask for confirmation as these directories will be deleted.

Backport of commit 6aaf6a2.

system reset it says it will delete containers, images, networks, etc...
However it will also delete the graphRoot and runRoot directories.
Normally this is not an issue, however in same cases these directories
were set to the users home directory or some other important system
directory.

As first step simply show the directories that are configured and thus
will be deleted by reset. As future step we could implement some
safeguard will will not delete some known important directories however
I tried to keep it simple for now.

[NO NEW TESTS NEEDED]

see containers#18349 and containers#18295

Signed-off-by: Paul Holzinger <[email protected]>
Signed-off-by: Valentin Rothberg <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2023
@vrothberg
Copy link
Member Author

https://github.com/orgs/containers/teams/podman-maintainers PTAL

@siretart feel free to grab this PR for Debian/Ubuntu

@ashley-cui
Copy link
Member

LGTM

@vrothberg
Copy link
Member Author

Failures are expected as this branch is practically dead.

@cevich FYI

@mheon
Copy link
Member

mheon commented Sep 6, 2023

I would describe it as more than practically dead. It's no longer in use at all per my understanding, we should not be running any CI jobs automatically on it.

@mheon
Copy link
Member

mheon commented Sep 6, 2023

LGTM regardless. I'll leave it up to you whether you want to try and fix CI (probably best to just turn everything except the basics off?) or push the merge button.

@vrothberg
Copy link
Member Author

I am merging as is. Compiled and tested locally.

@vrothberg vrothberg merged commit 1d121d4 into containers:v4.3 Sep 6, 2023
@vrothberg vrothberg deleted the reset-backport-v4.3 branch September 6, 2023 14:18
@siretart
Copy link
Contributor

siretart commented Sep 7, 2023

Thanks for letting me know.

Turns out, I've already had integrated this into Debian a couple of months ago in https://salsa.debian.org/debian/libpod/-/commit/e893ca805993edfb17ebb318e2bdc54de03af487. Please do keep cc'ing me on important backports like this to ensure we don't miss out!

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Dec 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants