-
Notifications
You must be signed in to change notification settings - Fork 325
ot-builtin-admin: Add admin prepare-soft-reboot #3420
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
Conversation
Skipping CI for Draft Pull Request. |
I feel I forgot how to properly pass the fd.
|
We got this to run, but so far more work necessary:
|
Thanks for all the hard work everyone. Glad you guys were able to track down the weird behavior I was seeing. Sorry I didn't have time to give this the love it needed. Should I close my PR? |
we really appreciate all your work on this, no need to be sorry. Yeah, you can close your PR, we are splitting the changes into a couple of PRs and we have a more changes to add. |
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.
Pull Request Overview
Adds support for preparing a deployment for a systemd “soft reboot” by introducing a new prepare-soft-reboot
admin command, extending the ostree-prepare-root
helper, exposing a new libostree API, and covering it with an integration test.
- Register and implement the
prepare-soft-reboot
subcommand inot-builtin-admin
andot-admin-functions
- Extend
ostree-prepare-root
to handle--soft-reboot
and move mounts into/run/nextroot
- Expose
ostree_sysroot_deployment_prepare_next_root()
in libostree with symbol versioning and update build files - Add an end-to-end test script in
tests/kolainst/destructive/soft-reboot.sh
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
tests/kolainst/destructive/soft-reboot.sh | Add integration test for soft-reboot workflow |
src/switchroot/ostree-prepare-root.c | Handle --soft-reboot , new mount targets and flags |
src/ostree/ot-admin-builtin-prepare-soft-reboot.c | Implement the prepare-soft-reboot admin builtin |
src/libostree/ostree-sysroot-deploy.c | Introduce ostree_sysroot_deployment_prepare_next_root |
src/libostree/ostree-sysroot.h | Declare new prepare-next-root API |
src/libostree/libostree-devel.sym | Update symbol version script for new API |
Makefile-ostree.am / Makefile-libostree.am | Add new source and include devel symbol file |
apidoc/ostree-sections.txt | Document the new API section |
459405e
to
705b834
Compare
f277879
to
22e5e33
Compare
@jmarrero can you review the latest two commits? Also with this, the soft reboot test is passing! |
54318cb
to
c9ea464
Compare
They both look good to me @cgwalters. Also I tested it manually and it works too. |
Prep for soft reboots. Signed-off-by: Colin Walters <walters@verbum.org>
Prep for soft reboot. Signed-off-by: Colin Walters <walters@verbum.org>
Cool. OK I
Anything else? I think we could consider lifting draft on this and merging, and doing other things as followups? |
That works for me, do you want to remove the WIP: from the commit? |
This adds support for systemd soft reboots. Closes: ostreedev#3242 Signed-off-by: Colin Walters <walters@verbum.org> Co-authored-by: Joseph Marrero Corchado <jmarrero@redhat.com> Co-authored-by: Mary Strodl <ipadlover8322@gmail.com> Signed-off-by: Colin Walters <walters@verbum.org>
Done!
I think this is a usual transient race condition with the FCOS koji pool, will wait and retry in a bit... |
/override ci/prow/fcos-e2e |
@cgwalters: Overrode contexts on behalf of cgwalters: ci/prow/fcos-e2e In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Work on top of #3390 specifically working on implementing:
#3390 (comment)
TODO list
ostree admin status
may need some tweakingostree admin prepare-soft-reboot
is too long/run/ostree-booted
for this?status
that skew has occurred (may want to drill into kernel vs initramfs change)