]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
5 years agoopenstack: install docker in the teuthology instance
Loic Dachary [Sat, 5 Mar 2016 01:57:46 +0000 (08:57 +0700)]
openstack: install docker in the teuthology instance

Signed-off-by: Loic Dachary <loic@dachary.org>
5 years agoopenstack: install ceph-workbench
Loic Dachary [Sat, 19 Dec 2015 16:42:27 +0000 (17:42 +0100)]
openstack: install ceph-workbench

Signed-off-by: Loic Dachary <loic@dachary.org>
Conflicts:
teuthology/openstack/__init__.py

5 years agoMerge pull request #1327 from kshtsk/misc-drop-stringio-import
Nathan Cutler [Fri, 11 Oct 2019 11:51:21 +0000 (13:51 +0200)]
Merge pull request #1327 from kshtsk/misc-drop-stringio-import

misc: drop StringIO import to fix flake8

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agomisc: drop StringIO import to fix flake8 1327/head
Kyr Shatskyy [Fri, 11 Oct 2019 03:23:54 +0000 (05:23 +0200)]
misc: drop StringIO import to fix flake8

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
5 years agoMerge pull request #1318 from kshtsk/wip-misc-use-remote-sh
kshtsk [Thu, 10 Oct 2019 17:01:50 +0000 (19:01 +0200)]
Merge pull request #1318 from kshtsk/wip-misc-use-remote-sh

misc: use remote.sh instead of remote.run

5 years agoMerge PR #1322 into master
Patrick Donnelly [Thu, 10 Oct 2019 16:57:48 +0000 (09:57 -0700)]
Merge PR #1322 into master

* refs/pull/1322/head:
add note that ceph.conf.template should no longer be modified

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #1323 from kshtsk/wip-misc-drop-legacy-code-in-skeleton_config
kshtsk [Thu, 10 Oct 2019 14:29:41 +0000 (16:29 +0200)]
Merge pull request #1323 from kshtsk/wip-misc-drop-legacy-code-in-skeleton_config

misc: drop testdir replacement in skeleton_config

5 years agoMerge pull request #1325 from rjfd/wip-fix-import-loop
kshtsk [Thu, 10 Oct 2019 14:28:59 +0000 (16:28 +0200)]
Merge pull request #1325 from rjfd/wip-fix-import-loop

lock/ops: remove import to break import loop

5 years agolock/ops: remove import to break import loop 1325/head
Ricardo Dias [Thu, 10 Oct 2019 09:55:41 +0000 (10:55 +0100)]
lock/ops: remove import to break import loop

Fixes: https://tracker.ceph.com/issues/42256
Signed-off-by: Ricardo Dias <rdias@suse.com>
5 years agoMerge pull request #1324 from badone/wip-remove-package-overrides
Kefu Chai [Thu, 10 Oct 2019 01:28:21 +0000 (09:28 +0800)]
Merge pull request #1324 from badone/wip-remove-package-overrides

install/rpm: Remove _package_overrides

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoinstall/rpm: Remove _package_overrides 1324/head
Brad Hubbard [Thu, 10 Oct 2019 00:20:47 +0000 (10:20 +1000)]
install/rpm: Remove _package_overrides

The _package_overrides function is currently not required.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
5 years agomisc: drop testdir replacement in skeleton_config 1323/head
Kyr Shatskyy [Wed, 9 Oct 2019 23:06:11 +0000 (01:06 +0200)]
misc: drop testdir replacement in skeleton_config

The str.format is not used anymore for ceph.conf.template

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1321 from kshtsk/wip-ceph-cm-ansible-url
kshtsk [Wed, 9 Oct 2019 21:44:07 +0000 (23:44 +0200)]
Merge pull request #1321 from kshtsk/wip-ceph-cm-ansible-url

config: add option for ceph cm ansible git url

5 years agoMerge pull request #1312 from ryg-/wip-42081-set-os
David Galloway [Wed, 9 Oct 2019 19:09:46 +0000 (15:09 -0400)]
Merge pull request #1312 from ryg-/wip-42081-set-os

lock: update target os-type and os-version after provisioning

