]>
git.apps.os.sepia.ceph.com Git - teuthology.git/log
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>
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>
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>
Zack Cerza [Wed, 14 Sep 2016 16:13:48 +0000 (10:13 -0600)]
Linter fixes
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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()
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>
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
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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"
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>
Zack Cerza [Tue, 23 Aug 2016 02:40:31 +0000 (20:40 -0600)]
Kill valgrind.bin processes
http://tracker.ceph.com/issues/17084
Fixes: 17084
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Thu, 18 Aug 2016 21:37:22 +0000 (15:37 -0600)]
PhysicalConsole: rename _exec() to _pexpect_spawn()
Signed-off-by: Zack Cerza <zack@redhat.com>
Loic Dachary [Thu, 11 Aug 2016 10:53:58 +0000 (12:53 +0200)]
openstack: cache auth tokens
Fixes: http://tracker.ceph.com/issues/16893
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Sat, 26 Mar 2016 18:39:22 +0000 (19:39 +0100)]
openstack: add get_provider() to match set_provider()
So that set_provider does not need to be called explicitly before using
the .provider data member.
Signed-off-by: Loic Dachary <loic@dachary.org>
Zack Cerza [Thu, 18 Aug 2016 21:35:27 +0000 (15:35 -0600)]
PhysicalConsole: split out command generation
Signed-off-by: Zack Cerza <zack@redhat.com>
Dan Mick [Wed, 17 Aug 2016 20:52:20 +0000 (13:52 -0700)]
Merge pull request #936 from ceph/wip-fix-nuke-imports
Fix imports of nuke actions from other modules
Reviewed-by: Dan Mick <dmick@redhat.com>
Zack Cerza [Wed, 17 Aug 2016 20:06:40 +0000 (14:06 -0600)]
Fix imports of nuke actions from other modules
Specifically, ceph-qa-suite.git/tasks/cephfs/filesystem.py apparently
needs the clear_firewall action.
Signed-off-by: Zack Cerza <zack@redhat.com>
Dan Mick [Wed, 17 Aug 2016 17:28:31 +0000 (10:28 -0700)]
Merge pull request #935 from ceph/wip-nuke-improvements
Nuke improvements, and a bonus refactor
Reviewed-by: Dan Mick <dmick@redhat.com>
Zack Cerza [Wed, 17 Aug 2016 15:43:55 +0000 (09:43 -0600)]
Check locks before doing anything else
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 21:09:27 +0000 (15:09 -0600)]
PhysicalConsole.power_cycle(): use timeout=300
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 20:32:49 +0000 (14:32 -0600)]
If console access fails, try SSH
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 20:27:21 +0000 (14:27 -0600)]
Add ConsoleError, and use it
... instead of just a RuntimeError
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 20:18:00 +0000 (14:18 -0600)]
Fix reference to ipmi domain
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 20:14:36 +0000 (14:14 -0600)]
Move most of nuke's actions into their own module
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 20:05:05 +0000 (14:05 -0600)]
Add Remote.console
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 19:52:20 +0000 (13:52 -0600)]
Make teuthology.nuke a subpackage
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 16:16:47 +0000 (10:16 -0600)]
check_console(): attempt a power cycle
If the host is unresponsive and its power is on, reboot it.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 16:09:15 +0000 (10:09 -0600)]
PhysicalConsole._wait_for_login(): reduce attempts
Instead of trying six times by default, try twice.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 16:06:47 +0000 (10:06 -0600)]
Move console checking to its own function
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 23:04:38 +0000 (17:04 -0600)]
Remove redundant timeout assignment
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Tue, 16 Aug 2016 16:00:10 +0000 (10:00 -0600)]
Move console classes to their own module
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 15 Aug 2016 23:12:06 +0000 (17:12 -0600)]
Cleanup some timeout logic
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 15 Aug 2016 23:19:25 +0000 (17:19 -0600)]
Make console checking more readable
Signed-off-by: Zack Cerza <zack@redhat.com>
Kefu Chai [Tue, 16 Aug 2016 08:25:04 +0000 (16:25 +0800)]
Merge pull request #933 from tchaikov/wip-17035
valgrind: add suppression for libunwind in libtcmalloc.so.4.2.6
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Kefu Chai [Tue, 16 Aug 2016 08:03:11 +0000 (16:03 +0800)]
valgrind: add suppression for libunwind in libtcmalloc.so.4.2.6
Fixes: http://tracker.ceph.com/issues/17035
Signed-off-by: Kefu Chai <kchai@redhat.com>
Zack Cerza [Mon, 15 Aug 2016 23:02:24 +0000 (17:02 -0600)]
PhysicalConsole._wait_for_login() raise on failure
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 15 Aug 2016 19:01:53 +0000 (13:01 -0600)]
getRemoteConsole(): look up IPMI credentials
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Mon, 15 Aug 2016 18:41:58 +0000 (12:41 -0600)]
nuke: remove packages before reboot
Just in case daemons coming up after reboot is problematic.
Related: http://tracker.ceph.com/issues/17027
Signed-off-by: Zack Cerza <zack@redhat.com>
Dan Mick [Thu, 11 Aug 2016 21:56:34 +0000 (14:56 -0700)]
Merge pull request #930 from ceph/wip-openstack-regression
Work around regression in openstacksdk 0.9.2
Reviewed-by: Dan Mick <dmick@redhat.com>
Zack Cerza [Thu, 11 Aug 2016 21:30:57 +0000 (15:30 -0600)]
Work around regression in openstacksdk 0.9.2
... that caused `openstack ip floating list -f json` to fail and return
"Connection failure that may be retried."
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Thu, 11 Aug 2016 20:50:44 +0000 (14:50 -0600)]
Merge pull request #922 from ceph/wip-install-py3
install: Allow installing python3 packages universally
Dan Mick [Wed, 10 Aug 2016 19:35:47 +0000 (12:35 -0700)]
Merge pull request #927 from dachary/wip-16972-quiet
openstack: do not display openstack client warnings
Reviewed-by: Dan Mick <dmick@redhat.com>
Dan Mick [Wed, 10 Aug 2016 19:26:20 +0000 (12:26 -0700)]
Merge pull request #928 from ceph/revert-925-wip-ovh-json
Revert "misc.sh(): Don't capture stderr by default"
Reviewed-by: Dan Mick <dmick@redhat.com>
Zack Cerza [Wed, 10 Aug 2016 19:03:50 +0000 (13:03 -0600)]
Revert "misc.sh(): Don't capture stderr by default"
Loic Dachary [Sat, 6 Aug 2016 08:48:14 +0000 (10:48 +0200)]
openstack: do not display openstack client warnings
Because they are concatenated with the STDOUT by the sh function despite
being output on STDERR and that breaks json parsing.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Dan Mick [Tue, 9 Aug 2016 19:26:36 +0000 (12:26 -0700)]
Merge pull request #926 from ceph/wip-beanstalkd-socketerror
worker: Don't die on a beanstalkc SocketError
Reviewed-by: Dan Mick <dmick@redhat.com>
Zack Cerza [Tue, 9 Aug 2016 18:54:56 +0000 (12:54 -0600)]
Don't die on a beanstalkc SocketError
Signed-off-by: Zack Cerza <zack@redhat.com>
Dan Mick [Mon, 8 Aug 2016 21:13:23 +0000 (14:13 -0700)]
Merge pull request #925 from ceph/wip-ovh-json
misc.sh(): Don't capture stderr by default
Reviewed-by: Dan Mick <dmick@redhat.com>
Zack Cerza [Mon, 8 Aug 2016 19:45:50 +0000 (13:45 -0600)]
misc.sh(): Don't capture stderr by default
If not capturing it, log it.
Signed-off-by: Zack Cerza <zack@redhat.com>
Zack Cerza [Thu, 4 Aug 2016 16:47:44 +0000 (10:47 -0600)]
Merge pull request #924 from smithfarm/wip-lock-centos
teuthology-lock: add centos 7.2 to downburst default table
Zack Cerza [Thu, 4 Aug 2016 14:37:36 +0000 (08:37 -0600)]
Merge pull request #923 from ceph/wip-14794
valgrind: wildcard boost supression
Zack Cerza [Thu, 4 Aug 2016 14:36:33 +0000 (08:36 -0600)]
Merge pull request #916 from smithfarm/wip-python-split
packages.yaml: reflect python-ceph package split
Nathan Cutler [Wed, 3 Aug 2016 12:20:59 +0000 (14:20 +0200)]
teuthology-lock: drop openSUSE 12.2 from downburst default table
AFAIK Downburst does not provide any openSUSE images.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 3 Aug 2016 12:18:14 +0000 (14:18 +0200)]
teuthology-lock: add centos 7.2 to downburst default table
When downburst is unavailable, teuthology-lock reverts to default_table and
fails because the only supported CentOS version, 7.2., is missing.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
John Spray [Wed, 3 Aug 2016 11:43:22 +0000 (12:43 +0100)]
valgrind: wildcard boost supression
...so that it will match mangled names.
Fixes: http://tracker.ceph.com/issues/14794
Signed-off-by: John Spray <john.spray@redhat.com>
vasukulkarni [Tue, 2 Aug 2016 03:37:27 +0000 (20:37 -0700)]
Merge pull request #921 from ceph/wip-ansible-dead
CephLab: playbook failures result in status 'dead'
Zack Cerza [Mon, 1 Aug 2016 21:47:49 +0000 (15:47 -0600)]
CephLab: playbook failures result in status 'dead'
Signed-off-by: Zack Cerza <zack@redhat.com>
Dan Mick [Fri, 29 Jul 2016 18:05:18 +0000 (11:05 -0700)]
Merge pull request #914 from ceph/wip-orchestra-logging
orchestra.run logging
Reviewed-by: Dan Mick <dmick@redhat.com>