<div dir="ltr"><div><div><div><div><div><div>Hello Experts,<br><br><br></div><br>What we're trying to do is that: passing volume-type in get_pools() and filter out the pools matching (well, string matching) with the extra-specs k,v pair that may be present in the volume-type.<br><br>So we were looking into the create_volume flow. Inside the filter_scheduler's <i>schedule_create_volume</i> method, the <i>request_specs </i>are pumped into the <i>filter_properties</i>. Later on during <i>get_weighted_candidates</i>, the pumped up<i> filter_properties </i>are passed to <i>get_filtered_host  </i>of HostManager. This, in turn, calls all the three availability-zone,capacity and capability filters one-by-one. <br></div><br></div>Inside the capability_filters, looks like the code <i>assumes </i>a fixed structure of the <i>filter-properties</i>. Now the queries are:<br><br><br></div>1. What is the difference b/w request-spec and the filter-properties? For create, we merely pass vol-type and the size. How request-spec and filter-properties are linked to the given inputs to vol create?<br><br></div>2. One can potentially defines her own filters or weighers. The fixed structure of the filter-properties, pumped up with request-specs, has to be assumed?<br><br></div><div>3. Is there a way available/possible where from volume-type (output of <i>db.volume_type_extra_specs_get(vol-id)</i>)  can be adapted exactly what filters (specifically capability-filer) expects?<br><br><br><br></div><div>Thanks a lot in advance,<br></div><div>Pradip  (IRC nick: pradipm)<br><br><br><br></div></div>