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

Add ability to start and stop pools #2949

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

jbaublitz
Copy link
Member

@jbaublitz jbaublitz commented Mar 7, 2022

@jbaublitz jbaublitz self-assigned this Mar 7, 2022
@jbaublitz jbaublitz marked this pull request as draft March 7, 2022 20:35
@jbaublitz jbaublitz force-pushed the start-stop branch 2 times, most recently from 8b71434 to bf0eb39 Compare March 21, 2022 14:00
@jbaublitz
Copy link
Member Author

jbaublitz commented Mar 23, 2022

TODO: Rewrite tests that manually tear down pools to use stop_pool and start_pool. Done

@jbaublitz
Copy link
Member Author

Expect udev tests to fail

@jbaublitz
Copy link
Member Author

Blocked by stratis-storage/libblkid-rs#75

@jbaublitz jbaublitz marked this pull request as ready for review April 18, 2022 16:22
Copy link
Member

@mulkieran mulkieran left a comment

Choose a reason for hiding this comment

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

Just a few more...almost done!

src/dbus_api/tree.rs Outdated Show resolved Hide resolved
Copy link
Member

@mulkieran mulkieran left a comment

Choose a reason for hiding this comment

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

No further requests...

@jbaublitz jbaublitz force-pushed the start-stop branch 2 times, most recently from 28dd77b to 399f7b4 Compare June 17, 2022 16:14
@mulkieran
Copy link
Member

@jbaublitz Plz squash the commits a bit and I'll go ahead and merge.

@jbaublitz
Copy link
Member Author

Blocked by #3027

@jbaublitz
Copy link
Member Author

@mulkieran @bmr-cymru I found a bug in signal handling with the switch from LockedPools to StoppedPools. I've pushed an additional commit and am putting this back in review.

@mulkieran mulkieran removed the blocked label Jun 23, 2022
This commit replaces the previous approach of unlocking encrypted pools
with full support for starting and stopping pools. Locked encrypted
pools are now simply considered stopped.

The behavior of stopping pools is as follows. A pool that is started
when the system shuts down will be started after booting the system
again. A pool that is stopped will remain stopped and will not be set up
until it is started again. This operation requires a change to the
metadata schema to store whether a pool is stopped or started. Migration
from older versions of stratisd is handled.

Stopping an encrypted pool will lock all of the encrypted devices.
@jbaublitz
Copy link
Member Author

Ready for merge.

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.

Add the ability to quickly shutdown one or all pools
3 participants