]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
10 years agoteuthology: stop pip and setuptools from fighting over deps that exist in the system... 515/head
Gregory Meno [Mon, 8 Jun 2015 23:15:01 +0000 (23:15 +0000)]
teuthology: stop pip and setuptools from fighting over deps that exist in the system site packages

Signed-off-by: Gregory Meno <gmeno@redhat.com>
10 years agoMerge pull request #511 from dmick/master
Zack Cerza [Tue, 2 Jun 2015 20:37:11 +0000 (14:37 -0600)]
Merge pull request #511 from dmick/master

lock.py: allow selection of machines to list by os-type/os-version

10 years agoMerge pull request #513 from ceph/wip-11808
Andrew Schoen [Tue, 2 Jun 2015 20:30:29 +0000 (15:30 -0500)]
Merge pull request #513 from ceph/wip-11808

Keep better count of locked nodes

10 years agoKeep better count of locked nodes 513/head
Zack Cerza [Thu, 28 May 2015 18:25:51 +0000 (12:25 -0600)]
Keep better count of locked nodes

http://tracker.ceph.com/issues/11808

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agolock.py: allow selection of machines to list by os-type/os-version 511/head
Dan Mick [Mon, 1 Jun 2015 23:02:20 +0000 (16:02 -0700)]
lock.py: allow selection of machines to list by os-type/os-version

Also, clean up the status selection a tiny bit with winnow()

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #510 from ceph/wip-ansible-vars
Andrew Schoen [Tue, 2 Jun 2015 16:23:35 +0000 (11:23 -0500)]
Merge pull request #510 from ceph/wip-ansible-vars

Add extra_vars support for Ansible

10 years agoAdd extra_vars support for Ansible 510/head
Zack Cerza [Tue, 26 May 2015 19:55:19 +0000 (13:55 -0600)]
Add extra_vars support for Ansible

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #503 from ceph/wip-nuke-stale
Andrew Schoen [Mon, 1 Jun 2015 18:51:32 +0000 (13:51 -0500)]
Merge pull request #503 from ceph/wip-nuke-stale

Add --dry-run to teuthology-nuke

10 years agoAdd --dry-run 503/head
Zack Cerza [Wed, 27 May 2015 15:46:50 +0000 (09:46 -0600)]
Add --dry-run

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #502 from ceph/wip-bump-versions
Andrew Schoen [Mon, 1 Jun 2015 16:33:18 +0000 (11:33 -0500)]
Merge pull request #502 from ceph/wip-bump-versions

Bump default OS versions

10 years agoMerge pull request #499 from ceph/wip-ansible-tweaks
Andrew Schoen [Mon, 1 Jun 2015 16:32:39 +0000 (11:32 -0500)]
Merge pull request #499 from ceph/wip-ansible-tweaks

Enablement for chef -> ansible transition

10 years agoCreate fake Remotes in a more standard way 499/head
Zack Cerza [Fri, 22 May 2015 21:38:35 +0000 (15:38 -0600)]
Create fake Remotes in a more standard way

This avoids them wanting to run 'hostname --fqdn' on remote nodes that
don't exist

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd ansible to pip requirements
Zack Cerza [Fri, 22 May 2015 02:03:35 +0000 (20:03 -0600)]
Add ansible to pip requirements

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoEnsure our virtualenv's bin/ is in our PATH
Zack Cerza [Fri, 22 May 2015 16:20:10 +0000 (10:20 -0600)]
Ensure our virtualenv's bin/ is in our PATH

So that we can run commands we install via pip from inside teuthology

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoExplicitly set ansible_ssh_user
Zack Cerza [Fri, 22 May 2015 16:38:27 +0000 (10:38 -0600)]
Explicitly set ansible_ssh_user

... to the same as the teuthology user

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse Remote.hostname
Zack Cerza [Fri, 22 May 2015 16:34:35 +0000 (10:34 -0600)]
Use Remote.hostname

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd CephLab subclass
Zack Cerza [Fri, 22 May 2015 00:25:12 +0000 (18:25 -0600)]
Add CephLab subclass

It simply defaults to pointing at our ceph-cm-ansible repo and our
cephlab.yml playbook

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #504 from ceph/wip-get-job
Andrew Schoen [Mon, 1 Jun 2015 15:33:03 +0000 (10:33 -0500)]
Merge pull request #504 from ceph/wip-get-job

ResultsReporter: add get_job()

10 years agoMerge pull request #505 from ceph/wip-11591
Andrew Schoen [Mon, 1 Jun 2015 15:32:30 +0000 (10:32 -0500)]
Merge pull request #505 from ceph/wip-11591

