]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
10 years agoAdded a 'tests' task that we can use to test teuthology features 423/head
Andrew Schoen [Fri, 30 Jan 2015 22:35:12 +0000 (16:35 -0600)]
Added a 'tests' task that we can use to test teuthology features

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd a label kwarg to run.run
Andrew Schoen [Fri, 30 Jan 2015 21:55:18 +0000 (15:55 -0600)]
Add a label kwarg to run.run

This can be used to label or annotate commands to remotes so we can
print a meaningful log message if the command fails.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMake 'branch' a tag in Sentry
Zack Cerza [Mon, 2 Feb 2015 22:34:05 +0000 (15:34 -0700)]
Make 'branch' a tag in Sentry

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd branch to Sentry info
Zack Cerza [Mon, 2 Feb 2015 20:28:40 +0000 (13:28 -0700)]
Add branch to Sentry info

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix bug in submitting Sentry events
Zack Cerza [Sat, 31 Jan 2015 01:10:06 +0000 (18:10 -0700)]
Fix bug in submitting Sentry events

It wasn't working for non-scheduled jobs

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #422 from ceph/wip-10622
Andrew Schoen [Thu, 29 Jan 2015 18:47:55 +0000 (12:47 -0600)]
Merge pull request #422 from ceph/wip-10622

If the version file is empty, complain.

10 years agoIf the version file is empty, complain. 422/head
Zack Cerza [Thu, 29 Jan 2015 16:52:24 +0000 (09:52 -0700)]
If the version file is empty, complain.

We *could* work around this, but I don't want to mask bugs in the build
system.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #420 from ceph/wip-10625
Zack Cerza [Thu, 29 Jan 2015 18:38:52 +0000 (11:38 -0700)]
Merge pull request #420 from ceph/wip-10625

deprecate support for a custom downburst config

10 years agoRemove support for a custom downburst config in teuthology.provision 420/head
Andrew Schoen [Wed, 28 Jan 2015 20:40:38 +0000 (14:40 -0600)]
Remove support for a custom downburst config in teuthology.provision

Will log a warning message if a custom downburst config is found in
ctx.config. Removes unused --downburst-conf option from teuthology-lock.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRemoved downburst config support in get_distro and get_distro_version
Andrew Schoen [Wed, 28 Jan 2015 16:12:06 +0000 (10:12 -0600)]
Removed downburst config support in get_distro and get_distro_version

We believe that nobody is using custom downburst configs anymore so
we're planning to deprecate this feature.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #421 from ceph/wip-tunables
Sage Weil [Wed, 28 Jan 2015 23:15:16 +0000 (15:15 -0800)]
Merge pull request #421 from ceph/wip-tunables

ceph.conf: mon warn on legacy tunables = false

10 years agoceph.conf: mon warn on legacy tunables = false 421/head
Sage Weil [Wed, 28 Jan 2015 23:11:51 +0000 (15:11 -0800)]
ceph.conf: mon warn on legacy tunables = false

so we can test legacy tunables

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoFix typo in libvirt.conf path
Zack Cerza [Wed, 28 Jan 2015 21:39:25 +0000 (14:39 -0700)]
Fix typo in libvirt.conf path

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd error message when SMTP server is unreachable
Zack Cerza [Wed, 28 Jan 2015 16:31:11 +0000 (09:31 -0700)]
Add error message when SMTP server is unreachable

This only happens when scheduling fails.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix typo in --machine-type flag
Zack Cerza [Tue, 27 Jan 2015 16:08:10 +0000 (09:08 -0700)]
Fix typo in --machine-type flag

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #417 from ceph/wip-10561
Zack Cerza [Mon, 26 Jan 2015 22:28:23 +0000 (15:28 -0700)]
Merge pull request #417 from ceph/wip-10561

Enable kernel installs from brew

10 years agoAdding unit test coverage to teuthology.packaging 417/head
Andrew Schoen [Mon, 26 Jan 2015 20:27:53 +0000 (14:27 -0600)]
Adding unit test coverage to teuthology.packaging

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoOnly install the kernel from koji if needed.
Andrew Schoen [Mon, 26 Jan 2015 16:23:10 +0000 (10:23 -0600)]
Only install the kernel from koji if needed.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMove koji related functions into teuthology.packaging
Andrew Schoen [Fri, 23 Jan 2015 17:26:43 +0000 (11:26 -0600)]
Move koji related functions into teuthology.packaging

We can now use these functions in other places in teuthology.

I've also made the urls for koji configurable with the
teuthology config.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoEnable kernel installs from koji
Andrew Schoen [Thu, 22 Jan 2015 16:46:08 +0000 (10:46 -0600)]
Enable kernel installs from koji

This enables a kernel to be installed from koji by putting the
following stanza under 'kernel' in your yaml config, 'koji: <build_id>'.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoDon't allow calling teuthology-nuke with no args
Zack Cerza [Mon, 26 Jan 2015 19:37:17 +0000 (12:37 -0700)]
Don't allow calling teuthology-nuke with no args

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #419 from ceph/wip-wait
Zack Cerza [Mon, 26 Jan 2015 18:33:02 +0000 (11:33 -0700)]
Merge pull request #419 from ceph/wip-wait

DaemonState: add wait()

10 years agoMerge pull request #418 from ceph/wip-10621
Zack Cerza [Mon, 26 Jan 2015 17:05:17 +0000 (10:05 -0700)]
Merge pull request #418 from ceph/wip-10621

Make teuthology-lock respect --os-type

10 years agoMake teuthology-lock respect --os-type 418/head
Andrew Schoen [Fri, 23 Jan 2015 22:21:19 +0000 (16:21 -0600)]
Make teuthology-lock respect --os-type

This fixes the regression in issue #10621

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoDaemonState: add wait() 419/head
Sage Weil [Fri, 23 Jan 2015 23:33:43 +0000 (15:33 -0800)]
DaemonState: add wait()

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #416 from ceph/wip-10610
Andrew Schoen [Fri, 23 Jan 2015 17:33:11 +0000 (11:33 -0600)]
Merge pull request #416 from ceph/wip-10610

rpm codepath cleanup

10 years agoLess hardcoding of 'ceph' project in rpm codepath 416/head
Zack Cerza [Thu, 22 Jan 2015 23:12:15 +0000 (16:12 -0700)]
Less hardcoding of 'ceph' project in rpm codepath

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoEnsure yum repo file exists before tweaking it
Zack Cerza [Thu, 22 Jan 2015 21:47:50 +0000 (14:47 -0700)]
Ensure yum repo file exists before tweaking it

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoUse yum localinstall to install ceph-release
Zack Cerza [Thu, 22 Jan 2015 21:11:14 +0000 (14:11 -0700)]
Use yum localinstall to install ceph-release

Partly, do this so that if ceph-release is already installed, we don't
get an error.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoFix regression in non-ceph project handling
Zack Cerza [Wed, 21 Jan 2015 23:23:11 +0000 (16:23 -0700)]
Fix regression in non-ceph project handling

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #413 from ceph/extras-doc-update
Zack Cerza [Wed, 21 Jan 2015 16:25:25 +0000 (09:25 -0700)]
Merge pull request #413 from ceph/extras-doc-update

Added some comments clarifying functionality in the install task.

10 years agoAdded some comments clarifying functionality in the install task. 413/head
Andrew Schoen [Wed, 21 Jan 2015 15:09:35 +0000 (09:09 -0600)]
Added some comments clarifying functionality in the install task.

I also put in a couple TODO comments for things to look at later.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAdd cephfs-java to rpm packages
Zack Cerza [Tue, 20 Jan 2015 21:24:15 +0000 (14:24 -0700)]
Add cephfs-java to rpm packages

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #411 from ceph/wip-10580
Andrew Schoen [Tue, 20 Jan 2015 17:59:08 +0000 (11:59 -0600)]
Merge pull request #411 from ceph/wip-10580

Remove duplicate package list from install task

10 years agoMerge pull request #412 from ceph/wip-10578
Andrew Schoen [Tue, 20 Jan 2015 17:40:38 +0000 (11:40 -0600)]
Merge pull request #412 from ceph/wip-10578

Change default results_timeout to 12h

10 years agoRemove unncessary 'global' declaration 411/head
Zack Cerza [Tue, 20 Jan 2015 17:36:00 +0000 (10:36 -0700)]
Remove unncessary 'global' declaration

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoChange default results_timeout to 12h 412/head
Zack Cerza [Mon, 19 Jan 2015 23:56:31 +0000 (16:56 -0700)]
Change default results_timeout to 12h

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoRemove duplicate package list from install task
Zack Cerza [Mon, 19 Jan 2015 19:27:49 +0000 (12:27 -0700)]
Remove duplicate package list from install task

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #409 from ceph/wip-10573
Zack Cerza [Mon, 19 Jan 2015 19:00:28 +0000 (12:00 -0700)]
Merge pull request #409 from ceph/wip-10573

Don't suppress stdout for most apt-get ops

10 years agoMerge pull request #410 from ceph/print-teuth-command
Zack Cerza [Mon, 19 Jan 2015 19:00:21 +0000 (12:00 -0700)]
Merge pull request #410 from ceph/print-teuth-command

Log the teuthology command being ran at the debug level

10 years agoLog the teuthology command being ran at the debug level 410/head
Andrew Schoen [Mon, 19 Jan 2015 17:09:46 +0000 (11:09 -0600)]
Log the teuthology command being ran at the debug level

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoDon't suppress stdout for most apt-get ops 409/head
Zack Cerza [Mon, 19 Jan 2015 17:16:53 +0000 (10:16 -0700)]
Don't suppress stdout for most apt-get ops

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #408 from ceph/revert-407-wip-verbose
Zack Cerza [Mon, 19 Jan 2015 17:05:17 +0000 (10:05 -0700)]
Merge pull request #408 from ceph/revert-407-wip-verbose

Revert "teuthology-suite: default -v"

10 years agoRevert "teuthology-suite: default -v" 408/head
Andrew Schoen [Mon, 19 Jan 2015 17:02:38 +0000 (11:02 -0600)]
Revert "teuthology-suite: default -v"

10 years agoMerge pull request #407 from ceph/wip-verbose
Andrew Schoen [Mon, 19 Jan 2015 15:57:33 +0000 (09:57 -0600)]
Merge pull request #407 from ceph/wip-verbose

teuthology-suite: default -v

10 years agoteuthology-suite: default -v 407/head
Sage Weil [Mon, 19 Jan 2015 15:53:17 +0000 (07:53 -0800)]
teuthology-suite: default -v

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #402 from ceph/wip-10467
Zack Cerza [Thu, 15 Jan 2015 20:30:17 +0000 (13:30 -0700)]
Merge pull request #402 from ceph/wip-10467

Schedule jobs with missing packages, but fail them quickly

10 years agoAdding some more test coverage to teuthology.suite 402/head
Andrew Schoen [Tue, 13 Jan 2015 17:14:23 +0000 (11:14 -0600)]
Adding some more test coverage to teuthology.suite

This is about a 10% increase in coverage on teuthology.suite

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoIf a job was marked 'dead' by a task, retain that status on failure
Andrew Schoen [Mon, 12 Jan 2015 21:08:46 +0000 (15:08 -0600)]
If a job was marked 'dead' by a task, retain that status on failure

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMake teuthology.suite.get_gitbuilder_host respect config.gitbuilder_host
Andrew Schoen [Mon, 12 Jan 2015 19:01:05 +0000 (13:01 -0600)]
Make teuthology.suite.get_gitbuilder_host respect config.gitbuilder_host

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoNew internal task to check packages and fail the job if any are missing
Andrew Schoen [Mon, 12 Jan 2015 17:22:11 +0000 (11:22 -0600)]
New internal task to check packages and fail the job if any are missing

Introduces a new task, internal.check_packages, that checks gitbuilder
for ceph packages for the given os_type and sha1 defined in the job
config.  If no packages are found, fail the job. This new task is ran
before any other tasks.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoAllow runs that have jobs with missing packages to schedule.
Andrew Schoen [Fri, 9 Jan 2015 19:50:11 +0000 (13:50 -0600)]
Allow runs that have jobs with missing packages to schedule.

Runs that have jobs with missing packages will now schedule successfully
instead of throwing an exception and sending an email of the failure.
However, the jobs with missing packages are tracked and printed when
--dry-run is used.

Extracted the code that did these checks from schedule_suite so that it
could be reused elsewhere. Wrote unit tests on these newly extracted functions.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoRespect gitbuilder_host in get_ceph_binary_url()
Zack Cerza [Thu, 15 Jan 2015 15:56:18 +0000 (08:56 -0700)]
Respect gitbuilder_host in get_ceph_binary_url()

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #405 from ceph/docs-interactive
Alfredo Deza [Wed, 14 Jan 2015 22:46:55 +0000 (17:46 -0500)]
Merge pull request #405 from ceph/docs-interactive

documentation updates for interactive and interactive-on-error

10 years agoAdditional information about the interative task in the README 405/head
Andrew Schoen [Wed, 14 Jan 2015 22:39:26 +0000 (16:39 -0600)]
Additional information about the interative task in the README

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agodocs update, interactive-on-error does trigger between nested tasks now
Andrew Schoen [Wed, 14 Jan 2015 22:26:10 +0000 (16:26 -0600)]
docs update, interactive-on-error does trigger between nested tasks now

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #403 from dmick/master
Andrew Schoen [Wed, 14 Jan 2015 20:05:01 +0000 (14:05 -0600)]
Merge pull request #403 from dmick/master

Two bugs: vps hostkeys and interactive-on-error multiple activation

10 years agoMerge pull request #404 from ceph/mirror
Zack Cerza [Wed, 14 Jan 2015 17:42:37 +0000 (10:42 -0700)]
Merge pull request #404 from ceph/mirror

Point yum repo at gitbuilder_host

10 years agoPoint yum repo at gitbuilder_host 404/head
Zack Cerza [Mon, 12 Jan 2015 17:56:29 +0000 (10:56 -0700)]
Point yum repo at gitbuilder_host

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agointernal.vm_setup: call ssh with -o StrictHostKeyChecking=no 403/head
Dan Mick [Tue, 13 Jan 2015 23:15:09 +0000 (15:15 -0800)]
internal.vm_setup: call ssh with -o StrictHostKeyChecking=no

If one doesn't have this configured for ssh, the call to
ssh for vps'es in vm_setup will cause a tty prompt to accept
the unknown key.

Fixes: #10530
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoReset interactive-on-error the first time it triggers
Dan Mick [Tue, 13 Jan 2015 23:11:00 +0000 (15:11 -0800)]
Reset interactive-on-error the first time it triggers

This way one only drops into the REPL once.  (It's possible
that it may be useful to configure this behavior, but I think
that's lily-gilding.)

Fixes: #10529
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoAdd librbd1 and librados2 to deb list
Zack Cerza [Mon, 12 Jan 2015 20:56:56 +0000 (13:56 -0700)]
Add librbd1 and librados2 to deb list

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoAdd librbd1 and librados2 to rpm list
Zack Cerza [Fri, 9 Jan 2015 16:51:53 +0000 (09:51 -0700)]
Add librbd1 and librados2 to rpm list

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #401 from ceph/mirror
Zack Cerza [Fri, 9 Jan 2015 17:01:45 +0000 (10:01 -0700)]
Merge pull request #401 from ceph/mirror

Respect gitbuilder_host setting in install task

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>