Add storage-attached/storage-detached hooks to uniter #7

Merged
merged 6 commits into from Jan 27, 2015

Conversation

Projects
None yet
2 participants
Collaborator

axw commented Jan 27, 2015

No description provided.

axw added some commits Jan 23, 2015

state: add Unit.WatchStorageInstances
We'll need to watch storage instances from the
uniter, to trigger storage hooks. We'll also use
it in the storage provisioner.
worker/uniter: reimplement storage as operation
We introduce a new StorageChanged operation, and
ModeStorageChanged. When storage changes are observed
in ModeAbide (alive), we execute a StorageChanged
operation.

The StorageChanged operation is responsible for
comparing reportedly changed storage instances to the
persistent local state, and enqueuing storage hooks.
Storage hooks are responsible for updating the storage
attachment info in persistent local state once
committed. ModeContinue has been updated so that if
there is more than one changed storage instance, it
will resume handling changes by reinvoking
StorageChanged.

wallyworld added a commit that referenced this pull request Jan 27, 2015

Merge pull request #7 from axw/uniter-storage-hooks-feature
Add storage-attached/storage-detached hooks to uniter

@wallyworld wallyworld merged commit 8eac9ed into wallyworld:storage-feature Jan 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment