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

filesystem: add UUID change feature #6680

Merged
merged 10 commits into from
Jun 19, 2023

Conversation

lszomor
Copy link
Contributor

@lszomor lszomor commented Jun 11, 2023

SUMMARY

Add a new feature to the filesystem module for managing UUID.
The feature does not break backward compatibility. It introduces an optional uuid parameter.

Rationale:
During disk cloning / lvm snapshot creation, the filesystem uuid remains the same. This new feature manages the filesystem UUID in an automated fashion.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

filesystem

ADDITIONAL INFORMATION

The version_added entry in the uuid parameter's documentation needs to be set.

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added WIP Work in progress feature This issue/PR relates to a feature request integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Jun 11, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 labels Jun 11, 2023
lszomor added 2 commits June 11, 2023 18:48
FreeBSD error: xfs_admin: only 'rewrite' supported on V5 fs
@lszomor lszomor marked this pull request as ready for review June 11, 2023 17:19
@ansibullbot ansibullbot removed the WIP Work in progress label Jun 11, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! I've added some first comments.

Co-authored-by: Felix Fontein <felix@fontein.de>
@lszomor
Copy link
Contributor Author

lszomor commented Jun 13, 2023

@felixfontein Thank you for your guidance and fixes!

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Jun 13, 2023
@ansibullbot ansibullbot added needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI and removed needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI labels Jun 13, 2023
@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Jun 13, 2023
@felixfontein
Copy link
Collaborator

Beside these I think this is safe to merge for 7.1.0.

Co-authored-by: Felix Fontein <felix@fontein.de>
@felixfontein felixfontein merged commit 5d9eb8b into ansible-collections:main Jun 19, 2023
@patchback
Copy link

patchback bot commented Jun 19, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/5d9eb8be95680a7b697d2e9e93024cc80ad59c5e/pr-6680

Backported as #6731

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jun 19, 2023
patchback bot pushed a commit that referenced this pull request Jun 19, 2023
* filesystem: add UUID change feature

* Add changelog fragment for 6680

* Do not test XFS filesystem UUID reset on FreeBSD

FreeBSD error: xfs_admin: only 'rewrite' supported on V5 fs

* Apply suggestions from code review #1

Co-authored-by: Felix Fontein <felix@fontein.de>

* Set filesystem UUID on FS creation

* Fix tests - switch to ansible.builtion.to_uuid

* Fix tests - Refactor to avoid FS remove tasks

* Fail if uuid option not yet supported for fstype

* Set resizefs and uuid options mutually exclusive

* Apply suggestions from code review no 2.

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 5d9eb8b)
@felixfontein
Copy link
Collaborator

@lszomor thanks for your contribution!

felixfontein pushed a commit that referenced this pull request Jun 19, 2023
…ature (#6731)

filesystem: add UUID change feature (#6680)

* filesystem: add UUID change feature

* Add changelog fragment for 6680

* Do not test XFS filesystem UUID reset on FreeBSD

FreeBSD error: xfs_admin: only 'rewrite' supported on V5 fs

* Apply suggestions from code review #1

Co-authored-by: Felix Fontein <felix@fontein.de>

* Set filesystem UUID on FS creation

* Fix tests - switch to ansible.builtion.to_uuid

* Fix tests - Refactor to avoid FS remove tasks

* Fail if uuid option not yet supported for fstype

* Set resizefs and uuid options mutually exclusive

* Apply suggestions from code review no 2.

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 5d9eb8b)

Co-authored-by: Laszlo Szomor <laszomor@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants