]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
8 years agoUpdate the default archive_base path 966/head
Zack Cerza [Mon, 17 Oct 2016 15:17:47 +0000 (09:17 -0600)]
Update the default archive_base path

None of our labs are using /var/lib/teuthworker/archive anymore. The
incorrect default could trip up users.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoceph.conf: debug monc = 1
Sage Weil [Thu, 13 Oct 2016 14:27:42 +0000 (10:27 -0400)]
ceph.conf: debug monc = 1

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #963 from ceph/wip-rerun
Dan Mick [Thu, 6 Oct 2016 22:02:41 +0000 (15:02 -0700)]
Merge pull request #963 from ceph/wip-rerun

Add rerun capability to teuthology-suite

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agosuite: Add rerun capability 963/head
Zack Cerza [Thu, 6 Oct 2016 17:45:52 +0000 (11:45 -0600)]
suite: Add rerun capability

Using a new --rerun argument for teuthology-suite, optionally paired
with --rerun-statuses, we can now ask teuthology to re-schedule a
suite-run. The main use-case for the feature is to re-schedule only
those jobs from a given run which failed.

Fixes: #10945
http://tracker.ceph.com/issues/10945

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd ResultsReporter.get_run()
Zack Cerza [Thu, 6 Oct 2016 17:44:09 +0000 (11:44 -0600)]
Add ResultsReporter.get_run()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agosuite: parse filter args into lists sooner
Zack Cerza [Thu, 6 Oct 2016 16:50:00 +0000 (10:50 -0600)]
suite: parse filter args into lists sooner

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMerge pull request #951 from ceph/wip-shaman-2
Dan Mick [Tue, 4 Oct 2016 20:32:36 +0000 (13:32 -0700)]
Merge pull request #951 from ceph/wip-shaman-2

Support fetching packages from shaman instead of gitbuilder

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoceph.conf: debug auth on mon
Sage Weil [Tue, 4 Oct 2016 19:44:13 +0000 (15:44 -0400)]
ceph.conf: debug auth on mon

Tracking down an intermitted EPERM from mon... I think related to
rotating keys.

See http://tracker.ceph.com/issues/17495

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoGitbuilderProject: remove 'v' from version values 951/head
Zack Cerza [Thu, 22 Sep 2016 17:41:53 +0000 (11:41 -0600)]
GitbuilderProject: remove 'v' from version values

Some version values have a leading 'v', e.g.:
http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/v10.2.0/version
is 'v10.2.0', whereas:
http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/jewel/version
is '10.2.3-0'.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoShamanProject: correct ref precedence
Zack Cerza [Wed, 21 Sep 2016 23:43:39 +0000 (17:43 -0600)]
ShamanProject: correct ref precedence

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMore properly test ref precedence for Shaman
Zack Cerza [Wed, 21 Sep 2016 23:19:44 +0000 (17:19 -0600)]
More properly test ref precedence for Shaman

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoShamanProject: split out search URI generation
Zack Cerza [Wed, 21 Sep 2016 23:18:58 +0000 (17:18 -0600)]
ShamanProject: split out search URI generation

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove logic from _get_uri_reference...
Zack Cerza [Wed, 21 Sep 2016 22:39:53 +0000 (16:39 -0600)]
Move logic from _get_uri_reference...

Into new _choose_reference() method. This is because uri_reference is
irrelevant to ShamanProject, but we still want to use the same rules for
deciding whether to search for ref/tag/branch/sha1 when more than one is
specified.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd tests for GitbuilderProject._get_uri_reference
Zack Cerza [Wed, 21 Sep 2016 22:21:52 +0000 (16:21 -0600)]
Add tests for GitbuilderProject._get_uri_reference

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoFix typo in GitbuilderProject._get_uri_reference()
Zack Cerza [Wed, 21 Sep 2016 22:11:28 +0000 (16:11 -0600)]
Fix typo in GitbuilderProject._get_uri_reference()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoGitbuilderProject: always set codename
Zack Cerza [Fri, 9 Sep 2016 16:55:49 +0000 (10:55 -0600)]
GitbuilderProject: always set codename

When a GitbuilderProject (and also ShamanProject) was being init-ed from
a Remote object, we weren't setting the codename.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agotask.install: use builder.codename for deb repos
Zack Cerza [Fri, 9 Sep 2016 16:24:20 +0000 (10:24 -0600)]
task.install: use builder.codename for deb repos

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoGitbuilderProject: don't mangle rpm versions
Zack Cerza [Thu, 8 Sep 2016 14:45:38 +0000 (08:45 -0600)]
GitbuilderProject: don't mangle rpm versions

Up until now, given a package like:
"ceph-test-11.0.0-2135.g8403c95.x86_64", we were returning "11.0.0",
which doesn't allow us to properly verify installed package versions.
Start returning the entire string provided by gitbuilder so that we can
ensure we match the value returned by packaging.get_package_version().

For .deb packages, we have always used string like:
"11.0.0-2135-g8403c95-1xenial"

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoget_package_version(): return V-R for rpm
Zack Cerza [Thu, 8 Sep 2016 14:43:08 +0000 (08:43 -0600)]
get_package_version(): return V-R for rpm

Even though strictly speaking "version" implies just the %{VERSION}
field, that is hardly ever useful on its own.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agotask.internal: use get_builder_project()
Zack Cerza [Wed, 7 Sep 2016 21:03:38 +0000 (15:03 -0600)]
task.internal: use get_builder_project()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agorun: Allow a job to override config.use_shaman
Zack Cerza [Tue, 6 Sep 2016 21:03:45 +0000 (15:03 -0600)]
run: Allow a job to override config.use_shaman

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agosuite tests: use GitbuilderProject and not ShamanProject
Zack Cerza [Tue, 6 Sep 2016 20:13:22 +0000 (14:13 -0600)]
suite tests: use GitbuilderProject and not ShamanProject

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agotask.install: use get_builder_project()
Zack Cerza [Fri, 2 Sep 2016 23:08:22 +0000 (17:08 -0600)]
task.install: use get_builder_project()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd and use get_builder_project()
Zack Cerza [Thu, 1 Sep 2016 18:36:23 +0000 (12:36 -0600)]
Add and use get_builder_project()

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoAdd ShamanProject
Zack Cerza [Fri, 26 Aug 2016 20:31:49 +0000 (14:31 -0600)]
Add ShamanProject

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agoMove much of TestGitbuilderProject into base class
Zack Cerza [Thu, 1 Sep 2016 19:10:37 +0000 (13:10 -0600)]
Move much of TestGitbuilderProject into base class

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #960 from ceph/wip-17391
Dan Mick [Mon, 3 Oct 2016 21:03:06 +0000 (14:03 -0700)]
Merge pull request #960 from ceph/wip-17391

teuthology-nuke: lazy-unmount osd mount points

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoremove_osd_mounts(): do lazy unmounts 960/head
Zack Cerza [Tue, 27 Sep 2016 23:25:19 +0000 (17:25 -0600)]
remove_osd_mounts(): do lazy unmounts

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agonuke: Add unlock_firmware_repo()
Zack Cerza [Tue, 27 Sep 2016 23:14:36 +0000 (17:14 -0600)]
nuke: Add unlock_firmware_repo()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agonuke: move logging calls, and fix linter warnings
Zack Cerza [Tue, 27 Sep 2016 23:12:42 +0000 (17:12 -0600)]
nuke: move logging calls, and fix linter warnings

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agonuke: remove ceph data later
Zack Cerza [Tue, 27 Sep 2016 23:02:02 +0000 (17:02 -0600)]
nuke: remove ceph data later

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agovalgrind.supp: tweak
Sage Weil [Fri, 30 Sep 2016 16:09:41 +0000 (12:09 -0400)]
valgrind.supp: tweak

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #406 from ceph/wip-journal-zero
Sage Weil [Thu, 29 Sep 2016 15:47:48 +0000 (10:47 -0500)]
Merge pull request #406 from ceph/wip-journal-zero

ceph.conf: journal_zero_on_create = true

9 years agoceph.conf: journal_zero_on_create = true 406/head
Sage Weil [Thu, 15 Jan 2015 19:17:28 +0000 (11:17 -0800)]
ceph.conf: journal_zero_on_create = true

Make sure we test this code path.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agovalgrind.supp: another rocksdb leak
Sage Weil [Mon, 26 Sep 2016 22:33:25 +0000 (18:33 -0400)]
valgrind.supp: another rocksdb leak

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agovalgrind.supp: a rocksdb Env leak
Sage Weil [Mon, 26 Sep 2016 22:31:53 +0000 (18:31 -0400)]
valgrind.supp: a rocksdb Env leak

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #958 from ceph/wip-reweight-config
Kefu Chai [Mon, 26 Sep 2016 15:19:45 +0000 (23:19 +0800)]
Merge pull request #958 from ceph/wip-reweight-config

ceph.conf: set min rweight min bytes per osd = 10

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoceph.conf: set min rweight min bytes per osd = 10 958/head
Sage Weil [Mon, 26 Sep 2016 15:11:02 +0000 (11:11 -0400)]
ceph.conf: set min rweight min bytes per osd = 10

This lets the reweight-by-utilization command work even after mons are
restarted (ceph_manager is currently setting this via injectargs, but that
is not persistent).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #953 from rjfd/wip-opensuse-pr
Zack Cerza [Fri, 23 Sep 2016 15:29:17 +0000 (09:29 -0600)]
Merge pull request #953 from rjfd/wip-opensuse-pr

OpenSUSE Leap support in teuthology

9 years agoinstall: use --capability with zypper {install,remove} 953/head
Nathan Cutler [Thu, 8 Sep 2016 11:00:35 +0000 (13:00 +0200)]
install: use --capability with zypper {install,remove}

Otherwise we pick up python-ceph 0.80.9 from the distro repo instead of
a newer python-ceph-compat from the test repo.

References: https://bugzilla.opensuse.org/show_bug.cgi?id=997751
Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoinstall: opensuse: support for zypper package manager
Ricardo Dias [Mon, 27 Jun 2016 13:01:36 +0000 (14:01 +0100)]
install: opensuse: support for zypper package manager

Signed-off-by: Ricardo Dias <rdias@suse.com>
9 years agoMerge pull request #949 from dachary/wip-openstack-token-endpoint
Dan Mick [Fri, 23 Sep 2016 01:22:08 +0000 (18:22 -0700)]
Merge pull request #949 from dachary/wip-openstack-token-endpoint

openstack: use OS_AUTH_TYPE=token_endpoint when possible

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoMerge pull request #956 from ceph/wip-nodeless
Dan Mick [Wed, 21 Sep 2016 18:04:51 +0000 (11:04 -0700)]
Merge pull request #956 from ceph/wip-nodeless

Set ctx.cluster even when a job has no roles

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoSet ctx.cluster even when a job has no roles 956/head
Zack Cerza [Tue, 20 Sep 2016 16:03:46 +0000 (10:03 -0600)]
Set ctx.cluster even when a job has no roles

This is to allow for teuthology to run self-tests that don't use
resources.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #955 from ceph/wip-revert-nodeless
David Galloway [Wed, 21 Sep 2016 01:31:01 +0000 (21:31 -0400)]
Merge pull request #955 from ceph/wip-revert-nodeless

Revert "Set ctx.cluster even when a job has no roles"

9 years agoRevert "Set ctx.cluster even when a job has no roles" 955/head
Dan Mick [Wed, 21 Sep 2016 01:19:24 +0000 (18:19 -0700)]
Revert "Set ctx.cluster even when a job has no roles"

This reverts commit ffd14be3bd79baec5d9cafd8972d592085e0e099.

9 years agoMerge pull request #954 from ceph/wip-nodeless
Dan Mick [Tue, 20 Sep 2016 17:38:38 +0000 (10:38 -0700)]
Merge pull request #954 from ceph/wip-nodeless

Set ctx.cluster even when a job has no roles

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoSet ctx.cluster even when a job has no roles 954/head
Zack Cerza [Tue, 20 Sep 2016 16:03:46 +0000 (10:03 -0600)]
Set ctx.cluster even when a job has no roles

This is to allow for teuthology to run self-tests that don't use
resources.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #952 from ceph/wip-17211
Dan Mick [Wed, 14 Sep 2016 18:21:54 +0000 (11:21 -0700)]
Merge pull request #952 from ceph/wip-17211

suite.Run: include suite_sha1 in job config

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agosuite.Run: include suite_sha1 in job config 952/head
Zack Cerza [Wed, 14 Sep 2016 16:16:51 +0000 (10:16 -0600)]
suite.Run: include suite_sha1 in job config

http://tracker.ceph.com/issues/17211
Fixes: #17211
Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoLinter fixes
Zack Cerza [Wed, 14 Sep 2016 16:13:48 +0000 (10:13 -0600)]
Linter fixes

9 years agoopenstack: use OS_AUTH_TYPE=token_endpoint when possible 949/head
Loic Dachary [Fri, 2 Sep 2016 06:49:18 +0000 (08:49 +0200)]
openstack: use OS_AUTH_TYPE=token_endpoint when possible

It requires setting the OS_URL depending on the command and avoids
calling the auth endpoint entirely.

Fixes: http://tracker.ceph.com/issues/16893
Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #950 from jcsp/wip-cn-lst-err
Zack Cerza [Tue, 13 Sep 2016 21:47:28 +0000 (15:47 -0600)]
Merge pull request #950 from jcsp/wip-cn-lst-err

orchestra.run: fix generating ConnectionLostError

9 years agoorchestra.run: fix generating ConnectionLostError 950/head
John Spray [Mon, 5 Sep 2016 10:17:04 +0000 (11:17 +0100)]
orchestra.run: fix generating ConnectionLostError

Previously you could get AttributeError if
a node went away, because it tried to call
getpeername after get_transport() had
returned None.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #941 from ceph/wip-conserver
Dan Mick [Thu, 1 Sep 2016 22:11:48 +0000 (15:11 -0700)]
Merge pull request #941 from ceph/wip-conserver

Support console sessions using conserver

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoMerge pull request #947 from ceph/wip-17102
Ilya Dryomov [Thu, 1 Sep 2016 17:35:45 +0000 (19:35 +0200)]
Merge pull request #947 from ceph/wip-17102

Fix logging regression

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
9 years agocopy_to_log(): Drop use of readlines() 947/head
Zack Cerza [Thu, 1 Sep 2016 15:11:28 +0000 (09:11 -0600)]
copy_to_log(): Drop use of readlines()

http://tracker.ceph.com/issues/17102
Fixes: 17102
Calling readlines() on the source object causes the teuthology thread to
block on the remote command's execution. Instead, iterate over the
source object as advised at:
https://docs.python.org/2.7/library/stdtypes.html#file.xreadlines

This interface is also supported by StringIO and cStringIO.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd a global switch to disable conserver 941/head
Zack Cerza [Wed, 31 Aug 2016 19:44:10 +0000 (13:44 -0600)]
Add a global switch to disable conserver

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoIf conserver fails, fall back to ipmitool
Zack Cerza [Tue, 30 Aug 2016 22:26:04 +0000 (16:26 -0600)]
If conserver fails, fall back to ipmitool

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMake IPMI arguments to PhysicalConsole optional
Zack Cerza [Tue, 30 Aug 2016 22:26:39 +0000 (16:26 -0600)]
Make IPMI arguments to PhysicalConsole optional

Since we now look them up in the global configuration anyway.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd a test for has_ipmi_credentials
Zack Cerza [Wed, 31 Aug 2016 21:15:28 +0000 (15:15 -0600)]
Add a test for has_ipmi_credentials

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoconsole_log: Be aware of conserver
Zack Cerza [Wed, 24 Aug 2016 15:14:38 +0000 (09:14 -0600)]
console_log: Be aware of conserver

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agospawn_sol_log(): don't use the shell
Zack Cerza [Thu, 25 Aug 2016 19:03:33 +0000 (13:03 -0600)]
spawn_sol_log(): don't use the shell

Shell usage is keeping the spawned command from terminating properly.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoUse read-only conserver sessions when appropriate
Zack Cerza [Wed, 24 Aug 2016 17:57:40 +0000 (11:57 -0600)]
Use read-only conserver sessions when appropriate

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years ago_exit_session(): also work with conserver-client
Zack Cerza [Wed, 24 Aug 2016 14:53:47 +0000 (08:53 -0600)]
_exit_session(): also work with conserver-client

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd tests for spawn_sol_log()
Zack Cerza [Tue, 30 Aug 2016 23:18:29 +0000 (17:18 -0600)]
Add tests for spawn_sol_log()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoGet console sessions using _get_console()
Zack Cerza [Wed, 24 Aug 2016 14:48:37 +0000 (08:48 -0600)]
Get console sessions using _get_console()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd an integration test to expose a logging bug
Zack Cerza [Wed, 31 Aug 2016 20:51:51 +0000 (14:51 -0600)]
Add an integration test to expose a logging bug

This is related to: http://tracker.ceph.com/issues/17102

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #943 from ceph/wip-downburst-pkgs
Dan Mick [Wed, 31 Aug 2016 00:02:58 +0000 (17:02 -0700)]
Merge pull request #943 from ceph/wip-downburst-pkgs

Install required packages when downbursting VMs

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoInstall wget on downbursted VMs 943/head
David Galloway [Fri, 26 Aug 2016 22:38:21 +0000 (18:38 -0400)]
Install wget on downbursted VMs

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoInstall redhat-lsb-core on downbursted centos VMs for `lsb_release`
David Galloway [Fri, 26 Aug 2016 21:51:49 +0000 (17:51 -0400)]
Install redhat-lsb-core on downbursted centos VMs for `lsb_release`

Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoInstall git on downbursted VMs during cloud-init
David Galloway [Fri, 26 Aug 2016 20:44:42 +0000 (16:44 -0400)]
Install git on downbursted VMs during cloud-init

Fixes: http://tracker.ceph.com/issues/17154
Signed-off-by: David Galloway <dgallowa@redhat.com>
9 years agoRename _check_credentials(); move calls
Zack Cerza [Wed, 24 Aug 2016 14:44:26 +0000 (08:44 -0600)]
Rename _check_credentials(); move calls

It's now _check_ipmi_credentials() and is only called by _ipmi_command()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRename _pexpect_spawn() to _pexpect_spawn_ipmi()
Zack Cerza [Wed, 24 Aug 2016 14:39:43 +0000 (08:39 -0600)]
Rename _pexpect_spawn() to _pexpect_spawn_ipmi()

A new _pexpect_spawn() is added, to be used for general cases. It is
used by _pexpect_spawn_ipmi().

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoRename _build_command() to _ipmi_command()
Zack Cerza [Wed, 24 Aug 2016 14:35:11 +0000 (08:35 -0600)]
Rename _build_command() to _ipmi_command()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd _console_command()
Zack Cerza [Tue, 23 Aug 2016 20:57:50 +0000 (14:57 -0600)]
Add _console_command()

This provides a way to generate a command that establishes a SOL console
session that, depending on whether conserver settings are present, will
use that or fall back to ipmitool.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMake PhysicalConsole aware of conserver settings
Zack Cerza [Tue, 23 Aug 2016 20:57:42 +0000 (14:57 -0600)]
Make PhysicalConsole aware of conserver settings

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd settings for conserver
Zack Cerza [Tue, 23 Aug 2016 16:08:57 +0000 (10:08 -0600)]
Add settings for conserver

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoPhysicalConsole: drop map() in __init__()
Zack Cerza [Tue, 23 Aug 2016 20:56:57 +0000 (14:56 -0600)]
PhysicalConsole: drop map() in __init__()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd some tests for the console module
Zack Cerza [Tue, 23 Aug 2016 21:27:49 +0000 (15:27 -0600)]
Add some tests for the console module

... better late than never?

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoFix a circular import issue
Zack Cerza [Tue, 23 Aug 2016 21:22:19 +0000 (15:22 -0600)]
Fix a circular import issue

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #945 from ceph/wip-kernel-hier-config
Zack Cerza [Tue, 30 Aug 2016 15:48:13 +0000 (09:48 -0600)]
Merge pull request #945 from ceph/wip-kernel-hier-config

kernel: don't use GitbuilderProject's _get_config_value_for_remote()

9 years agokernel: don't use GitbuilderProject's _get_config_value_for_remote() 945/head
Ilya Dryomov [Mon, 29 Aug 2016 16:47:31 +0000 (18:47 +0200)]
kernel: don't use GitbuilderProject's _get_config_value_for_remote()

