]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
8 years agoworker: Use suite_relpath if set 990/head
Zack Cerza [Wed, 30 Nov 2016 21:23:18 +0000 (14:23 -0700)]
worker: Use suite_relpath if set

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agorun: Use suite_relpath if set
Zack Cerza [Wed, 30 Nov 2016 21:22:10 +0000 (14:22 -0700)]
run: Use suite_relpath if set

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agosuite: add --suite-relpath option
Zack Cerza [Wed, 30 Nov 2016 21:03:52 +0000 (14:03 -0700)]
suite: add --suite-relpath option

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoworker: Use 'suite_repo' in job config if present
Zack Cerza [Wed, 30 Nov 2016 20:41:28 +0000 (13:41 -0700)]
worker: Use 'suite_repo' in job config if present

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agosuite: add --suite-repo option
Zack Cerza [Wed, 30 Nov 2016 20:58:42 +0000 (13:58 -0700)]
suite: add --suite-repo option

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agorepo_utils: Use shallow clones of git repos
Zack Cerza [Thu, 1 Dec 2016 18:17:31 +0000 (11:17 -0700)]
repo_utils: Use shallow clones of git repos

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agorepo_utils: Give cloned repos more unique names
Zack Cerza [Thu, 1 Dec 2016 18:17:20 +0000 (11:17 -0700)]
repo_utils: Give cloned repos more unique names

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #988 from ceph/wip-shaman-repo
Dan Mick [Fri, 18 Nov 2016 19:37:26 +0000 (11:37 -0800)]
Merge pull request #988 from ceph/wip-shaman-repo

ShamanProject: don't write broken repos

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agomisc: avoid a circular import with .packaging 988/head
Zack Cerza [Fri, 18 Nov 2016 18:45:14 +0000 (11:45 -0700)]
misc: avoid a circular import with .packaging

Import DEFAULT_OS_VERSION from .orchestra.opsys, where it is originally
defined.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoShamanProject: don't write broken repos
Zack Cerza [Fri, 18 Nov 2016 18:34:29 +0000 (11:34 -0700)]
ShamanProject: don't write broken repos

We saw several cases where repo file contents were actually small HTML
files containing "502 Bad Gateway" errors. This will cause ShamanProject
to raise an exception if that happens - and not write broken repo files.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #940 from ceph/wip-rh-changes
Zack Cerza [Thu, 17 Nov 2016 21:04:56 +0000 (14:04 -0700)]
Merge pull request #940 from ceph/wip-rh-changes

rh specific changes

8 years agoMerge pull request #985 from ceph/wip-shaman-kernel
Andrew Schoen [Thu, 17 Nov 2016 17:29:33 +0000 (11:29 -0600)]
Merge pull request #985 from ceph/wip-shaman-kernel

kernel task support for shaman

8 years agotask.kernel: Support fetching kernels from Shaman 985/head
Zack Cerza [Fri, 11 Nov 2016 16:05:18 +0000 (09:05 -0700)]
task.kernel: Support fetching kernels from Shaman

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd ShamanProject.scm_version
Zack Cerza [Thu, 17 Nov 2016 00:20:49 +0000 (17:20 -0700)]
Add ShamanProject.scm_version

