Quick fix for adding default pools on startup, and account for VolumeTypeNotAvailableInZone errors #10

Merged
merged 1 commit into from Jan 28, 2015

Conversation

Projects
None yet
2 participants
Owner

wallyworld commented Jan 28, 2015

Upgrades now don't run if deploying a fresh install, so work around that to create default pools.

Account for the fact that not all EBS instances are available in every zone.

Tested live on AWS. Could deploy to ebs and ebs-ssd pools.
storage-attached hook works also.

+ // TODO - we do this here because upgrade no longer handle new installs.
+ // Fix this once we sort out what to do.
+ a.startWorkerAfterUpgrade(runner, "storage pools", func() (worker.Worker, error) {
+ addDefaultPools := func(_ <-chan struct{}) error {
@axw

axw Jan 28, 2015

Collaborator

ew :)

Collaborator

axw commented Jan 28, 2015

LGTM

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

Merge pull request #10 from wallyworld/default-pools-fresh-install
Quick fix for adding default pools on startup, and account for VolumeTypeNotAvailableInZone errors

@wallyworld wallyworld merged commit e3d1649 into storage-feature Jan 28, 2015

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