Commit a01f1e169074 ("kernel: use packaging.GitbuilderProject to talk
with gitbuilder.") switched the kernel task to GitbuilderProject, which
parses the config in an attempt to pick the "best" config value for
a given remote.  However, the kernel task does its own parsing and
supports more than GitbuilderProject currently handles, e.g.:

  kernel:
    client:
      branch: testing

The above got broken by passing the entire 'kernel:' stanza to
GitbuilderProject: _get_uri_reference() chokes on "client" and defaults
to master branch.  It also effectively disables 'overrides:' support,
used by krbd:unmap suite.  Bring these back by passing in only the role
config in task().

In download_kernel(), we already have the sha1 and just need to get the
url, so construct a {'sha1': <sha>} dict on the fly.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
9 years agoMerge pull request #944 from ceph/wip-console-creds
Yuri Weinstein [Mon, 29 Aug 2016 23:32:17 +0000 (16:32 -0700)]
Merge pull request #944 from ceph/wip-console-creds

Console: rename has_credentials

9 years agoMerge pull request #942 from dmick/wip-token
Zack Cerza [Mon, 29 Aug 2016 23:06:47 +0000 (17:06 -0600)]
Merge pull request #942 from dmick/wip-token

openstack: Cache auth tokens, add unit test fixes

9 years agoConsole: rename has_credentials 944/head
Zack Cerza [Mon, 29 Aug 2016 23:02:15 +0000 (17:02 -0600)]
Console: rename has_credentials

... to has_ipmi_credentials

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #858 from smithfarm/wip-openstack-opensuse
Zack Cerza [Mon, 29 Aug 2016 16:21:03 +0000 (10:21 -0600)]
Merge pull request #858 from smithfarm/wip-openstack-opensuse

Get dummy suite to run on openSUSE Leap in OpenStack

9 years agotest_openstack: misc.sh() is now called with -q 942/head
Dan Mick [Fri, 26 Aug 2016 22:20:28 +0000 (15:20 -0700)]
test_openstack: misc.sh() is now called with -q

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoFix nuke openstack tests (patch OpenStack().run instead of misc.sh)
Dan Mick [Fri, 26 Aug 2016 03:38:38 +0000 (20:38 -0700)]
Fix nuke openstack tests (patch OpenStack().run instead of misc.sh)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #937 from ceph/wip-console-log
Dan Mick [Tue, 23 Aug 2016 21:02:13 +0000 (14:02 -0700)]
Merge pull request #937 from ceph/wip-console-log

Log IPMI console output for bare metal hosts

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoUse the new console_log class 937/head
Zack Cerza [Thu, 18 Aug 2016 21:55:33 +0000 (15:55 -0600)]
Use the new console_log class

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd console_log task
Zack Cerza [Thu, 18 Aug 2016 21:53:02 +0000 (15:53 -0600)]
Add console_log task

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoPatch teardown in some test methods
Zack Cerza [Mon, 22 Aug 2016 21:43:44 +0000 (15:43 -0600)]
Patch teardown in some test methods

Specifically, test_setup_called() and test_begin_called()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoCheck ipmi credentials in a separate method
Zack Cerza [Mon, 22 Aug 2016 22:59:31 +0000 (16:59 -0600)]
Check ipmi credentials in a separate method

And also call it from spawn_sol_log()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoAdd PhysicalConsole.spawn_sol_log()
Zack Cerza [Thu, 18 Aug 2016 21:47:57 +0000 (15:47 -0600)]
Add PhysicalConsole.spawn_sol_log()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMove ipmi credential storage to PhysicalConsole
Zack Cerza [Mon, 22 Aug 2016 22:55:30 +0000 (16:55 -0600)]
Move ipmi credential storage to PhysicalConsole

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoPhysicalConsole._pexpect_spawn(): pass logfile arg
Zack Cerza [Thu, 18 Aug 2016 23:12:22 +0000 (17:12 -0600)]
PhysicalConsole._pexpect_spawn(): pass logfile arg

... directly when calling pexpect.spawn()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #938 from ceph/wip-17084
Dan Mick [Tue, 23 Aug 2016 18:19:52 +0000 (11:19 -0700)]
Merge pull request #938 from ceph/wip-17084

Kill valgrind.bin processes.

Reviewed-by: Dan Mick <dmick@danceorelse.org>
9 years agoMerge pull request #939 from smithfarm/wip-17075
Zack Cerza [Tue, 23 Aug 2016 15:57:42 +0000 (09:57 -0600)]
Merge pull request #939 from smithfarm/wip-17075

Revert "packages.yaml: reflect python-ceph package split"

9 years agoRevert "packages.yaml: reflect python-ceph package split" 939/head
Nathan Cutler [Tue, 23 Aug 2016 06:36:36 +0000 (08:36 +0200)]
Revert "packages.yaml: reflect python-ceph package split"

This reverts commit 4543fb64cedffc97c816feff7d4a69cd0456ab15.

Fixes: http://tracker.ceph.com/issues/17075
Signed-off-by: Nathan Cutler <ncutler@suse.com>