This new property returns .['extra]['version'] from the Shaman query
result.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoRemove rh prefix from function names 940/head
Vasu Kulkarni [Wed, 16 Nov 2016 22:53:47 +0000 (14:53 -0800)]
Remove rh prefix from function names

remove rh-prefix from funciton names and
fix review comments

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agounit tests for install function
Vasu Kulkarni [Tue, 6 Sep 2016 21:07:33 +0000 (14:07 -0700)]
unit tests for install function

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agouninstall based on packages defined in downstream.yaml
Vasu Kulkarni [Tue, 15 Nov 2016 22:26:51 +0000 (14:26 -0800)]
uninstall based on packages defined in downstream.yaml

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agofunction to install debian downstream packages
Vasu Kulkarni [Tue, 15 Nov 2016 22:18:17 +0000 (14:18 -0800)]
function to install debian downstream packages

Install debian downstream packages based on packages
defined in rh/downstream.yaml defined in suites dir

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agofunction to setup debian downstream repo
Vasu Kulkarni [Tue, 15 Nov 2016 22:04:48 +0000 (14:04 -0800)]
function to setup debian downstream repo

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agouse downstream.yaml to install packages and version check
Vasu Kulkarni [Tue, 15 Nov 2016 21:55:57 +0000 (13:55 -0800)]
use downstream.yaml to install packages and version check

remove hardcoded checks instead use downstream.yaml
defined in suites dir rh/downstream.yaml
for packages and version checks

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agouse rh/downstream.yaml to define packages
Vasu Kulkarni [Tue, 15 Nov 2016 21:52:06 +0000 (13:52 -0800)]
use rh/downstream.yaml to define packages

Remove hardcoded checks, use rh/downstream.yaml
from suite dir to define packages to install

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agoMerge pull request #984 from ceph/wip-dash-m
Zack Cerza [Tue, 15 Nov 2016 23:55:58 +0000 (16:55 -0700)]
Merge pull request #984 from ceph/wip-dash-m

lock: -m alias for --machine-type

8 years agolock: -m alias for --machine-type 984/head
Sage Weil [Tue, 15 Nov 2016 19:01:04 +0000 (14:01 -0500)]
lock: -m alias for --machine-type

Just like suite.py.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #983 from ceph/wip-local-kernel-regex
Zack Cerza [Tue, 15 Nov 2016 15:52:21 +0000 (08:52 -0700)]
Merge pull request #983 from ceph/wip-local-kernel-regex

kernel: update get_sha1_from_pkg_name() regex

8 years agokernel: update get_sha1_from_pkg_name() regex 983/head
Ilya Dryomov [Mon, 14 Nov 2016 09:48:02 +0000 (10:48 +0100)]
kernel: update get_sha1_from_pkg_name() regex

ceph-build kernel packages will be named -ceph-g${SHA1:0:12}.  As the
first step towards using ceph-build, change the local package regex.
With this, I'm able to download post ceph/ceph-build#540 packages and
install them as a local deb/rpm.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #980 from jcsp/wip-python-rgw
Kefu Chai [Sun, 13 Nov 2016 04:26:11 +0000 (12:26 +0800)]
Merge pull request #980 from jcsp/wip-python-rgw

teuthology/nuke: update for python-rgw

Reviewed-by: Zack Cerza <zack@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #981 from ceph/wip-unpin-ansible
David Galloway [Fri, 11 Nov 2016 15:31:26 +0000 (10:31 -0500)]
Merge pull request #981 from ceph/wip-unpin-ansible

Revert "Pin ansible to <2.2.0"

8 years agoteuthology/nuke: update for python-rgw 980/head
John Spray [Thu, 10 Nov 2016 15:28:03 +0000 (15:28 +0000)]
teuthology/nuke: update for python-rgw

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoRevert "Pin ansible to <2.2.0" 981/head
Zack Cerza [Thu, 10 Nov 2016 18:10:33 +0000 (11:10 -0700)]
Revert "Pin ansible to <2.2.0"

This reverts commit f2576e7a719a129a3c8be603bd9993d2b1ec94f2.

We finally heeded all the deprecation warnings.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #979 from tchaikov/wip-remove-libcephfs
Kefu Chai [Thu, 10 Nov 2016 07:43:12 +0000 (15:43 +0800)]
Merge pull request #979 from tchaikov/wip-remove-libcephfs

teuthology: update nuke for libcephfs2

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoteuthology: update nuke for libcephfs2 979/head
Kefu Chai [Thu, 10 Nov 2016 07:27:39 +0000 (15:27 +0800)]
teuthology: update nuke for libcephfs2

try to remove libcephfs2 as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #974 from ceph/wip-install-subpackage
Dan Mick [Wed, 9 Nov 2016 20:01:19 +0000 (12:01 -0800)]
Merge pull request #974 from ceph/wip-install-subpackage

Make the install task a subpackage

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoShamanProject: add repo installation and removal 974/head
Zack Cerza [Tue, 8 Nov 2016 17:17:40 +0000 (10:17 -0700)]
ShamanProject: add repo installation and removal

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove repo installation to GitbuilderProject
Zack Cerza [Wed, 2 Nov 2016 22:17:32 +0000 (16:17 -0600)]
Move repo installation to GitbuilderProject

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoceph.conf: bdev debug aio = true
Sage Weil [Tue, 8 Nov 2016 15:57:50 +0000 (10:57 -0500)]
ceph.conf: bdev debug aio = true

detect aio stalls

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoAdd NoRemoteError
Zack Cerza [Wed, 2 Nov 2016 21:56:30 +0000 (15:56 -0600)]
Add NoRemoteError

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoCreate a task.install.redhat submodule
Zack Cerza [Tue, 8 Nov 2016 00:22:18 +0000 (17:22 -0700)]
Create a task.install.redhat submodule

This will hold most of the code specific to RHCS

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoCreate a task.install.deb submodule
Zack Cerza [Tue, 8 Nov 2016 00:30:05 +0000 (17:30 -0700)]
Create a task.install.deb submodule

This will hold most of the code specific to Debian-based systems

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoCreate a task.install.rpm submodule
Zack Cerza [Tue, 8 Nov 2016 00:35:39 +0000 (17:35 -0700)]
Create a task.install.rpm submodule

This will hold most of the code specific to RPM-based systems

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoCreate a task.install.util submodule
Zack Cerza [Tue, 1 Nov 2016 22:54:45 +0000 (16:54 -0600)]
Create a task.install.util submodule

This will hold miscellaneous code that doesn't need to be top-level and
isn't distro-specific

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoLinter fixes
Zack Cerza [Tue, 1 Nov 2016 23:30:36 +0000 (17:30 -0600)]
Linter fixes

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMake the install task a subpackage
Zack Cerza [Tue, 1 Nov 2016 22:52:08 +0000 (16:52 -0600)]
Make the install task a subpackage

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #977 from ceph/wip-fix-vm
David Galloway [Mon, 7 Nov 2016 17:09:44 +0000 (12:09 -0500)]
Merge pull request #977 from ceph/wip-fix-vm

Move edit_sudoers.sh to task/internal/

8 years agoMerge pull request #978 from SUSE/wip-fix-suse-user-data
Zack Cerza [Mon, 7 Nov 2016 17:00:40 +0000 (10:00 -0700)]
Merge pull request #978 from SUSE/wip-fix-suse-user-data

openstack: fix location of network script in openSUSE user-data

8 years agoopenstack: fix location of network script in openSUSE user-data 978/head
Nathan Cutler [Mon, 7 Nov 2016 16:42:47 +0000 (17:42 +0100)]
openstack: fix location of network script in openSUSE user-data

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMove edit_sudoers.sh to task/internal/ 977/head
Zack Cerza [Mon, 7 Nov 2016 16:33:00 +0000 (09:33 -0700)]
Move edit_sudoers.sh to task/internal/

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #975 from ceph/wip-install-excludes
Dan Mick [Fri, 4 Nov 2016 21:06:27 +0000 (14:06 -0700)]
Merge pull request #975 from ceph/wip-install-excludes

install: apply exclude_packages globally

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoinstall: apply exclude_packages globally 975/head
Zack Cerza [Fri, 4 Nov 2016 18:44:04 +0000 (12:44 -0600)]
install: apply exclude_packages globally

Previously, we were only applying the setting for upgrades

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agonuke: Call the check_lock function, not the module
Zack Cerza [Fri, 4 Nov 2016 15:23:19 +0000 (09:23 -0600)]
nuke: Call the check_lock function, not the module

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #823 from ceph/wip-internal
Dan Mick [Thu, 3 Nov 2016 20:09:24 +0000 (13:09 -0700)]
Merge pull request #823 from ceph/wip-internal

Task module refactoring

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoceph.conf: mon allow pool delete = true
Sage Weil [Thu, 3 Nov 2016 13:38:53 +0000 (09:38 -0400)]
ceph.conf: mon allow pool delete = true

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #973 from dmick/wip-pull-directory
Zack Cerza [Wed, 2 Nov 2016 21:08:56 +0000 (15:08 -0600)]
Merge pull request #973 from dmick/wip-pull-directory

Change pull_directory to use a remote tar streaming to the local extract

8 years agoMerge pull request #970 from ceph/wip-shaman-tags
Dan Mick [Wed, 2 Nov 2016 20:02:59 +0000 (13:02 -0700)]
Merge pull request #970 from ceph/wip-shaman-tags

ShamanProject: query tags

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoUse remote.get_tar_stream in misc.pull_directory 973/head
Dan Mick [Wed, 2 Nov 2016 04:27:13 +0000 (21:27 -0700)]
Use remote.get_tar_stream in misc.pull_directory

Avoids remote and local temp files, and subsequent read/write
thrashing of local dir.  Since some of those directories are
multiple tens or hundreds of gigabytes, the extra file load
is important.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoAdd orchestra.remote.get_tar_stream(); like get_tar but no tmpfile
Dan Mick [Wed, 2 Nov 2016 04:21:16 +0000 (21:21 -0700)]
Add orchestra.remote.get_tar_stream(); like get_tar but no tmpfile

Avoid creating a temporary file either on the remote or on the
local host; just open a connection to a remote tar and let 'er
rip.  Intended to be used by get_directory to avoid temp files
and local read/write hammering.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agomisc.pull_directory: fix misplaced log message, remove useless continue
Dan Mick [Wed, 2 Nov 2016 04:24:26 +0000 (21:24 -0700)]
misc.pull_directory: fix misplaced log message, remove useless continue

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoMove task.internal.syslog to its own module 823/head
Zack Cerza [Thu, 17 Mar 2016 21:50:39 +0000 (15:50 -0600)]
Move task.internal.syslog to its own module

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove internal.vm_setup to its own module
Zack Cerza [Thu, 17 Mar 2016 21:47:13 +0000 (15:47 -0600)]
Move internal.vm_setup to its own module

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove internal.check_lock to its own module
Zack Cerza [Thu, 17 Mar 2016 20:27:51 +0000 (14:27 -0600)]
Move internal.check_lock to its own module

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove internal.lock_machines to its own module
Zack Cerza [Thu, 17 Mar 2016 20:27:09 +0000 (14:27 -0600)]
Move internal.lock_machines to its own module

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMake the internal task a subpackage
Zack Cerza [Thu, 17 Mar 2016 16:04:20 +0000 (10:04 -0600)]
Make the internal task a subpackage

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agorun_tasks: support tasks that are subpackages
Zack Cerza [Thu, 17 Mar 2016 20:01:32 +0000 (14:01 -0600)]
run_tasks: support tasks that are subpackages

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoPin ansible to <2.2.0
Zack Cerza [Tue, 1 Nov 2016 17:15:31 +0000 (11:15 -0600)]
Pin ansible to <2.2.0

Until we fix the deprecations

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoShamanProject: translate tags to sha1s 970/head
Zack Cerza [Wed, 19 Oct 2016 21:17:19 +0000 (15:17 -0600)]
ShamanProject: translate tags to sha1s

Since Shaman doesn't want to have to know about tags, let's do the
translation from tag->sha1 ourselves using 'git ls-remote'.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #965 from ceph/wip-exiter
Dan Mick [Fri, 28 Oct 2016 17:31:31 +0000 (10:31 -0700)]
Merge pull request #965 from ceph/wip-exiter

Don't leak console-logging processes when a job is killed

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoMerge pull request #971 from ceph/wip-ceph-mgr
Zack Cerza [Thu, 20 Oct 2016 15:52:38 +0000 (09:52 -0600)]
Merge pull request #971 from ceph/wip-ceph-mgr

teuthology: update nuke for ceph-mgr

8 years agoteuthology: update nuke for ceph-mgr 971/head
John Spray [Wed, 28 Sep 2016 16:23:29 +0000 (17:23 +0100)]
teuthology: update nuke for ceph-mgr

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMove suite.util.build_git_url to repo_utils
Zack Cerza [Wed, 19 Oct 2016 21:01:12 +0000 (15:01 -0600)]
Move suite.util.build_git_url to repo_utils

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd repo_utils.ls_remote()
Zack Cerza [Wed, 19 Oct 2016 20:55:05 +0000 (14:55 -0600)]
Add repo_utils.ls_remote()

... by moving most of suite.util.git_ls_remote's code to that module.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoEnsure console loggers die when the job does 965/head
Zack Cerza [Mon, 10 Oct 2016 21:28:50 +0000 (15:28 -0600)]
Ensure console loggers die when the job does

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoUse psutil.Popen instead of subprocess.Popen
Zack Cerza [Tue, 18 Oct 2016 19:25:33 +0000 (13:25 -0600)]
Use psutil.Popen instead of subprocess.Popen

psutil.Popen is identical other than offering nice features like making
sure a PID hasn't been reused before it sends signals to it.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoRevert "ceph.conf: debug monc = 1"
Sage Weil [Wed, 19 Oct 2016 14:19:00 +0000 (10:19 -0400)]
Revert "ceph.conf: debug monc = 1"

This reverts commit 5137d3c6cfd065c69fe7e3bb570ef0fc795febcb.

8 years agoMerge pull request #967 from ceph/wip-fedora-python
Dan Mick [Mon, 17 Oct 2016 21:17:02 +0000 (14:17 -0700)]
Merge pull request #967 from ceph/wip-fedora-python

downburst: Make sure python 2 is installed on Fedora

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoMerge pull request #964 from ceph/wip-ssh-config
Zack Cerza [Mon, 17 Oct 2016 19:45:27 +0000 (13:45 -0600)]
Merge pull request #964 from ceph/wip-ssh-config

orchestra.connect: do not override user/host from ~/.ssh/config

8 years agoMake sure python 2 is installed on Fedora 967/head
Zack Cerza [Mon, 17 Oct 2016 17:21:19 +0000 (11:21 -0600)]
Make sure python 2 is installed on Fedora

We need this for ansible.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #966 from ceph/wip-archive-default
Sage Weil [Mon, 17 Oct 2016 15:24:04 +0000 (10:24 -0500)]
Merge pull request #966 from ceph/wip-archive-default

Update the default archive_base path

8 years agoUpdate the default archive_base path 966/head
Zack Cerza [Mon, 17 Oct 2016 15:17:47 +0000 (09:17 -0600)]
Update the default archive_base path

None of our labs are using /var/lib/teuthworker/archive anymore. The
incorrect default could trip up users.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoceph.conf: debug monc = 1
Sage Weil [Thu, 13 Oct 2016 14:27:42 +0000 (10:27 -0400)]
ceph.conf: debug monc = 1

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoAdd exit module
Zack Cerza [Mon, 10 Oct 2016 21:20:27 +0000 (15:20 -0600)]
Add exit module

This module contains a helper to add functions to be run when a given
signal is received. These signal handlers ought to do as little as
possible to avoid interfering with the process shutting down.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoorchestra.connect: do not override user/host from ~/.ssh/config 964/head
Dan Mick [Sat, 8 Oct 2016 05:46:04 +0000 (22:46 -0700)]
orchestra.connect: do not override user/host from ~/.ssh/config

I don't know why this was ever the case, but ignoring user@host
from the targets list just seems like a bad idea, and causes
problems, because tasks/ansible/etc. assume that the user to use
is ubuntu.  If that's not what .ssh/config says, there's just
going to be trouble...but there's no reason to pay attention
to .ssh/config there; if you really want to play tricks, edit
your target list accordingly.

Also, the original code was apparently not prepared for the
key_filename to be a list, which it apparently always is,
at least now; handle that too.

Fixes: http://tracker.ceph.com/issues/17125
Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoMerge pull request #963 from ceph/wip-rerun
Dan Mick [Thu, 6 Oct 2016 22:02:41 +0000 (15:02 -0700)]
Merge pull request #963 from ceph/wip-rerun

Add rerun capability to teuthology-suite

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agosuite: Add rerun capability 963/head
Zack Cerza [Thu, 6 Oct 2016 17:45:52 +0000 (11:45 -0600)]
suite: Add rerun capability

Using a new --rerun argument for teuthology-suite, optionally paired
with --rerun-statuses, we can now ask teuthology to re-schedule a
suite-run. The main use-case for the feature is to re-schedule only
those jobs from a given run which failed.

Fixes: #10945
http://tracker.ceph.com/issues/10945

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd ResultsReporter.get_run()
Zack Cerza [Thu, 6 Oct 2016 17:44:09 +0000 (11:44 -0600)]
Add ResultsReporter.get_run()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agosuite: parse filter args into lists sooner
Zack Cerza [Thu, 6 Oct 2016 16:50:00 +0000 (10:50 -0600)]
suite: parse filter args into lists sooner

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #951 from ceph/wip-shaman-2
Dan Mick [Tue, 4 Oct 2016 20:32:36 +0000 (13:32 -0700)]
Merge pull request #951 from ceph/wip-shaman-2

Support fetching packages from shaman instead of gitbuilder

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoceph.conf: debug auth on mon
Sage Weil [Tue, 4 Oct 2016 19:44:13 +0000 (15:44 -0400)]
ceph.conf: debug auth on mon

Tracking down an intermitted EPERM from mon... I think related to
rotating keys.

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

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoGitbuilderProject: remove 'v' from version values 951/head
Zack Cerza [Thu, 22 Sep 2016 17:41:53 +0000 (11:41 -0600)]
GitbuilderProject: remove 'v' from version values

Some version values have a leading 'v', e.g.:
http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/v10.2.0/version
is 'v10.2.0', whereas:
http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/jewel/version
is '10.2.3-0'.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoShamanProject: correct ref precedence
Zack Cerza [Wed, 21 Sep 2016 23:43:39 +0000 (17:43 -0600)]
ShamanProject: correct ref precedence

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMore properly test ref precedence for Shaman
Zack Cerza [Wed, 21 Sep 2016 23:19:44 +0000 (17:19 -0600)]
More properly test ref precedence for Shaman

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoShamanProject: split out search URI generation
Zack Cerza [Wed, 21 Sep 2016 23:18:58 +0000 (17:18 -0600)]
ShamanProject: split out search URI generation

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove logic from _get_uri_reference...
Zack Cerza [Wed, 21 Sep 2016 22:39:53 +0000 (16:39 -0600)]
Move logic from _get_uri_reference...

Into new _choose_reference() method. This is because uri_reference is
irrelevant to ShamanProject, but we still want to use the same rules for
deciding whether to search for ref/tag/branch/sha1 when more than one is
specified.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd tests for GitbuilderProject._get_uri_reference
Zack Cerza [Wed, 21 Sep 2016 22:21:52 +0000 (16:21 -0600)]
Add tests for GitbuilderProject._get_uri_reference

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoFix typo in GitbuilderProject._get_uri_reference()
Zack Cerza [Wed, 21 Sep 2016 22:11:28 +0000 (16:11 -0600)]
Fix typo in GitbuilderProject._get_uri_reference()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoGitbuilderProject: always set codename
Zack Cerza [Fri, 9 Sep 2016 16:55:49 +0000 (10:55 -0600)]
GitbuilderProject: always set codename

When a GitbuilderProject (and also ShamanProject) was being init-ed from
a Remote object, we weren't setting the codename.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agotask.install: use builder.codename for deb repos
Zack Cerza [Fri, 9 Sep 2016 16:24:20 +0000 (10:24 -0600)]
task.install: use builder.codename for deb repos

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoGitbuilderProject: don't mangle rpm versions
Zack Cerza [Thu, 8 Sep 2016 14:45:38 +0000 (08:45 -0600)]
GitbuilderProject: don't mangle rpm versions

Up until now, given a package like:
"ceph-test-11.0.0-2135.g8403c95.x86_64", we were returning "11.0.0",
which doesn't allow us to properly verify installed package versions.
Start returning the entire string provided by gitbuilder so that we can
ensure we match the value returned by packaging.get_package_version().

For .deb packages, we have always used string like:
"11.0.0-2135-g8403c95-1xenial"

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoget_package_version(): return V-R for rpm
Zack Cerza [Thu, 8 Sep 2016 14:43:08 +0000 (08:43 -0600)]
get_package_version(): return V-R for rpm

Even though strictly speaking "version" implies just the %{VERSION}
field, that is hardly ever useful on its own.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agotask.internal: use get_builder_project()
Zack Cerza [Wed, 7 Sep 2016 21:03:38 +0000 (15:03 -0600)]
task.internal: use get_builder_project()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agorun: Allow a job to override config.use_shaman
Zack Cerza [Tue, 6 Sep 2016 21:03:45 +0000 (15:03 -0600)]
run: Allow a job to override config.use_shaman

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agosuite tests: use GitbuilderProject and not ShamanProject
Zack Cerza [Tue, 6 Sep 2016 20:13:22 +0000 (14:13 -0600)]
suite tests: use GitbuilderProject and not ShamanProject

Signed-off-by: Zack Cerza <zack@redhat.com>