]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
10 years agoorchestra/daemon: add 'silent' option to signal() 587/head
Sage Weil [Tue, 4 Aug 2015 17:06:44 +0000 (13:06 -0400)]
orchestra/daemon: add 'silent' option to signal()

Default to False (not silent) to preserve existing behavior.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #586 from ceph/wip-no-minor-gitbuilder
Zack Cerza [Tue, 4 Aug 2015 15:35:30 +0000 (09:35 -0600)]
Merge pull request #586 from ceph/wip-no-minor-gitbuilder

packaging: ignore minor version numbers in gitbuilder urls

10 years agopackaging: ignore minor version numbers in gitbuilder urls 586/head
Andrew Schoen [Tue, 4 Aug 2015 14:24:07 +0000 (09:24 -0500)]
packaging: ignore minor version numbers in gitbuilder urls

We don't care about minor version numbers anymore for gitbuilder.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #580 from ceph/wip-12220
Zack Cerza [Mon, 3 Aug 2015 20:07:29 +0000 (14:07 -0600)]
Merge pull request #580 from ceph/wip-12220

Introduces teuthology.packaging.GitbuilderProject

10 years agouse packaging.DEFAULT_OS_VERSION in teuthology.misc 580/head
Andrew Schoen [Fri, 31 Jul 2015 21:14:33 +0000 (16:14 -0500)]
use packaging.DEFAULT_OS_VERSION in teuthology.misc

No need to keep two copies of this data around

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoremove the need for teuthology.misc in teuthology.packaging
Andrew Schoen [Fri, 31 Jul 2015 21:06:06 +0000 (16:06 -0500)]
remove the need for teuthology.misc in teuthology.packaging

It's best to get the package type from remote.os.package_type. This also
fixes a circular import that will allows me to import
teuthology.packaging into teuthology.misc

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoGitbuilderProject: change uri to uri_reference
Andrew Schoen [Thu, 30 Jul 2015 16:35:10 +0000 (11:35 -0500)]
GitbuilderProject: change uri to uri_reference

It is not technically a full uri, but a uri reference.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoBetter documentation for packaging.GitbuilderProject
Andrew Schoen [Thu, 30 Jul 2015 15:11:16 +0000 (10:11 -0500)]
Better documentation for packaging.GitbuilderProject

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotask.internal: use packaging.GitbuilderProject in internal.check_packages
Andrew Schoen [Wed, 22 Jul 2015 22:15:56 +0000 (17:15 -0500)]
task.internal: use packaging.GitbuilderProject in internal.check_packages

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoIntroduces packaging.GitbuilderProject
Andrew Schoen [Wed, 22 Jul 2015 21:03:11 +0000 (16:03 -0500)]
Introduces packaging.GitbuilderProject

This is a new class that can be used to interface with gitbuilder to get
information about a project.  Currently it's used primarily for version
checks and constructing the correct base url for a projects location on
gitbuilder.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agotask.install: make _get_baseurlinfo_and_dist use remote.os
Andrew Schoen [Mon, 6 Jul 2015 21:57:51 +0000 (16:57 -0500)]
task.install: make _get_baseurlinfo_and_dist use remote.os

This also adds some tests and a helper function.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #584 from ceph/wip-rest-bench
Zack Cerza [Mon, 3 Aug 2015 16:39:21 +0000 (10:39 -0600)]
Merge pull request #584 from ceph/wip-rest-bench

task/install: rest-bench has been removed

10 years agotask/install: rest-bench has been removed 584/head
Sage Weil [Mon, 3 Aug 2015 16:34:50 +0000 (12:34 -0400)]
task/install: rest-bench has been removed

Removed this tool from upstream.  Don't install (or remove) it any more!

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #500 from ceph/wip-kernel-overrides
Zack Cerza [Fri, 31 Jul 2015 19:55:08 +0000 (13:55 -0600)]
Merge pull request #500 from ceph/wip-kernel-overrides

Support overrides: in the kernel task

10 years agoMerge pull request #519 from ceph/wip-f22
Zack Cerza [Fri, 31 Jul 2015 19:21:10 +0000 (13:21 -0600)]
Merge pull request #519 from ceph/wip-f22

support fedora 22