Use requests locally instead of wget remotely

10 years agoResultsReporter: Add job_id kwarg to get_jobs() 504/head
Zack Cerza [Tue, 26 May 2015 19:58:50 +0000 (13:58 -0600)]
ResultsReporter: Add job_id kwarg to get_jobs()

If one is passed, only fetch a single job's information

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #507 from ceph/wip-lock-usability
Alfredo Deza [Fri, 29 May 2015 17:04:41 +0000 (13:04 -0400)]
Merge pull request #507 from ceph/wip-lock-usability

teuthology-lock usability

10 years agoUse requests locally instead of wget remotely 505/head
Zack Cerza [Thu, 28 May 2015 16:13:57 +0000 (10:13 -0600)]
Use requests locally instead of wget remotely

... in _update_deb_package_list_and_install()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoClarify error when --lock is used with no targets 507/head
Zack Cerza [Fri, 29 May 2015 16:37:10 +0000 (10:37 -0600)]
Clarify error when --lock is used with no targets

http://tracker.ceph.com/issues/11812

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoIn the case of invalid os_* args, give suggestions
Zack Cerza [Fri, 29 May 2015 15:57:24 +0000 (09:57 -0600)]
In the case of invalid os_* args, give suggestions

http://tracker.ceph.com/issues/11813

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #506 from ceph/wip-unbreak-kernel-task
Zack Cerza [Fri, 29 May 2015 00:34:06 +0000 (18:34 -0600)]
Merge pull request #506 from ceph/wip-unbreak-kernel-task

kernel: recognize flavor key

10 years agokernel: recognize flavor key 506/head
Ilya Dryomov [Thu, 28 May 2015 17:47:42 +0000 (20:47 +0300)]
kernel: recognize flavor key

Since commit 7da76fa78f63 ("Use kernel_flavor when polling
gitbuilders"), teuthology-suite appends 'flavor: basic' to kernel task
config.  This broke all scheduled kernel suites, because
normalize_config() treats unknown keys as role types and when it
doesn't find a valid one it bails and returns {}, which means "do
nothing".

Fix this temporarily by adding flavor to a list of recognized keys.
This is wrong a bunch of levels, but it fixes a regression while
sticking to the way normalize_config() currently works.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #501 from ceph/wip-11772
Sage Weil [Thu, 28 May 2015 22:48:28 +0000 (15:48 -0700)]
Merge pull request #501 from ceph/wip-11772

Use CentOS packages on RHEL

Tested-by: Sage Weil <sage@redhat.com>
10 years agoBump default OS versions 502/head
Zack Cerza [Tue, 26 May 2015 20:37:20 +0000 (14:37 -0600)]
Bump default OS versions

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoTreat RHEL as CentOS in task.install 501/head
Zack Cerza [Tue, 26 May 2015 20:11:06 +0000 (14:11 -0600)]
Treat RHEL as CentOS in task.install

http://tracker.ceph.com/issues/11772

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoTreat RHEL as CentOS when scheduling
Zack Cerza [Tue, 26 May 2015 20:09:06 +0000 (14:09 -0600)]
Treat RHEL as CentOS when scheduling

http://tracker.ceph.com/issues/11772

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix Ansible.fetch_repo() for git:// URLs
Zack Cerza [Thu, 21 May 2015 17:06:04 +0000 (11:06 -0600)]
Fix Ansible.fetch_repo() for git:// URLs

With unit test

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAlso look for playbook file in repo directory
Zack Cerza [Thu, 21 May 2015 16:42:10 +0000 (10:42 -0600)]
Also look for playbook file in repo directory

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #495 from ceph/wip-11645
Andrew Schoen [Thu, 21 May 2015 15:38:38 +0000 (10:38 -0500)]
Merge pull request #495 from ceph/wip-11645

Use kernel_flavor when polling gitbuilders

10 years agoAdd tests for get_install_task_flavor() 495/head
Zack Cerza [Wed, 20 May 2015 21:35:11 +0000 (15:35 -0600)]
Add tests for get_install_task_flavor()

Also a couple bonus linter fixes

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd tests for get_flavor()
Zack Cerza [Wed, 20 May 2015 21:11:14 +0000 (15:11 -0600)]
Add tests for get_flavor()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoLog pulpito URL after scheduling
Zack Cerza [Wed, 20 May 2015 19:03:32 +0000 (13:03 -0600)]
Log pulpito URL after scheduling

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd missing default for results_ui_server
Zack Cerza [Wed, 20 May 2015 16:49:05 +0000 (10:49 -0600)]
Add missing default for results_ui_server

It's already documented in docs/siteconfig.rst

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoDon't blindly continue if passed an invalid distro
Zack Cerza [Wed, 20 May 2015 16:35:03 +0000 (10:35 -0600)]
Don't blindly continue if passed an invalid distro

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAlso check install task's flavor when scheduling
Zack Cerza [Tue, 19 May 2015 20:30:41 +0000 (14:30 -0600)]
Also check install task's flavor when scheduling

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoDon't assume 'basic' flavor in check_packages()
Zack Cerza [Tue, 19 May 2015 20:22:24 +0000 (14:22 -0600)]
Don't assume 'basic' flavor in check_packages()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAbstract flavor-finding logic into get_flavor()
Zack Cerza [Tue, 19 May 2015 20:20:18 +0000 (14:20 -0600)]
Abstract flavor-finding logic into get_flavor()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #489 from dmick/master
Zack Cerza [Tue, 19 May 2015 19:41:35 +0000 (13:41 -0600)]
Merge pull request #489 from dmick/master

lock.py: remove dead code trying to deal with locks

10 years agoMerge pull request #472 from dmick/wip-json-query
Zack Cerza [Tue, 19 May 2015 19:40:58 +0000 (13:40 -0600)]
Merge pull request #472 from dmick/wip-json-query

lock.py: Add '--json-query' to allow complex search for --list/--brief

10 years agolock.py: Add '--json-query' to allow complex search for --list/--brief 472/head
Dan Mick [Tue, 21 Apr 2015 03:35:56 +0000 (20:35 -0700)]
lock.py: Add '--json-query' to allow complex search for --list/--brief

--json-query <file> or --json-query <string> allows filtering search
results conveniently; the JSON must be a dictionary that is a subset
of the lock record to be matched.  The reason this was invented:
Find all VPSes on a particular vmhost:

teuthology-lock --list --all --json-query \
'{"vm_host":{"name":"mira003.front.sepia.ceph.com"}}'

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #498 from ceph/wip-11684
Andrew Schoen [Tue, 19 May 2015 16:56:43 +0000 (11:56 -0500)]
Merge pull request #498 from ceph/wip-11684

Update kernel dependencies on Ubuntu

10 years agoUpdate kernel dependencies on Ubuntu 498/head
Zack Cerza [Tue, 19 May 2015 16:25:53 +0000 (10:25 -0600)]
Update kernel dependencies on Ubuntu

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRemove another pointless stdout suppression
Zack Cerza [Tue, 19 May 2015 16:20:35 +0000 (10:20 -0600)]
Remove another pointless stdout suppression

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse kernel_flavor when polling gitbuilders
Zack Cerza [Fri, 15 May 2015 19:13:18 +0000 (13:13 -0600)]
Use kernel_flavor when polling gitbuilders

http://tracker.ceph.com/issues/11645

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #496 from dmick/wip-howmany
Zack Cerza [Fri, 15 May 2015 23:17:12 +0000 (17:17 -0600)]
Merge pull request #496 from dmick/wip-howmany

task/internal: account for locked machines acquired on previous loops

10 years agotask/internal: account for locked machines acquired on previous loops 496/head
Dan Mick [Fri, 15 May 2015 21:48:21 +0000 (14:48 -0700)]
task/internal: account for locked machines acquired on previous loops

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #494 from athanatos/wip-subset-print
Zack Cerza [Fri, 15 May 2015 19:11:38 +0000 (13:11 -0600)]
Merge pull request #494 from athanatos/wip-subset-print

suite: print out subset chosen

10 years agosuite: print out subset chosen 494/head
Samuel Just [Fri, 15 May 2015 18:10:37 +0000 (11:10 -0700)]
suite: print out subset chosen

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #493 from ceph/wip-kernel-update
Andrew Schoen [Thu, 14 May 2015 20:38:05 +0000 (15:38 -0500)]
Merge pull request #493 from ceph/wip-kernel-update

Remove old kernels on RPM-based systems

10 years agoRemove old kernels on RPM-based systems 493/head
Zack Cerza [Thu, 14 May 2015 18:01:55 +0000 (12:01 -0600)]
Remove old kernels on RPM-based systems

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse Remote.os instead of misc.get_system_type()
Zack Cerza [Mon, 11 May 2015 19:02:45 +0000 (13:02 -0600)]
Use Remote.os instead of misc.get_system_type()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #492 from ceph/wip-11605
Zack Cerza [Wed, 13 May 2015 20:30:50 +0000 (14:30 -0600)]
Merge pull request #492 from ceph/wip-11605

Wip 11605

10 years agotest_suite: add test for empty dir 492/head
Samuel Just [Wed, 13 May 2015 20:16:42 +0000 (13:16 -0700)]
test_suite: add test for empty dir

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agosuite: ignore empty directories
Samuel Just [Wed, 13 May 2015 20:16:34 +0000 (13:16 -0700)]
suite: ignore empty directories

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agotest_suite: add test for files without .yaml and .disable dirs
Samuel Just [Wed, 13 May 2015 20:16:18 +0000 (13:16 -0700)]
test_suite: add test for files without .yaml and .disable dirs

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agosuite: ignore files not ending in .yaml and dirs ending in .disable
Samuel Just [Wed, 13 May 2015 20:15:54 +0000 (13:15 -0700)]
suite: ignore files not ending in .yaml and dirs ending in .disable

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #490 from ktdreyer/travisci-home
Zack Cerza [Wed, 13 May 2015 19:59:42 +0000 (13:59 -0600)]
Merge pull request #490 from ktdreyer/travisci-home

tests: set HOME env var

10 years agotest_suite: make_fake_listdir -> make_fake_fstools
Samuel Just [Wed, 13 May 2015 18:44:54 +0000 (11:44 -0700)]
test_suite: make_fake_listdir -> make_fake_fstools

fake_isfile was too simplistic.  Instead of using the path string
to determine whether it's a file, consider it a file if the
corresponding value in the dict is None.

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agotests: set HOME env var 490/head
Ken Dreyer [Wed, 13 May 2015 17:07:55 +0000 (11:07 -0600)]
tests: set HOME env var

Travis CI's docs say that HOME is supposed to be set to /home/travis by
default, however, it also says "do not depend on this value":
http://docs.travis-ci.com/user/ci-environment/

Teuthology depends on the $HOME environment variable being set, and the
test suites that depended on this recently failed to build in Travis CI.

Set the var explicitly so it's always available for the tests.

10 years agolock.py: remove dead code trying to deal with locks 489/head
Dan Mick [Tue, 12 May 2015 01:18:04 +0000 (18:18 -0700)]
lock.py: remove dead code trying to deal with locks

Without this, lock.py keeps trying to get at the key in
case it might need it later...but there's nothing that even
uses that information left, so it just causes a delay.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #488 from ceph/wip-11552
Zack Cerza [Tue, 12 May 2015 15:37:04 +0000 (09:37 -0600)]
Merge pull request #488 from ceph/wip-11552

Install scratch built kernels from koji

10 years agoFix copypasta
Zack Cerza [Mon, 11 May 2015 21:27:38 +0000 (15:27 -0600)]
Fix copypasta

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdds support for installing kernels from koji task results. 488/head
Andrew Schoen [Mon, 11 May 2015 15:47:00 +0000 (10:47 -0500)]
Adds support for installing kernels from koji task results.

The kernel task now takes a task_id argument that can be used to
download and install a kernel from task results.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds methods to extract info on a package from koji task results.
Andrew Schoen [Mon, 11 May 2015 15:26:22 +0000 (10:26 -0500)]
Adds methods to extract info on a package from koji task results.

Once you get the results of a koji task you can use these methods to
look for and extract information about a given package.  If the package
is found it will return information about how to download and consume
the rpm generated by the task.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdds packaging.get_koji_task_result, to query kojihub for a tasks result.
Andrew Schoen [Thu, 7 May 2015 21:18:25 +0000 (16:18 -0500)]
Adds packaging.get_koji_task_result, to query kojihub for a tasks result.

We need this because we want to be able to use scratch builds, which do
not generate a build ID. We can download the rpms we need by
retrieving the results of a task then looking at the list of rpms
it created.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #487 from ceph/wip-ansible
Andrew Schoen [Mon, 11 May 2015 18:27:06 +0000 (13:27 -0500)]
Merge pull request #487 from ceph/wip-ansible

Ansible task

10 years agoClarify Task.filter_hosts() docstring 487/head
Zack Cerza [Mon, 11 May 2015 15:57:05 +0000 (09:57 -0600)]
Clarify Task.filter_hosts() docstring

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAnsible task tests
Zack Cerza [Thu, 7 May 2015 20:46:35 +0000 (14:46 -0600)]
Ansible task tests

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAnsible task
Zack Cerza [Tue, 21 Apr 2015 16:45:25 +0000 (10:45 -0600)]
Ansible task

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoSort hostnames in unit test
Zack Cerza [Fri, 8 May 2015 15:53:35 +0000 (09:53 -0600)]
Sort hostnames in unit test

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #486 from ceph/wip-schedule
Zack Cerza [Fri, 8 May 2015 15:43:46 +0000 (09:43 -0600)]
Merge pull request #486 from ceph/wip-schedule

Wip schedule -- with fix for 11533

10 years agomatrix: fix Concat.index -- should be (item, {concat_items}) 486/head
Samuel Just [Thu, 7 May 2015 19:56:53 +0000 (12:56 -0700)]
matrix: fix Concat.index -- should be (item, {concat_items})

Previously, it just returned {concat_items} which isn't right.

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #479 from zhouyuan/config_max_reserve
Zack Cerza [Thu, 7 May 2015 21:28:29 +0000 (15:28 -0600)]
Merge pull request #479 from zhouyuan/config_max_reserve

Make the number machines to be reserved configurable

10 years agosuite: add --subset option to allow us to schedule subsets of a suite
Samuel Just [Fri, 27 Mar 2015 17:20:28 +0000 (10:20 -0700)]
suite: add --subset option to allow us to schedule subsets of a suite

First, the old logic tended to do the following:

[0,1,2,3] x [a,b,c,d] -> [(0, a), (0, b), (0, c), ...]

which is a bummer since if we only schedule the first 1/4,
we only get combinations with 0.

Instead, we want:

[0,1,2,3] x [a,b,c,d] -> [(0, a), (1, b), (2, c), ...]

Second, the old logic tended to do the following:

[0,1,2,3] + [a,b,c,d] -> [0,1,2,3,a,b,c,d]

Which is a bummer since we need to all the way through the first
set before we get examples from the second.

Instead, we want:

[0,1,2,3] + [a,b,c,d] -> [0,a,1,b,2,c,3,d]

Lastly, if we have:

[0,1,2] + ([0,1,2],[a,b,c])

and want to schedule 1/3 of the suite, we don't want to
just schedule 0, we probably want to schedule all of
[0,1,2] and 1/3 of the second combo.  Thus, we want to
detect such cases and multiply out [0,1,2] into
[0,1,2,0,1,2,0,1,2].

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 9a57759ec3df7a8b9490920538214ac189418c49)

