]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
9 years agoSpeed up test_wait_*
Zack Cerza [Wed, 25 May 2016 23:12:53 +0000 (17:12 -0600)]
Speed up test_wait_*

They weren't patching sleep(). Now they do :)

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRemove unused get_gitbuilder_url()
Zack Cerza [Wed, 25 May 2016 16:28:07 +0000 (10:28 -0600)]
Remove unused get_gitbuilder_url()

Its functionality is covered by config.baseurl_template anyway.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agosuite: Use GitbuilderProject for more methods
Zack Cerza [Sat, 21 May 2016 00:21:11 +0000 (18:21 -0600)]
suite: Use GitbuilderProject for more methods

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd OS.__eq__()
Zack Cerza [Sat, 21 May 2016 00:16:10 +0000 (18:16 -0600)]
Add OS.__eq__()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agopackaging: Don't hardcode arch
Zack Cerza [Fri, 20 May 2016 23:18:22 +0000 (17:18 -0600)]
packaging: Don't hardcode arch

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agosuite: Use opsys and packaging modules
Zack Cerza [Fri, 20 May 2016 23:10:41 +0000 (17:10 -0600)]
suite: Use opsys and packaging modules

Starting with get_distro_defaults()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agopackaging: Drop GitbuilderProject._get_codename()
Zack Cerza [Fri, 20 May 2016 23:06:07 +0000 (17:06 -0600)]
packaging: Drop GitbuilderProject._get_codename()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agopackaging: Fix GBP._get_distro() for fedora
Zack Cerza [Fri, 20 May 2016 23:03:20 +0000 (17:03 -0600)]
packaging: Fix GBP._get_distro() for fedora

Gitbuilders use URLs like:
http://gitbuilder.ceph.com/ceph-rpm-fedora20-x86_64-basic/ref/hammer/sha1
Not:
http://gitbuilder.ceph.com/ceph-rpm-fc20-x86_64-basic/ref/hammer/sha1

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoOS: Don't raise if a codename isn't found
Zack Cerza [Fri, 20 May 2016 22:56:54 +0000 (16:56 -0600)]
OS: Don't raise if a codename isn't found

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoOS: Add more codenames
Zack Cerza [Fri, 20 May 2016 22:56:03 +0000 (16:56 -0600)]
OS: Add more codenames

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agopackaging: Mark three methods as static/class
Zack Cerza [Fri, 20 May 2016 22:44:56 +0000 (16:44 -0600)]
packaging: Mark three methods as static/class

... methods

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agopackaging: use OS's new codename discovery
Zack Cerza [Fri, 20 May 2016 22:39:47 +0000 (16:39 -0600)]
packaging: use OS's new codename discovery

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoOS: Automatically determine version or codename
Zack Cerza [Fri, 20 May 2016 21:54:00 +0000 (15:54 -0600)]
OS: Automatically determine version or codename

... using a lookup table to map one to the other

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMove constants to opsys module
Zack Cerza [Fri, 20 May 2016 21:42:18 +0000 (15:42 -0600)]
Move constants to opsys module

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #867 from ceph/wip-16049
Dan Mick [Tue, 31 May 2016 17:43:54 +0000 (10:43 -0700)]
Merge pull request #867 from ceph/wip-16049

pcp: Don't fail a job if graph downloading fails

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agopcp: Don't fail a job if graph downloading fails 867/head
Zack Cerza [Tue, 31 May 2016 15:54:34 +0000 (09:54 -0600)]
pcp: Don't fail a job if graph downloading fails

http://tracker.ceph.com/issues/16049
Fixes: 16049
Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoFix abbreviated TestPCPTask.test_end()
Zack Cerza [Tue, 31 May 2016 15:45:32 +0000 (09:45 -0600)]
Fix abbreviated TestPCPTask.test_end()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #866 from ceph/wip-suite-not-found
Zack Cerza [Tue, 31 May 2016 17:20:43 +0000 (11:20 -0600)]
Merge pull request #866 from ceph/wip-suite-not-found

Give a better error message for "suite not found"

9 years agotest_describe_tests: remove 'manual test stubs' 866/head
Dan Mick [Fri, 27 May 2016 22:11:30 +0000 (15:11 -0700)]
test_describe_tests: remove 'manual test stubs'

Use a combined strategy: for test classes, use setup
to manage the list of patchers, also starting them
in setup because all the class-based tests use the same
fake fs data.

For the file-scope test functions, use @patch to manage them,
because the filesystem data changes with each test.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agotest_suite: recode to use patch.start()
Dan Mick [Wed, 25 May 2016 17:25:21 +0000 (10:25 -0700)]
test_suite: recode to use patch.start()

This lets us do all the setup/teardown in an organized way,
in class instance methods, so the test cases don't have to
deal with the mock arguments; all they do is pass the
fake_fs to start_patchers to get the right fake_fs data for
their particular test.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agosuite: update tests to handle new 'exists' fs operator
Dan Mick [Fri, 26 Feb 2016 02:08:52 +0000 (18:08 -0800)]
suite: update tests to handle new 'exists' fs operator

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agosuite.py: tell you that the suite you asked for doesn't exist
Dan Mick [Wed, 17 Feb 2016 02:54:29 +0000 (18:54 -0800)]
suite.py: tell you that the suite you asked for doesn't exist

I know it's not in fashion to issue useful error messages, but...

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #865 from ceph/wip-13925
Dan Mick [Thu, 26 May 2016 17:12:34 +0000 (10:12 -0700)]
Merge pull request #865 from ceph/wip-13925

Prevent workers from becoming zombies when repo operations fail

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoWhen bootstrap/fetch fails, mark the job as dead 865/head
Zack Cerza [Tue, 24 May 2016 23:33:21 +0000 (17:33 -0600)]
When bootstrap/fetch fails, mark the job as dead

Note that this will only happen *after* all retries have failed.

http://tracker.ceph.com/issues/13925
Fixes: 13925
Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMove MaxWhileTries to the exceptions module
Zack Cerza [Tue, 24 May 2016 23:12:23 +0000 (17:12 -0600)]
Move MaxWhileTries to the exceptions module

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd a test for issue 13925
Zack Cerza [Tue, 24 May 2016 22:51:05 +0000 (16:51 -0600)]
Add a test for issue 13925

It will fail - the next commit fixes it.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd a test for the worker's main loop
Zack Cerza [Tue, 24 May 2016 16:34:49 +0000 (10:34 -0600)]
Add a test for the worker's main loop

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMove job preparation to new prep_job method
Zack Cerza [Thu, 19 May 2016 16:22:37 +0000 (10:22 -0600)]
Move job preparation to new prep_job method

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #863 from dmick/wip-suite-sha1
Zack Cerza [Tue, 24 May 2016 17:30:27 +0000 (11:30 -0600)]
Merge pull request #863 from dmick/wip-suite-sha1

suite.py: allow specifying ceph sha1

9 years agotest_suite: add new ceph_sha1 param, tests for same 863/head
Dan Mick [Mon, 23 May 2016 22:56:05 +0000 (15:56 -0700)]
test_suite: add new ceph_sha1 param, tests for same

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agosuite: add '--sha1/S' to specify Ceph sha1 directly
Dan Mick [Mon, 23 May 2016 22:51:57 +0000 (15:51 -0700)]
suite: add '--sha1/S' to specify Ceph sha1 directly

Check that sha1 exists in the git repo if supplied.  Avoid
checking that branch exists if sha1 is given (but keep it
because other things use branchname...job names,
pulpito, etc.)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoAdd a unit test for a nonexistent ceph branch
Zack Cerza [Wed, 18 May 2016 23:02:28 +0000 (17:02 -0600)]
Add a unit test for a nonexistent ceph branch

This test checks whether scheduling fails when an invalid ceph branch is
specified

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd SkipJob
Zack Cerza [Thu, 19 May 2016 16:22:23 +0000 (10:22 -0600)]
Add SkipJob

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoStore job.jid as job_id
Zack Cerza [Thu, 19 May 2016 16:09:14 +0000 (10:09 -0600)]
Store job.jid as job_id

This is a trivial commit to prepare for a refactor

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #860 from ceph/wip-pcp
Dan Mick [Mon, 23 May 2016 23:53:32 +0000 (16:53 -0700)]
Merge pull request #860 from ceph/wip-pcp