10 years agoprovision: specify ubuntu in __init__ 519/head
Sage Weil [Fri, 31 Jul 2015 15:39:31 +0000 (11:39 -0400)]
provision: specify ubuntu in __init__

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agokernel: support overrides 500/head
Ilya Dryomov [Thu, 7 May 2015 10:55:14 +0000 (13:55 +0300)]
kernel: support overrides

This is needed for the new unmap subsuite of krbd suite.

normalize_config() config should actually copy config snippets into
new_config, otherwise popping keys from one role's snippet would also
affect other roles, potentially resulting in overrides: overriding more
than it should have.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agokernel: amend normalize_config() logic
Ilya Dryomov [Thu, 30 Jul 2015 17:42:25 +0000 (20:42 +0300)]
kernel: amend normalize_config() logic

In the case where we stamp out a config for all roles, don't take
a shortcut and stamp it out once per remote.  Instead, do it for each
role, so that the number of items in the resulting dict in this case is
equal to the number of roles and not to the number of remotes.  This is
a necessary prerequisite for override support - otherwise something
like

  kernel:
    client:
      branch: testing

  override:
    kernel:
      branch: wip-foobar

won't be deep_merged()'ed correctly if the role:remote mapping looks
like

  remote1: mon.a, osd.0, osd.1, osd2
  remote2: mds.a, client.0

because we'd have

  mon.a: branch: wip-foobar
  mds.a: branch: wip-foobar

on the override side and

  client.0: branch: testing

on the original config side.  Since those three keys don't overlap,
we'd end up with testing kernel on client.0, which is incorrect.

This doesn't result in any functional changes - validate_config()
will reduce such config as usual.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agokernel: separate version keys into a list, use constants
Ilya Dryomov [Thu, 7 May 2015 10:30:09 +0000 (13:30 +0300)]
kernel: separate version keys into a list, use constants

Use constants for config snippet and timeout defaults.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
10 years agoMerge pull request #583 from dmick/wip-howmany
Zack Cerza [Mon, 27 Jul 2015 20:27:36 +0000 (14:27 -0600)]
Merge pull request #583 from dmick/wip-howmany

Fix lock_machines, clean up file

10 years agotask/internal.py: Clean up flake8 errors 583/head
Dan Mick [Sat, 25 Jul 2015 03:59:13 +0000 (20:59 -0700)]
task/internal.py: Clean up flake8 errors

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agolock_machines: record total requested, stop only when that many locked
Dan Mick [Sat, 25 Jul 2015 03:46:14 +0000 (20:46 -0700)]
lock_machines: record total requested, stop only when that many locked

The 'requested' counter is per-loop around the while True, and changes
for partial lock successes and multiple trips around the loop.  We need to
save the original number requested to know when we're done.

Also, add a bit of logging for each trip around the loop.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agolock_machines: rename some variables
Dan Mick [Sat, 25 Jul 2015 03:42:40 +0000 (20:42 -0700)]
lock_machines: rename some variables

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #579 from ceph/wip-remove-cruft
Dan Mick [Fri, 24 Jul 2015 20:37:51 +0000 (13:37 -0700)]
Merge pull request #579 from ceph/wip-remove-cruft

Remove outdated shell scripts

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoMerge pull request #582 from ceph/wip-12462
Andrew Schoen [Fri, 24 Jul 2015 19:54:58 +0000 (14:54 -0500)]
Merge pull request #582 from ceph/wip-12462

Remove buggy error checking in lock_machines()

10 years agoRemove buggy error checking in lock_machines() 582/head
Zack Cerza [Fri, 24 Jul 2015 18:43:08 +0000 (12:43 -0600)]
Remove buggy error checking in lock_machines()

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

If lock_many() fails to create any VMs, it returns an empty dict, which
was causing an exception to be raised. The existing error reporting in
lock_many() should be adequate here.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRemove outdated shell scripts 579/head
Zack Cerza [Wed, 22 Jul 2015 21:37:37 +0000 (15:37 -0600)]
Remove outdated shell scripts

The cleanup-*.sh scripts are obsoleted by teuthology-nuke features. The
check-syntax.sh script is obsoleted by our tox configuration.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #577 from dachary/wip-ssh-keyscan-wait
Zack Cerza [Wed, 22 Jul 2015 21:34:04 +0000 (15:34 -0600)]
Merge pull request #577 from dachary/wip-ssh-keyscan-wait

