rpm-ostree/tests/vmcheck
Colin Walters 60aa9a4a33 daemon: Automatically reload sysroot before txn
In this PR: https://github.com/projectatomic/rpm-ostree/pull/1309
I was hitting race conditions running `ostree admin pin` then
`rpm-ostree cleanup` as it was possible that the daemon hadn't handled
the inotify on the sysroot and reloaded the deployment state before
the txn request came in.

Close this race by doing an implicit `reload` before starting a txn.
This is a pretty efficient operation because for the sysroot we're
just doing a `stat()` and comparing mtime.

Implementation wise, change the external API to drop the "did change"
boolean as nothing outside of the `sysroot.c` file used it.

A followup to this would be changing the `status` CLI to call a
(new) DBus API like `RequestReload` that at least did the sysroot
reload if the daemon was otherwise idle or so?  And it'd be available
to unprivileged users.

Closes: #1311
Approved by: cgwalters
2018-03-23 21:50:33 +00:00
..
fetch-journal.sh vmcheck: prep for parallel runs 2017-03-13 00:42:13 +00:00
install.sh tests: Correctly error out if some part of install.sh fails 2017-11-29 14:42:25 +00:00
multitest.py multitest.py: error if no hosts given 2017-08-15 15:40:35 +00:00
overlay.sh vmcheck: Drop selinux-policy hack 2018-02-27 15:44:11 +00:00
sync.sh daemon: add RPMOSTREE_DEBUG_DISABLE_DAEMON_IDLE_EXIT 2017-10-12 15:35:44 +00:00
test-autoupdate.sh tests: Replace some more libvm bits with Ansible 2018-03-14 14:13:07 +00:00
test-basic.sh daemon: Automatically reload sysroot before txn 2018-03-23 21:50:33 +00:00
test-cached-rpm-diffs.sh daemon: Also generate CachedUpdate in DownloadUpdateRpmDiff 2018-03-17 20:17:32 +00:00
test-db.sh app/db-list: Use pkglist metadata when possible 2018-03-15 15:49:44 +00:00
test-download-only.sh tests: Replace some more libvm bits with Ansible 2018-03-14 14:13:07 +00:00
test-initramfs.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-kernel-args.sh tests/vmcheck: add deploy-index and proc-cmd test for kargs 2017-11-06 18:49:36 +00:00
test-layering-basic.sh core: Add rpmostree.rpmmd-repos metadata to client layers too 2018-03-08 20:59:15 +00:00
test-layering-gpg.sh tests/libvm: use rsync and add yumrepo mode 2017-10-06 18:20:59 +00:00
test-layering-local.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-non-root-caps.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-relabel.sh core: Change relabeling to use libostree's SELinux support 2017-12-08 15:01:32 +00:00
test-layering-relayer.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-rpmdb.sh core: handle shared files and multilib 2018-02-08 21:58:55 +00:00
test-layering-scripts.sh scripts: Ignore %verifyscript 2018-01-19 15:32:09 +00:00
test-layering-unified.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-livefs.sh tests: Replace some more libvm bits with Ansible 2018-03-14 14:13:07 +00:00
test-override-kernel.sh core: Set installonly to ensure we only have one kernel 2018-02-14 16:43:08 +00:00
test-override-local-replace.sh app/override: allow removing and replacing atomically 2018-02-16 19:15:18 +00:00
test-override-remove.sh core: handle shared files and multilib 2018-02-08 21:58:55 +00:00
test-rojig-client.sh rojig-rename: (almost) Everything else 2018-03-01 22:35:46 +00:00
test.sh vmcheck: Obey VMCHECK_DEBUG for rpm-ostreed.conf 2018-03-14 21:49:16 +00:00