Add PCP task

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoAdd PCP task 860/head
Zack Cerza [Tue, 19 Apr 2016 18:44:33 +0000 (12:44 -0600)]
Add PCP task

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #862 from ceph/wip-15427
Dan Mick [Fri, 20 May 2016 20:55:07 +0000 (13:55 -0700)]
Merge pull request #862 from ceph/wip-15427

Remote: log file sizes before transferring

9 years agoRemote._sftp_get_file(): Log file size 862/head
Zack Cerza [Wed, 18 May 2016 15:32:47 +0000 (09:32 -0600)]
Remote._sftp_get_file(): Log file size

This is so that jobs transferring large files don't get mistaken for
being hung.

Fixes: http://tracker.ceph.com/issues/15427
Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd Remote._format_size()
Zack Cerza [Wed, 18 May 2016 15:27:36 +0000 (09:27 -0600)]
Add Remote._format_size()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd Remote._sftp_get_size()
Zack Cerza [Wed, 18 May 2016 15:05:04 +0000 (09:05 -0600)]
Add Remote._sftp_get_size()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd missing unit test for Remote._sftp_open_file
Zack Cerza [Wed, 18 May 2016 17:38:25 +0000 (11:38 -0600)]
Add missing unit test for Remote._sftp_open_file

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRewrite unit tests for orchestra.remote
Zack Cerza [Wed, 18 May 2016 16:33:03 +0000 (10:33 -0600)]
Rewrite unit tests for orchestra.remote

They were using Fudge. Rather than write more Fudge tests, I decided to
rewrite the module to use Mock like almost everything else in teuthology
does.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #861 from smithfarm/wip-opensuse-codename
Zack Cerza [Mon, 16 May 2016 14:49:49 +0000 (08:49 -0600)]
Merge pull request #861 from smithfarm/wip-opensuse-codename

packaging.py: make _get_distro() support openSUSE

9 years agoMerge pull request #859 from ceph/wip-15862
John Spray [Mon, 16 May 2016 13:19:36 +0000 (08:19 -0500)]
Merge pull request #859 from ceph/wip-15862

task/hadoop: fix for multi cluster is_type() change

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agopackaging.py: make _get_distro() support openSUSE 861/head
Nathan Cutler [Sat, 14 May 2016 13:32:04 +0000 (15:32 +0200)]
packaging.py: make _get_distro() support openSUSE

Add an explicit "elif" block for opensuse - without this, it falls through into
the else clause and dies because it cannot determine a codename.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoAdd run.Raw.__eq__()
Zack Cerza [Tue, 10 May 2016 15:28:10 +0000 (09:28 -0600)]
Add run.Raw.__eq__()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agotask/hadoop: fix for multi cluster is_type() change 859/head
Josh Durgin [Fri, 13 May 2016 04:43:44 +0000 (21:43 -0700)]
task/hadoop: fix for multi cluster is_type() change

This is the only non-ceph task that uses custom roles, and it happens
to put a '.' as a delimiter between hadoop and the rest of the
role. Since the multi-cluster branch, is_type() is ceph-specific and
interprets this as a cluster named hadoop.

To avoid needing to change several branches in ceph-qa-suite, just use
a local is_hadoop_type() function instead of relying on the now
ceph-specific misc.is_type().

Fixes: http://tracker.ceph.com/issues/15862
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #841 from ceph/wip-multi-cluster
Zack Cerza [Mon, 9 May 2016 22:18:57 +0000 (16:18 -0600)]
Merge pull request #841 from ceph/wip-multi-cluster

support multiple ceph clusters

9 years agoMerge pull request #855 from dmick/wip-dependencies
Zack Cerza [Fri, 6 May 2016 21:36:52 +0000 (15:36 -0600)]
Merge pull request #855 from dmick/wip-dependencies

bootstrap: Use mariadb-devel on RHEL for mysql-devel; remove mysqlclient dependency

9 years agomysqlclient is not needed; MySQLdb-python is for teuthology-coverage 855/head
Dan Mick [Mon, 2 May 2016 19:58:09 +0000 (12:58 -0700)]
mysqlclient is not needed; MySQLdb-python is for teuthology-coverage

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoUse the appropriate package name for mysql/mariadb
Dan Mick [Sat, 30 Apr 2016 00:23:03 +0000 (17:23 -0700)]
Use the appropriate package name for mysql/mariadb

