Skip to main content
Say what an install would do, without doing it: the version it would read, the inputs it asks for, the lines it would act on, the limits it needs, and every problem that would stop it, with a digest of all of it when nothing does. plan writes nothing. It is the dry run, the web’s source of install fields and the command line’s printout, and install runs it again before it acts.

POST /revisions/:id/data/query (Command: plan)

Request Body

Response

given is true for an input given in this request, a document the record remembers, or a secret given to an earlier install whose credentials exist. A required input that is not given is the problem input_missing.

Lines

Each line is a sentence the command line and the web print as it is, and the install’s log repeats:

Limits

One row per requirement, declared or derived, after requirements that name the same limit at the same place are merged. A requirement with nothing to count answers no row: no room row when the install makes nothing new, no row for a category the manifest leaves empty, such as blobhub.compute.workflow.listeners_per_revision for Field Reports, and no <type id>.enabled row when every blob exists. Rows come unmet first, then by where and id. need and value are ready to print, so a client prints them as they are.

Digest

digest is sha256: and the SHA-256, in hex, of the canonical JSON of what the plan is for and what it says:
  • the installer revision and the installation’s alias;
  • the record’s current operation, by an id no response carries, or null when the record has none;
  • the app revision;
  • the document inputs;
  • the names of the secret inputs given, never their values;
  • lines, limits and deletes.
Another operation, version, input, line or limit value changes it; a secret counts by its name, never by its value. A client never computes it: it sends back, as confirmed, the digest of the plan it showed, and install refuses with plan_changed when the plan it makes then has another (The checks, in order). digest is null whenever problems is not empty: a plan with a problem has nothing to confirm. install refuses such a plan with its first problem’s code before it reads confirmed (Examples).

Problems

plan answers a problem with status 200 instead of refusing it; install refuses with the first problem’s code. The checks run in one order, whose numbers the table keeps. A problem at checks 1 to 8 stops the plan, and problems holds only that check’s problems: at 1 to 4, one; at 5, every problem of the version’s definition; at 6 to 8, the first of the three. Those are the only stops: past check 8, checks 9 to 14 all run, and each adds its problems, so one answer lists every problem they find. Each sentence is ready to print; below, each is Field Reports’.
  • 10, blob_not_ready. A blob of the installation is still being deleted, after an uninstall. Try again shortly.
  • 12, limit_unmet. One sentence per unmet requirement, each with its row in limits; the other needs, room, at_most, includes and on, and the forms past a limit’s most permissive value, are under When a requirement is not met.
  • 13, person_required. The first form makes the account. The second writes credentials on an account that exists: an upgrade given weather_key again, after the blobhub credential was deleted, rewrites weather and mints blobhub anew; for one credential it reads stores credential weather on reports-runner. The third answers a caller that is neither a person nor a service account. An account that stores no credential reads makes service account reports-runner, without and its credentials.
  • 14, app_busy. The second form is an object that is not {busy, until, reason}, which reads as busy (The busy object).

Errors

Examples

The first install of reports, at 0.2.0, with its report settings and a weather key. Nothing is installed yet, so from_version is null, and the installer’s own requirements join the version’s: both blob types enabled, room for two blobs in acme-corp and for one record in acme-corp/installed-apps. A secret is never echoed: the answer says only that weather_key is given.
An upgrade of reports from 0.2.0 to 0.3.0, with new report settings. The record remembers the first install’s document, and the weather credential exists, so weather_key counts as given. Both blobs, the session reports and the record exist, so only the rows at the two blobs remain, and nothing is in the way.
The same upgrade, had blobhub.compute.workflow.executions_per_session been lowered to 300 for acme-corp since the first install. The row flows declares is not met, so it comes first, with its fix; the plan answers the problem with status 200 and no digest, and install would refuse with limit_unmet until the limit is set.
A first install of reports that names 0.9.0, a version acme-corp/field-reports never committed, stops at check 4: without a version there is nothing to plan. The answer holds only the problem, app is null, and so is digest, as on any plan with a problem. install with the same app refuses with version_not_found before it reads confirmed.