Hardcoded choices for nova scheduler driver
Bug #1704788 reported by
Masha Atakova
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann | ||
Ocata |
Fix Committed
|
High
|
Matt Riedemann |
Bug Description
Hi everyone,
There's a driver option in nova.conf which is parsed with configuration from here:
https:/
Hardcoded list of choices possible for that option specified on #60 and #61 lines blocks nova scheduler from allowing any custom scheduler driver.
Is this intentional and there's another workaround for plugging in scheduler driver? Or is it just a mistake?
Thanks for your attention.
tags: | added: pike-rc-potential |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Sylvain Bauza (sylvain-bauza) → Matt Riedemann (mriedem) |
tags: | removed: pike-rc-potential |
To post a comment you must log in.
This was introduced in this change in Ocata:
https:/ /review. openstack. org/#/c/ 349666/
There should have been a release note with that, and this part of the help text was wrong after that change:
"A custom scheduler driver. In this case, you will be responsible for
creating and maintaining the entry point in your 'setup.cfg' file"
There was an older change made in Newton to stop allowing classloading of the scheduler driver and instead rely on stevedore:
https:/ /review. openstack. org/#/c/ 254768/
But that meant you could still put your own scheduler driver "nova.scheduler .driver" entrypoint in setup.cfg to load a custom scheduler driver, which was then broken with the use of "choices" in https:/ /review. openstack. org/#/c/ 349666/ for the config option - without warning or a deprecation period on custom scheduler driver entry points, so yeah, seems like a bug to at least communicate this better before removing it.
Note, however, that Nova is and has been for awhile removing the ability to load out of tree drivers and manager classes, so any fix here is likely to still deprecate the out of tree loading ability.