]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
5 years agoopenstack: apt-get install --force-yes
Loic Dachary [Mon, 28 Mar 2016 16:38:19 +0000 (18:38 +0200)]
openstack: apt-get install --force-yes

So that the setup is not disturbed by temporary signature breakage which
sometime happens on the Ubuntu repo.

Signed-off-by: Loic Dachary <loic@dachary.org>
5 years agoopenstack: clear nginx root
Loic Dachary [Sat, 12 Mar 2016 09:39:12 +0000 (16:39 +0700)]
openstack: clear nginx root

So it can be explored by a human being instead of being hidden by an
empty index.html.

Signed-off-by: Loic Dachary <loic@dachary.org>
5 years agoteuthology-openstack: do not deploy cluster by default
Kyr Shatskyy [Tue, 16 Oct 2018 11:09:38 +0000 (13:09 +0200)]
teuthology-openstack: do not deploy cluster by default

We do not want to deploy cluster by mistake, so it is
reasonable to have dedicated option for cluster deployment,
like --setup.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
Conflicts:
teuthology/openstack/__init__.py

5 years agoopenstack: allow setting of teuthology VM params from command line
Nathan Cutler [Tue, 11 Apr 2017 08:59:11 +0000 (10:59 +0200)]
openstack: allow setting of teuthology VM params from command line

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoopenstack: add new OVH flavors to filter list
Nathan Cutler [Tue, 11 Apr 2017 09:14:32 +0000 (11:14 +0200)]
openstack: add new OVH flavors to filter list

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoopenstack: user-data: add filesystems:ceph:mimic OBS repo
Nathan Cutler [Sun, 4 Mar 2018 23:46:25 +0000 (00:46 +0100)]
openstack: user-data: add filesystems:ceph:mimic OBS repo

Temporary measure to make it possible for DeepSea to deploy Ceph
in openSUSE Leap 15.0

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoopenstack: user-data: remove system librados2 librbd1
Nathan Cutler [Sun, 4 Mar 2018 10:58:58 +0000 (11:58 +0100)]
openstack: user-data: remove system librados2 librbd1

The pre-installed system librados2 and librbd1 packages may block us
from installing packages-under-test.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoopenstack: user-data: tweak packages on openSUSE Leap 15.0
Nathan Cutler [Sat, 3 Mar 2018 22:22:29 +0000 (23:22 +0100)]
openstack: user-data: tweak packages on openSUSE Leap 15.0

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agobuildpackages: use install-deps.sh from local clone if available
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>
5 years agoopenstack/buildpackages: tweaked opensuse 42.2 user-data
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>
5 years agoopenstack: add opensuse-42.2 userdata
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>
5 years agobuildpackages: conditionally fetch tags from ceph/ceph.git
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

5 years agobuildpackages: use sle instead of sles for SUSE Linux Enterprise
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>
5 years agotasks: import buildpackages.py from ceph/ceph master
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>
5 years agobuildpackages: add centos-7.3-user-data.txt
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>
5 years agobuildpackages: fix make-rpm.sh for kraken + SUSE
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>
5 years agobuildpackages: populate version file with RPM version
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>
5 years agobuildpackages: add user-data for newer SUSE versions
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>
5 years agobuildpackages: apply suse modifications
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>
5 years agobuildpackages: import from ceph/master
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>
5 years agosetup-openstack.sh: populate all subnets
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>
5 years agoopenstack: cloudlab support
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>
5 years agoopenstack: setup ceph-workbench credentials
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>
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>
5 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>