Run output and logging
Understand the summary and the per-stage lines that an unattended run prints, and where the detailed output of the run goes.
The run prints a summary at startup and then one line per stage, in the following form:
[lcm] Starting unattended run. This may take several hours to finish.
[lcm] Requested stages: preflight, inventory, kubernetes, node_labeling
[lcm] Log file: logs/installer-runtime-log-timestamp.log
[lcm] Running stage: preflight
[lcm] Running stage: inventory
[lcm] Running stage: kubernetes
[lcm] still running - kubernetes (10m0s elapsed)
[lcm] Running stage: node_labeling
Detailed output goes to the log file under logs/ in the data directory. The log file name is printed at startup and again when the run finishes. Pass a log file name explicitly when automation needs to know the path in advance, which also means a repeated run overwrites the previous log.
On an interactive terminal, an activity indicator appears between stage lines. When output is not a terminal, no control characters are printed and a progress line appears periodically instead, so that a build system can see that the run is alive.