10 years agotest_suite: add test for bug 11533
Samuel Just [Thu, 7 May 2015 19:18:31 +0000 (12:18 -0700)]
test_suite: add test for bug 11533

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #483 from SUSE/wip-suse-bootsrap
Andrew Schoen [Tue, 5 May 2015 20:15:23 +0000 (15:15 -0500)]
Merge pull request #483 from SUSE/wip-suse-bootsrap

Added openSUSE and SLES conditions in bootstrap.

10 years agoAdded openSUSE and SLES conditions in bootstrap. 483/head
ksharma [Tue, 5 May 2015 14:35:38 +0000 (16:35 +0200)]
Added openSUSE and SLES conditions in bootstrap.

Signed-off-by: Kapil Sharma ksharma@suse.com
10 years agoRevert "suite: add --subset option to allow us to schedule subsets of a suite"
Zack Cerza [Tue, 5 May 2015 01:39:40 +0000 (19:39 -0600)]
Revert "suite: add --subset option to allow us to schedule subsets of a suite"

This reverts commit 9a57759ec3df7a8b9490920538214ac189418c49.

See http://tracker.ceph.com/issues/11533

10 years agoMerge pull request #340 from ceph/wip-schedule
Zack Cerza [Mon, 4 May 2015 22:28:13 +0000 (16:28 -0600)]
Merge pull request #340 from ceph/wip-schedule

