Nova scheduler 3rd-party (custom) driver connection in Newton

asked 2016-09-02 00:24:59 -0600

zarkone gravatar image

Before Newton release, I just used full module path in nova.conf to plugin. But now blueprints suggest to use prepared entry points from nova.scheduler namespace.

How I should plug 3rd-party, not built-in drivers?

I actually tried to add entry points manually to /usr/lib/python2.7/site-packages/nova-13.1.0-py2.7.egg-info/entry_points.txt, but sometimes scheduler don't catchup this freshly added points after restart for some reason, and it doesn't look like correct way.

2016-09-02 07:20:41.654 22149 CRITICAL nova [-] RuntimeError: (u'Cannot load scheduler driver from configuration %(conf)s.', {'conf': 'custom_scheduler'})
2016-09-02 07:20:41.654 22149 ERROR nova Traceback (most recent call last):
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/bin/nova-scheduler", line 10, in <module>
2016-09-02 07:20:41.654 22149 ERROR nova     sys.exit(main())
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/cmd/scheduler.py", line 43, in main
2016-09-02 07:20:41.654 22149 ERROR nova     topic=CONF.scheduler_topic)
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 296, in create
2016-09-02 07:20:41.654 22149 ERROR nova     db_allowed=db_allowed)
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 182, in __init__
2016-09-02 07:20:41.654 22149 ERROR nova     self.manager = manager_class(host=self.host, *args, **kwargs)
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 75, in __init__
2016-09-02 07:20:41.654 22149 ERROR nova     {'conf': scheduler_driver})
2016-09-02 07:20:41.654 22149 ERROR nova RuntimeError: (u'Cannot load scheduler driver from configuration %(conf)s.', {'conf': 'custom_scheduler'})
edit retag flag offensive close merge delete