ssh_keyscan_wait: blocking version of ssh_keysscan

10 years agoMerge pull request #546 from dachary/wip-stop-worker
Zack Cerza [Wed, 22 Jul 2015 21:33:17 +0000 (15:33 -0600)]
Merge pull request #546 from dachary/wip-stop-worker

add stop_worker: as a mean to shutdown the worker

10 years agoadd stop_worker: as a mean to shutdown the worker 546/head
Loic Dachary [Mon, 29 Jun 2015 14:28:48 +0000 (16:28 +0200)]
add stop_worker: as a mean to shutdown the worker

It is convenient for integration tests as a way for the worker to be
instructed to shutdown cleanly.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #534 from dachary/wip-teuthology-path
Zack Cerza [Tue, 21 Jul 2015 16:07:47 +0000 (10:07 -0600)]
Merge pull request #534 from dachary/wip-teuthology-path

implement teuthology_path similar to suite_path

10 years agoMerge pull request #578 from dachary/wip-ansible-log-decode
Andrew Schoen [Tue, 21 Jul 2015 15:27:14 +0000 (10:27 -0500)]
Merge pull request #578 from dachary/wip-ansible-log-decode

ansible: decode('utf-8', 'ignore') before logging

10 years agoansible: decode('utf-8', 'ignore') before logging 578/head
Loic Dachary [Tue, 21 Jul 2015 14:37:47 +0000 (16:37 +0200)]
ansible: decode('utf-8', 'ignore') before logging

b834dd6660a77379b2c693a36487352941a8e52d added decode('utf-8') which
breaks when a substring inadevertendly cuts in the middle of a valid
utf-8 sequence. Add the 'ignore' so the offending sequence is discarded
instead of raising an error.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #576 from dachary/wip-nuke-no-targets
Zack Cerza [Mon, 20 Jul 2015 16:25:47 +0000 (10:25 -0600)]
Merge pull request #576 from dachary/wip-nuke-no-targets

nuke: gracefully handle zero targets

10 years agoMerge pull request #575 from dachary/wip-ansible-log-decode
Zack Cerza [Mon, 20 Jul 2015 16:25:00 +0000 (10:25 -0600)]
Merge pull request #575 from dachary/wip-ansible-log-decode

ansible: decode('utf-8') before logging

10 years agossh_keyscan_wait: blocking version of ssh_keysscan 577/head
Loic Dachary [Sun, 19 Jul 2015 07:02:02 +0000 (09:02 +0200)]
ssh_keyscan_wait: blocking version of ssh_keysscan

ssh_keyscan is designed to return almost immediately if there is no
connection (the timeout is 1 second). ssh_keyscan_wait will wait up to
10 minutes and report progress every 6 seconds.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agonuke: gracefully handle zero targets 576/head
Loic Dachary [Sun, 19 Jul 2015 07:04:54 +0000 (09:04 +0200)]
nuke: gracefully handle zero targets

If nuke is called with no targets, just do nothing instead of failing
because the target element is not found in the map. This can happen if
the machine fails to be provisioned early in the process.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoansible: decode('utf-8') before logging 575/head
Your Name [Sat, 18 Jul 2015 22:03:47 +0000 (22:03 +0000)]
ansible: decode('utf-8') before logging

Otherwise it may fail if LC_ALL=C

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoimplement teuthology_path similar to suite_path 534/head
Loic Dachary [Tue, 16 Jun 2015 10:38:11 +0000 (10:38 +0000)]
implement teuthology_path similar to suite_path

In case we want to reference a local directory instead of reseting from
a clone of teuthology.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #574 from ceph/wip-9908
Dan Mick [Fri, 17 Jul 2015 23:45:25 +0000 (16:45 -0700)]
Merge pull request #574 from ceph/wip-9908

Ansible: reconnect to remotes after playbook runs

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoAnsible: reconnect to remotes after playbook runs 574/head
Zack Cerza [Fri, 17 Jul 2015 20:01:57 +0000 (14:01 -0600)]
Ansible: reconnect to remotes after playbook runs

