-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing Beanstalk from teuthology #1650
base: main
Are you sure you want to change the base?
Changes from all commits
9d97b17
99e5ca6
72d4408
0cf9a5e
e9122c6
74bd369
be34af2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import docopt | ||
|
||
import teuthology.config | ||
import teuthology.queue.beanstalk | ||
|
||
doc = """ | ||
usage: teuthology-beanstalk-queue -h | ||
teuthology-beanstalk-queue [-s|-d|-f] -m MACHINE_TYPE | ||
teuthology-beanstalk-queue [-r] -m MACHINE_TYPE | ||
teuthology-beanstalk-queue -m MACHINE_TYPE -D PATTERN | ||
teuthology-beanstalk-queue -p SECONDS [-m MACHINE_TYPE] | ||
List Jobs in queue. | ||
If -D is passed, then jobs with PATTERN in the job name are deleted from the | ||
queue. | ||
Arguments: | ||
-m, --machine_type MACHINE_TYPE [default: multi] | ||
Which machine type queue to work on. | ||
optional arguments: | ||
-h, --help Show this help message and exit | ||
-D, --delete PATTERN Delete Jobs with PATTERN in their name | ||
-d, --description Show job descriptions | ||
-r, --runs Only show run names | ||
-f, --full Print the entire job config. Use with caution. | ||
-s, --status Prints the status of the queue | ||
-p, --pause SECONDS Pause queues for a number of seconds. A value of 0 | ||
will unpause. If -m is passed, pause that queue, | ||
otherwise pause all queues. | ||
""" | ||
|
||
|
||
def main(): | ||
|
||
args = docopt.docopt(doc) | ||
print(args) | ||
zmc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
teuthology.beanstalk.main(args) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,31 @@ | ||
import argparse | ||
""" | ||
usage: teuthology-dispatcher --help | ||
teuthology-dispatcher --supervisor [-v] --bin-path BIN_PATH --job-config CONFIG --archive-dir DIR | ||
teuthology-dispatcher [-v] [--archive-dir DIR] --log-dir LOG_DIR --machine-type MACHINE_TYPE --queue-backend BACKEND | ||
|
||
Start a dispatcher for the specified machine type. Grab jobs from a paddles/beanstalk | ||
queue and run the teuthology tests they describe as subprocesses. The | ||
subprocess invoked is a teuthology-dispatcher command run in supervisor | ||
mode. | ||
|
||
Supervisor mode: Supervise the job run described by its config. Reimage | ||
target machines and invoke teuthology command. Unlock the target machines | ||
at the end of the run. | ||
|
||
standard arguments: | ||
-h, --help show this help message and exit | ||
-v, --verbose be more verbose | ||
-l, --log-dir LOG_DIR path in which to store logs | ||
-a DIR, --archive-dir DIR path to archive results in | ||
--machine-type MACHINE_TYPE the machine type for the job | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should keep |
||
--supervisor run dispatcher in job supervisor mode | ||
--bin-path BIN_PATH teuthology bin path | ||
--job-config CONFIG file descriptor of job's config file | ||
--exit-on-empty-queue if the queue is empty, exit | ||
--queue-backend BACKEND choose between paddles and beanstalk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should set a default here |
||
""" | ||
|
||
import sys | ||
|
||
import teuthology.dispatcher.supervisor | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -12,7 +12,7 @@ | |||||
teuthology-kill [-p] -o OWNER -m MACHINE_TYPE -r RUN | ||||||
|
||||||
Kill running teuthology jobs: | ||||||
1. Removes any queued jobs from the beanstalk queue | ||||||
1. Removes any queued jobs from the paddles queue | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
2. Kills any running jobs | ||||||
3. Nukes any machines involved | ||||||
|
||||||
|
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -144,6 +144,7 @@ class TeuthologyConfig(YamlConfig): | |||||
'archive_upload_key': None, | ||||||
'archive_upload_url': None, | ||||||
'automated_scheduling': False, | ||||||
'backend': 'beanstalk', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'reserve_machines': 5, | ||||||
'ceph_git_base_url': 'https://github.com/ceph/', | ||||||
'ceph_git_url': None, | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can drop this file, right?