Ask Your Question

Does cinder scheduler hints work?

asked 2016-05-19 23:37:03 -0600

Nodir gravatar image

updated 2016-05-20 07:13:44 -0600


I see the relevant code [1] is merged to Kilo release (on Oct. 2014), but I am not able to get it working on Liberty. I am trying to co-locate volumeA (existing volume) with volumeB (new volume being created with scheduler hints). Here is the cinder CLI I am executing:

$ cinder create --name volumeB --volume-type ssd --hint same_host=<volumeA-uuid>

I am not get volumeB places on the same host as volumeA. Any help is greatly appreciated.



edit retag flag offensive close merge delete


One thing to check would be that you have the Cinder v2 API available, and that the keystone catalog does not have the v1 API path hard-coded.

zaneb gravatar imagezaneb ( 2016-05-24 11:44:49 -0600 )edit

I am using cinder v2.0 and keystone v2.0. Why Keystone matters, though. If I have Liberty release and using cinder v2.0 shouldn't I have this feature?

Nodir gravatar imageNodir ( 2016-05-24 13:49:15 -0600 )edit

The Keystone version doesn't matter, but the URL of your Glance API endpoint is stored in the Keystone catalog (which you can view with openstack catalog show). Sometimes operators will mistakenly include the API version in the endpoint URL.

zaneb gravatar imagezaneb ( 2016-05-24 14:11:20 -0600 )edit

I have both cinder and cinderv2

$ openstack catalog list | Name | Type | Endpoints | cinder | volume | public:, admin:, internal:

Nodir gravatar imageNodir ( 2016-06-02 19:31:13 -0600 )edit

| Name | Type | Endpoints | cinderv2 | volumev2 | public:, admin:, internal:

Nodir gravatar imageNodir ( 2016-06-02 19:34:20 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-03 03:26:27 -0600

Nodir gravatar image

I found the problem. I needed to enable "DifferentBackendFilter, SameBackendFilter" in cinder.conf. I.e., scheduler_default_filters = AvailabilityZoneFilter, CapacityFilter, CapabilitiesFilter, DifferentBackendFilter, SameBackendFilter

Thanks for the help, @zaneb!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2016-05-19 23:37:03 -0600

Seen: 478 times

Last updated: Jun 03 '16