<div dir="ltr"><div><div><div><div><div><div>Greetings,<br><br></div>Here come a question related to AvailabilityZoneFilter.<br><br>A new project Gantt which is a common scheduler for OpenStack is now under incubation, and now most of the code are get from nova scheduler.<br>
<br></div>I'm planning to make Gantt use common scheduler from oslo, and I think that this is the right direction and it is better do this at this stage for Gantt to make sure it has a good code base. But AvailabilityZoneFilter has different logic in oslo and Gantt.<br>
<br></div>In oslo, AvailabilityZoneFilter only handles availability_zone from request_spec; but in Gantt, AvailabilityZoneFilter can handle availability_zone from both request_spec and aggregation metadata, we cannot sync AvailabilityZoneFilterfrom oslo to Gantt.<br>
<br></div>What about split the AvailabilityZoneFilter in Gantt to two filters, one is AvailabilityZoneFilter which has same logic with oslo, the other we can name it as AggregateAvailabilityZoneFilter which will only handle availability_zone from aggregation metadata, this can make sure Gantt can sync AvailabilityZoneFilter from oslo and make AvailabilityZoneFilter a common scheduler filter for both Gantt and Cinder. What do you think?<br>
<br></div>Thanks,<br><br></div>Jay<br></div>