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 new D-Bus APIs for deployment finalization #1814

Closed
wants to merge 2 commits into from

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Apr 18, 2019

Teach UpdateDeployment to make use of libostree's staging lock and
then add a FinalizeDeployment API to perform the final unlock &
reboot.

I also added a hidden CLI to make testing this easier, but also because
it's likely the FCOS-agent-yet-to-be-named will just end up using the
CLI to keep it simple.

Closes: #1748

@jlebon jlebon force-pushed the pr/lock-finalization branch 3 times, most recently from 126bf71 to 7d8269b Compare April 24, 2019 15:46
@jlebon jlebon changed the title WIP: Add D-Bus API for finalization Add new D-Bus APIs for deployment finalization Apr 24, 2019
@jlebon jlebon marked this pull request as ready for review April 24, 2019 15:48
@jlebon
Copy link
Member Author

jlebon commented Apr 24, 2019

Ready for review!
/cc @lucab

@jlebon
Copy link
Member Author

jlebon commented Apr 24, 2019

Requires: ostreedev/ostree#1841

@jlebon
Copy link
Member Author

jlebon commented Apr 25, 2019

bot, retest this please

@jlebon
Copy link
Member Author

jlebon commented Apr 25, 2019

(Test failure was due to rdgo being broken and testing against a libostree without ostreedev/ostree#1841. Should be fixed now!)

src/app/main.c Show resolved Hide resolved
src/daemon/org.projectatomic.rpmostree1.xml Outdated Show resolved Hide resolved
src/daemon/rpmostree-sysroot-upgrader.c Show resolved Hide resolved
src/daemon/rpmostreed-deployment-utils.c Show resolved Hide resolved
src/daemon/rpmostreed-transaction-types.c Show resolved Hide resolved
@jlebon
Copy link
Member Author

jlebon commented Apr 26, 2019

Fixup! ⬆️

I also changed the transaction type name to FinalizeDeployment because finalize_transaction_finalize() just looked wrong.

@cgwalters
Copy link
Member

LGTM, just

error: Commit message for b9ec996 changes a submodule, but does not match regex Update submodule: libdnf

@lucab
Copy link
Contributor

lucab commented Apr 29, 2019

This also looks fine to me, but I guess it needs a rebase to master.

Teach `UpdateDeployment` to make use of libostree's staging lock and
then add a `FinalizeDeployment` API to perform the final unlock &
reboot.

I also added a hidden CLI to make testing this easier, but also because
it's likely the FCOS-agent-yet-to-be-named will just end up using the
CLI to keep it simple.

Closes: coreos#1748
@jlebon
Copy link
Member Author

jlebon commented Apr 29, 2019

Rebased! ⬆️

@lucab
Copy link
Contributor

lucab commented Apr 30, 2019

@rh-atomic-bot r+ 1b5adca

@rh-atomic-bot
Copy link

⚡ Test exempted: pull fully rebased and already tested.

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 D-Bus API (and possibly CLI) for better staging and finalizing
4 participants