To take advantage of the updated ssh_config shipped by the testnodes
role

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #570 from ivotron/remove-testrequires-from-setuppy
Zack Cerza [Thu, 16 Jul 2015 20:08:50 +0000 (14:08 -0600)]
Merge pull request #570 from ivotron/remove-testrequires-from-setuppy

Removes test_require from setup.py

10 years agoMerge pull request #531 from dachary/wip-keyscan
Zack Cerza [Tue, 14 Jul 2015 22:07:15 +0000 (16:07 -0600)]
Merge pull request #531 from dachary/wip-keyscan

move ssh_keyscan from lock.py to misc.py

10 years agoRemoves test_require from setup.py 570/head
Ivo Jimenez [Mon, 13 Jul 2015 20:37:43 +0000 (13:37 -0700)]
Removes test_require from setup.py

setuptools doesn't install dependencies found in tests_require, so
there's no need to have these here.

10 years agoMerge pull request #569 from ceph/wip-ansible-targets
Zack Cerza [Tue, 14 Jul 2015 16:48:45 +0000 (10:48 -0600)]
Merge pull request #569 from ceph/wip-ansible-targets

task.ansible: add nodes to a 'testnodes' group when creating a dynami…

10 years agoAllow subclasses of task.Ansible to provide an inventory group name 569/head
Andrew Schoen [Mon, 13 Jul 2015 15:47:21 +0000 (10:47 -0500)]
Allow subclasses of task.Ansible to provide an inventory group name

Subclasses of task.Ansible can now provide an inventory group name to
assign all nodes to when creating a dynamic inventory.

This PR also makes ansible.CephLab use the group 'testnodes'. Without this,
teuthology can not run the testnodes.yml playbook against it's locked nodes
using a dynamic inventory as it's restricted to the testnodes group.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #571 from ceph/wip-update-deps
Andrew Schoen [Tue, 14 Jul 2015 16:45:40 +0000 (11:45 -0500)]
Merge pull request #571 from ceph/wip-update-deps

Fix dependency handling and unit tests

10 years agotox: Pass --upgrade to pip install 571/head
Zack Cerza [Tue, 14 Jul 2015 16:29:27 +0000 (10:29 -0600)]
tox: Pass --upgrade to pip install

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix broken downburst unit tests
Zack Cerza [Tue, 14 Jul 2015 15:59:32 +0000 (09:59 -0600)]
Fix broken downburst unit tests

These were passing because we were calling Mock.assert_called_once(),
which never existed. In new versions of mock, that is an error -
exposing those tests which were not doing their job.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoPass --upgrade to pip install
Zack Cerza [Tue, 14 Jul 2015 15:19:58 +0000 (09:19 -0600)]
Pass --upgrade to pip install

This should tell pip to use the latest version of packages (taking
pinning into account) - so that we can install newer versions of
packages that happen to be installed system-wide. This won't affect
libvirt-python as it is omitted from our list of requirements.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUnpin six version
Zack Cerza [Mon, 13 Jul 2015 22:12:20 +0000 (16:12 -0600)]
Unpin six version

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRevert "Revert "lock.py: is_vpm should test is_vm""
Zack Cerza [Mon, 13 Jul 2015 16:56:29 +0000 (10:56 -0600)]
Revert "Revert "lock.py: is_vpm should test is_vm""

This reverts commit 097e11c04a40e013e91a7a64836c98413af6a71a.

I misidentified this as the commit which introduced a bug on Friday.
Reintroduce the original, innocent commit.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRevert "Allows other users besides ubuntu"
Zack Cerza [Fri, 10 Jul 2015 18:52:27 +0000 (12:52 -0600)]
Revert "Allows other users besides ubuntu"

This reverts commit 8ba655af8d78722b70a3615561e9bcfa9c5f8cc2.

This broke misc.canonicalize_hostname()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRevert "lock.py: is_vpm should test is_vm"
Zack Cerza [Fri, 10 Jul 2015 18:28:06 +0000 (12:28 -0600)]
Revert "lock.py: is_vpm should test is_vm"

This reverts commit be9aa8a6cfe6c3d182ba640ceadf1b3a2ff93d53.

is_vm() is passing 'user@host' instead of just 'host'

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #557 from dachary/wip-is-vm
Zack Cerza [Fri, 10 Jul 2015 15:20:00 +0000 (09:20 -0600)]
Merge pull request #557 from dachary/wip-is-vm

lock.py: is_vpm should test is_vm

10 years agoMerge pull request #563 from ivotron/wip-10086
Dan Mick [Fri, 10 Jul 2015 00:25:00 +0000 (17:25 -0700)]
Merge pull request #563 from ivotron/wip-10086

Allows other users besides ubuntu

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoMerge pull request #565 from ivotron/dss-fix
Dan Mick [Fri, 10 Jul 2015 00:20:49 +0000 (17:20 -0700)]
Merge pull request #565 from ivotron/dss-fix

Fixing small typo

Reviewed-by: Dan Mick <dmick@redhat.com
10 years agoAllows other users besides ubuntu 563/head
Ivo Jimenez [Wed, 8 Jul 2015 00:57:02 +0000 (17:57 -0700)]
Allows other users besides ubuntu

Hostname canonicalization using split() instead of RE.

Extends the semantics of canonicalization/decanonicalization routines so
that other user names can be specified. 'ubuntu' is still the default
but if other users are given on the 'targets' config option, those will
be used instead.

10 years agoError message change to match what config expects 565/head
Ivo Jimenez [Thu, 9 Jul 2015 00:52:13 +0000 (17:52 -0700)]
Error message change to match what config expects

10 years agoMerge pull request #561 from ivotron/wip-12226
Dan Mick [Wed, 8 Jul 2015 21:30:16 +0000 (14:30 -0700)]
Merge pull request #561 from ivotron/wip-12226

Ensures that task list is a python list

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Zack Cerza <zcerza@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #564 from ceph/wip-jessie
Dan Mick [Wed, 8 Jul 2015 18:40:03 +0000 (11:40 -0700)]
Merge pull request #564 from ceph/wip-jessie

lock: add debian 8.0 (jessie) as vps target

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoEnsures that task list is a python list 561/head
Ivo Jimenez [Tue, 7 Jul 2015 19:38:06 +0000 (12:38 -0700)]
Ensures that task list is a python list

  * Modifies test for task list validation
  * Shows contents of config['tasks'] for error msg
  * Properly checks distinct failure conditions
  * Fixes typo on kernel task AssertionError

10 years agolock: add debian 8.0 (jessie) as vps target 564/head
Sage Weil [Wed, 8 Jul 2015 14:22:09 +0000 (10:22 -0400)]
lock: add debian 8.0 (jessie) as vps target

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #562 from ceph/wip-vps-kernel
Dan Mick [Wed, 8 Jul 2015 00:13:32 +0000 (17:13 -0700)]
Merge pull request #562 from ceph/wip-vps-kernel

get_latest_image_version_deb(): run apt-get update

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoget_latest_image_version_deb(): run apt-get update 562/head
Zack Cerza [Tue, 7 Jul 2015 22:42:05 +0000 (16:42 -0600)]
get_latest_image_version_deb(): run apt-get update

When we were still using Chef, we accidentally ran it twice on downburst
VMs during scheduled jobs: once before the kernel task, and once after.
Now that we're using Ansible, and not running the one before, and
because the kernel task is special and runs before most tasks (even the
ansible task that might be part of the job), the kernel task might run
before apt has refreshed its cache. This is more likely to be a problem
on VMs, because their cache is certainly more stale, but could affect
physical hosts as well.

Make all deb-based systems update their cache before attempting to
install a kernel.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #530 from dachary/wip-sh-helper
Zack Cerza [Tue, 7 Jul 2015 21:48:11 +0000 (15:48 -0600)]
Merge pull request #530 from dachary/wip-sh-helper

misc.py: sh helper to log command and output

10 years agoMerge pull request #560 from ceph/wip-drop-chef
Andrew Schoen [Tue, 7 Jul 2015 20:31:21 +0000 (15:31 -0500)]
Merge pull request #560 from ceph/wip-drop-chef

Drop Chef in favor of Ansible

10 years agoREADME.rst: Replace chef with ansible 560/head
Zack Cerza [Tue, 7 Jul 2015 20:16:43 +0000 (14:16 -0600)]
README.rst: Replace chef with ansible

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoReplace chef with ansible.cephlab in job template
Zack Cerza [Fri, 22 May 2015 00:29:43 +0000 (18:29 -0600)]
Replace chef with ansible.cephlab in job template

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse ansible.CephLab instead of chef in vm_setup()
Zack Cerza [Thu, 21 May 2015 16:19:08 +0000 (10:19 -0600)]
Use ansible.CephLab instead of chef in vm_setup()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #559 from ceph/wip-fix-ansible
Andrew Schoen [Mon, 6 Jul 2015 17:28:19 +0000 (12:28 -0500)]
Merge pull request #559 from ceph/wip-fix-ansible

Fix Task, Ansible and CephLab unittests and overrides

10 years agoFix ansible overrides 559/head
Zack Cerza [Thu, 2 Jul 2015 23:07:39 +0000 (17:07 -0600)]
Fix ansible overrides

Overrides weren't properly being looked up by name. This commit fixes
that.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix ansible unit tests
Zack Cerza [Thu, 2 Jul 2015 23:07:15 +0000 (17:07 -0600)]
Fix ansible unit tests

Long story short, the unit tests for Task, Ansible and CephLab got
inheritance all wrong. This commit fixes that.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #547 from dachary/wip-worker-verbose
Zack Cerza [Wed, 1 Jul 2015 19:33:28 +0000 (13:33 -0600)]
Merge pull request #547 from dachary/wip-worker-verbose

a worker --verbose calls run --verbose

10 years agoMerge pull request #535 from dachary/wip-vm-with-no-host
Zack Cerza [Wed, 1 Jul 2015 19:31:51 +0000 (13:31 -0600)]
Merge pull request #535 from dachary/wip-vm-with-no-host

lock.py: not all virtual machines have a dedicated host

10 years agolock.py: is_vpm should test is_vm 557/head
Loic Dachary [Wed, 1 Jul 2015 17:57:07 +0000 (19:57 +0200)]
lock.py: is_vpm should test is_vm

Testing the name of a machine to figure out if it is a virtual machine
is unreliable. Use the is_vm field of get_status instead.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agolock.py: not all virtual machines have a dedicated host 535/head
Loic Dachary [Sat, 13 Jun 2015 21:54:15 +0000 (21:54 +0000)]
lock.py: not all virtual machines have a dedicated host

Gracefully handle the case where a virtual machine has no dedicated
host. It's the case for OpenStack.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoa worker --verbose calls run --verbose 547/head
Loic Dachary [Mon, 29 Jun 2015 14:33:52 +0000 (16:33 +0200)]
a worker --verbose calls run --verbose

When a worker runs with --verbose, it also runs the jobs with --verbose.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agomisc.py: sh helper to log command and output 530/head
Loic Dachary [Sun, 14 Jun 2015 07:35:35 +0000 (09:35 +0200)]
misc.py: sh helper to log command and output

It is the same as subprocess.check_output, only it log.debug the command
being run as well as its output.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #542 from dachary/wip-list-locks
Zack Cerza [Wed, 1 Jul 2015 16:37:53 +0000 (10:37 -0600)]
Merge pull request #542 from dachary/wip-list-locks

list_locks must use 1 / 0 for True / False

10 years agoMerge pull request #545 from dachary/wip-rm-proj-list
Zack Cerza [Wed, 1 Jul 2015 16:32:46 +0000 (10:32 -0600)]
Merge pull request #545 from dachary/wip-rm-proj-list

task/install: rm {proj}.list is idempotent

10 years agoMerge pull request #541 from dachary/wip-suite-main
Zack Cerza [Wed, 1 Jul 2015 16:25:16 +0000 (10:25 -0600)]
Merge pull request #541 from dachary/wip-suite-main

suite.py: make main() argv as an argument

10 years agoMerge pull request #556 from ceph/wip-selinux
Andrew Schoen [Wed, 1 Jul 2015 15:26:01 +0000 (10:26 -0500)]
Merge pull request #556 from ceph/wip-selinux

Skip SELinux operations on downburst VMs

10 years agosyslog: Don't use chcon on downburst VMs 556/head
Zack Cerza [Wed, 1 Jul 2015 15:12:00 +0000 (09:12 -0600)]
syslog: Don't use chcon on downburst VMs

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoExclude downburst VMs
Zack Cerza [Wed, 1 Jul 2015 15:00:53 +0000 (09:00 -0600)]
Exclude downburst VMs

Their cloud images have SELinux disabled; exclude them until we can
change that.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #555 from ceph/wip-selinux
Dan Mick [Wed, 1 Jul 2015 02:26:28 +0000 (19:26 -0700)]
Merge pull request #555 from ceph/wip-selinux

syslog: Set SELinux context for logfiles

Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agosyslog: Set SELinux context for logfiles 555/head
Zack Cerza [Tue, 30 Jun 2015 23:09:33 +0000 (17:09 -0600)]
syslog: Set SELinux context for logfiles

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agosyslog: Refactor to expose logfile names
Zack Cerza [Tue, 30 Jun 2015 20:29:13 +0000 (14:29 -0600)]
syslog: Refactor to expose logfile names

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse sudo when removing timedhosts files
Zack Cerza [Tue, 30 Jun 2015 15:17:45 +0000 (09:17 -0600)]
Use sudo when removing timedhosts files

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agolist_locks must use 1 / 0 for True / False 542/head
Loic Dachary [Mon, 29 Jun 2015 13:54:08 +0000 (15:54 +0200)]
list_locks must use 1 / 0 for True / False

Depending on the backend being used (sqlite or another), paddles won't
interpret locked=false as being the same as locked=0 (see
http://tracker.ceph.com/issues/12183 for more context).

Convert True to 1 and False to 0 to always get the same behavior from
paddles, regardless of the backend.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #548 from dachary/wip-machine-wait
Zack Cerza [Mon, 29 Jun 2015 23:09:49 +0000 (17:09 -0600)]
Merge pull request #548 from dachary/wip-machine-wait

include the machine type when waiting for machines

10 years agoMerge pull request #553 from dachary/wip-schedule-main
Zack Cerza [Mon, 29 Jun 2015 23:09:24 +0000 (17:09 -0600)]
Merge pull request #553 from dachary/wip-schedule-main

schedule.py: make main() argv as an argument

10 years agoMerge pull request #549 from ceph/wip-bootstrap
Zack Cerza [Mon, 29 Jun 2015 22:41:55 +0000 (16:41 -0600)]
Merge pull request #549 from ceph/wip-bootstrap

bootstrap: apt/yum install the list of dependencies if missing

10 years agoMerge pull request #551 from dmick/master
Zack Cerza [Mon, 29 Jun 2015 22:39:50 +0000 (16:39 -0600)]
Merge pull request #551 from dmick/master

lock.py: handle statuses with no description

10 years agobootstrap: add an install flag that installs missing required packages 549/head
Andrew Schoen [Mon, 29 Jun 2015 22:28:12 +0000 (17:28 -0500)]
bootstrap: add an install flag that installs missing required packages

If you run ./bootstrap install the script will install any missing
packages needed to complete the bootstrap.  This feature requires that
the user running ./bootstrap have sudo privileges.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agobootstrap: install libssl-dev on ubuntu if missing
Andrew Schoen [Mon, 29 Jun 2015 19:27:42 +0000 (14:27 -0500)]
bootstrap: install libssl-dev on ubuntu if missing

python-pip fails to install without libssl-dev

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agobootstrap: apt/yum install the list of dependencies if missing
Andrew Schoen [Mon, 29 Jun 2015 18:24:05 +0000 (13:24 -0500)]
bootstrap: apt/yum install the list of dependencies if missing

Instead of just printing the list and bailing, assume the user has sudo
and actually install them.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #550 from ceph/wip-bz-1233329
Andrew Schoen [Mon, 29 Jun 2015 22:00:21 +0000 (17:00 -0500)]
Merge pull request #550 from ceph/wip-bz-1233329

Work around BZ 1233329

10 years agoschedule.py: make main() argv as an argument 553/head
Loic Dachary [Mon, 29 Jun 2015 13:19:26 +0000 (15:19 +0200)]
schedule.py: make main() argv as an argument

Instead of using sys.argv implicitly, which is inconvenient for testing.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agosuite.py: make main() argv as an argument 541/head
Loic Dachary [Mon, 29 Jun 2015 13:19:26 +0000 (15:19 +0200)]
suite.py: make main() argv as an argument

Instead of using sys.argv implicitly, which is inconvenient for testing.

Signed-off-by: Loic Dachary <loic@dachary.org>