Community package download isn't necessary; RHEL ships
mariadb and its -devel package

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #854 from ceph/wip-15711
Gregory Farnum [Tue, 3 May 2016 20:46:33 +0000 (13:46 -0700)]
Merge pull request #854 from ceph/wip-15711

Always mention name and sha1 when scheduling fails

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoAlways mention name and sha1 when scheduling fails 854/head
Zack Cerza [Tue, 3 May 2016 20:21:41 +0000 (14:21 -0600)]
Always mention name and sha1 when scheduling fails

http://tracker.ceph.com/issues/15711
Fixes: 15711
Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #832 from ceph/wip-fix-nuke
Zack Cerza [Tue, 3 May 2016 18:19:42 +0000 (12:19 -0600)]
Merge pull request #832 from ceph/wip-fix-nuke

 fix nuke

9 years agoMerge pull request #851 from ceph/wip-prune-mon
Dan Mick [Tue, 3 May 2016 17:52:38 +0000 (10:52 -0700)]
Merge pull request #851 from ceph/wip-prune-mon

prune: also remove mon data in jobs' 'data' subdir

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoMerge pull request #853 from ceph/wip-pcp2
Sage Weil [Tue, 3 May 2016 12:28:07 +0000 (08:28 -0400)]
Merge pull request #853 from ceph/wip-pcp2

task/selinux: another pcp whitelist

Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agotask/selinux: another pcp whitelist 853/head
Sage Weil [Tue, 3 May 2016 03:08:40 +0000 (23:08 -0400)]
task/selinux: another pcp whitelist

SELinux denials found on ubuntu@smithi027.front.sepia.ceph.com: ['type=AVC msg=audit(1462234212.274:85266): avc: denied { read } for pid=1984 comm="pmcd" name="pmlogger_daily.pid" dev="tmpfs" ino=1474542 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:cron_var_run_t:s0 tclass=file']

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #852 from ceph/wip-pcp-selinux
Sage Weil [Mon, 2 May 2016 19:34:05 +0000 (15:34 -0400)]
Merge pull request #852 from ceph/wip-pcp-selinux

task.selinux: add PCP's pmlogger to the whitelist

9 years agotask.selinux: add PCP's pmlogger to the whitelist 852/head
Zack Cerza [Mon, 2 May 2016 19:20:57 +0000 (13:20 -0600)]
task.selinux: add PCP's pmlogger to the whitelist

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoPrune mon data along with remote logs 851/head
Zack Cerza [Fri, 29 Apr 2016 19:21:18 +0000 (13:21 -0600)]
Prune mon data along with remote logs

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMove subdir removal logic into separate function
Zack Cerza [Fri, 29 Apr 2016 19:16:56 +0000 (13:16 -0600)]
Move subdir removal logic into separate function

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd timeout to commands 832/head
Vasu Kulkarni [Fri, 1 Apr 2016 22:00:56 +0000 (15:00 -0700)]
Add timeout to commands

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agoFix nuke, redo some cleanup functions
Vasu Kulkarni [Fri, 1 Apr 2016 21:45:08 +0000 (14:45 -0700)]
Fix nuke, redo some cleanup functions

Redo some functions, remove proc waits, Reorder functions
for better cleanup.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agoRemove ceph and its dependent packages
Vasu Kulkarni [Fri, 1 Apr 2016 20:07:51 +0000 (13:07 -0700)]
Remove ceph and its dependent packages

Remove ceph and its dependent packages using force option

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agouse timeout feature of paramiko
Vasu Kulkarni [Wed, 30 Mar 2016 21:35:02 +0000 (17:35 -0400)]
use timeout feature of paramiko

use timeout feature of paramiko when executing commands

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agoMerge pull request #836 from ceph/wip-rh-bootstrap
Zack Cerza [Fri, 29 Apr 2016 17:53:31 +0000 (11:53 -0600)]
Merge pull request #836 from ceph/wip-rh-bootstrap

Changes for bootstrap to work on RHEL

9 years agoMerge pull request #850 from ceph/wip-paramiko
Dan Mick [Fri, 29 Apr 2016 17:40:07 +0000 (10:40 -0700)]
Merge pull request #850 from ceph/wip-paramiko

