Skip to content

spawn list hides shutting-down instances, so 'nothing left' checks pass while a box is still billing #1167

Closed

Description

@scttfrdmn

ListInstances with the default (empty) state filter keeps pending, running, stopping, stopped (pkg/aws/client.go, about line 1257), so instances in shutting-down are omitted.

GPU instances can sit in shutting-down for 10–30 minutes after terminate. We observed about 30 minutes on a g6e.12xlarge spot instance, which kept counting against the spot vCPU quota throughout. During that window, a teardown check built on spawn list --output json reports zero instances. scttfrdmn/adit's aditctl teardown printed "verified" while a g7e was still shutting down, and now cross-checks EC2 directly.

Suggest: include shutting-down in the default (it is still a live, quota-consuming resource), or add --state live = pending|running|shutting-down|stopping|stopped, and say in --help which states the default covers. Related: #736 (resolveInstance cannot see shutting-down).

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions