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

fix: ensure user linger is enabled and disabled correctly #127

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

richm
Copy link
Contributor

@richm richm commented Feb 1, 2024

Cause: The role was not always enabling user lingering before
creating resources, and not always canceling lingering after
removing resources.

Consequence: The role would give errors if attempting to create
a secret or other resource requiring lingering, or would leave
lingering enabled after removing resources.

Fix: Centralize linger handling and keep track of users which
may need linger canceling. Ensure linger is canceled for all
users if all of that user's resources are removed and linger is
no longer needed.

Result: Resources for rootless users are always created properly.
Lingering is always canceled when no longer needed.

Signed-off-by: Rich Megginson rmeggins@redhat.com

@richm
Copy link
Contributor Author

richm commented Feb 1, 2024

[citest]

@richm
Copy link
Contributor Author

richm commented Feb 2, 2024

[citest]

3 similar comments
@richm
Copy link
Contributor Author

richm commented Feb 3, 2024

[citest]

@richm
Copy link
Contributor Author

richm commented Feb 4, 2024

[citest]

@richm
Copy link
Contributor Author

richm commented Feb 5, 2024

[citest]

@richm
Copy link
Contributor Author

richm commented Feb 6, 2024

[citest]

1 similar comment
@richm
Copy link
Contributor Author

richm commented Feb 6, 2024

[citest]

@richm
Copy link
Contributor Author

richm commented Feb 7, 2024

[citest]

Cause: The role was not always enabling user lingering before
creating resources, and not always canceling lingering after
removing resources.

Consequence: The role would give errors if attempting to create
a secret or other resource requiring lingering, or would leave
lingering enabled after removing resources.

Fix: Centralize linger handling and keep track of users which
may need linger canceling.  Ensure linger is canceled for all
users if all of that user's resources are removed and linger is
no longer needed.

Result: Resources for rootless users are always created properly.
Lingering is always canceled when no longer needed.

Fix issue with toml.j2 - ensure non-string values are written
as non-strings.

Fix idempotency issue where you could not clean up twice.

Allow testing rootless quadlet on EL8 by configuring settings
and kernel parameters and rebooting.

Fix several cleanup issues, and dump journal if there are test errors.

Construct the __params dict to pass to `podman_secret` to fix the JSON
string issue with `data` on both Ansible 2.9 and later.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@richm richm merged commit e144c63 into linux-system-roles:main Feb 8, 2024
8 checks passed
@richm richm deleted the fix-linger-handling branch February 8, 2024 18:08
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

Successfully merging this pull request may close these issues.

None yet

1 participant