suite: add --subset option to allow us to schedule subsets of a suit...

10 years agosuite: add --subset option to allow us to schedule subsets of a suite 340/head
Samuel Just [Fri, 27 Mar 2015 17:20:28 +0000 (10:20 -0700)]
suite: add --subset option to allow us to schedule subsets of a suite

First, the old logic tended to do the following:

[0,1,2,3] x [a,b,c,d] -> [(0, a), (0, b), (0, c), ...]

which is a bummer since if we only schedule the first 1/4,
we only get combinations with 0.

Instead, we want:

[0,1,2,3] x [a,b,c,d] -> [(0, a), (1, b), (2, c), ...]

Second, the old logic tended to do the following:

[0,1,2,3] + [a,b,c,d] -> [0,1,2,3,a,b,c,d]

Which is a bummer since we need to all the way through the first
set before we get examples from the second.

Instead, we want:

[0,1,2,3] + [a,b,c,d] -> [0,a,1,b,2,c,3,d]

Lastly, if we have:

[0,1,2] + ([0,1,2],[a,b,c])

and want to schedule 1/3 of the suite, we don't want to
just schedule 0, we probably want to schedule all of
[0,1,2] and 1/3 of the second combo.  Thus, we want to
detect such cases and multiply out [0,1,2] into
[0,1,2,0,1,2,0,1,2].

Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #481 from ceph/wip-11429
Samuel Just [Mon, 4 May 2015 21:19:27 +0000 (14:19 -0700)]
Merge pull request #481 from ceph/wip-11429