Unpin paramiko

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoUnpin paramiko 850/head
Zack Cerza [Thu, 28 Apr 2016 23:18:14 +0000 (17:18 -0600)]
Unpin paramiko

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #848 from ceph/wip-filter-wusui
Yuri Weinstein [Thu, 21 Apr 2016 22:12:58 +0000 (15:12 -0700)]
Merge pull request #848 from ceph/wip-filter-wusui

Restrict filter to not scan too far up a path.

9 years agoRestrict filter to not scan too far up a path. 848/head
Warren Usui [Thu, 21 Apr 2016 18:58:01 +0000 (11:58 -0700)]
Restrict filter to not scan too far up a path.
Directory names closer to the root than /suites are not used by the filter.
Fixes: http://tracker.ceph.com/issues/15470
Signed-off-by: Warren Usui <wusui@redhat.com>
9 years agoChanges for bootstrap to work on RHEL 836/head
Vasu Kulkarni [Fri, 1 Apr 2016 18:54:37 +0000 (11:54 -0700)]
Changes for bootstrap to work on RHEL

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agoMerge pull request #846 from ceph/wip-babel
Dan Mick [Tue, 19 Apr 2016 20:54:07 +0000 (13:54 -0700)]
Merge pull request #846 from ceph/wip-babel

Work around pip dependency issue w/ nova and Babel

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoWork around pip dependency issue w/ nova and Babel 846/head
Zack Cerza [Tue, 19 Apr 2016 20:12:06 +0000 (14:12 -0600)]
Work around pip dependency issue w/ nova and Babel

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #845 from ceph/wip-vault-pass
Dan Mick [Fri, 15 Apr 2016 22:08:49 +0000 (15:08 -0700)]
Merge pull request #845 from ceph/wip-vault-pass

ansible.CephLab: touch ~/.vault_pass.txt

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoansible.CephLab: touch ~/.vault_pass.txt 845/head
Zack Cerza [Fri, 15 Apr 2016 21:52:18 +0000 (15:52 -0600)]
ansible.CephLab: touch ~/.vault_pass.txt

To avoid ansible bailing with an OSError. Normally we don't even need
the vault password for cephlab.yml.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #843 from ceph/wip-gethash
Dan Mick [Thu, 14 Apr 2016 17:26:27 +0000 (10:26 -0700)]
Merge pull request #843 from ceph/wip-gethash

teuthology-suite: Don't allow scheduling when packages are not present

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoSimplify message counting filtered jobs 843/head
Zack Cerza [Wed, 13 Apr 2016 21:33:23 +0000 (15:33 -0600)]
Simplify message counting filtered jobs

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoDon't attempt to schedule when missing packages
Zack Cerza [Wed, 13 Apr 2016 19:00:05 +0000 (13:00 -0600)]
Don't attempt to schedule when missing packages

By default, anyway. It's possible to set
config.suite_allow_missing_packages to continue stick with the old
behavior.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoget_hash() -> get_gitbuilder_hash()
Zack Cerza [Wed, 13 Apr 2016 18:43:51 +0000 (12:43 -0600)]
get_hash() -> get_gitbuilder_hash()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAlways use git_ls_remote() for ceph packages
Zack Cerza [Wed, 13 Apr 2016 18:31:04 +0000 (12:31 -0600)]
Always use git_ls_remote() for ceph packages

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agogit_ls_remote(): Add debug output and docstring
Zack Cerza [Wed, 13 Apr 2016 18:27:03 +0000 (12:27 -0600)]
git_ls_remote(): Add debug output and docstring

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #826 from dachary/wip-15236-rekey
Zack Cerza [Mon, 11 Apr 2016 22:46:10 +0000 (16:46 -0600)]
Merge pull request #826 from dachary/wip-15236-rekey

orchestra: disable re-keying to fix Key-exchange timed out

9 years agoMerge pull request #835 from dachary/wip-lock-arch
Zack Cerza [Mon, 11 Apr 2016 22:42:17 +0000 (16:42 -0600)]
Merge pull request #835 from dachary/wip-lock-arch

lock: add the --arch option

9 years agoMerge pull request #839 from ErwanAliasr1/evelu-bootstrap
Zack Cerza [Mon, 11 Apr 2016 22:38:25 +0000 (16:38 -0600)]
Merge pull request #839 from ErwanAliasr1/evelu-bootstrap

Bootstrap

