Skip to content

[packaging][uninstall] Uninstall command should also uninstall zones #723

@smklein

Description

@smklein

Note: This issue tracks follow-up work from #686

omicron-package uninstall currently uninstalls all services, but does not yet uninstall zones. Instead, it relies on the "next boot of the sled agent" to remove them.

Having the packaging tool disable zones would actually be doable, with the following:

  • Refactor the halt_and_remove code from src/illumos/zone.rs into a location accessible across other Omicron packages
  • Query for omicron-owned zones within the packaging tool
  • Invoke halt_and_remove on those zones

Metadata

Metadata

Assignees

No one assigned

    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