Wip 11429

Reviewed-by: Andrew Schoen <andrew.schoen@gmail.com>
10 years agotask: add loop 481/head
Samuel Just [Mon, 4 May 2015 17:41:21 +0000 (10:41 -0700)]
task: add loop

10 years agotask: add full_sequential
Samuel Just [Mon, 4 May 2015 16:38:18 +0000 (09:38 -0700)]
task: add full_sequential

10 years agoMake the number machines to be reserved configurable 479/head
Yuan Zhou [Thu, 30 Apr 2015 06:53:14 +0000 (14:53 +0800)]
Make the number machines to be reserved configurable

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoMerge pull request #478 from ceph/nuke-updates
Zack Cerza [Thu, 30 Apr 2015 16:37:37 +0000 (10:37 -0600)]
Merge pull request #478 from ceph/nuke-updates

Don't assert status==up when using internal.check_lock.

10 years agoDon't assert status==up when using internal.check_lock. 478/head
Andrew Schoen [Wed, 29 Apr 2015 15:43:52 +0000 (11:43 -0400)]
Don't assert status==up when using internal.check_lock.

Add a check_up kwarg to check_lock so that we can optionally skip
checking to see if a node is up before nuking it. This still allows
scheduled teuthology jobs to make sure they didn't lock a downed node.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoCall add_remotes() before connect()
Zack Cerza [Tue, 28 Apr 2015 20:48:16 +0000 (14:48 -0600)]
Call add_remotes() before connect()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRun context manager exit if enter fails
Zack Cerza [Tue, 28 Apr 2015 19:26:27 +0000 (13:26 -0600)]
Run context manager exit if enter fails

In run_tasks(), we were waiting until a context manager's __enter__()
finished before adding it to the stack. As a result, if __enter__()
failed, __exit__() would never be called.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #477 from ceph/wip-11491
Zack Cerza [Tue, 28 Apr 2015 16:27:45 +0000 (10:27 -0600)]
Merge pull request #477 from ceph/wip-11491

include E9 errors for flake8 runs in tox.ini

10 years agoinclude E9 errors for flake8 runs in tox.ini 477/head
Alfredo Deza [Tue, 28 Apr 2015 16:16:46 +0000 (12:16 -0400)]
include E9 errors for flake8 runs in tox.ini

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
10 years agoFix broken string
Zack Cerza [Tue, 28 Apr 2015 01:12:37 +0000 (19:12 -0600)]
Fix broken string

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #476 from ceph/wip-11474
Andrew Schoen [Mon, 27 Apr 2015 21:58:34 +0000 (16:58 -0500)]
Merge pull request #476 from ceph/wip-11474

Log more output in need_to_install_distro()

10 years agoAdd fetch_repo() and use it
Zack Cerza [Wed, 22 Apr 2015 22:13:58 +0000 (16:13 -0600)]
Add fetch_repo() and use it

Abstracts the copy-pasta codepath used by fetch_qa_suite() and
fetch_teuthology() into a function usable by both, and also usable to
fetch arbitrary repos. Provides branch selection, optional locking and
retry, and an optional bootstrap callback.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix CommandFailedError when node is None
Zack Cerza [Wed, 22 Apr 2015 21:50:27 +0000 (15:50 -0600)]
Fix CommandFailedError when node is None

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix filter_hosts() when no filters are specified
Zack Cerza [Mon, 27 Apr 2015 21:54:24 +0000 (15:54 -0600)]
Fix filter_hosts() when no filters are specified

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #475 from ceph/wip-newtasks
Andrew Schoen [Mon, 27 Apr 2015 20:30:02 +0000 (15:30 -0500)]
Merge pull request #475 from ceph/wip-newtasks

New-style tasks