| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
A submission the switch refuses is moved to STATE/refused/NAME with
NAME.json next to it: when, and why ("refused" if nothing more). The
check's message names the waiting submission's path. --status lists
what waits in the incoming directory, planned against the running
generation (one the check refused stays waiting, and refuses switches
while it does), and what was refused, with the reasons (and --json as
data); it exits with 1 if something needs attention: a refused
submission, a waiting one the running generation would refuse, an
unfilled required slot, so that a deployment running it notices.
--forget NAME removes a waiting or refused submission. After hrm's
review.
|
| |
|
|
|
|
|
|
| |
Names starting with a dot are skipped there, so a provider copies a
submission under one and renames it within the incoming directory: a
receptor looking at it meanwhile (enstate.service, a check) never sees
half a submission. Said in the design, the module's incomingDir, the
store; and a test that a dot name is left alone.
|
| |
|
|
|
|
| |
The receptor makes the state directory 0700 whoever created it (a
deploy copying into incoming/, say), and the module has tmpfiles keep it
so.
|
| |
|
|
|
|
|
|
|
|
|
| |
--migrate first takes the submissions in STATE/incoming, in the order of
their names: planned against the schema, stored if accepted (their views
follow with the rest), removed, and moved to STATE/refused if refused,
which refuses the migration. A dry run (the check before a switch) does
so on a copy of the snapshots, changing nothing. --stage leaves a
marker, STATE/migrate-due, for the next switch to migrate even if the
schema doesn't change; --migrate removes it. Scratch directories are
cleaned up without following the symbolic links in them.
|
| |
|
|
|
|
|
|
|
|
| |
Plans against --schema, stores the snapshot under it, and puts no views
in place and runs no reactions: the running generation goes on as it
is, keeping what it has no slot for, and the switch (--migrate) brings
the new views. The way to fill a required slot a generation adds before
switching to it, and to bring a host's first state: with the new
system's enstate, schema and configuration. Tests, and a subtest of the
VM test that does so.
|
| |
|
|
|
|
|
|
|
|
| |
After applying, units are restarted or reloaded, and started if they
aren't running: they may have failed for want of their views. That
happens with the store's lock released: a unit restarted may want the
one that runs --migrate, which waits for the lock. After a switch,
--migrate runs from the unit that units using views are ordered after,
so only running units react, without waiting for them (--no-block
try-restart, try-reload-or-restart).
|
|
|
What a generation sees of a snapshot accepted under another schema:
same name and type, renamedFrom, a rename in the stored schema read
backwards, and entries kept, with their types, in the snapshot's kept/.
Plans start from what is seen, and store it under the running schema;
a generation change rewrites no snapshot. --migrate (and --dry-run)
says what each channel sees, refuses for required slots nothing fills,
puts the views in place and runs their reactions; --materialize and
--status go by what is seen, too. A view made from an unfilled
required slot isn't there. The rollback cases of migrations.md that
need no converters or steps are tests.
|