Skip to content

sled agent sometimes publishes the Destroyed instance state when it should publish Stopped #3260

@gjcolombo

Description

@gjcolombo

Nexus reserves the "Destroyed" instance state for instances that have actually been deleted. If sled agent pushes an instance state update (or returns an instance runtime state) to Nexus that bears the "Destroyed" state, things get messy, because Nexus won't let you destroy an instance that already appears to be destroyed.

The two places where this appears to happen are

  • put_state on an instance that has been registered (so it's known to sled agent's instance manager) but not started yet
  • an explicit call to terminate an instance (used when explicitly unregistering an instance without going through its Propolis; Nexus requests this in some saga unwind paths)

Metadata

Metadata

Assignees

Labels

Sled AgentRelated to the Per-Sled Configuration and Management

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions