feature #1712: Rank for Datastores
feature #1712: Fix bug when scheduler template does not include policy attributes