5 years agoadd note that ceph.conf.template should no longer be modified 1322/head
Patrick Donnelly [Wed, 9 Oct 2019 18:11:33 +0000 (11:11 -0700)]
add note that ceph.conf.template should no longer be modified

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoconfig: add option for ceph cm ansible git url 1321/head
Roi Dayan [Mon, 4 Apr 2016 11:25:10 +0000 (14:25 +0300)]
config: add option for ceph cm ansible git url

This is to be able to supply a custom location without changing
the ceph git base url.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Conflicts:
teuthology/config.py
teuthology/suite.py
teuthology/test/test_suite.py

5 years agoMerge pull request #1320 from kshtsk/wip-fog-python3
David Galloway [Wed, 9 Oct 2019 13:44:10 +0000 (09:44 -0400)]
Merge pull request #1320 from kshtsk/wip-fog-python3

fog: get rid of StringIO usage for python3 portability

5 years agofog: get rid of StringIO usage for python3 portability 1320/head
Kyr Shatskyy [Wed, 9 Oct 2019 11:18:23 +0000 (13:18 +0200)]
fog: get rid of StringIO usage for python3 portability

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1317 from kshtsk/wip-python3-use-isinstance
kshtsk [Wed, 9 Oct 2019 08:57:28 +0000 (10:57 +0200)]
Merge pull request #1317 from kshtsk/wip-python3-use-isinstance

suite/matrix: use isinstance for python3 compatibility

5 years agomisc: use remote.sh instead of remote.run 1318/head
Kyr Shatskyy [Tue, 8 Oct 2019 22:04:20 +0000 (00:04 +0200)]
misc: use remote.sh instead of remote.run

To ease porting and compatibility in order to avoid
usage of cStringIO.StringIO it is better to use
remote.sh method which supposed to return captured
value as a string.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agorun_tasks: use isinstance() instead of type() 1317/head
Kyr Shatskyy [Tue, 8 Oct 2019 17:40:51 +0000 (19:40 +0200)]
run_tasks: use isinstance() instead of type()

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoteuthology/exit: use isinstance for python3 compatibility
Kyr Shatskyy [Tue, 8 Oct 2019 17:35:42 +0000 (19:35 +0200)]
teuthology/exit: use isinstance for python3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite/matrix: use isinstance for python3 compatibility
Kyr Shatskyy [Tue, 8 Oct 2019 17:20:21 +0000 (19:20 +0200)]
suite/matrix: use isinstance for python3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agolock: remove os_version and os_type for node before reprovisiong 1312/head 1316/head
Roman Grigoryev [Tue, 8 Oct 2019 09:38:14 +0000 (11:38 +0200)]
lock: remove os_version and os_type for node before reprovisiong

os_version and os_type don't reflect actual os version
when node is under provisioning and/or provisiong failed.
The fix cleanup fileds before provisioning.

Signed-off-by: Roman Grigoryev <roman.grigorev@suse.de>
5 years agolock: update target os-type and os-version after provisioning
Roman Grigoryev [Mon, 30 Sep 2019 11:55:42 +0000 (13:55 +0200)]
lock: update target os-type and os-version after provisioning

After provisioning node via "teuthology-lock" (via both
"--lock" and "--lock-many") users cannot see actual
versioni and type  of provisioned OS in pulpito.
It is pretty helpful to see that version if we need to
do some manual work.

Signed-off-by: Roman Grigoryev <roman.grigorev@suse.de>
5 years agoMerge pull request #1315 from kshtsk/wip-future-print
kshtsk [Tue, 8 Oct 2019 09:39:22 +0000 (11:39 +0200)]
Merge pull request #1315 from kshtsk/wip-future-print

use python3 compatible print

5 years agoMerge pull request #1307 from kshtsk/beanstalkc3
kshtsk [Mon, 7 Oct 2019 12:30:57 +0000 (14:30 +0200)]
Merge pull request #1307 from kshtsk/beanstalkc3

beanstalk: switch to py3 compatible package

5 years agotest_build_matrix: use python3 compatible print 1315/head
Kyr Shatskyy [Mon, 7 Oct 2019 11:06:01 +0000 (13:06 +0200)]
test_build_matrix: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoprovision/cloud: use python3 compatible syntax
Kyr Shatskyy [Mon, 7 Oct 2019 11:02:17 +0000 (13:02 +0200)]
provision/cloud: use python3 compatible syntax

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoparallel: use python3 compatible syntax for print
Kyr Shatskyy [Mon, 7 Oct 2019 10:59:36 +0000 (12:59 +0200)]
parallel: use python3 compatible syntax for print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/install: use future print for python3 compatibility
Kyr Shatskyy [Mon, 7 Oct 2019 10:58:33 +0000 (12:58 +0200)]
task/install: use future print for python3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoopenstack: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:40:25 +0000 (12:40 +0200)]
openstack: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agopackaging: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:30:53 +0000 (12:30 +0200)]
packaging: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agocontextutil: python3 compatibility
Kyr Shatskyy [Mon, 7 Oct 2019 10:28:33 +0000 (12:28 +0200)]
contextutil: python3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agopython3: fix print syntax
Kyr Shatskyy [Mon, 7 Oct 2019 10:26:40 +0000 (12:26 +0200)]
python3: fix print syntax

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agolock/cli: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:24:59 +0000 (12:24 +0200)]
lock/cli: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoschedule: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:17:17 +0000 (12:17 +0200)]
schedule: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agols: use future print for python3 compatibility
Kyr Shatskyy [Mon, 7 Oct 2019 10:15:50 +0000 (12:15 +0200)]
ls: use future print for python3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoresults: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:11:43 +0000 (12:11 +0200)]
results: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/install: fix tab inconstent indents
Kyr Shatskyy [Mon, 7 Oct 2019 10:09:43 +0000 (12:09 +0200)]
task/install: fix tab inconstent indents

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agobeanstalk: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:04:35 +0000 (12:04 +0200)]
beanstalk: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agokill: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 10:04:01 +0000 (12:04 +0200)]
kill: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoFix tab inconsistent indent
Kyr Shatskyy [Mon, 7 Oct 2019 10:01:26 +0000 (12:01 +0200)]
Fix tab inconsistent indent

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoUse future print for python3 compatibility
Kyr Shatskyy [Mon, 7 Oct 2019 09:48:25 +0000 (11:48 +0200)]
Use future print for python3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agodescribe_tests: use python3 compatible print
Kyr Shatskyy [Mon, 7 Oct 2019 09:51:21 +0000 (11:51 +0200)]
describe_tests: use python3 compatible print

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoopenstack: avoid using print for writing files
Kyr Shatskyy [Thu, 3 Oct 2019 12:02:09 +0000 (14:02 +0200)]
openstack: avoid using print for writing files

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoMerge pull request #1314 from kshtsk/wip-no-iteritems
Gregory Farnum [Fri, 4 Oct 2019 22:15:01 +0000 (15:15 -0700)]
Merge pull request #1314 from kshtsk/wip-no-iteritems

Get rid of iteritems and xrange

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agopython3: get rid of iteritems 1314/head
Kyr Shatskyy [Thu, 3 Oct 2019 13:31:51 +0000 (15:31 +0200)]
python3: get rid of iteritems

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoansible: use py3 compatible octals
Kyr Shatskyy [Thu, 3 Oct 2019 00:37:59 +0000 (02:37 +0200)]
ansible: use py3 compatible octals

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agopython3: get rid of xrange
Kyr Shatskyy [Thu, 3 Oct 2019 00:25:16 +0000 (02:25 +0200)]
python3: get rid of xrange

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoMerge pull request #1309 from jtlayton/fixes
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>
6 years agoMerge pull request #1313 from kshtsk/wip-open-instead-file
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

6 years agopython3: use open() function instead file() class 1313/head
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>
6 years agoMerge pull request #1310 from kshtsk/wip-all-ipv4-octets-in-target-names
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

6 years agoRemove BaseException.message deprecation warning 1310/head
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>
6 years agoUse yaml.safe_load to suppress deprecation warning
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>
6 years agoopenstack: encode instance name with the full IP
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

6 years agoMerge pull request #847 from kmroz/wip-docs
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

