[Bug 1404110] [NEW] [SRU] Wrong hint key in volume create function

Launchpad Bug Tracker 1404110 at bugs.launchpad.net
Fri Dec 19 03:47:37 UTC 2014


You have been subscribed to a public bug by Felipe Reyes (freyes):

[Impact]

Heat uses 'scheduler hints' to instruct the cloud that some resources
need special treatment, for instance that two cinder volumes have to be
created on different backends.

Without this patch, cinder client is broken and hints aren't properly
formatted leaving without effect the hints sent.

[Test Case]

Use script test_scheduler_hints.py against cinder API v2, the request
sent will contain "scheduler_hints": {"same_host": "SOME_ID"} while the
service expects "OS-SCH-HNT:scheduler_hints": {"same_host": "SOME_ID"}

An example output can be found in the file test_scheduler_hints.log

[Regression Potential]

No regression expected. Currently the key is being discarded by the
service and this patch just format it properly

[Other Info]

Please refer to upstream commit:
  https://review.openstack.org/#/c/72059/5

Blueprint: Support Cinder scheduler hints 
  https://github.com/openstack/heat-specs/blob/master/specs/kilo/cinder-scheduler-hints.rst

Definition of the key:
  https://github.com/openstack/cinder/blob/stable/icehouse/cinder/api/contrib/scheduler_hints.py#L31
  https://github.com/openstack/cinder/blob/stable/icehouse/cinder/api/contrib/scheduler_hints.py#L54

** Affects: python-cinderclient (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: cts
-- 
[SRU] Wrong hint key in volume create function
https://bugs.launchpad.net/bugs/1404110
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list