worker/storageprovisioner: filesystem ops #3177

Merged
merged 2 commits into from Sep 3, 2015

Conversation

Projects
None yet
3 participants
Member

axw commented Sep 2, 2015

This is a reworking of the filesystem code in
worker/storageprovisioner, same as what was
done recently for volumes. We now maintain a
set of "incomplete parameters" for filesystems
and filesystem attachments, and when they're
completed, schedule operations. These operations
will be attempted and rescheduled on failure,
and filesystem status will be updated according
to the outcome.

Tests have not been added for retrying or
status updates, as this branch is already huge.
I have added a card to follow up on this.

+ volumeTags := make([]names.VolumeTag, 0, len(ctx.incompleteFilesystemParams))
+ // We only need to query volumes for incomplete filesystems,
+ // and not incomplete filesystem attachments, because a
+ // filesystem attachment cannot exist with a filesystem.
@wallyworld

wallyworld Sep 3, 2015

Owner

s/with/without ?

@axw

axw Sep 3, 2015

Member

indeed.

+ if len(dead) != 0 {
+ // We should not see dead filesystem attachments;
+ // attachments go directly from Dying to removed.
+ logger.Debugf("unexpected dead filesystem attachments: %v", dead)
@wallyworld

wallyworld Sep 3, 2015

Owner

is this worth a warning?

@axw

axw Sep 3, 2015

Member

done

Owner

wallyworld commented Sep 3, 2015

LGTM. Please test live asap, maybe after unit tests land, or better before, so that any issues can have tests done

Member

axw commented Sep 3, 2015

LGTM. Please test live asap, maybe after unit tests land, or better before, so that any issues can have tests done

Tested live.

Member

axw commented Sep 3, 2015

$$merge$$

Contributor

jujubot commented Sep 3, 2015

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Sep 3, 2015

Merge pull request #3177 from axw/storageprovisioner-filesystem-sched…
…ule2

worker/storageprovisioner: filesystem ops

This is a reworking of the filesystem code in
worker/storageprovisioner, same as what was
done recently for volumes. We now maintain a
set of "incomplete parameters" for filesystems
and filesystem attachments, and when they're
completed, schedule operations. These operations
will be attempted and rescheduled on failure,
and filesystem status will be updated according
to the outcome.

Tests have not been added for retrying or
status updates, as this branch is already huge.
I have added a card to follow up on this.

@jujubot jujubot merged commit 2c18df5 into juju:master Sep 3, 2015

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