Skip to content

Conversation

wallyworld
Copy link
Member

Add the ListVolumeAvailabilityZones() API to the cinder client

Copy link
Member

@hmlanigan hmlanigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM, we should continue this and return the AvailabilityZoneState for compute as well.

@wallyworld wallyworld force-pushed the volume-availability-zones branch from c186c6c to 35073c9 Compare July 1, 2020 00:01
@wallyworld wallyworld merged commit 8cf841f into go-goose:v2 Jul 1, 2020
jujubot added a commit to juju/juju that referenced this pull request Jul 1, 2020
#11775

## Description of change

We attempt to provision a cinder volume in the same AZ as the instance it's being attached to.
This isn't always possible - the volumes may have a different set of allowable AZ, or no AZ at all (just the default "nova").
So we first query the supported volume AZ and only if there's a match with the instance AZ do we then use that AZ when creating the volume.

Needs go-goose/goose#87 to land first

## QA steps

on prodstack (via wendigo) which only has volume AZ "nova" and an old API
juju bootstrap
juju deploy postgresql --storage pgdata=cinder,1G
juju status --storage

## Bug reference

https://bugs.launchpad.net/juju/+bug/1885639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants