isle/tasks/bugs/garage-apply-layout-before-stopping-instance.md

15 lines
624 B
Markdown
Raw Normal View History

---
type: task
---
When removing a storage allocation the new layout should be applied _before_ the
impacted garage instance is shut down. Isle should ideally also wait for the
impacted instance to no longer be in the "draining" state prior to shutting it
down, if possible.
Some care needs to be taken in the case of the `daemon.yml` file being used for
configuration. The daemon should probably initially load using the old
configuration, and only then apply the new configuration as if it were applied
using `SetConfig`. This way the garage instance being removed can be brought
back up, drained, then shut down again.