2016-05-26 16:43:41 |
yong sheng gong |
description |
code at https://github.com/openstack/nova/blob/master/nova/scheduler/filters/availability_zone_filter.py#L48 and https://github.com/openstack/nova/blob/master/nova/tests/unit/scheduler/filters/test_availability_zone_filters.py#L40
shows we can support a list of AZs which is comma separated in one aggregate.
but the azs is a string in metadata of aggregate, which https://github.com/openstack/nova/blob/master/nova/scheduler/filters/availability_zone_filter.py#L48 is using 'in' operator.
solution is to:
form a list of azs from aggregate's metadata, and then use 'in' operator. |
code at https://github.com/openstack/nova/blob/master/nova/scheduler/filters/availability_zone_filter.py#L48 and https://github.com/openstack/nova/blob/master/nova/tests/unit/scheduler/filters/test_availability_zone_filters.py#L40
shows we can support a list of AZs which is comma separated in one aggregate.
but the code at https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L1141 is not clear. |
|