6 years agoMerge pull request #1092 from gohighsec/master
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…

6 years agodescribe_tests: skip over hidden directories 1309/head
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>
6 years agobootstrap: force usage of python2 in virtualenv command
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>
6 years agoMerge pull request #1302 from rishabh-d-dave/rewrite-remote-mktemp
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

6 years agoMerge pull request #1303 from rhcs-dashboard/wip-minimal-reqs
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>
6 years agobeanstalk: switch to py3 compatible package 1307/head
Kyr Shatskyy [Thu, 6 Jun 2019 13:46:46 +0000 (15:46 +0200)]
beanstalk: switch to py3 compatible package

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoMerge pull request #1300 from smithfarm/wip-install-no-purge
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

6 years agoinstall: drop purge_data and related code 1300/head
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>
6 years agoMerge pull request #1305 from kshtsk/wip-safe-load
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>
6 years agosuite/run: use yaml.safe_load 1305/head
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>
6 years agoMerge pull request #1304 from batrick/selinux-smartd
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>
6 years agoselinux: ignore smartd 1304/head
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>
6 years agosetup.py: move myqslclient to optional deps 1303/head
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>
6 years agoorchestra/remote: rewrite mktemp to use coreutils mktemp 1302/head
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>
6 years agoMerge pull request #1301 from rishabh-d-dave/remote-add-mkdtemp
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

6 years agoorchestra/remote: add a method to create temporary directory 1301/head
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>
6 years agoMerge pull request #1299 from kshtsk/wip-kernel-none
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

6 years agosuite/run: add support 'none' for kernel branch parameter 1299/head
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>
6 years agoMerge pull request #1282 from kshtsk/wip-suse-disable-ansible
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>
6 years agoMerge PR #1298 into master
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>
6 years agoteuthology/orchestra/daemon: fix the log type 1298/head
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>
6 years agoteuthology/orchestra/daemon: Check if stdin is valid
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>
6 years agoMerge PR #1296 into master
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>
6 years agoteuthology/console: allow deferring login after reset 1296/head
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>
6 years agoMerge PR #1295 into master
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>
6 years agoorchestra/daemon: Fix proc AttributeError: 'NoneType' 1295/head
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>
6 years agoinitial_tasks: make it possible to disable ansible 1282/head
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>
6 years agoMerge pull request #1289 from kshtsk/fix-testexiter
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

6 years agoMerge pull request #1293 from kshtsk/add-param-to-config-load
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

6 years agoMerge pull request #1294 from ceph/update-deps
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

6 years agopip-compile -P ansible 1294/head
Zack Cerza [Tue, 4 Jun 2019 20:25:10 +0000 (14:25 -0600)]
pip-compile -P ansible

6 years agopip-compile -P paramiko
Zack Cerza [Tue, 4 Jun 2019 20:19:38 +0000 (14:19 -0600)]
pip-compile -P paramiko

6 years agopip-compile -P pyopenssl
Zack Cerza [Tue, 4 Jun 2019 20:19:08 +0000 (14:19 -0600)]
pip-compile -P pyopenssl

6 years agopip-compile -P cryptography
Zack Cerza [Tue, 4 Jun 2019 20:18:42 +0000 (14:18 -0600)]
pip-compile -P cryptography

6 years agopip-compile -P requests
Zack Cerza [Tue, 4 Jun 2019 20:18:12 +0000 (14:18 -0600)]
pip-compile -P requests

6 years agopip-compile -P pyyaml
Zack Cerza [Tue, 4 Jun 2019 20:17:46 +0000 (14:17 -0600)]
pip-compile -P pyyaml

6 years agopip-compile -P jinja2
Zack Cerza [Tue, 4 Jun 2019 20:17:13 +0000 (14:17 -0600)]
pip-compile -P jinja2

6 years agopy3: make imports python2/3 compatible 1289/head
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>
6 years agoconfig: add parameter for config load 1293/head
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>
6 years agoMerge pull request #1287 from kshtsk/wip-suse-libcloud-userdata-cfg
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

6 years agolibcloud: add test for userdata read from config 1287/head
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>
6 years agoMerge pull request #1291 from batrick/i39554
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>