]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
10 years agoUse teuthology.config for gitbuilder_host 401/head
Zack Cerza [Fri, 9 Jan 2015 16:29:06 +0000 (09:29 -0700)]
Use teuthology.config for gitbuilder_host

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd default for gitbuilder_host
Zack Cerza [Fri, 9 Jan 2015 16:28:46 +0000 (09:28 -0700)]
Add default for gitbuilder_host

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoceph.conf: change osd_map_max_advance to 10 by default
Samuel Just [Thu, 8 Jan 2015 19:25:56 +0000 (11:25 -0800)]
ceph.conf: change osd_map_max_advance to 10 by default

Signed-off-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #400 from ceph/wip-10466
Zack Cerza [Wed, 7 Jan 2015 17:51:44 +0000 (10:51 -0700)]
Merge pull request #400 from ceph/wip-10466

Add documentation for teuthology.yaml

10 years agoAdd documentation for teuthology.yaml 400/head
Zack Cerza [Tue, 6 Jan 2015 20:57:11 +0000 (13:57 -0700)]
Add documentation for teuthology.yaml

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #399 from ceph/interactive-testing
Zack Cerza [Tue, 6 Jan 2015 15:55:40 +0000 (08:55 -0700)]
Merge pull request #399 from ceph/interactive-testing

Make log messages in run_tasks.py specify when the exception occurred.

10 years agoWhen packages are not found, mention the OS
Zack Cerza [Tue, 6 Jan 2015 15:44:26 +0000 (08:44 -0700)]
When packages are not found, mention the OS

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMake log messages in run_tasks.py specify when the exception occured. 399/head
Andrew Schoen [Fri, 2 Jan 2015 15:32:33 +0000 (09:32 -0600)]
Make log messages in run_tasks.py specify when the exception occured.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoceph.conf: reduce whole-object digest update limit
Sage Weil [Mon, 29 Dec 2014 23:53:31 +0000 (15:53 -0800)]
ceph.conf: reduce whole-object digest update limit

Update these more aggressively in QA.  Let it non-zero so that
we still cover both code paths.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #346 from dachary/wip-skip-report
Zack Cerza [Tue, 23 Dec 2014 18:00:23 +0000 (11:00 -0700)]
Merge pull request #346 from dachary/wip-skip-report

report: skip if result_server is none

10 years agoMerge pull request #398 from ceph/baremetal-osversion-default
Zack Cerza [Fri, 19 Dec 2014 20:16:55 +0000 (13:16 -0700)]
Merge pull request #398 from ceph/baremetal-osversion-default

Allow os_version and os_type to be None when locking bare metal nodes.

10 years agoAdds logging that prints distro and version during vps provisioning. 398/head
Andrew Schoen [Fri, 19 Dec 2014 20:08:55 +0000 (14:08 -0600)]
Adds logging that prints distro and version during vps provisioning.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAllow os_version and os_type to be None when locking bare metal nodes.
Andrew Schoen [Fri, 19 Dec 2014 16:58:18 +0000 (10:58 -0600)]
Allow os_version and os_type to be None when locking bare metal nodes.

This fixes a bug that was defaulting os_version to 12.04 and os_type to
ubuntu when locking bare metal machines.  We don't want to default the
os_version or os_type when locking bare metal so that the locking code
can pick whichever node is available.

VPS nodes will get proper defaults in provision.create_if_vm if they
aren't explicitly defined by either the config yaml or the cli flags.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #397 from ceph/log-install-failures
Zack Cerza [Thu, 18 Dec 2014 22:54:06 +0000 (15:54 -0700)]
Merge pull request #397 from ceph/log-install-failures

When ceph-release fails to install for any reason, log it.

10 years agoWhen installing ceph-release log all install failures. 397/head
Andrew Schoen [Thu, 18 Dec 2014 22:05:46 +0000 (16:05 -0600)]
When installing ceph-release log all install failures.

This code used to make an exception for 'already installed' failures
during a ceph-relase install and not log them. Unfortunately, this also
caused all other types of errors to not log at all. With this change
remote.run will log any errors that happen during the command.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoFix yum-repo-mangling regexp
Zack Cerza [Thu, 18 Dec 2014 21:02:12 +0000 (14:02 -0700)]
Fix yum-repo-mangling regexp

It was failing to work if the branch name contained a '-'.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #396 from andrewschoen/issue-10279
Zack Cerza [Thu, 18 Dec 2014 17:06:20 +0000 (10:06 -0700)]
Merge pull request #396 from andrewschoen/issue-10279

respect --os-version and --os-type in teuthology.run

10 years agoIncluding a couple FIXME comments in misc.get_distro so we can remember 396/head
Andrew Schoen [Thu, 18 Dec 2014 15:07:23 +0000 (09:07 -0600)]
Including a couple FIXME comments in misc.get_distro so we can remember
to revisit this function later.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUse teuthology.misc.get_distro and teuthology.misc.get_distro_
Andrew Schoen [Wed, 17 Dec 2014 15:20:19 +0000 (09:20 -0600)]
Use teuthology.misc.get_distro and teuthology.misc.get_distro_
version in the internal.lock_machines task.

When the internal task wasn't using get_distro to retrieve os_type it
could set os_type to None, causing the lock to fail. This happened when
there was not an os_type defined in the config or a --os-type flag given.
Now, os_type will be properly defaulted to ubuntu when trying to lock
bare metal machines.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoFixed a couple imports that were importing teuthology.misc as
Andrew Schoen [Wed, 17 Dec 2014 15:09:10 +0000 (09:09 -0600)]
Fixed a couple imports that were importing teuthology.misc as
teuthology.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoinclude the os_type in the log message when it's invalid
Andrew Schoen [Wed, 17 Dec 2014 15:08:11 +0000 (09:08 -0600)]
include the os_type in the log message when it's invalid

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRespect --os-version and --os-type in teuthology.run.
Andrew Schoen [Tue, 16 Dec 2014 15:38:21 +0000 (09:38 -0600)]
Respect --os-version and --os-type in teuthology.run.

Remove default value of 'ubuntu' for --os-type for teuthology.run and
make sure that teuthology.misc.get_distro accounts for ctx.os_type now
defaulting to None instead of 'ubuntu'.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoFix TestResultsEmail
Zack Cerza [Wed, 17 Dec 2014 20:35:39 +0000 (13:35 -0700)]
Fix TestResultsEmail

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #391 from ceph/wip-kernel-local-rpm
Zack Cerza [Wed, 17 Dec 2014 20:02:58 +0000 (13:02 -0700)]
Merge pull request #391 from ceph/wip-kernel-local-rpm

kernel: local rpm support

10 years agokernel: update main docstring 391/head
Ilya Dryomov [Wed, 17 Dec 2014 18:08:54 +0000 (21:08 +0300)]
kernel: update main docstring

Revise examples, document local kernel package support.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agoProperly ignore site-specific lab_domain in tests
Zack Cerza [Wed, 17 Dec 2014 00:11:55 +0000 (17:11 -0700)]
Properly ignore site-specific lab_domain in tests

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMore logging in get_distro_from_downburst()
Zack Cerza [Wed, 17 Dec 2014 00:07:56 +0000 (17:07 -0700)]
More logging in get_distro_from_downburst()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #394 from ceph/wip-default-kernel
Zack Cerza [Tue, 16 Dec 2014 21:24:02 +0000 (14:24 -0700)]
Merge pull request #394 from ceph/wip-default-kernel

scripts/suite.py: change default kernel from 'testing' to '-'

10 years agokernel: add rpm: key
Ilya Dryomov [Wed, 10 Dec 2014 10:37:20 +0000 (13:37 +0300)]
kernel: add rpm: key

Add 'rpm:' key to not confuse people with stuff like

  kernel:
    deb: /path/to/foo.rpm

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: maybe_generate_initrd_rpm()
Ilya Dryomov [Wed, 10 Dec 2014 06:10:12 +0000 (09:10 +0300)]
kernel: maybe_generate_initrd_rpm()

gitbuilder and local packages may not have initrd hooks in them,
depending on how old is the kernel - an appropriate %post section was
added to upstream spec only in 3.12.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: get_latest_image_version_{rpm, deb}()
Ilya Dryomov [Wed, 10 Dec 2014 10:01:23 +0000 (13:01 +0300)]
kernel: get_latest_image_version_{rpm, deb}()

A bit of refactoring to make things more clear and align distro case
with the rest of the code.  get_version_from_pkg() is renamed to
get_latest_image_version_deb() and get_latest_image_version_rpm() is
introduced to match it.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: local rpm support
Ilya Dryomov [Tue, 9 Dec 2014 16:44:07 +0000 (19:44 +0300)]
kernel: local rpm support

install_kernel() now takes a path to a package in /tmp and can use
get_image_version() to obtain image version.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: get_image_version()
Ilya Dryomov [Tue, 9 Dec 2014 12:30:08 +0000 (15:30 +0300)]
kernel: get_image_version()

Use 'dpkg-deb -c' for debs instead of rolling our own.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: download_kernel() shouldn't install kernels
Ilya Dryomov [Tue, 9 Dec 2014 09:32:41 +0000 (12:32 +0300)]
kernel: download_kernel() shouldn't install kernels

Stop using rpm http url capabilities and download packages ourselves.
This keeps the structure the same for both rpms and debs and makes it
possible to fit in local rpm support.  Drop the "rpm already installed"
check for the same reasons.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: fix 'sha1: distro' vs per role configs
Ilya Dryomov [Mon, 8 Dec 2014 15:53:43 +0000 (18:53 +0300)]
kernel: fix 'sha1: distro' vs per role configs

We may want to setup different kernels for different roles (as long as
all roles on the same node agree on their choice), so returning as soon
as 'distro' is seen is not right.  Also, no need to use find() as
'distro' is always an exact match.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: gitbuilder_pkg_name(), remote_pkg_path()
Ilya Dryomov [Mon, 8 Dec 2014 15:07:55 +0000 (18:07 +0300)]
kernel: gitbuilder_pkg_name(), remote_pkg_path()

In preparation for local rpm support, encapsulate package naming.
Using sudo to rm copied/downloaded package is not necessary.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agoRevert "ceph.conf: ms die on skipped message = true"
Sage Weil [Sun, 14 Dec 2014 18:50:22 +0000 (10:50 -0800)]
Revert "ceph.conf: ms die on skipped message = true"

This reverts commit aa047a2806d44944399b50f2749754f47c92025f.

10 years agovalgrind: add msync suppression for el7
Sage Weil [Sun, 14 Dec 2014 17:31:02 +0000 (09:31 -0800)]
valgrind: add msync suppression for el7

already had the other distros

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge branch 'master' of github.com:ceph/teuthology
Sage Weil [Sun, 14 Dec 2014 17:28:32 +0000 (09:28 -0800)]
Merge branch 'master' of github.com:ceph/teuthology

10 years agoscripts/suite.py: remove default -k (kernel) value 394/head
Dan Mick [Sat, 13 Dec 2014 03:02:22 +0000 (19:02 -0800)]
scripts/suite.py: remove default -k (kernel) value

Note: will require current cron jobs to change to request -k testing
explicitly.  Removes current special meaning of '-k -'.

Fixes: #10304
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoRevert "respect --os-version and --os-type in teuthology.run. fixes #10279"
Andrew Schoen [Fri, 12 Dec 2014 22:29:19 +0000 (16:29 -0600)]
Revert "respect --os-version and --os-type in teuthology.run. fixes #10279"

This reverts commit 5e943bb35f74d56667dbd73da4032d0acec8fef4.

10 years agoMerge pull request #393 from ceph/wip-10260
Zack Cerza [Fri, 12 Dec 2014 20:38:31 +0000 (13:38 -0700)]
Merge pull request #393 from ceph/wip-10260

teuthology.run: conditionally add fake_ctx to teuthology.config.config

10 years agoFix broken error message
Zack Cerza [Fri, 12 Dec 2014 19:09:30 +0000 (12:09 -0700)]
Fix broken error message

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoTweak ScheduleFailError wording
Zack Cerza [Fri, 12 Dec 2014 19:09:11 +0000 (12:09 -0700)]
Tweak ScheduleFailError wording

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRemove stray 'raise'
Zack Cerza [Fri, 12 Dec 2014 18:57:05 +0000 (11:57 -0700)]
Remove stray 'raise'

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #390 from ceph/wip-nuke-stale
Zack Cerza [Fri, 12 Dec 2014 18:45:37 +0000 (11:45 -0700)]
Merge pull request #390 from ceph/wip-nuke-stale

teuthology-nuke --stale

10 years agoRemove redundant read_config() call 390/head
Zack Cerza [Thu, 11 Dec 2014 17:30:53 +0000 (10:30 -0700)]
Remove redundant read_config() call

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd teuthology-nuke --stale
Zack Cerza [Wed, 10 Dec 2014 20:18:04 +0000 (13:18 -0700)]
Add teuthology-nuke --stale

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoPort to docopt
Zack Cerza [Wed, 10 Dec 2014 20:16:23 +0000 (13:16 -0700)]
Port to docopt

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoPEP-8 fixes
Zack Cerza [Wed, 10 Dec 2014 17:05:53 +0000 (10:05 -0700)]
PEP-8 fixes

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd find_stale_locks()
Zack Cerza [Fri, 5 Dec 2014 22:57:47 +0000 (15:57 -0700)]
Add find_stale_locks()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #395 from andrewschoen/worker-waiting-status-bug
Zack Cerza [Fri, 12 Dec 2014 16:22:54 +0000 (09:22 -0700)]
Merge pull request #395 from andrewschoen/worker-waiting-status-bug

remove the status from the call to paddles from worker.py

10 years agoremove the status from the call to paddles from worker; this allows the job's updated... 395/head
Andrew Schoen [Fri, 12 Dec 2014 16:14:58 +0000 (10:14 -0600)]
remove the status from the call to paddles from worker; this allows the job's updated time to change without changing it's status. The status of the job could be either running or waiting

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoFix breakage in 6114acc
Zack Cerza [Fri, 12 Dec 2014 00:26:11 +0000 (17:26 -0700)]
Fix breakage in 6114acc

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoteuthology.run: conditionally add fake_ctx to teuthology.config.config 393/head
Dan Mick [Thu, 11 Dec 2014 22:34:07 +0000 (14:34 -0800)]
teuthology.run: conditionally add fake_ctx to teuthology.config.config

The intent here is to get the 'interactive-on-error' config value
passed down to contextutil.nested(), but it is recognized that we need
a way to share global configuration; for now, since nested() really
needs the entire ctx, we can get it out of fake_ctx.config, but there
needs to be a cleaner way as FakeNamespace is phased out.

Fixes: #10260
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoMerge pull request #387 from andrewschoen/issue-10279
Dan Mick [Fri, 12 Dec 2014 00:10:49 +0000 (16:10 -0800)]
Merge pull request #387 from andrewschoen/issue-10279

respect --os-version and --os-type in teuthology.run. fixes #10279

10 years agoMerge pull request #392 from andrewschoen/locking-status-10278
Zack Cerza [Fri, 12 Dec 2014 00:09:07 +0000 (17:09 -0700)]
Merge pull request #392 from andrewschoen/locking-status-10278

put a job into a 'waiting' status while it's locking machines

10 years agoTimeout needs to be an int
Zack Cerza [Thu, 11 Dec 2014 21:42:03 +0000 (14:42 -0700)]
Timeout needs to be an int

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoput a job into a 'waiting' status while it's locking machines 392/head
Andrew Schoen [Thu, 11 Dec 2014 19:40:51 +0000 (13:40 -0600)]
put a job into a 'waiting' status while it's locking machines

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #389 from andrewschoen/run-report-bugfix
Zack Cerza [Thu, 11 Dec 2014 18:27:10 +0000 (11:27 -0700)]
Merge pull request #389 from andrewschoen/run-report-bugfix

we need to use fake_ctx.summary when reporting the outcome of a run

10 years agokernel: get_sha1_from_pkg_name()
Ilya Dryomov [Mon, 8 Dec 2014 14:25:11 +0000 (17:25 +0300)]
kernel: get_sha1_from_pkg_name()

Move package name parsing into its own routine and make the regex more
robust:
  - match only hex chars
  - don't limit ourselves to 7 chars, match up to 40 chars
  - accept 'g' prefixed with either _ (rpm) or - (deb)

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agokernel: fix commit hash matching in need_to_install(), take 2
Ilya Dryomov [Fri, 5 Dec 2014 17:26:30 +0000 (20:26 +0300)]
kernel: fix commit hash matching in need_to_install(), take 2

Commit 10d7f9095fbb ("kernel: fix commit hash matching in
need_to_install()") switched startswith() around to accommodate
a shorter "want" version.  That however broke the opposite case: when
installing from gitbuilders "want" is actually a full 40-char hash.
Do away with starswith() and just compare substrings.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agoMerge pull request #388 from ceph/wip-10283
Dan Mick [Thu, 11 Dec 2014 00:38:16 +0000 (16:38 -0800)]
Merge pull request #388 from ceph/wip-10283

teuthology/suite: log correct per-job description

10 years agowe need to use fake_ctx.summary when reporting the outcome of a run because it gets... 389/head
Andrew Schoen [Wed, 10 Dec 2014 14:52:28 +0000 (08:52 -0600)]
we need to use fake_ctx.summary when reporting the outcome of a run because it gets modified by the tasks

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoteuthology/suite: log correct per-job description 388/head
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>
10 years agorespect --os-version and --os-type in teuthology.run. fixes #10279 387/head
Andrew Schoen [Tue, 9 Dec 2014 21:07:03 +0000 (15:07 -0600)]
respect --os-version and --os-type in teuthology.run. fixes #10279

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoDon't assume y on distro kernel reinstall...
Sandon Van Ness [Tue, 9 Dec 2014 19:58:33 +0000 (11:58 -0800)]
Don't assume y on distro kernel reinstall...

Because if its the running kernel yum will skip the current
version and install install an older package? WTF? I would not
expect such behavior from a reinstall but it is what it is...

Also skipping current running kernel output was in stderr not the
stdout so I made changes to reflect that.

Signed-off-by: Sandon Van Ness <sandon@redhat.com>
10 years agoMerge pull request #386 from andrewschoen/run-test
Zack Cerza [Tue, 9 Dec 2014 17:10:59 +0000 (10:10 -0700)]
Merge pull request #386 from andrewschoen/run-test

ensures owner and machine_type are added to fake_ctx with the correct va...

10 years agoensures owner and machine_type are added to fake_ctx with the correct values if they... 386/head
Andrew Schoen [Tue, 9 Dec 2014 16:39:34 +0000 (10:39 -0600)]
ensures owner and machine_type are added to fake_ctx with the correct values if they're missing from args

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #384 from andrewschoen/doc-tweaks
Zack Cerza [Tue, 9 Dec 2014 16:37:20 +0000 (09:37 -0700)]
Merge pull request #384 from andrewschoen/doc-tweaks

fixed broken links to worker_start.sh and create_nodes.py in the docs

10 years agoMerge pull request #383 from ceph/wip-downburst-fqdn
Zack Cerza [Tue, 9 Dec 2014 16:36:56 +0000 (09:36 -0700)]
Merge pull request #383 from ceph/wip-downburst-fqdn

Use FQDN in downburst yaml.

10 years agoMerge pull request #385 from andrewschoen/run-test
Zack Cerza [Tue, 9 Dec 2014 16:33:04 +0000 (09:33 -0700)]
Merge pull request #385 from andrewschoen/run-test

a test to make sure that fake_ctx has everything it needs in teuthology.run

10 years agowrite a test for teuthology.run that makes sure that all fields needed in fake_ctx... 385/head
Andrew Schoen [Tue, 9 Dec 2014 16:16:34 +0000 (10:16 -0600)]
write a test for teuthology.run that makes sure that all fields needed in fake_ctx for the tasks to operate are present

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agodocopt was creating a --lock) param; fix the docstring so that doesn't happen
Andrew Schoen [Tue, 9 Dec 2014 16:15:00 +0000 (10:15 -0600)]
docopt was creating a --lock) param; fix the docstring so that doesn't happen

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agofixed broken links to worker_start.sh and create_nodes.py 384/head
Andrew Schoen [Tue, 9 Dec 2014 15:05:29 +0000 (09:05 -0600)]
fixed broken links to worker_start.sh and create_nodes.py

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoUse FQDN in downburst yaml. 383/head
Sandon Van Ness [Tue, 9 Dec 2014 01:58:16 +0000 (17:58 -0800)]
Use FQDN in downburst yaml.

As newer rhel's like to default to localdomain screwing with things
if its not set. Older cloud-init/distros appear to just ignore the
domain.

Signed-off-by: Sandon Van Ness <sandon@redhat.com>
10 years agoRe-store improvised owner value
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>
10 years agoCorrectly handle explicit None values
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>
10 years agoMerge pull request #322 from ceph/wip-fix-update-hang
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.

10 years agoMerge pull request #382 from andrewschoen/doc-tweaks
Zack Cerza [Mon, 8 Dec 2014 21:14:22 +0000 (14:14 -0700)]
Merge pull request #382 from andrewschoen/doc-tweaks

Doc tweaks

10 years agoadded autogenerated rst files from sphinx-apidoc in .gitignore 382/head
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>
10 years agoadd a reference so we can link installation and setup from readme
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>
10 years agoMerge pull request #370 from andrewschoen/docopt-run
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

10 years agofixing some docs 370/head
Andrew Schoen [Mon, 8 Dec 2014 16:59:12 +0000 (10:59 -0600)]
fixing some docs

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoReplaced the TeuthologyConfig instance in FakeNamespace with a dict, all the tasks...
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>
10 years agoFixed a bug where I wasn't setting machine_type correctly. Also, made
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>
10 years agomodified __getattr__ for FakeNamespace so that it raises AttributeError on a missing...
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>
10 years agosimple documentation update
Andrew Schoen [Tue, 2 Dec 2014 16:40:25 +0000 (10:40 -0600)]
simple documentation update

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoVarious bug fixes while running tests on this branch in the octo lab.
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>
10 years agoPorts the teuthology.run command to docopt instead of argparse.
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>
10 years agoCreates a merge_configs function in teuthology.misc that will be used
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>
10 years agoAdds a FakeNamespace object to teuthology.config that mimics
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>
10 years agoport the argument parsing for teuthology.run to docopt
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>
10 years agoMinor change for distro kernel bug.
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>
10 years agoMerge pull request #380 from ceph/wip-kernel-fixes-rebase
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.

10 years agoVarious bug-fixes with kernel installs. 380/head
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>
10 years agoMerge pull request #378 from ceph/wip-opsys
Zack Cerza [Thu, 4 Dec 2014 22:56:29 +0000 (15:56 -0700)]
Merge pull request #378 from ceph/wip-opsys

Add OS.codename

10 years agoMerge pull request #379 from andrewschoen/worker-tests
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

10 years agoadds 50% test coverage to teuthology.worker without any changes to teuthology.worker... 379/head
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>
10 years agoAdd OS.codename 378/head
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>