9 years agoceph.conf.template: add cluster name to paths 841/head
Josh Durgin [Thu, 31 Mar 2016 06:01:37 +0000 (23:01 -0700)]
ceph.conf.template: add cluster name to paths

This is more like the defaults, and makes non-osd daemons from
multiple clusters work on the same host.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agotest_misc: fix shadowing of cluster
Josh Durgin [Fri, 25 Mar 2016 02:10:53 +0000 (19:10 -0700)]
test_misc: fix shadowing of cluster

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add cluster param to wait_until_healthy()
Josh Durgin [Thu, 17 Mar 2016 01:23:06 +0000 (18:23 -0700)]
misc: add cluster param to wait_until_healthy()

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add cluster param to wait_until_osds_up()
Josh Durgin [Thu, 17 Mar 2016 01:21:55 +0000 (18:21 -0700)]
misc: add cluster param to wait_until_osds_up()

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add cluster filter to num_instances_of_type
Josh Durgin [Thu, 17 Mar 2016 01:20:07 +0000 (18:20 -0700)]
misc: add cluster filter to num_instances_of_type

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add optional path param to create_simple_monmap()
Josh Durgin [Thu, 17 Mar 2016 01:19:14 +0000 (18:19 -0700)]
misc: add optional path param to create_simple_monmap()

This will let us provision multiple clusters in parallel by using
different names for the monmap file.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add cluster param to skeleton_config
Josh Durgin [Thu, 17 Mar 2016 00:57:47 +0000 (17:57 -0700)]
misc: add cluster param to skeleton_config

We need to consider all monitors to allocate unique ips in get_mons(),
but generate the conf file per-cluster.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add cluster-aware roles filter
Josh Durgin [Thu, 17 Mar 2016 00:46:30 +0000 (17:46 -0700)]
misc: add cluster-aware roles filter

Unlike roles_of_type, this actually returns roles. We can't change the
semantics of the existing one due to backwards compatibility
requirements for old ceph-qa-suite branches, so make a new function
and implement the old one in terms of the new more general interface.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: add optional cluster filter to is_type
Josh Durgin [Thu, 17 Mar 2016 00:09:21 +0000 (17:09 -0700)]
misc: add optional cluster filter to is_type

reimplement in terms of split_role while we're at it

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agocommon_fs_utils: use common method to extract id from role
Josh Durgin [Wed, 16 Mar 2016 06:37:20 +0000 (23:37 -0700)]
common_fs_utils: use common method to extract id from role

This works with multiple clusters too.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: pass cluster through stop_daemons_of_type()
Josh Durgin [Wed, 16 Mar 2016 06:32:21 +0000 (23:32 -0700)]
misc: pass cluster through stop_daemons_of_type()

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoorchestra/daemon: update resolve_role_list() for multi-cluster setups
Josh Durgin [Wed, 16 Mar 2016 06:09:17 +0000 (23:09 -0700)]
orchestra/daemon: update resolve_role_list() for multi-cluster setups

Add a parameter for backwards compatibility, to determine whether the
returned roles should include the cluster.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoorchestra/daemon: update simple DaemonGroup methods to handle clusters
Josh Durgin [Wed, 16 Mar 2016 06:00:48 +0000 (23:00 -0700)]
orchestra/daemon: update simple DaemonGroup methods to handle clusters

Add new kwarg parameters for cluster to stay backwards-compatible with
older ceph-qa-suite branches, and rename role arguments to type_,
since they were never full roles. Default the cluster to ceph, and
normalize role to $cluster.$type.$id internally.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: make get_mon_names() and get_first_mon() cluster-aware
Josh Durgin [Wed, 16 Mar 2016 04:36:45 +0000 (21:36 -0700)]
misc: make get_mon_names() and get_first_mon() cluster-aware

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: make all_roles_of_type cluster-aware
Josh Durgin [Tue, 15 Mar 2016 23:29:16 +0000 (16:29 -0700)]
misc: make all_roles_of_type cluster-aware

Reimplement in terms of roles_of_type to simplify it

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: make roles_of_type() cluster-aware
Josh Durgin [Tue, 15 Mar 2016 22:13:27 +0000 (15:13 -0700)]
misc: make roles_of_type() cluster-aware

Signed-off-by: Josh Durgin <jdurgin@redhat.com>