]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
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 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

10 years agoAdd unit tests for teuthology.task.Task 475/head
Zack Cerza [Thu, 23 Apr 2015 21:43:30 +0000 (15:43 -0600)]
Add unit tests for teuthology.task.Task

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd teuthology.task.Task
Zack Cerza [Tue, 21 Apr 2015 16:44:54 +0000 (10:44 -0600)]
Add teuthology.task.Task

This is intended to be a base class providing a more modern, featured,
tested foundation for tasks. It has built-in overrides, host selection,
and optional skipping of the teardown stage.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoneed_to_install_distro(): log more output 476/head
Zack Cerza [Mon, 27 Apr 2015 19:10:07 +0000 (13:10 -0600)]
need_to_install_distro(): log more output

This was another case where stdout/stderr was being supressed
needlessly. We need a bit of it for debugging purposes.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoClean up linter issues in need_to_install_distro()
Zack Cerza [Mon, 27 Apr 2015 19:02:44 +0000 (13:02 -0600)]
Clean up linter issues in need_to_install_distro()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #474 from ceph/wip-11466
Andrew Schoen [Fri, 24 Apr 2015 16:04:05 +0000 (11:04 -0500)]
Merge pull request #474 from ceph/wip-11466

Fix branch selection logic

10 years agoFix branch selection logic 474/head
Zack Cerza [Fri, 24 Apr 2015 16:01:30 +0000 (10:01 -0600)]
Fix branch selection logic

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #469 from zhouyuan/add_missing_files
Zack Cerza [Thu, 23 Apr 2015 23:31:32 +0000 (17:31 -0600)]
Merge pull request #469 from zhouyuan/add_missing_files

Adding missing files in setup.py

10 years agoMerge pull request #473 from ceph/wip-rate-limit
Dan Mick [Thu, 23 Apr 2015 23:14:05 +0000 (16:14 -0700)]
Merge pull request #473 from ceph/wip-rate-limit

Don't call get_branch_info() for master branches

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoMerge pull request #471 from dmick/master
Zack Cerza [Thu, 23 Apr 2015 23:11:10 +0000 (17:11 -0600)]
Merge pull request #471 from dmick/master

ssh_keys: save each remote's backup file name separately in a dict for u...

10 years agoDon't call get_branch_info() for master branches 473/head
Zack Cerza [Thu, 23 Apr 2015 23:05:31 +0000 (17:05 -0600)]
Don't call get_branch_info() for master branches

We're hitting the github API rate limit; if master doesn't exist we lose
anyway

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agossh_keys: save each remote's backup file name separately in a dict for undo 467/head 471/head
Dan Mick [Thu, 23 Apr 2015 21:34:56 +0000 (14:34 -0700)]
ssh_keys: save each remote's backup file name separately in a dict for undo

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #470 from ceph/wip-remote
Andrew Schoen [Thu, 23 Apr 2015 19:49:30 +0000 (14:49 -0500)]
Merge pull request #470 from ceph/wip-remote

Add timeouts to Remote connection functions

10 years agoSplit internal.connect() into two subtasks 470/head
Zack Cerza [Thu, 23 Apr 2015 16:51:54 +0000 (10:51 -0600)]
Split internal.connect() into two subtasks

One creates the ctx.cluster object; the other initiates connections

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoPass timeout value down to connection.connect()
Zack Cerza [Thu, 23 Apr 2015 16:50:58 +0000 (10:50 -0600)]
Pass timeout value down to connection.connect()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd timeout arg to connect()
Zack Cerza [Thu, 23 Apr 2015 16:21:46 +0000 (10:21 -0600)]
Add timeout arg to connect()

Default behavior is unchanged

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoDon't call Remote.connect() in Remote.__init__()
Zack Cerza [Wed, 15 Apr 2015 18:31:08 +0000 (12:31 -0600)]
Don't call Remote.connect() in Remote.__init__()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMake Remote.reconnect() retry optionally
Zack Cerza [Wed, 15 Apr 2015 18:15:44 +0000 (12:15 -0600)]
Make Remote.reconnect() retry optionally

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoProperly close connection on object deletion
Zack Cerza [Wed, 15 Apr 2015 16:58:04 +0000 (10:58 -0600)]
Properly close connection on object deletion

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdding missing files in setup.py 469/head
Yuan Zhou [Thu, 23 Apr 2015 01:37:50 +0000 (09:37 +0800)]
Adding missing files in setup.py

Some non-python scripts are missing when install.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoMerge pull request #468 from dmick/wip-ssh-keys
Zack Cerza [Tue, 21 Apr 2015 17:56:38 +0000 (11:56 -0600)]
Merge pull request #468 from dmick/wip-ssh-keys

ssh_keys: stop using sed, use saved backup of authorized_keys instead

10 years agossh_keys: stop using sed, use saved backup of authorized_keys instead 468/head
Dan Mick [Tue, 21 Apr 2015 05:18:01 +0000 (22:18 -0700)]
ssh_keys: stop using sed, use saved backup of authorized_keys instead

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #466 from ceph/wip-11426
Andrew Schoen [Mon, 20 Apr 2015 17:38:29 +0000 (12:38 -0500)]
Merge pull request #466 from ceph/wip-11426

Log stderr in get_latest_image_version_deb()

10 years agoLog stderr in get_latest_image_version_deb() 466/head
Zack Cerza [Mon, 20 Apr 2015 17:25:24 +0000 (11:25 -0600)]
Log stderr in get_latest_image_version_deb()

It was being suppressed needlessly. Also fix lots of linter issues.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #465 from ceph/kernel-koji-docs
Zack Cerza [Mon, 20 Apr 2015 16:41:34 +0000 (10:41 -0600)]
Merge pull request #465 from ceph/kernel-koji-docs

Docs for using koji in the kernel task.