]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
5 years agotask/install/daemon-helper: python3 1384/head
Sage Weil [Fri, 13 Dec 2019 19:57:53 +0000 (19:57 +0000)]
task/install/daemon-helper: python3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotask/kernel: don't fail if we're confused by grub 1378/head
Sage Weil [Thu, 12 Dec 2019 20:05:35 +0000 (20:05 +0000)]
task/kernel: don't fail if we're confused by grub

If we don't have menuitem in the grub conf, and we dn't see /boot/loader/entries
file, just don't do grub2-set-default at all and hope for the best.  Worst
case we'll fail later because we didn't boot the right kernel.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotask/kernel: adapt to el8 grub2 /boot/loader/entries/*.conf
Sage Weil [Wed, 11 Dec 2019 19:27:22 +0000 (19:27 +0000)]
task/kernel: adapt to el8 grub2 /boot/loader/entries/*.conf

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotask/kernel: drop removal of old kernels
Sage Weil [Wed, 11 Dec 2019 16:11:08 +0000 (16:11 +0000)]
task/kernel: drop removal of old kernels

1- this isn't necessary anymore with fog
2- the package-cleanup --oldkernels option doesn't exist in el8

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotask/kernel: fix grub2 detection
Sage Weil [Wed, 11 Dec 2019 17:23:20 +0000 (17:23 +0000)]
task/kernel: fix grub2 detection

grub2 rpm doesn't exist... el8 has

grub2-tools-extra-2.02-66.el8.x86_64
grub2-pc-modules-2.02-66.el8.noarch
grub2-tools-2.02-66.el8.x86_64
grub2-pc-2.02-66.el8.x86_64
grubby-8.40-34.el8.x86_64
grub2-common-2.02-66.el8.noarch
grub2-tools-minimal-2.02-66.el8.x86_64

and el7 has

grub2-tools-minimal-2.02-0.76.el7.centos.x86_64
grub2-pc-2.02-0.76.el7.centos.x86_64
grub2-common-2.02-0.76.el7.centos.noarch
grub2-tools-extra-2.02-0.76.el7.centos.x86_64
grubby-8.28-25.el7.x86_64
grub2-pc-modules-2.02-0.76.el7.centos.noarch
grub2-tools-2.02-0.76.el7.centos.x86_64
grub2-2.02-0.76.el7.centos.x86_64

The difference seems to be that el7 *also* has a /boot/grub directory. Let's
hope this change doesn't break it!

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotask/install: make sure /etc/yum/plugin.conf.d/priorities.conf exists
Sage Weil [Wed, 11 Dec 2019 19:31:45 +0000 (19:31 +0000)]
task/install: make sure /etc/yum/plugin.conf.d/priorities.conf exists

If it doesn' teh subsequent commands all fail.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomisc: get_system_type: RedHatEnterprise is RHEL
Sage Weil [Wed, 11 Dec 2019 17:04:15 +0000 (17:04 +0000)]
misc: get_system_type: RedHatEnterprise is RHEL

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #1381 from ceph/wip-cephadm
Sage Weil [Thu, 12 Dec 2019 18:37:52 +0000 (12:37 -0600)]
Merge pull request #1381 from ceph/wip-cephadm

orchestra: ceph-daemon -> cephadm

5 years agoorchestra: ceph-daemon -> cephadm 1381/head
Sage Weil [Thu, 12 Dec 2019 16:43:02 +0000 (16:43 +0000)]
orchestra: ceph-daemon -> cephadm

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #1379 from tchaikov/wip-43192
Kefu Chai [Thu, 12 Dec 2019 07:35:32 +0000 (15:35 +0800)]
Merge pull request #1379 from tchaikov/wip-43192

setup.py: add missing dependencies of tests

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agosetup.py: add missing dependencies of tests 1379/head
Kefu Chai [Thu, 12 Dec 2019 04:56:19 +0000 (12:56 +0800)]
setup.py: add missing dependencies of tests

Fixes: https://tracker.ceph.com/issues/43192
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodocs: document the fix for incompatible pip-tools with newer pip
Kefu Chai [Thu, 12 Dec 2019 04:43:04 +0000 (12:43 +0800)]
docs: document the fix for incompatible pip-tools with newer pip

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agosetup.py: move more tests related deps to "test"
Kefu Chai [Thu, 12 Dec 2019 03:14:07 +0000 (11:14 +0800)]
setup.py: move more tests related deps to "test"

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1375 from ceph/wip-centos8
David Galloway [Wed, 11 Dec 2019 00:08:13 +0000 (19:08 -0500)]
Merge pull request #1375 from ceph/wip-centos8

orchestra/opsys: enable centos 8

5 years agoorchestra/opsys: enable centos 8 1375/head
Sage Weil [Tue, 10 Dec 2019 18:54:09 +0000 (18:54 +0000)]
orchestra/opsys: enable centos 8

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #1374 from ceph/wip-valgrind-file
kshtsk [Tue, 10 Dec 2019 10:13:10 +0000 (11:13 +0100)]
Merge pull request #1374 from ceph/wip-valgrind-file

valgrind.supp is used from ceph/qa

5 years agovalgrind.supp is used from ceph/qa, we should remove this from setup to avoid 1374/head
Vasu Kulkarni [Tue, 10 Dec 2019 03:12:21 +0000 (19:12 -0800)]
valgrind.supp is used from ceph/qa, we should remove this from setup to avoid
any confusion

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
5 years agoMerge pull request #1373 from kshtsk/wip-opensuse-distro-defaults
kshtsk [Tue, 10 Dec 2019 00:33:25 +0000 (01:33 +0100)]
Merge pull request #1373 from kshtsk/wip-opensuse-distro-defaults

suite/util: add opensuse to distro defaults

5 years agosuite/util: add opensuse to distro defaults 1373/head
Kyr Shatskyy [Mon, 9 Dec 2019 14:43:39 +0000 (15:43 +0100)]
suite/util: add opensuse to distro defaults

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1367 from tchaikov/wip-deps
Kefu Chai [Fri, 6 Dec 2019 15:21:37 +0000 (23:21 +0800)]
Merge pull request #1367 from tchaikov/wip-deps

update/cleanup dependencies

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
5 years agodocs: document how requirements.txt is updated 1367/head
Kefu Chai [Wed, 4 Dec 2019 17:18:24 +0000 (01:18 +0800)]
docs: document how requirements.txt is updated

we should update this document once
https://github.com/jazzband/pip-tools/issues/625 is fixed and/or
https://github.com/jazzband/pip-tools/issues/908 is merged

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agosetup.py: move test related stuff to optional deps
Kefu Chai [Wed, 27 Nov 2019 10:00:09 +0000 (18:00 +0800)]
setup.py: move test related stuff to optional deps

all of them are for testing teuthology itself.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoremove unused dependencies
Kefu Chai [Mon, 25 Nov 2019 06:10:20 +0000 (14:10 +0800)]
remove unused dependencies

following dependencies are removed in this change, as they are not
used anymore

* bunch
* web.py

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agosetup.py: move orchestra related stuff to optional deps
Kefu Chai [Mon, 25 Nov 2019 05:56:54 +0000 (13:56 +0800)]
setup.py: move orchestra related stuff to optional deps

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopip-compile -P pyyaml
Kefu Chai [Mon, 25 Nov 2019 05:00:01 +0000 (13:00 +0800)]
pip-compile -P pyyaml

to be consistent with its name on https://pypi.org/project/PyYAML

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopip-compile -P gevent
Kefu Chai [Mon, 25 Nov 2019 04:52:57 +0000 (12:52 +0800)]
pip-compile -P gevent

so it's compatible with python3.7

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1371 from rhcs-dashboard/add-cryptography
Gregory Farnum [Sat, 30 Nov 2019 22:11:34 +0000 (14:11 -0800)]
Merge pull request #1371 from rhcs-dashboard/add-cryptography

Add cryptography as explicit dependency

5 years agoAdd cryptography as explicit dependency 1371/head
Alfonso Martínez [Fri, 29 Nov 2019 10:49:46 +0000 (11:49 +0100)]
Add cryptography as explicit dependency

Right now it's installed implicitly, but these feature tests require it:
https://github.com/ceph/ceph/pull/31922

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agoMerge pull request #1361 from kshtsk/wip-circular-imports
kshtsk [Mon, 25 Nov 2019 16:37:31 +0000 (17:37 +0100)]
Merge pull request #1361 from kshtsk/wip-circular-imports

remove circular imports

5 years agoMerge pull request #1364 from kshtsk/wip-cloud-openstack-py3
kshtsk [Sun, 24 Nov 2019 18:27:13 +0000 (19:27 +0100)]
Merge pull request #1364 from kshtsk/wip-cloud-openstack-py3

make cloud openstack py3 compatible

5 years agoMerge pull request #1347 from kshtsk/wip-libcloud-2.6.0
Kefu Chai [Fri, 22 Nov 2019 17:33:29 +0000 (01:33 +0800)]
Merge pull request #1347 from kshtsk/wip-libcloud-2.6.0

deps: bump apache-libcloud from 1.5.0 to 2.6.0

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomisc: drop 'basestring' usage for py3 compat 1364/head
Kyr Shatskyy [Mon, 18 Nov 2019 21:47:21 +0000 (22:47 +0100)]
misc: drop 'basestring' usage for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite/util: convert iter items to list for py3
Kyr Shatskyy [Thu, 21 Nov 2019 15:03:53 +0000 (16:03 +0100)]
suite/util: convert iter items to list for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agodescribe_tests: make test py3 compat
Kyr Shatskyy [Thu, 21 Nov 2019 14:54:14 +0000 (15:54 +0100)]
describe_tests: make test py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agocloud/util: make syntax py3 compat
Kyr Shatskyy [Thu, 21 Nov 2019 14:45:38 +0000 (15:45 +0100)]
cloud/util: make syntax py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agopackaging: fix syntax for py3 compat
Kyr Shatskyy [Thu, 21 Nov 2019 14:36:47 +0000 (15:36 +0100)]
packaging: fix syntax for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/run: avoid usage of basestring for py3
Kyr Shatskyy [Thu, 21 Nov 2019 13:55:38 +0000 (14:55 +0100)]
orchestra/run: avoid usage of basestring for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agocloud/openstack: convert filter to list for py3 compat
Kyr Shatskyy [Wed, 20 Nov 2019 23:10:36 +0000 (00:10 +0100)]
cloud/openstack: convert filter to list for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotest/run: py3 compatibility
Kyr Shatskyy [Wed, 20 Nov 2019 00:07:16 +0000 (01:07 +0100)]
test/run: py3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite/matrix: make test_build_matrix py3 compat
Kyr Shatskyy [Wed, 20 Nov 2019 00:01:29 +0000 (01:01 +0100)]
suite/matrix: make test_build_matrix py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agocontextutil: fix test for py3 compat
Kyr Shatskyy [Tue, 19 Nov 2019 23:59:27 +0000 (00:59 +0100)]
contextutil: fix test for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoopenstack: use isinstance for type check
Kyr Shatskyy [Tue, 19 Nov 2019 22:36:37 +0000 (23:36 +0100)]
openstack: use isinstance for type check

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotest/timer: use py3 compatible syntax
Kyr Shatskyy [Tue, 19 Nov 2019 20:34:46 +0000 (21:34 +0100)]
test/timer: use py3 compatible syntax

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite/matrix: use py3 compatible floor division
Kyr Shatskyy [Tue, 19 Nov 2019 20:25:49 +0000 (21:25 +0100)]
suite/matrix: use py3 compatible floor division

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agocloud/openstack: do not use basestring
Kyr Shatskyy [Tue, 19 Nov 2019 15:38:58 +0000 (16:38 +0100)]
cloud/openstack: do not use basestring

py3 does not have 'basestring' class, so it is better
to use 'str' or just avoid using 'basestring'.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoparallel: add __init__ for py3
Kyr Shatskyy [Tue, 19 Nov 2019 15:36:08 +0000 (16:36 +0100)]
parallel: add __init__ for py3

Since python3 is using __init__ instead init
it is needed to add this method.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoreport: do not use 'basestring' for py3
Kyr Shatskyy [Mon, 18 Nov 2019 21:49:34 +0000 (22:49 +0100)]
report: do not use 'basestring' for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1363 from kshtsk/wip-sle-15
kshtsk [Thu, 21 Nov 2019 16:29:42 +0000 (17:29 +0100)]
Merge pull request #1363 from kshtsk/wip-sle-15

add sle 15 for opensuse and sle

5 years agoorchestra/opsys: add 15.2 for sle and opensuse 1363/head
Kyr Shatskyy [Thu, 21 Nov 2019 16:03:07 +0000 (17:03 +0100)]
orchestra/opsys: add 15.2 for sle and opensuse

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoopenstack: enable testing on SLE-15-SP1
Nathan Cutler [Wed, 5 Dec 2018 12:06:56 +0000 (13:06 +0100)]
openstack: enable testing on SLE-15-SP1

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoorchestra/opsys: add missing SLES versions to DISTRO_CODENAME_MAP
Nathan Cutler [Thu, 1 Feb 2018 12:27:43 +0000 (13:27 +0100)]
orchestra/opsys: add missing SLES versions to DISTRO_CODENAME_MAP

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #1360 from kshtsk/wip-py3-ceph-ansible
Vasu Kulkarni [Wed, 20 Nov 2019 19:53:30 +0000 (11:53 -0800)]
Merge pull request #1360 from kshtsk/wip-py3-ceph-ansible

ceph_ansible: make code py3 compatible

5 years agolock/keys: remove useless module 1361/head
Kyr Shatskyy [Mon, 18 Nov 2019 18:33:39 +0000 (19:33 +0100)]
lock/keys: remove useless module

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agolock/ops: remove circular import of keys operations
Kyr Shatskyy [Mon, 18 Nov 2019 18:30:45 +0000 (19:30 +0100)]
lock/ops: remove circular import of keys operations

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agolock/ops: use module full path for py3 compat
Kyr Shatskyy [Thu, 14 Nov 2019 23:37:52 +0000 (00:37 +0100)]
lock/ops: use module full path for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/console: remove circular import
Kyr Shatskyy [Fri, 15 Nov 2019 18:07:45 +0000 (19:07 +0100)]
orchestra/console: remove circular import

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/kernel: simplify filter/lambda for py3 1360/head
Kyr Shatskyy [Mon, 18 Nov 2019 17:08:57 +0000 (18:08 +0100)]
task/kernel: simplify filter/lambda for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoget dict's keys as list in py3 compatible way
Kyr Shatskyy [Mon, 18 Nov 2019 16:58:04 +0000 (17:58 +0100)]
get dict's keys as list in py3 compatible way

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/install: py3 compat
Kyr Shatskyy [Mon, 18 Nov 2019 15:49:25 +0000 (16:49 +0100)]
task/install: py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotest/ansible: handle dict keys as list for py3
Kyr Shatskyy [Mon, 18 Nov 2019 15:24:24 +0000 (16:24 +0100)]
test/ansible: handle dict keys as list for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoceph_ansible: make code py3 compatible
Kyr Shatskyy [Mon, 18 Nov 2019 11:37:20 +0000 (12:37 +0100)]
ceph_ansible: make code py3 compatible

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1359 from kshtsk/wip-remote-sh-instead-run
kshtsk [Mon, 18 Nov 2019 17:29:10 +0000 (18:29 +0100)]
Merge pull request #1359 from kshtsk/wip-remote-sh-instead-run

use remote sh instead run

5 years agoorchestra/remote: use sh instead of run 1359/head
Kyr Shatskyy [Fri, 15 Nov 2019 16:56:55 +0000 (17:56 +0100)]
orchestra/remote: use sh instead of run

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/test: make syntax py3 compatible
Kyr Shatskyy [Fri, 15 Nov 2019 16:38:03 +0000 (17:38 +0100)]
orchestra/test: make syntax py3 compatible

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agodeps: bump apache-libcloud from 1.5.0 to 2.6.0 1347/head
Kyr Shatskyy [Fri, 15 Nov 2019 11:48:41 +0000 (12:48 +0100)]
deps: bump apache-libcloud from 1.5.0 to 2.6.0

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Signed-off-by: Thomas Bechtold <thomas.bechtold@suse.com>
5 years agoMerge pull request #1355 from kshtsk/wip-matrix-py3
kshtsk [Thu, 14 Nov 2019 20:31:02 +0000 (21:31 +0100)]
Merge pull request #1355 from kshtsk/wip-matrix-py3

make matrix py3 compatible

5 years agoMerge pull request #1349 from ceph/wip-cdunit
Sage Weil [Thu, 14 Nov 2019 19:40:41 +0000 (13:40 -0600)]
Merge pull request #1349 from ceph/wip-cdunit

orchestra: add ceph-daemon DaemonState support

5 years agoMerge pull request #1353 from ceph/wip-concise-run-message
Sage Weil [Thu, 14 Nov 2019 19:40:14 +0000 (13:40 -0600)]
Merge pull request #1353 from ceph/wip-concise-run-message

orchestra/run: more concise logging when we run commands

5 years agosuite: get rid of cmp for py3 1355/head
Kyr Shatskyy [Thu, 14 Nov 2019 19:06:42 +0000 (20:06 +0100)]
suite: get rid of cmp for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agopy3: use module full path for imports for py3.7
Kyr Shatskyy [Thu, 14 Nov 2019 18:32:25 +0000 (19:32 +0100)]
py3: use module full path for imports for py3.7

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoopenstack: remove flake8 messages for py3
Kyr Shatskyy [Thu, 14 Nov 2019 18:30:38 +0000 (19:30 +0100)]
openstack: remove flake8 messages for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoopenstack: use dict comprehension for py3 compat
Kyr Shatskyy [Thu, 14 Nov 2019 18:25:06 +0000 (19:25 +0100)]
openstack: use dict comprehension for py3 compat

Instead of wierd dict+map+lambda construction it is
much better to use dictionary comprehension for
readability and py3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite/matrix: make code py2/py3 compatible
Kyr Shatskyy [Thu, 14 Nov 2019 18:07:23 +0000 (19:07 +0100)]
suite/matrix: make code py2/py3 compatible

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1331 from kshtsk/wip-py3-urllib
kshtsk [Thu, 14 Nov 2019 18:20:01 +0000 (19:20 +0100)]
Merge pull request #1331 from kshtsk/wip-py3-urllib

python3: use compatible urllib packages

5 years agoMerge pull request #1341 from toabctl/private-key-usage
kshtsk [Thu, 14 Nov 2019 16:54:06 +0000 (17:54 +0100)]
Merge pull request #1341 from toabctl/private-key-usage

openstack: Make used private keys explicit

5 years agoMerge pull request #1329 from kshtsk/wip-drop-stringio-in-run
kshtsk [Thu, 14 Nov 2019 16:41:03 +0000 (17:41 +0100)]
Merge pull request #1329 from kshtsk/wip-drop-stringio-in-run

run: drop StringIO usage for py3 compatibility

5 years agopython3: add teuthology.util.compat module 1331/head
Kyr Shatskyy [Thu, 14 Nov 2019 13:27:08 +0000 (14:27 +0100)]
python3: add teuthology.util.compat module

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agopython3: use compatible urllib packages
Kyr Shatskyy [Fri, 11 Oct 2019 23:42:00 +0000 (01:42 +0200)]
python3: use compatible urllib packages

Use py2/py3 compatible functions url packages.

Python3
    from urllib.parse import parse_qs, urljoin, urlparse, urlencode
    from urllib.request import urlopen, Request
    from urllib.error import HTTPError
Python2
    from urlparse import parse_qs, urljoin, urlparse
    from urllib import urlencode
    from urllib2 import urlopen, Request, HTTPError

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1330 from kshtsk/wip-six-reraise
kshtsk [Thu, 14 Nov 2019 13:14:12 +0000 (14:14 +0100)]
Merge pull request #1330 from kshtsk/wip-six-reraise

core: use six.reraise for py2/py3 compatibility

5 years agoopenstack: Make used private keys explicit 1341/head
Thomas Bechtold [Thu, 31 Oct 2019 09:48:01 +0000 (10:48 +0100)]
openstack: Make used private keys explicit

Instead of appending possible private keyfile paths internally, make
that the default for the --key-filename command line argument so users
see it when looking at the help.
If --key-filename is given, only that key is used now (instead of
silently trying the default keys)

5 years agoMerge pull request #1352 from ceph/WIP-mRemoteCopy
kshtsk [Wed, 13 Nov 2019 19:16:33 +0000 (20:16 +0100)]
Merge pull request #1352 from ceph/WIP-mRemoteCopy

using put_file method instead of python shutil.copyfileobj so it works for python 2 and python 3 both

5 years agoMerge pull request #1343 from ceph/dependabot/pip/ansible-2.8.2
kshtsk [Wed, 13 Nov 2019 19:15:39 +0000 (20:15 +0100)]
Merge pull request #1343 from ceph/dependabot/pip/ansible-2.8.2

build(deps): bump ansible from 2.8.0 to 2.8.2

5 years agoorchestra/daemon/group: simpler syntax 1349/head
Sage Weil [Wed, 13 Nov 2019 14:31:41 +0000 (14:31 +0000)]
orchestra/daemon/group: simpler syntax

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoorchestra/daemon/cephdaemonunit: log each daemon's stdout/stderr
Sage Weil [Wed, 13 Nov 2019 00:00:41 +0000 (00:00 +0000)]
orchestra/daemon/cephdaemonunit: log each daemon's stdout/stderr

This provides parity with the legacy ceph-daemon-tool behavior.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoorchestra: add CephDaemonUnit daemonstate handler
Sage Weil [Tue, 12 Nov 2019 18:42:37 +0000 (18:42 +0000)]
orchestra: add CephDaemonUnit daemonstate handler

This is far from complete, but it's sufficient to get a cluster up and
to start + stop daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agousing put_file method instead of python shutil.copyfileobj 1352/head
Rachana Patel [Wed, 13 Nov 2019 05:22:45 +0000 (00:22 -0500)]
using put_file method instead of python shutil.copyfileobj

Signed-off-by: Rachana Patel <racpatel@redhat.com>
5 years agoorchestra/run: more concise logging when we run commands 1353/head
Sage Weil [Tue, 12 Nov 2019 15:59:05 +0000 (15:59 +0000)]
orchestra/run: more concise logging when we run commands

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #1339 from kshtsk/wip-ghpr
kshtsk [Tue, 12 Nov 2019 16:31:36 +0000 (17:31 +0100)]
Merge pull request #1339 from kshtsk/wip-ghpr

repo_utils: support github pull request branches

5 years agorepo_utils: support github refs for branches 1339/head
Kyr Shatskyy [Tue, 22 Oct 2019 09:44:11 +0000 (11:44 +0200)]
repo_utils: support github refs for branches

This adds possibility to checkout github pr providing
special purpose ref spec (like refs/pull/X/merge and
refs/pull/X/head) as branch parameter to teuthology,
for example, "teuthology-suite -t".

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1348 from kshtsk/fix-use-zypper-add-error
kshtsk [Tue, 12 Nov 2019 01:27:38 +0000 (02:27 +0100)]
Merge pull request #1348 from kshtsk/fix-use-zypper-add-error

install/rpm: fix use the 'zypper addrepo' command

5 years agoinstall/rpm: fix use the 'zypper addrepo' command 1348/head
Kyr Shatskyy [Mon, 11 Nov 2019 15:12:18 +0000 (16:12 +0100)]
install/rpm: fix use the 'zypper addrepo' command

The 74034fe0348b94aedb247910f0d1c88842f4c3ac instroduced a failure:

  Warning: No repositories defined.
  Use the 'zypper addrepo' command to add one or more repositories.

The wipe command returns exit code 6 if there is no repos in the system.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1342 from toabctl/fix-test-with-newer-git
kshtsk [Thu, 7 Nov 2019 18:56:33 +0000 (19:56 +0100)]
Merge pull request #1342 from toabctl/fix-test-with-newer-git

Fix fetch_branch() check for BranchNotFoundError with newer git

5 years agoMerge pull request #1340 from toabctl/mention-openstack-setup
Nathan Cutler [Wed, 6 Nov 2019 07:24:21 +0000 (08:24 +0100)]
Merge pull request #1340 from toabctl/mention-openstack-setup

docs: Mention step to setup nodes on OpenStack

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #1333 from smithfarm/wip-wipe-zypper-repos
Nathan Cutler [Wed, 6 Nov 2019 07:20:16 +0000 (08:20 +0100)]
Merge pull request #1333 from smithfarm/wip-wipe-zypper-repos

install/rpm: wipe all zypper repos before adding repos-under-test

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
5 years agoMerge pull request #1344 from kshtsk/wip-multiple-identityfile
kshtsk [Tue, 5 Nov 2019 18:49:13 +0000 (20:49 +0200)]
Merge pull request #1344 from kshtsk/wip-multiple-identityfile

connection: key_filename can be a list

5 years agoconnection: key_filename can be a list 1344/head
Kyr Shatskyy [Tue, 5 Nov 2019 10:40:12 +0000 (11:40 +0100)]
connection: key_filename can be a list

This commit fixes 5ac7c2f and provides support for multiple identityfile,
besides paramiko.SSHClient.connect accepts list as well for key_filename,
pydoc excerpts:

key_filename:
    the filename, or list of filenames, of optional private key(s) to
    try for authentication

Fixes: https://tracker.ceph.com/issues/42543
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoFix fetch_branch() check for BranchNotFoundError with newer git 1342/head
Thomas Bechtold [Fri, 1 Nov 2019 08:13:04 +0000 (09:13 +0100)]
Fix fetch_branch() check for BranchNotFoundError with newer git

With newer git versions, the string when a branch is not found
is lower case[1].
This fixes the test TestRepoUtils.test_fetch_branch_fake_branch which
was failing due to this problem.

[1] https://github.com/git/git/commit/0b9c3afdbfb629363

5 years agobuild(deps): bump ansible from 2.8.0 to 2.8.2 1343/head
dependabot[bot] [Sat, 2 Nov 2019 02:57:17 +0000 (02:57 +0000)]
build(deps): bump ansible from 2.8.0 to 2.8.2

Bumps [ansible](https://github.com/ansible/community) from 2.8.0 to 2.8.2.
- [Release notes](https://github.com/ansible/community/releases)
- [Commits](https://github.com/ansible/community/commits)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agodocs: Drop duplicate openstack key pair creation step 1340/head
Thomas Bechtold [Fri, 1 Nov 2019 04:47:02 +0000 (05:47 +0100)]
docs: Drop duplicate openstack key pair creation step

It's already in the "Get OpenStack credentials and test it" section
documented how to create a key pair.

5 years agodocs: Mention step to setup nodes on OpenStack
Thomas Bechtold [Wed, 23 Oct 2019 10:19:32 +0000 (12:19 +0200)]
docs: Mention step to setup nodes on OpenStack

The --setup step was missing which lead to cryptic error messages when
running the following step (calling the dummy test suite).