[Openstack] [openstack-dev][manila][share_driver] developing custom goodness_function
Denys_Valchuk at DellTeam.com
Denys_Valchuk at DellTeam.com
Fri Mar 24 16:03:26 UTC 2017
Hi All,
I'm working on the custom share_driver for manila and want to provide goodness_function for it.
My driver is working with 2 share types (NFS and CIFS) with corresponding metrics (nfs_share_limit, nfs_share_count, cifs_share_limit, cifs_share_count, etc)
How I can differentiate between thouse 2 share types and provide correct goodness function with corresponding metrics?
f.e. "100 - 100 * ((share_type == 'CIFS') ? (cifs_share_limit / cifs_share_count) : (nfs_share_limit / nfs_share_count))"
Looks good, but existing pyparsing based string evaluation does not work with strings - so this part: (share_type == 'CIFS') raising an error...
Is it possible to utilize my metrics for goodness_function?
Maybe there is a workaround?
Thanks,
Denys
More information about the Openstack
mailing list