Actions
Feature #8287
closedAdd a new option to wait until Controller will initiate its state
Start date:
07/11/2017
Due date:
% Done:
0%
Estimated time:
Published in build:
Description
If one tries to launch, say, Native Scheduler just after Controller, most likely Native Scheduler fails with such the exception:
2017-07-11 08:55:46,932 (__init__.py:128) root ERROR> Uncaught exception Traceback (most recent call last): File "/home/debian/klever/scheduler/bin/native-scheduler", line 37, in <module> scheduler_impl = native.Scheduler(conf, "scheduler/") File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 87, in __init__ self.init_scheduler() File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 123, in init_scheduler self.update_nodes() File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 290, in update_nodes cacnel_jobs, cancel_tasks = self.__manager.update_system_status(self.__kv_url) File "/home/debian/klever/scheduler/bin/../schedulers/resource_scheduler.py", line 72, in update_system_status string = session.kv["states/" + node] File "/usr/local/lib/python3.4/dist-packages/consulate/api/kv.py", line 61, in __getitem__ raise KeyError('Key not found ({0})'.format(item)) KeyError: 'Key not found (states/joker-klever-dev)'
This issue exists very long and always very complicated automatic deployments.
Updated by Evgeny Novikov over 7 years ago
Another exception:
2017-07-11 15:01:23,512 (__init__.py:128) root ERROR> Uncaught exception Traceback (most recent call last): File "/home/debian/klever/scheduler/bin/native-scheduler", line 37, in <module> scheduler_impl = native.Scheduler(conf, "scheduler/") File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 87, in __init__ self.init_scheduler() File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 123, in init_scheduler self.update_nodes() File "/home/debian/klever/scheduler/bin/../schedulers/native.py", line 290, in update_nodes cacnel_jobs, cancel_tasks = self.__manager.update_system_status(self.__kv_url) File "/home/debian/klever/scheduler/bin/../schedulers/resource_scheduler.py", line 63, in update_system_status format(url, response.status_code, response.reason)) ValueError: Cannot get list of connected nodes requesting http://localhost:8500/v1/catalog/nodes (got status code: 500 due to: Internal Server Error)
Updated by Ilja Zakharov over 7 years ago
- Status changed from New to Closed
Implemented and merged in 98723367.
Actions