Bug 1041104

Summary: [RFE][nova]: Support multiple default schedule availability zones
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, sgordon, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/schedule-set-availability-zones
Whiteboard: upstream_milestone_none upstream_status_good-progress upstream_definition_review
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 17:33:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 13:38:47 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/schedule-set-availability-zones.

Description:

I updated the description of this blueprint because previously generated a lot of confusion about the goal.


The goal of this blueprint is to have multiple schedule availability zones as default instead only one.
This means:
deprecate "default_schedule_zone" configuration option and have instead "default_schedule_zones=[]"

When an instance is created, if the user doesn't define an availability zone, it will be schedule into one node in the list of default schedule availability zones.
The advantage of this aproach is when an deployment has multiple availability zones the instances will be spread between them instead overload only one, if users don't specify an availability zone.


Implementation:
- deprecate "default_schedule_zone" and create "default_schedule_zones" option.
- if default_schedule_zone is present in configuration use this value to not break current configurations (default_schedule_zones=[default_schedule_zone])
- if an user doesn't specify an availability zone it shouldn't be added in the DB (remove the current behaviour). Anyway when query for the avz of an instance nova doesn't use this value.
- change AvailabilityZoneFilter to support multiple default azs.


Specification URL (additional information):

None