]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
add teuthology-dispatcher
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Sun, 9 Aug 2020 02:22:08 +0000 (07:52 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Mon, 10 Aug 2020 18:39:12 +0000 (00:09 +0530)
commit7ba4ac18bf68b9346525042b0f6ecb6a11ef983d
tree8773537389da15ef12619a79029d114ab1433c99
parentda7ec46d27b6787fcdbc8ea71ba4d32144035458
add teuthology-dispatcher

This commit does the following:

1. a new cmd teuthology-dispatcher: It watches a queue and takes
job from it, locks required nodes without reimaging them and runs
the job as its suprocess by invoking teuthology-dispacther in
supervisor mode. Supervisor mode reimages the target machines in
the config, and invokes teuthology cmd to run the job.

2. refactors  task/internal/lock_machines.py: doing so enables
locking machines in dispatcher while following DRY.

3. refactors reimaging logic in lock/ops.py: doing so enables
reimaging machines in dispatcher's supervisor mode while following
DRY.

4. adds an argument, reimage, to lock_many in lock/ops.py: enables
optional reimagining of machines depending on the value. Defaults
to True. Used in dispatcher to lock machines without reimaging them.

Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
scripts/dispatcher.py [new file with mode: 0644]
setup.py
teuthology/dispatcher/__init__.py [new file with mode: 0644]
teuthology/dispatcher/supervisor.py [new file with mode: 0644]
teuthology/lock/ops.py
teuthology/task/internal/lock_machines.py