]>
git.apps.os.sepia.ceph.com Git - teuthology.git/log
Nathan Cutler [Mon, 13 Mar 2017 16:21:52 +0000 (17:21 +0100)]
buildpackages: use install-deps.sh from local clone if available
Fixes: https://github.com/SUSE/teuthology/issues/53
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Mon, 13 Mar 2017 15:16:50 +0000 (16:16 +0100)]
openstack/buildpackages: tweaked opensuse 42.2 user-data
Fixes: https://github.com/SUSE/teuthology/issues/54
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 8 Feb 2017 23:08:06 +0000 (00:08 +0100)]
openstack: add opensuse-42.2 userdata
Symlink to 42.1
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Sun, 19 Feb 2017 22:13:44 +0000 (23:13 +0100)]
buildpackages: conditionally fetch tags from ceph/ceph.git
A new parameter, canonical_tags, is added to .teuthology.yaml defaulting to
true.
A new command-line option "--no-canonical-tags" is added to teuthology-openstack
(when given, canonical_tags is set to false in .teuthology.yaml; otherwise it
defaults to true).
The buildpackages task is modified to take the appropriate action based on the
value of canonical_tags taken from .teuthology.yaml. Also, an info message is
displayed reminding the user that the command-line parameter only takes place
when the teuthology VM is created. Like --simultaneous-jobs, the parameter has
no effect in subsequent runs against an existing teuthology environment.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Conflicts:
scripts/openstack.py
Nathan Cutler [Sun, 12 Feb 2017 12:04:58 +0000 (13:04 +0100)]
buildpackages: use sle instead of sles for SUSE Linux Enterprise
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 8 Feb 2017 20:22:09 +0000 (21:22 +0100)]
tasks: import buildpackages.py from ceph/ceph master
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Sat, 18 Feb 2017 11:12:20 +0000 (12:12 +0100)]
buildpackages: add centos-7.3-user-data.txt
Tests are failing with:
2017-02-18T11:07:34.742 DEBUG:teuthology.misc:timeout 30m openstack server create --image 'teuthology-centos-7.3-x86_64' --flavor hg-60-ssd --key-name teuthology --security-group teuthology --property ownedby=149.202.169.26 --user-data centos-7.3-user-data.txt --wait ceph-rpm-centos7-x86_64-basic-
f65754e312f11823c5bb7e9fe24655f3fd68bcd2
2017-02-18T11:07:37.227 DEBUG:teuthology.misc:Can't open 'centos-7.3-user-data.txt': [Errno 2] No such file or directory: 'centos-7.3-user-data.txt'
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Sun, 12 Feb 2017 21:14:32 +0000 (22:14 +0100)]
buildpackages: fix make-rpm.sh for kraken + SUSE
tl;dr:
SUSE builds in the OBS do not use the make-dist script to generate the
tarball. This commit overrides a SUSE downstream patch that was breaking
make-dist.
Full analysis:
make-rpm.sh breaks for kraken when run on SLE-12-SP2:
+ rpmbuild -ba --define '_unpackaged_files_terminate_build 0' --define '_topdir /tmp/release/sles/WORKDIR' ceph.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.F2hJfx
+ umask 022
+ cd /tmp/release/sles/WORKDIR/BUILD
+ cd /tmp/release/sles/WORKDIR/BUILD
+ rm -rf ceph-11.1.0
+ /usr/bin/bzip2 -dc /tmp/release/sles/WORKDIR/SOURCES/
ceph-11.1.0-7423-g8f37fcc .tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ceph-11.1.0
/var/tmp/rpm-tmp.F2hJfx: line 35: cd: ceph-11.1.0: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.F2hJfx (%prep)
The buildpackages task uses "make-dist" to generate the tarball. In order for
the tarball so generated to be buildable by rpmbuild, the spec file must
contain the following lines:
Version: @VERSION@
Release: @RPM_RELEASE@%{?dist}
...
%prep
%autosetup -p1 -n @TARBALL_BASENAME@
SUSE builds in OBS/IBS use a modified spec file and uses a different mechanism
to generate the tarball. (This worked well up until jewel but for kraken and
beyond we may need to reconsider.) In the SUSE downstream version of the spec
file, the lines look like this:
Version: @VERSION@
Release: @RPM_RELEASE@%{?dist}
...
%prep
%if 0%{?rhel}
%autosetup -p1 -n @TARBALL_BASENAME@
%endif
%if ! 0%{?rhel}
%autosetup -p1
%endif
The absence of "-n @TARBALL_BASENAME@" causes the tarball basename to be
"ceph-$VERSION" (e.g. ceph-12.0.0) instead of the full
"ceph-$VERSION-$RPM_RELEASE" (e.g. ceph-12.0.0-3534.g000000), yet rpmbuild
expects the latter because the "Release:" field of the spec file is populated.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Fri, 10 Feb 2017 22:09:02 +0000 (23:09 +0100)]
buildpackages: populate version file with RPM version
Until now, the "version" file contained a string like
10.2.5-6244-g9027e75
The RPM version obtained by doing "rpm -q $PKG --qf %{VERSION}-%{RELEASE}"
looks like this: 10.2.5-6244.g9027e75
When teuthology compares these two strings, they don't match even though
the version numbers are effectively the same.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 8 Feb 2017 20:18:57 +0000 (21:18 +0100)]
buildpackages: add user-data for newer SUSE versions
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Loic Dachary [Tue, 7 Feb 2017 21:26:27 +0000 (22:26 +0100)]
buildpackages: apply suse modifications
From https://github.com/SUSE/ceph-qa-suite/tree/wip-opensuse-jewel
because it is known to work. Omit the branch specification.
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 7 Feb 2017 17:26:03 +0000 (18:26 +0100)]
buildpackages: import from ceph/master
It is exactly the same in all branches. It really belongs in teuthology
and was placed in ceph-qa-suite because it required a more flexible
development cycle.
Signed-off-by: Loic Dachary <loic@dachary.org>
Nathan Cutler [Thu, 2 Feb 2017 21:21:39 +0000 (22:21 +0100)]
setup-openstack.sh: populate all subnets
It used to be that OVH only returned a single subnet. Now it is returning two
or three and we need to populate them all.
Fixes: https://bugzilla.suse.com/show_bug.cgi?id=1023263
Signed-off-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Loic Dachary [Mon, 28 Mar 2016 16:40:25 +0000 (18:40 +0200)]
openstack: cloudlab support
The only image available and working there at the moment is 14.04.1
which require a few tweaks to be setup properly.
https://groups.google.com/forum/#!topic/cloudlab-users/EN6YASWXwZU
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Mon, 7 Mar 2016 09:30:26 +0000 (16:30 +0700)]
openstack: setup ceph-workbench credentials
Signed-off-by: Loic Dachary <loic@dachary.org>
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>
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
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>
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>
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
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>
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
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
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>
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>
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>
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>
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
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
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>
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
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
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>
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
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>
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>