]>
git.apps.os.sepia.ceph.com Git - teuthology.git/log
Dan Mick [Tue, 9 Dec 2014 23:43:34 +0000 (15:43 -0800)]
teuthology/suite: log correct per-job description
Add 'description' to the items tracked in 'jobs_to_schedule'.
Make it a dict for somewhat clearer item extraction in the actual
scheduling loop.
Also fix an unrelated pep8 formatting error.
Fixes: #10283
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Zack Cerza [Tue, 9 Dec 2014 01:18:45 +0000 (18:18 -0700)]
Re-store improvised owner value
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 9 Dec 2014 01:18:00 +0000 (18:18 -0700)]
Correctly handle explicit None values
With test.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 8 Dec 2014 23:37:56 +0000 (16:37 -0700)]
Merge pull request #322 from ceph/wip-fix-update-hang
Fix update hang.
Zack Cerza [Mon, 8 Dec 2014 21:14:22 +0000 (14:14 -0700)]
Merge pull request #382 from andrewschoen/doc-tweaks
Doc tweaks
Andrew Schoen [Mon, 8 Dec 2014 19:09:22 +0000 (13:09 -0600)]
added autogenerated rst files from sphinx-apidoc in .gitignore
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 8 Dec 2014 18:49:48 +0000 (12:49 -0600)]
add a reference so we can link installation and setup from readme
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Mon, 8 Dec 2014 18:40:07 +0000 (11:40 -0700)]
Merge pull request #370 from andrewschoen/docopt-run
refactor of teuthology.run
Andrew Schoen [Mon, 8 Dec 2014 16:59:12 +0000 (10:59 -0600)]
fixing some docs
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 3 Dec 2014 18:35:32 +0000 (12:35 -0600)]
Replaced the TeuthologyConfig instance in FakeNamespace with a dict, all the tasks expect that to be a dict
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 2 Dec 2014 22:57:03 +0000 (16:57 -0600)]
Fixed a bug where I wasn't setting machine_type correctly. Also, made
local variables for each of the keys in args to help readability.
Wrote tests for teuthology.run.main. Coverage increased to 94%
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 2 Dec 2014 21:27:09 +0000 (15:27 -0600)]
modified __getattr__ for FakeNamespace so that it raises AttributeError on a missing attr. This allows a FakeNamespace instance to work correctly with getattr(). Also removed .get() from YamlConfig as we decided it was unnecessary
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Tue, 2 Dec 2014 16:40:25 +0000 (10:40 -0600)]
simple documentation update
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 26 Nov 2014 15:44:23 +0000 (09:44 -0600)]
Various bug fixes while running tests on this branch in the octo lab.
Made YamlConfig work more closely like a dictionary by extending
collections.MutableMapping. It still needs some work to be able to be
used interchangeably with a dict - most noteably with yaml.safe_dump.
Decided to just use a dict instead of JobConfig for args['<config>'].
Too many other codepaths are assuming that config is a dict.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 24 Nov 2014 23:01:33 +0000 (17:01 -0600)]
Ports the teuthology.run command to docopt instead of argparse.
This is a pretty massive refactor to make the code more testable as
well. The coverage on teuthology.run was increased from 0% to 86% and
the overall project coverage increased to 24%.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 24 Nov 2014 18:16:51 +0000 (12:16 -0600)]
Creates a merge_configs function in teuthology.misc that will be used
by run and schedule, nuke will need this eventually as well. The old
way of doing this was too tightly coupled with argparse. Wrote some
tests around the new function; increased coverage on misc by 4%.
Random lint fixes as well.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 21 Nov 2014 17:58:58 +0000 (11:58 -0600)]
Adds a FakeNamespace object to teuthology.config that mimics
what an argparse Namespace looks like when teuthology.misc.read_config
is used on it. This allows us to refactor our commands to use docopt
but still all all the tasks to be passed one big namespace.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 20 Nov 2014 20:53:14 +0000 (14:53 -0600)]
port the argument parsing for teuthology.run to docopt
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Sandon Van Ness [Fri, 5 Dec 2014 19:18:54 +0000 (11:18 -0800)]
Minor change for distro kernel bug.
forgot to break from the loop. I guess I was mainly testing git
kernels and not distro when I did this before.
Signed-off-by: Sandon Van Ness <sandon@redhat.com>
Zack Cerza [Fri, 5 Dec 2014 00:10:06 +0000 (17:10 -0700)]
Merge pull request #380 from ceph/wip-kernel-fixes-rebase
Various bug-fixes with kernel installs.
Sandon Van Ness [Thu, 4 Dec 2014 23:23:35 +0000 (15:23 -0800)]
Various bug-fixes with kernel installs.
Fixed a typo causing grub list to not incrament and other issues
with finding a reliable uname string via inspecting RPM directly.
Signed-off-by: Sandon Van Ness <sandon@redhat.com>
Zack Cerza [Thu, 4 Dec 2014 22:56:29 +0000 (15:56 -0700)]
Merge pull request #378 from ceph/wip-opsys
Add OS.codename
Zack Cerza [Thu, 4 Dec 2014 22:31:08 +0000 (15:31 -0700)]
Merge pull request #379 from andrewschoen/worker-tests
increases test coverage on teuthology.worker
Andrew Schoen [Thu, 4 Dec 2014 21:30:25 +0000 (15:30 -0600)]
adds 50% test coverage to teuthology.worker without any changes to teuthology.worker itself
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Thu, 4 Dec 2014 20:55:42 +0000 (13:55 -0700)]
Add OS.codename
The codename can be reliably set by parsing
platform.linux_distribution() or lsb_release -a. We now default to
trying the former first.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Thu, 4 Dec 2014 20:03:24 +0000 (13:03 -0700)]
Merge pull request #375 from ceph/wip-dmick
A bunch of little fixes found during addition of calamari_nosetest task
Zack Cerza [Thu, 4 Dec 2014 20:02:46 +0000 (13:02 -0700)]
Merge pull request #376 from ceph/wip-sha-compare-fix
kernel: fix commit hash matching in need_to_install()
Zack Cerza [Thu, 4 Dec 2014 20:01:53 +0000 (13:01 -0700)]
Merge pull request #377 from ceph/wip-kill-fixes
Two minor teuthology-kill fixes
Ilya Dryomov [Wed, 3 Dec 2014 10:47:09 +0000 (13:47 +0300)]
No need to invoke teuthology-nuke if there is nothing to nuke
Slipped in with
26803da18d1b ("Rewrite portions of teuthology.kill").
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Ilya Dryomov [Wed, 3 Dec 2014 10:10:17 +0000 (13:10 +0300)]
Don't fetch owner info from job_info when --owner given
Commit
293c2bd49c0d ("Be more informative if owner info is missing")
introduced --owner but it is still pulled from job_info no matter what.
Fix it.
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Ilya Dryomov [Thu, 4 Dec 2014 06:49:56 +0000 (09:49 +0300)]
kernel: fix commit hash matching in need_to_install()
We don't need to install a new kernel if the "want" (version) commit
hash and the "have" (cur_sha1) commit hash match but the former is
shorter than the latter.
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Dan Mick [Wed, 3 Dec 2014 03:38:53 +0000 (19:38 -0800)]
misc.append_lines_to_file: respect sudo
Fixes: #10239
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Wed, 3 Dec 2014 03:21:16 +0000 (19:21 -0800)]
misc.create_file: if sudo, must sudo for chmod as well.
Fixes: #10238
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Wed, 3 Dec 2014 03:07:01 +0000 (19:07 -0800)]
misc.get_system_type(): fix distro=False version=True, add comments
Fixes: #10237
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Wed, 3 Dec 2014 03:06:33 +0000 (19:06 -0800)]
orchestra/run.py: document use of Raw()
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Wed, 3 Dec 2014 23:41:13 +0000 (15:41 -0800)]
packaging.py: Use misc.get_system_type()
Dump _get_relmap() and _RELEASE_MAP in favor of common code.
Also remove the repo management stuff; it was only used by the
now-obsolete calamari task.
Fixes: #10236
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Wed, 3 Dec 2014 23:39:42 +0000 (15:39 -0800)]
Remove obsolete calamari task
Fixes: #10235
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Thu, 20 Nov 2014 02:08:12 +0000 (18:08 -0800)]
packaging.py: import misc as misc, not teuthology
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Zack Cerza [Wed, 3 Dec 2014 20:47:30 +0000 (13:47 -0700)]
Merge pull request #374 from andrewschoen/orchestra-test
test improvements
Andrew Schoen [Wed, 3 Dec 2014 20:26:34 +0000 (14:26 -0600)]
moved all the cluster.write_file tests into their own class; rewrote the existing test to have one assertion per test case
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Wed, 3 Dec 2014 20:19:35 +0000 (13:19 -0700)]
Merge pull request #373 from andrewschoen/orchestra-test
added a test for teuthology.orchestra.cluster.write_file
Zack Cerza [Wed, 3 Dec 2014 20:12:14 +0000 (13:12 -0700)]
Refuse to schedule against missing suite branches
Signed-off-by: Zack Cerza <zack@redhat.com>
Andrew Schoen [Wed, 3 Dec 2014 19:16:23 +0000 (13:16 -0600)]
removed fudge and unneeded asserts
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 3 Dec 2014 19:06:30 +0000 (13:06 -0600)]
added a test for teuthology.orchestra.cluster.write_file
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Wed, 3 Dec 2014 18:20:56 +0000 (12:20 -0600)]
Merge pull request #372 from ceph/wip-10034-wusui
Added calamari-server
Zack Cerza [Wed, 3 Dec 2014 17:37:13 +0000 (10:37 -0700)]
Merge pull request #366 from dachary/wip-10170-write-file
fix Cluster::write_file extra argument & support owner
Warren Usui [Wed, 3 Dec 2014 17:16:02 +0000 (09:16 -0800)]
Added calamari-server
Calamari-server has been added to the list of installed packages
to be removed. Also added salt-common and salt-minion to the list
of rpms to be removed.
Fixes #10034
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Zack Cerza [Tue, 2 Dec 2014 22:12:19 +0000 (15:12 -0700)]
Merge pull request #371 from ceph/docs
Add autogenerated API docs to Sphinx output
Zack Cerza [Tue, 2 Dec 2014 21:57:44 +0000 (14:57 -0700)]
Add autogenerated API docs to Sphinx output
Also drop -W for now. We'll have to focus on PEP-257 stuff later.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 2 Dec 2014 21:07:45 +0000 (14:07 -0700)]
Merge pull request #369 from ceph/docs
Add lab setup docs
Zack Cerza [Tue, 2 Dec 2014 16:03:53 +0000 (09:03 -0700)]
Reorganize documentation and Sphinx files
This should allow a more consistent experience between reading
Sphinx-generated HTML docs and just using GitHub's renderer.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 1 Dec 2014 21:15:02 +0000 (14:15 -0700)]
Add docs to tox envlist
So PRs don't break documentation
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 1 Dec 2014 21:11:46 +0000 (14:11 -0700)]
Remove fancy source file handling
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 1 Dec 2014 21:01:25 +0000 (14:01 -0700)]
Add stub source files linking to canonical documents
Now we can drop the Makefile magic.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 25 Nov 2014 22:32:57 +0000 (15:32 -0700)]
Merge pull request #360 from andrewschoen/docopt-ls
port teuthology-ls to use docopt instead of argparse
Andrew Schoen [Tue, 25 Nov 2014 22:22:20 +0000 (16:22 -0600)]
adding tests for teuthology.ls, coverage now at 88%
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Tue, 25 Nov 2014 22:09:56 +0000 (15:09 -0700)]
Add LAB_SETUP.rst to Sphinx build
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 25 Nov 2014 21:44:30 +0000 (14:44 -0700)]
Add reference configs
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 25 Nov 2014 21:44:07 +0000 (14:44 -0700)]
Add lab setup doc
Signed-off-by: Zack Cerza <zack@redhat.com>
Andrew Schoen [Mon, 17 Nov 2014 22:46:16 +0000 (16:46 -0600)]
port teuthology-ls to use docopt instead of argparse
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Mon, 24 Nov 2014 20:51:43 +0000 (13:51 -0700)]
Check individual jobs for packages
Previously we were just checking one time per run to see if packages had
been built. Now, let's check each job since os_type values can differ.
Fail if any are missing. Results are cached to avoid hugging the
archive to death.
Signed-off-by: Zack Cerza <zack@redhat.com>
Sage Weil [Mon, 24 Nov 2014 20:51:07 +0000 (12:51 -0800)]
Revert "ceph.conf: filestore fiemap = true"
This reverts commit
0f97481ce44e0487ac6cffa051a05590f907a081 .
Until we fix #10166
Sage Weil [Mon, 24 Nov 2014 18:23:59 +0000 (10:23 -0800)]
Merge pull request #367 from ceph/wip-rgw-swift
swift: set full access to subusers creation
Yehuda Sadeh [Mon, 24 Nov 2014 17:59:30 +0000 (09:59 -0800)]
swift: set full access to subusers creation
Default subuser permissions are 'none'.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Loic Dachary [Sat, 22 Nov 2014 13:51:56 +0000 (14:51 +0100)]
cluster: add owner argument to write_file
The misc.sudo_write_file now supports the optional owner argument, add
support for it.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Sat, 22 Nov 2014 13:48:28 +0000 (14:48 +0100)]
cluster: remove extra write_file argument
http://tracker.ceph.com/issues/10170 Fixes: #10170
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Warren Usui [Fri, 21 Nov 2014 00:59:00 +0000 (16:59 -0800)]
Merge pull request #365 from ceph/wip-kill-pid-check
Verify running pid before passing it to be killed.
Sandon Van Ness [Fri, 21 Nov 2014 00:52:05 +0000 (16:52 -0800)]
Verify running pid before passing it to be killed.
So we don't kill other processes that have taken jobs pid since
job has been no longer running.
Signed-off-by: Sandon Van Ness <sandon@redhat.com>
Sage Weil [Fri, 21 Nov 2014 00:20:20 +0000 (16:20 -0800)]
ceph.conf: filestore fiemap = true
Signed-off-by: Sage Weil <sage@redhat.com>
Zack Cerza [Thu, 20 Nov 2014 22:28:05 +0000 (15:28 -0700)]
Merge pull request #364 from ceph/wip-scheduling
Fix / work around gitbuilder problems
Zack Cerza [Fri, 14 Nov 2014 20:32:25 +0000 (13:32 -0700)]
Choose SHA1 sums more intelligently
By checking the actual gitbuilder archive that we care about, if
--distro is passed. If it is not, tweak the default to 'rhel' instead of
'ubuntu' since that seems to produce better results. To be clear, this
is a workaround I'm putting in place since our gitbuilders never seem to
be in sync.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Wed, 19 Nov 2014 20:48:19 +0000 (13:48 -0700)]
More useful logging when unlocking single nodes
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Fri, 14 Nov 2014 21:51:19 +0000 (14:51 -0700)]
Mention test name when failing to schedule
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Fri, 14 Nov 2014 21:37:40 +0000 (14:37 -0700)]
Add a default results_sending_email
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Wed, 19 Nov 2014 17:53:57 +0000 (10:53 -0700)]
Merge pull request #363 from ceph/wip-10089
drop default os_type of 'ubuntu' in teuthology-suite
Zack Cerza [Tue, 18 Nov 2014 23:19:11 +0000 (16:19 -0700)]
Drop null values in placeholders
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 18 Nov 2014 23:45:46 +0000 (16:45 -0700)]
Merge pull request #358 from andrewschoen/docopt-porting
porting teuthology-coverage to docopt
Andrew Schoen [Mon, 17 Nov 2014 17:33:52 +0000 (11:33 -0600)]
added a simple test for teuthology.coverage.main
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 17 Nov 2014 17:33:52 +0000 (11:33 -0600)]
added a simple test for teuthology.coverage.main
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Mon, 17 Nov 2014 16:14:36 +0000 (10:14 -0600)]
refactored teuthology.coverage to use an dict from docopt instead of a namespace from argparse
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Fri, 14 Nov 2014 20:31:17 +0000 (13:31 -0700)]
Drop ubuntu as default distro for scheduled runs
Signed-off-by: Zack Cerza <zack@cerza.org>
Andrew Schoen [Fri, 14 Nov 2014 16:07:18 +0000 (10:07 -0600)]
added a test to make sure docopt was parsing things correctly for teuthology-coverage
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 13 Nov 2014 21:24:41 +0000 (15:24 -0600)]
cleaning up usage for teuthology-coverage
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 13 Nov 2014 20:33:32 +0000 (14:33 -0600)]
porting teuthology-coverage to docopt
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Sage Weil [Thu, 13 Nov 2014 16:23:58 +0000 (08:23 -0800)]
ceph.conf: mon pg warn max object skew = 0 (disable warning)
Make the 'too few pgs' warnings go away from qa runs.
Signed-off-by: Sage Weil <sage@redhat.com>
Zack Cerza [Wed, 12 Nov 2014 21:43:30 +0000 (14:43 -0700)]
Merge pull request #357 from andrewschoen/tox-integration-tests
Moves all integration tests to an integration folder and provides a new ...
Zack Cerza [Wed, 12 Nov 2014 21:30:55 +0000 (14:30 -0700)]
Merge pull request #356 from ceph/wip-default-machine-type
Allow setting default machine_type per-lab
Andrew Schoen [Wed, 12 Nov 2014 21:21:27 +0000 (15:21 -0600)]
Moves all integration tests to an integration folder and provides a new tox env to run only those tests
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Wed, 12 Nov 2014 20:46:01 +0000 (13:46 -0700)]
Allow setting default machine_type per-lab
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Wed, 12 Nov 2014 20:20:46 +0000 (13:20 -0700)]
Merge pull request #355 from ceph/wip-email
teuthology_results: add --dry-run
Zack Cerza [Tue, 11 Nov 2014 18:26:54 +0000 (11:26 -0700)]
If timeout is None or zero, don't log
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 11 Nov 2014 17:41:14 +0000 (10:41 -0700)]
Add dry-run option
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 11 Nov 2014 17:36:29 +0000 (10:36 -0700)]
Use docopt instead of argparse
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 11 Nov 2014 17:07:08 +0000 (10:07 -0700)]
Use new config API
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 11 Nov 2014 23:20:36 +0000 (16:20 -0700)]
Merge pull request #354 from andrewschoen/tox-cov-report
Adds a coverage report when running the tox tests
Andrew Schoen [Tue, 11 Nov 2014 22:10:27 +0000 (16:10 -0600)]
Adds a coverage report when running the tox tests
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Zack Cerza [Fri, 7 Nov 2014 17:17:08 +0000 (10:17 -0700)]
Merge pull request #351 from ceph/wip-9925-wusui
Allow more strings in filters
Zack Cerza [Fri, 7 Nov 2014 17:13:50 +0000 (10:13 -0700)]
Mention hostnames in ConnectionLostErrors
Signed-off-by: Zack Cerza <zack@cerza.org>
Warren Usui [Fri, 7 Nov 2014 00:31:04 +0000 (16:31 -0800)]
More suite filter changes.
Comment change, and update help message to reflect the ability to
use a comma separated list as a filter.
Zack Cerza [Thu, 6 Nov 2014 20:22:12 +0000 (13:22 -0700)]
Merge pull request #352 from ceph/wip-update-vm-hostkeys
Continue fix for 9871