Skip to content

status: prints TTL: none — instance will not auto-terminate and a Termination deadline in the same screen, from two unreconciled sources — and Started/Elapsed describe the CLI invocation, not the instance (Elapsed: 0s at 7h39m) #508

Closed

Description

@scttfrdmn

Summary

spawn status <id> prints two mutually contradictory statements about the same instance in one screen — TTL: none — instance will not auto-terminate and Termination deadline: <t> — because the two lines come from different sources (on-instance config vs. EC2 tags) and nothing reconciles them. In the same output, Started: and Elapsed: describe the CLI's own agent invocation, not the instance: a 7h39m-old instance reports Elapsed: 0s.

Distinct from #502 (the IAM cause of the failed config load) and #505 (reload reporting success when the refresh failed). This is about how status renders a config it could not read, and where it sources uptime.

Evidence

spawn status i-03a29c216d46c3b86 at 2026-08-18T06:05:30Z, on an instance launched 2026-08-17T22:25:58Z and running a saturated 192-core DFT job:

Looking up instance i-03a29c216d46c3b86...
2026/08/18 06:05:30 Warning: Could not load config from tags: operation error EC2: DescribeTags,
  https response error StatusCode: 403 ... UnauthorizedOperation: You are not authorized to
  perform this operation. User: arn:aws:sts::942542972736:assumed-role/spawn-instance-d1029e0a/
  i-03a29c216d46c3b86 is not authorized to perform: ec2:DescribeTags ...
2026/08/18 06:05:30 Config: TTL=0s, IdleTimeout=0s, Hibernate=false
2026/08/18 06:05:30 Not idle: CPU usage 76.45% >= 5.00%

    (i-03a29c216d46c3b86)
  ──────────────────────────────────────────────

  spored:           v0.100.0
  Started:          2026-08-18 06:05 UTC
  Elapsed:          0s
  TTL:              none — instance will not auto-terminate

  CPU:              100.0%
  Network:          976.6 KB/min


Lifecycle protection:
  In-instance (spored):  enforces TTL + idle rules on the instance itself
  Out-of-band reaper:    backstop in the spore.host-infra account, if deployed for your account
  Termination deadline:  2026-08-18 15:25 PDT (in 16h20m)
  Max compute cost:      ~$183.76 by deadline (on-demand rate, compute only; idle-stop usually ends it sooner)

Three separate problems in that block:

  1. TTL: none — instance will not auto-terminate is a definite claim derived from an unreadable config. The DescribeTags call 403'd, so TTL=0s means unknown, not unset. none renders absence as a value. (Here it happened to be true — nothing was enforcing anything — but it is true by luck, not by measurement. The same rendering would appear on an instance with a live spawn:ttl-deadline 5 minutes out.)
  2. It sits directly above Termination deadline: 2026-08-18 15:25 PDT, read from the spawn:ttl-deadline tag with the caller's own credentials. One screen asserts both "will not auto-terminate" and a specific termination time, with no indication that they come from different sources or that one of them failed to load. An operator has to guess which to act on.
  3. Started: 2026-08-18 06:05 UTC / Elapsed: 0s — that is 32 seconds before I ran the command, on an instance whose LaunchTime is 2026-08-17T22:25:58Z (7h39m earlier) and whose spored.service has been up since 22:26:38. Under a heading that reads spored: next to a version, Started/Elapsed read as the instance's or the agent's lifetime; they appear to be the ephemeral status-agent invocation's. Elapsed: 0s is also what makes the TTL: none line hard to sanity-check — an operator has no visible age to compare a deadline against.

Started and Elapsed are also worth checking against the idle logic, since Not idle: CPU usage 76.45% vs the panel's CPU: 100.0% and a fixed-looking Network: 976.6 KB/min (byte-identical across all seven instances, including one at 0.49% CPU) suggest the panel numbers may not come from the same sampling as the decision.

Why it bit

Same incident as #507. I was trying to establish, by observable effect, whether a TTL extension on a $54/h 7-node fleet had taken. status gave me both answers at once, and the one printed in the instance panel (will not auto-terminate) was the opposite of the one printed in the lifecycle panel (a deadline). I resolved it by reading tags and CloudTrail directly, and by checking on-instance for a scheduled shutdown, an at job, a systemd timer, and journalctl -u spored — which is what status exists to save the user from.

Suggested fix

  • When the config load fails, say so where the value would go: TTL: UNKNOWN — could not read config (ec2:DescribeTags denied) rather than none, and make the exit status or a visible marker reflect it. An unresolved value should not be presentable as a resolved one.
  • Label the source of each lifecycle line (on-instance config vs. EC2 tags) and reconcile them explicitly — if the on-instance view is unavailable while a tag deadline exists, that combination is itself the headline: tags say 22:25Z, the instance cannot see it, so nothing on the instance will enforce it. That sentence is what I needed and had to assemble by hand.
  • Source Started/Elapsed from the instance's LaunchTime (or spored's own service start), not from the status agent's invocation, and label which one it is.

Environment

Activity

  1. added 3 commits that reference this issue on Aug 19, 2026
    fe8d03d
    1bd7de3
    3789535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions