-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: Stratis support #439
feat: Stratis support #439
Conversation
cef8bd4
to
d8fe64c
Compare
d8fe64c
to
23732fb
Compare
@@ -9,3 +9,5 @@ blivet_package_list: | |||
- vdo | |||
- kmod-kvdo | |||
- xfsprogs | |||
- stratisd | |||
- stratis-cli |
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.
Does it make sense to separate packages, and only install once that are needed. E.g. for this use case, add a blivet_stratis_packages
and install these packages only when user sets stratis
variables?
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.
It's probably worth installing the dependencies a bit "smarter" -- we already have VDO here which also isn't that widely used.
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.
Note that blivet already has a way to return a list of package names that are required to perform the given actions - https://github.com/linux-system-roles/storage/blob/main/tasks/main-blivet.yml#L21 - can that be extended to include all of the packages we currently put in the various vars files, such as vdo, xfsprogs, etc.?
23732fb
to
fb2481a
Compare
Blivet with full support for all Stratis features in this PR is now available on both RHEL (9 and 10) and Fedora so I am marking this as ready for review. The pylint failures are fixed in #440 |
[citest] |
36f0efb
to
ef8cceb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #439 +/- ##
==========================================
- Coverage 16.54% 10.90% -5.65%
==========================================
Files 2 8 +6
Lines 284 1917 +1633
Branches 79 0 -79
==========================================
+ Hits 47 209 +162
- Misses 237 1708 +1471
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
[citest] |
the centos9 statis test fails:
|
ef8cceb
to
a24c05f
Compare
[citest] |
a24c05f
to
97688a1
Compare
[citest] |
97688a1
to
8567c67
Compare
[citest] |
a030240
to
aa5d359
Compare
[citest] |
please rebase on top of the latest main branch to pick up test fixes |
Resolves: RHEL-31854
We can use the information from `lsblk` we already use for other checks instead of using the Ansible mountinfo facts. This makes the check simpler and also makes it easier to check for Stratis volume mount points, because of the complicated Stratis devices structure in /dev.
Related: RHEL-31854
Tang server configuration or TPM2 can now be used when creating an encrypted Stratis Pool. Related: RHEL-31854
Some Stratis features are not available with older versions of Blivet. Related: RHEL-31854
Stratis is not available on RHEL/CentOS 7. Related: RHEL-31854
aa5d359
to
9be4bd6
Compare
[citest] |
Support for creating and managing Stratis pools and volumes. For now this is just a draft because we need a new version of Blivet to be available for the full support. This includes support for creating Stratis pools and filesystems and adding new block devices to an existing Stratis pool (removing block devices is not supported by Stratis). Encrypted Stratis pools can be created with Clevis/Tang or TPM support.
Resolves: RHEL-31854