]>
git.apps.os.sepia.ceph.com Git - teuthology.git/log
Nathan Cutler [Wed, 16 Oct 2019 09:11:53 +0000 (11:11 +0200)]
install/rpm: wipe all zypper repos before adding repos-under-test
Our tests should be designed to not rely on any pre-existing repos. If there are
any pre-existing repos, these can potentially skew test results by causing
unexpected packages/package versions to be installed.
Therefore, wipe any pre-existing repos before adding the repos-under-test.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Thu, 3 Oct 2019 13:40:13 +0000 (15:40 +0200)]
Merge pull request #1309 from jtlayton/fixes
Minor bugfixes for teuthology
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
kshtsk [Thu, 3 Oct 2019 12:10:25 +0000 (14:10 +0200)]
Merge pull request #1313 from kshtsk/wip-open-instead-file
python3: use open() function instead file() class
Kyr Shatskyy [Wed, 2 Oct 2019 19:08:18 +0000 (21:08 +0200)]
python3: use open() function instead file() class
Since python3 does not have file() we should stop using it.
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
kshtsk [Wed, 2 Oct 2019 23:11:45 +0000 (01:11 +0200)]
Merge pull request #1310 from kshtsk/wip-all-ipv4-octets-in-target-names
openstack: encode instance name with the full IP
Kyr Shatskyy [Fri, 27 Sep 2019 22:19:18 +0000 (00:19 +0200)]
Remove BaseException.message deprecation warning
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Kyr Shatskyy [Fri, 27 Sep 2019 21:24:38 +0000 (23:24 +0200)]
Use yaml.safe_load to suppress deprecation warning
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Loic Dachary [Tue, 3 Nov 2015 22:52:41 +0000 (23:52 +0100)]
openstack: encode instance name with the full IP
Using only the last two numbers is problematic when mixing multiple
OpenStack clusters.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Conflicts:
teuthology/provision.py
kshtsk [Fri, 27 Sep 2019 19:15:44 +0000 (21:15 +0200)]
Merge pull request #847 from kmroz/wip-docs
docs: add SUSE to list of bootstrapable operating systems
kshtsk [Fri, 27 Sep 2019 07:10:40 +0000 (09:10 +0200)]
Merge pull request #1092 from gohighsec/master
docs: use kernel version distro instead of jewel in the example of ru…
Jeff Layton [Wed, 18 Sep 2019 16:28:44 +0000 (12:28 -0400)]
describe_tests: skip over hidden directories
The ceph/qa directory has a bunch of .qa symlinks under it that cause
teuthology-describe-tests to hit symlink loops. Just skip any dentry
with a name that starts with '.'.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Jeff Layton [Wed, 18 Sep 2019 16:24:56 +0000 (12:24 -0400)]
bootstrap: force usage of python2 in virtualenv command
None of this code seems to be python3 ready, so force the virtualenv
command in the bootstrap script to use python2 on a box where both are
available.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
kshtsk [Tue, 10 Sep 2019 11:54:26 +0000 (13:54 +0200)]
Merge pull request #1302 from rishabh-d-dave/rewrite-remote-mktemp
orchestra/remote: rewrite mktemp to use coreutils mktemp
Gregory Farnum [Wed, 28 Aug 2019 18:08:16 +0000 (11:08 -0700)]
Merge pull request #1303 from rhcs-dashboard/wip-minimal-reqs
setup.py: move mysqlclient/coverage to optional deps
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
kshtsk [Wed, 28 Aug 2019 08:06:18 +0000 (10:06 +0200)]
Merge pull request #1300 from smithfarm/wip-install-no-purge
install: drop purge_data and related code
Nathan Cutler [Wed, 10 Jul 2019 09:20:33 +0000 (11:20 +0200)]
install: drop purge_data and related code
purge_data was used to remove any Ceph daemon metadata remaining after the
teardown phase of the install task runs. In particular, the ceph task was
known to leave OSD metadata behind in the OSD directories under /var/lib/ceph.
While the install task causes the ceph-osd package to be installed and creates
directories under /var/lib/ceph, it is the ceph task that actually
populates these directories. Thus, their "unpopulation" should be
implemented in the ceph task, and not here in the install task.
(If the directories were empty after the ceph task teardown phase, they would be
removed when the install task removes the ceph-osd package from the system. But
the package management tool refuses to remove them when they contain files not
owned by a package.)
Not running purge_data during the teardown phase of the install task makes it
easier to implement alternative deployment tasks (i.e. tests that deploy Ceph
clusters, but do not call ceph.py).
In the final analysis, however, this code is no longer needed now that all test
nodes (virtual and bare metal) are reimaged between runs.
This commit does not move purge_data into the ceph task because the author felt
that the ceph task should take more care to clean up after itself. For example,
nowadays there are ceph CLI commands for removing OSDs.
Aside: this commit also drops two lines of dead code that flake8 was
complaining about.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Gregory Farnum [Wed, 28 Aug 2019 03:15:09 +0000 (20:15 -0700)]
Merge pull request #1305 from kshtsk/wip-safe-load
suite/run: use yaml.safe_load
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Kyr Shatskyy [Tue, 9 Jul 2019 21:49:24 +0000 (23:49 +0200)]
suite/run: use yaml.safe_load
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Kefu Chai [Fri, 23 Aug 2019 18:09:03 +0000 (02:09 +0800)]
Merge pull request #1304 from batrick/selinux-smartd
selinux: ignore smartd
Reviewed-by: Kefu Chai <kchai@redhat.com>
Patrick Donnelly [Fri, 23 Aug 2019 17:58:36 +0000 (10:58 -0700)]
selinux: ignore smartd
The failures [1]:
2019-08-22T22:11:34.747 INFO:teuthology.orchestra.run.smithi195:> sudo grep 'avc: .*denied' /var/log/audit/audit.log | grep -v '\(comm="dmidecode"\|chronyd.service\|name="cephtest"\|scontext=system_u:system_r:nrpe_t:s0\|scontext=system_u:system_r:pcp_pmlogger_t\|scontext=system_u:system_r:pcp_pmcd_t:s0\|comm="rhsmd"\|scontext=system_u:system_r:syslogd_t:s0\|tcontext=system_u:system_r:nrpe_t:s0\|comm="updatedb"\)'
2019-08-22T22:11:34.810 INFO:teuthology.orchestra.run.smithi195.stdout:type=AVC msg=audit(
1566509255 .666:7592): avc: denied { read } for pid=8598 comm="smartd" name="nvme0" dev="devtmpfs" ino=13028 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=1
2019-08-22T22:11:34.810 INFO:teuthology.orchestra.run.smithi195.stdout:type=AVC msg=audit(
1566509255 .666:7592): avc: denied { open } for pid=8598 comm="smartd" path="/dev/nvme0" dev="devtmpfs" ino=13028 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=1
2019-08-22T22:11:34.810 INFO:teuthology.orchestra.run.smithi195.stdout:type=AVC msg=audit(
1566509255 .666:7593): avc: denied { ioctl } for pid=8598 comm="smartd" path="/dev/nvme0" dev="devtmpfs" ino=13028 ioctlcmd=4e41 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=1
2019-08-22T22:11:34.810 INFO:teuthology.orchestra.run.smithi195.stdout:type=AVC msg=audit(
1566511059 .828:8008): avc: denied { read } for pid=8598 comm="smartd" name="nvme0" dev="devtmpfs" ino=13028 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=1
2019-08-22T22:11:34.810 INFO:teuthology.orchestra.run.smithi195.stdout:type=AVC msg=audit(
1566511059 .828:8008): avc: denied { open } for pid=8598 comm="smartd" path="/dev/nvme0" dev="devtmpfs" ino=13028 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=1
2019-08-22T22:11:34.811 INFO:teuthology.orchestra.run.smithi195.stdout:type=AVC msg=audit(
1566511059 .828:8009): avc: denied { ioctl } for pid=8598 comm="smartd" path="/dev/nvme0" dev="devtmpfs" ino=13028 ioctlcmd=4e41 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=1
[1] /ceph/teuthology-archive/pdonnell-2019-08-22_20:06:33-fs-wip-pdonnell-testing-
20190822 .163036-distro-basic-smithi/
4242071 /teuthology.log
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Ernesto Puerta [Thu, 22 Aug 2019 15:33:56 +0000 (17:33 +0200)]
setup.py: move myqslclient to optional deps
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
Rishabh Dave [Wed, 7 Aug 2019 11:25:34 +0000 (16:55 +0530)]
orchestra/remote: rewrite mktemp to use coreutils mktemp
Use mktemp instead of Python's tempfile.mktemp since coreutils is more
easily available.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
kshtsk [Tue, 13 Aug 2019 14:57:11 +0000 (16:57 +0200)]
Merge pull request #1301 from rishabh-d-dave/remote-add-mkdtemp
orchestra/remote: add a method to create temporary directory
Rishabh Dave [Wed, 7 Aug 2019 09:48:19 +0000 (15:18 +0530)]
orchestra/remote: add a method to create temporary directory
Signed-off-by: Rishabh Dave <ridave@redhat.com>
kshtsk [Thu, 11 Jul 2019 05:57:07 +0000 (07:57 +0200)]
Merge pull request #1299 from kshtsk/wip-kernel-none
suite/run: add support 'none' for kernel branch parameter
Kyr Shatskyy [Tue, 9 Jul 2019 13:41:57 +0000 (15:41 +0200)]
suite/run: add support 'none' for kernel branch parameter
This can be useful when one wants to disable kernel hash
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Nathan Cutler [Wed, 10 Jul 2019 09:07:12 +0000 (11:07 +0200)]
Merge pull request #1282 from kshtsk/wip-suse-disable-ansible
initial_tasks: make it possible to disable ansible
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Patrick Donnelly [Sun, 7 Jul 2019 17:21:03 +0000 (10:21 -0700)]
Merge PR #1298 into master
* refs/pull/1298/head:
teuthology/orchestra/daemon: fix the log type
teuthology/orchestra/daemon: Check if stdin is valid
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Jos Collin [Wed, 3 Jul 2019 13:26:21 +0000 (18:56 +0530)]
teuthology/orchestra/daemon: fix the log type
Signed-off-by: Jos Collin <jcollin@redhat.com>
Jos Collin [Wed, 3 Jul 2019 12:45:55 +0000 (18:15 +0530)]
teuthology/orchestra/daemon: Check if stdin is valid
As there is self.proc.stdin.close() in stop(), there are chances
of write failing with IOError("File is closed").
Signed-off-by: Jos Collin <jcollin@redhat.com>
Patrick Donnelly [Tue, 2 Jul 2019 00:13:18 +0000 (17:13 -0700)]
Merge PR #1296 into master
* refs/pull/1296/head:
teuthology/console: allow deferring login after reset
Reviewed-by: David Galloway <dgallowa@redhat.com>
Patrick Donnelly [Mon, 1 Jul 2019 18:45:27 +0000 (11:45 -0700)]
teuthology/console: allow deferring login after reset
Fixes: http://tracker.ceph.com/issues/37681
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Mon, 1 Jul 2019 13:56:39 +0000 (06:56 -0700)]
Merge PR #1295 into master
* refs/pull/1295/head:
orchestra/daemon: Fix proc AttributeError: 'NoneType'
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Jos Collin [Fri, 28 Jun 2019 12:00:40 +0000 (17:30 +0530)]
orchestra/daemon: Fix proc AttributeError: 'NoneType'
Fixes the chance of calling signal() on a daemon which is not running.
Signed-off-by: Jos Collin <jcollin@redhat.com>
Kyr Shatskyy [Fri, 21 Jun 2019 12:56:32 +0000 (14:56 +0200)]
initial_tasks: make it possible to disable ansible
Introduce ceph_cm_ansible option in order to ommit 'ansible.cephlab'
task, so alternative way of target node provisioning can be selected
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Zack Cerza [Tue, 11 Jun 2019 18:17:41 +0000 (12:17 -0600)]
Merge pull request #1289 from kshtsk/fix-testexiter
imports: make imports absolute
Zack Cerza [Tue, 11 Jun 2019 18:17:27 +0000 (12:17 -0600)]
Merge pull request #1293 from kshtsk/add-param-to-config-load
config: add parameter for config load
Zack Cerza [Fri, 7 Jun 2019 15:03:24 +0000 (09:03 -0600)]
Merge pull request #1294 from ceph/update-deps
Update dependencies to address security issues
Zack Cerza [Tue, 4 Jun 2019 20:25:10 +0000 (14:25 -0600)]
pip-compile -P ansible
Zack Cerza [Tue, 4 Jun 2019 20:19:38 +0000 (14:19 -0600)]
pip-compile -P paramiko
Zack Cerza [Tue, 4 Jun 2019 20:19:08 +0000 (14:19 -0600)]
pip-compile -P pyopenssl
Zack Cerza [Tue, 4 Jun 2019 20:18:42 +0000 (14:18 -0600)]
pip-compile -P cryptography
Zack Cerza [Tue, 4 Jun 2019 20:18:12 +0000 (14:18 -0600)]
pip-compile -P requests
Zack Cerza [Tue, 4 Jun 2019 20:17:46 +0000 (14:17 -0600)]
pip-compile -P pyyaml
Zack Cerza [Tue, 4 Jun 2019 20:17:13 +0000 (14:17 -0600)]
pip-compile -P jinja2
Kyr Shatskyy [Thu, 2 May 2019 13:45:25 +0000 (15:45 +0200)]
py3: make imports python2/3 compatible
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Kyr Shatskyy [Mon, 3 Jun 2019 16:26:55 +0000 (18:26 +0200)]
config: add parameter for config load
This patch makes it possible to load config file directly
from the given path or data object, for testing purposes
and allows to remove silly notification about missing
teuthology.yaml file.
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Zack Cerza [Mon, 3 Jun 2019 15:34:06 +0000 (09:34 -0600)]
Merge pull request #1287 from kshtsk/wip-suse-libcloud-userdata-cfg
libcloud: read userdata from config
Kyr Shatskyy [Thu, 23 May 2019 14:08:09 +0000 (16:08 +0200)]
libcloud: add test for userdata read from config
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Gregory Farnum [Thu, 9 May 2019 22:58:14 +0000 (15:58 -0700)]
Merge pull request #1291 from batrick/i39554
orchestra/run: add omit_sudo arg used by vstart_runner
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Patrick Donnelly [Wed, 8 May 2019 03:34:23 +0000 (20:34 -0700)]
orchestra/run: add omit_sudo arg used by vstart_runner
Introduced-by: ceph/ceph.git:3e0a1361f78452d79c283f70b5dc2b865d62cb61
Fixes: https://tracker.ceph.com/issues/39554
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Zack Cerza [Fri, 3 May 2019 16:45:30 +0000 (10:45 -0600)]
Merge pull request #1281 from kshtsk/wip-suse-fix-install-rpms
install/rpm: add install_ceph_packages and repos_only options
Kyr Shatskyy [Fri, 12 Apr 2019 19:51:28 +0000 (19:51 +0000)]
libcloud: read userdata from config
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Nathan Cutler [Fri, 13 Apr 2018 12:16:42 +0000 (14:16 +0200)]
install/rpm: add install_ceph_packages and repos_only options
This commit adds two new boolean options to the install task:
install_ceph_packages (defaults to "True") - controls whether or not ceph
packages are installed. Note: the "librados2" and "ceph-test" packages get
installed even if this option is set to False.
repos_only (defaults to "False") - when this option is set to "True",
the install task merely adds repos and does nothing else.
The new options currently work only on RPM systems: on DEB systems they are
ignored.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Zack Cerza [Fri, 3 May 2019 00:30:12 +0000 (18:30 -0600)]
Merge pull request #1288 from kshtsk/suse-chrony
task/clock: add chrony support
Nathan Cutler [Sat, 11 Feb 2017 18:28:03 +0000 (19:28 +0100)]
task/clock: add chrony support
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Gregory Farnum [Thu, 2 May 2019 18:05:00 +0000 (11:05 -0700)]
Merge pull request #1290 from kshtsk/fix-tox-mock
tox: set mock version to 2.0.0
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Kyr Shatskyy [Thu, 2 May 2019 14:37:20 +0000 (16:37 +0200)]
test/test_exit: set mock version to 2.0.0
After upgrade mock from 2.0.0 to 3.0.3 the TestExiter started failing
with incorrect call_count.
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Zack Cerza [Tue, 30 Apr 2019 21:12:56 +0000 (15:12 -0600)]
Merge pull request #1279 from kshtsk/wip-suse-fixes-1
suse related fixes
Zack Cerza [Tue, 30 Apr 2019 16:57:24 +0000 (10:57 -0600)]
Merge pull request #1280 from kshtsk/wip-suse-fix-reconnect
fix reconnect
Zack Cerza [Tue, 30 Apr 2019 16:55:17 +0000 (10:55 -0600)]
Merge pull request #1286 from ceph/wip-yuval-add-pubsub-deps
rgw/pubsub: add dependencies needed for pubsub tests
Kefu Chai [Tue, 30 Apr 2019 11:34:12 +0000 (19:34 +0800)]
Merge pull request #1274 from ceph/wip-move-valgrind_supp
valgrind.supp: move the whitelist file to /qa dir of ceph.git
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Zack Cerza [Fri, 26 Apr 2019 18:38:07 +0000 (12:38 -0600)]
Merge pull request #1285 from gekios/wip-ceph-dev-env-fix
openstack: always pass branch and repo parameters
gkyratsas [Wed, 24 Apr 2019 14:37:43 +0000 (16:37 +0200)]
openstack: always pass branch and repo parameters
We need to always pass the parameters below in order to make it work using
environment variables:
--ceph
--ceph-repo
--suite-repo
--suite-branch
--teuthology-branch
Signed-off-by: gkyratsas <gkyratsas@suse.com>
Conflicts:
teuthology/openstack/__init__.py
Kyr Shatskyy [Tue, 16 Apr 2019 17:31:35 +0000 (19:31 +0200)]
test/opsys add opensuse 15.1 case
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
Nathan Cutler [Wed, 27 Mar 2019 10:58:29 +0000 (11:58 +0100)]
syslog.py: whitelist innocent tcmu-runner log message
When running the new iSCSI smoke test, tcmu-runner emits a syslog
message that was not whitelisted:
2019-03-27T10:00:17.292154+00:00 target192168000056 tcmu-runner[37366]: 2019-03-27 10:00:17.291 37366 [INFO] load_our_module:537: Inserted module 'target_core_user'
Since the message is at severity level INFO, it was causing teuthology
to raise a red flag.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Mon, 17 Jul 2017 16:32:38 +0000 (18:32 +0200)]
task: internal/syslog: expand salt exclusion
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Conflicts:
teuthology/task/internal/syslog.py
Nathan Cutler [Thu, 13 Jul 2017 21:09:11 +0000 (23:09 +0200)]
task: syslog: salt INFO messages generate false negatives
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Conflicts:
teuthology/task/internal/syslog.py
Kyr Shatskyy [Fri, 12 Apr 2019 23:59:10 +0000 (23:59 +0000)]
opsys: Drop opensuse-leap from DISTRO_CODENAME_MAP
Drop 'opensuse-leap' from DISTRO_CODENAME_MAP in favor of 'opensuse'
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Kyr Shatskyy [Mon, 7 May 2018 21:59:52 +0000 (00:59 +0300)]
Add new openSUSE Leap ID for os-release
Jan Fajerski [Thu, 16 Mar 2017 13:21:31 +0000 (14:21 +0100)]
misc: add check to delete_file
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Nathan Cutler [Sun, 4 Mar 2018 05:37:28 +0000 (06:37 +0100)]
misc: get_system_type: openSUSE means rpm
2018-03-03T23:59:57.524 INFO:teuthology.orchestra.run.target149202163177:Running: 'sudo lsb_release -is'
2018-03-03T23:59:57.600 INFO:teuthology.orchestra.run.target149202163177.stdout:openSUSE
2018-03-03T23:59:57.601 DEBUG:teuthology.misc:System to be installed: openSUSE
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Tue, 22 Nov 2016 09:53:40 +0000 (10:53 +0100)]
misc.py: Handle SLE-12-SP2 in get_system_type()
In SLE-12-SP1, "lsb_release -is" returns "SUSE LINUX". In SLE-12-SP2, it
returns "SUSE".
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Kyr Shatskyy [Fri, 12 Apr 2019 19:46:58 +0000 (19:46 +0000)]
opsys: opensuse id related fix
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Nathan Cutler [Fri, 2 Mar 2018 13:55:37 +0000 (14:55 +0100)]
misc.py: saner write_file() and sudo_write_file()
Using python to do this might have made sense in 2011, but it doesn't now.
Our hand is forced here, because systems are no longer guaranteed to
have an executable called "python".
For background details on why this is happening, see
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3#.2Fusr.2Fbin.2Fpython
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Fri, 21 Dec 2018 09:42:29 +0000 (10:42 +0100)]
openstack: enable testing on openSUSE Leap 15.1
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Sat, 3 Mar 2018 20:59:07 +0000 (21:59 +0100)]
openstack: support openSUSE Leap 15.0
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Sage Weil [Wed, 24 Apr 2019 15:46:31 +0000 (10:46 -0500)]
Merge pull request #1275 from ceph/wip-default-os
update default OS versions
Sage Weil [Wed, 3 Apr 2019 18:45:57 +0000 (13:45 -0500)]
update default OS versions
centos/rhel 7.4 -> 7.6
ubuntu 16.04 -> 18.04
Signed-off-by: Sage Weil <sage@redhat.com>
Radoslaw Zarzynski [Thu, 28 Mar 2019 22:13:10 +0000 (23:13 +0100)]
valgrind.supp: move the whitelist file to /qa dir of ceph.git
This change drops valgrind.supp whitelist file from teuthology
repo and alters the install task to acquire it from /qa dir of
ceph-qa-suite repository.
It's expected the commit will have sibiling in ceph.git moving
the proper valgrind.supp there.
The rationale behind the entire change is duplication of these
files between two repos, their inconsistencies and confusion.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Patrick Donnelly [Tue, 23 Apr 2019 19:04:13 +0000 (12:04 -0700)]
Merge PR #1284 into master
* refs/pull/1284/head:
selinux: ignore updatedb failures
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Patrick Donnelly [Tue, 23 Apr 2019 17:10:21 +0000 (10:10 -0700)]
selinux: ignore updatedb failures
This is with RHEL 7.6.
The failure [1]:
2019-04-17T21:06:33.388 DEBUG:teuthology.run_tasks:Exception was not quenched, exiting: SELinuxError: SELinux denials found on ubuntu@smithi088.front.sepia.ceph.com: ['type=AVC msg=audit(
1555531592 .378:4451): avc: denied { rename } for pid=10476 comm="updatedb" name="mlocate.db.eDrUCz" dev="sda1" ino=5477 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1', 'type=AVC msg=audit(
1555531589 .705:4446): avc: denied { read write open } for pid=10476 comm="updatedb" path="/var/lib/mlocate/mlocate.db.eDrUCz" dev="sda1" ino=5477 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1', 'type=AVC msg=audit(
1555531589 .705:4446): avc: denied { create } for pid=10476 comm="updatedb" name="mlocate.db.eDrUCz" scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1', 'type=AVC msg=audit(
1555531589 .705:4446): avc: denied { add_name } for pid=10476 comm="updatedb" name="mlocate.db.eDrUCz" scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir permissive=1', 'type=AVC msg=audit(
1555531591 .622:4447): avc: denied { write } for pid=10476 comm="updatedb" path="/var/lib/mlocate/mlocate.db.eDrUCz" dev="sda1" ino=5477 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1', 'type=AVC msg=audit(
1555531592 .377:4450): avc: denied { setattr } for pid=10476 comm="updatedb" name="mlocate.db.eDrUCz" dev="sda1" ino=5477 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1', 'type=AVC msg=audit(
1555531589 .705:4446): avc: denied { write } for pid=10476 comm="updatedb" name="mlocate" dev="sda1" ino=76978 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir permissive=1']
[1] /ceph/teuthology-archive/pdonnell-2019-04-17_06:02:40-fs-wip-pdonnell-testing-
20190417 .032809-distro-basic-smithi/
3856822 /teuthology.log
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Zack Cerza [Tue, 16 Apr 2019 21:55:11 +0000 (15:55 -0600)]
Merge pull request #1278 from kshtsk/wip-log-userdata
cloud/openstack: log userdata for debug purpose
Kyr Shatskyy [Mon, 4 Feb 2019 12:31:03 +0000 (13:31 +0100)]
orchestra: fix no connection after reboot
This resolves the issue when remote lost connection
if the command was a reboot of the host and there was
only one unsuccessful try to reconnect and as a result
was loosing transport and got stuck with message like:
WARNING:tasks.deepsea.orch:No connection established yet..
Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
Joshua Schmid [Thu, 25 Oct 2018 14:56:44 +0000 (16:56 +0200)]
Fix code to allow reconncting to a node after the connection was lost.
This patch introduces a 'context' parameter for
teuthology.orchestra.remote's run(..) method which
works around an issue with paramiko.
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Kyr Shatskyy [Fri, 12 Apr 2019 16:21:14 +0000 (16:21 +0000)]
cloud/openstack: log userdata for debug purpose
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Kefu Chai [Thu, 11 Apr 2019 10:21:20 +0000 (18:21 +0800)]
Merge pull request #1276 from tchaikov/wip-python34-to-python36
task/install: normalize python3 packages to python36 ones
Reviewed-by: Boris Ranto <branto@redhat.com>
Kefu Chai [Thu, 11 Apr 2019 02:20:58 +0000 (10:20 +0800)]
task/install: normalize python3 packages to python36 ones
EPEL7 has switched over to python3.6 as the main python3. and we started
packaging python bindings for python3.6 since
https://github.com/ceph/ceph-build/pull/1283
Signed-off-by: Kefu Chai <kchai@redhat.com>
Yuval Lifshitz [Wed, 10 Apr 2019 07:29:23 +0000 (07:29 +0000)]
rgw/pubsub: add dependencies needed for pubsub tests
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Zack Cerza [Thu, 4 Apr 2019 16:13:36 +0000 (10:13 -0600)]
Merge pull request #1271 from kshtsk/wip-openstack-arch
add openstack arch
Zack Cerza [Thu, 4 Apr 2019 16:09:45 +0000 (10:09 -0600)]
Merge pull request #1270 from kshtsk/wip-allow_sizes_and_networks
libcloud: add allow_sizes and allow_networks
Zack Cerza [Thu, 4 Apr 2019 16:09:19 +0000 (10:09 -0600)]
Merge pull request #1272 from kshtsk/wip-ssh-interface
add ssh_interface property
Nathan Cutler [Wed, 22 Feb 2017 11:59:58 +0000 (12:59 +0100)]
openstack: enable openSUSE Leap 42.2
Fixes: #29
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Tue, 21 Feb 2017 12:21:08 +0000 (13:21 +0100)]
openstack: drop some obsolete images
Centos <7.2 is obsolete, Ubuntu <14 is obsolete
(Note that the openstack-integration tests download all of these images
one-by-one, so this is a time-saving measure.)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Tue, 21 Feb 2017 12:12:42 +0000 (13:12 +0100)]
openstack: update Debian 8.0 image URL to current
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Fri, 17 Feb 2017 10:22:08 +0000 (11:22 +0100)]
openstack: enable CentOS 7.3
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 8 Feb 2017 20:48:57 +0000 (21:48 +0100)]
openstack: add Leap 42.2 cloud image URL comment
Just a commented-out URL for now, until we figure out how to handle .tbz
extension
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Loic Dachary [Tue, 7 Feb 2017 23:14:03 +0000 (00:14 +0100)]
openstack: debian now is 8.7.0
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Nathan Cutler [Tue, 7 Feb 2017 11:45:52 +0000 (12:45 +0100)]
openstack: use 16.04 for teuthology VM
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Loic Dachary [Tue, 21 Jun 2016 12:49:36 +0000 (14:49 +0200)]
openstack: debian jessie is now 8.5.0
Signed-off-by: Loic Dachary <loic@dachary.org>