]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
6 years agopep8 corrections and small fix to check if coverage is defined at ctx.config level 1261/head
Vasu Kulkarni [Fri, 15 Feb 2019 17:12:10 +0000 (09:12 -0800)]
pep8 corrections and small fix to check if coverage is defined at ctx.config level

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agofix couple flake8 issues
Vasu Kulkarni [Fri, 15 Feb 2019 17:08:35 +0000 (09:08 -0800)]
fix couple flake8 issues

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoFixes ceph-ansible timeouts
Shilpa Jagannath [Fri, 15 Feb 2019 10:58:04 +0000 (16:28 +0530)]
Fixes ceph-ansible timeouts

Start firewalld before starting ceph-ansible task

6 years agoFix single cluster role name
Shilpa Jagannath [Tue, 12 Feb 2019 07:17:43 +0000 (12:47 +0530)]
Fix single cluster role name

6 years agoCluster name support removed
Shilpa Jagannath [Tue, 12 Feb 2019 05:10:57 +0000 (10:40 +0530)]
Cluster name support removed

ceph-ansible task yaml will use the name 'cluster' in rgw multisite test suite,
purely to differentiate between role names provided to the clusters in the yaml.
But it will not be using the cluster names during configuration.

6 years ago[ceph/teuthology]: disable gcov flags in ceph-coverage script
shylesh kumar [Wed, 6 Feb 2019 23:37:16 +0000 (18:37 -0500)]
[ceph/teuthology]: disable gcov flags in ceph-coverage script

Signed-off-by: shylesh kumar <shylesh.mohan@gmail.com>
6 years agoadd new cli teuthology-reimage-fog to reimage FOG provisioned nodes without actually
Vasu Kulkarni [Thu, 24 Jan 2019 21:47:58 +0000 (13:47 -0800)]
add new cli teuthology-reimage-fog to reimage FOG provisioned nodes without actually
locking the nodes.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoadd a missing comma :(
Vasu Kulkarni [Wed, 19 Dec 2018 16:58:54 +0000 (08:58 -0800)]
add a missing comma :(

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agodisable firewall run in ceph-ansible playbook
Vasu Kulkarni [Tue, 18 Dec 2018 19:02:20 +0000 (11:02 -0800)]
disable firewall run in ceph-ansible playbook

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoAdd client keys on client machines in case we are using ceph-ansible for cluster...
Shylesh Kumar [Thu, 13 Dec 2018 23:14:08 +0000 (15:14 -0800)]
Add client keys on client machines in case we are using ceph-ansible for cluster setup

Signed-off-by: Shylesh Kumar <shmohan@redhat.com>
6 years agodont use the stdout when running playbook, this may cause the prints to buffer.
Vasu Kulkarni [Mon, 17 Dec 2018 22:54:24 +0000 (14:54 -0800)]
dont use the stdout when running playbook, this may cause the prints to buffer.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoRemoved unused variable 'remote'
Shilpa Jagannath [Wed, 31 Oct 2018 10:53:28 +0000 (16:23 +0530)]
Removed unused variable 'remote'

6 years agoUpdated docstring to describe haproxy roles
Shilpa Jagannath [Tue, 30 Oct 2018 07:09:58 +0000 (12:39 +0530)]
Updated docstring to describe haproxy roles

6 years agoAdds haproxy support and other cleanup fixes
Shilpa Jagannath [Tue, 30 Oct 2018 07:02:04 +0000 (12:32 +0530)]
Adds haproxy support and other cleanup fixes

6 years agocheck if osd id is an integer, if so use it and discard any empty or non integer...
Vasu Kulkarni [Tue, 9 Oct 2018 20:27:27 +0000 (13:27 -0700)]
check if osd id is an integer, if so use it and discard any empty or non integer ids.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agofix couple more flake8 issues
Vasu Kulkarni [Mon, 8 Oct 2018 18:38:49 +0000 (11:38 -0700)]
fix couple more flake8 issues

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoAdd osd_disk_info to ctx so that any task can access it like ctx.osd_disk_info
shylesh kumar [Sat, 6 Oct 2018 01:47:21 +0000 (21:47 -0400)]
Add osd_disk_info to ctx so that any task can access it like ctx.osd_disk_info

Signed-off-by: shylesh kumar <shylesh.mohan@gmail.com>
6 years agoadd ansible 2.6 repo
Vasu Kulkarni [Thu, 4 Oct 2018 16:42:05 +0000 (09:42 -0700)]
add ansible 2.6 repo

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agofix rh_install unit test
Vasu Kulkarni [Wed, 26 Sep 2018 17:39:56 +0000 (10:39 -0700)]
fix rh_install unit test

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoexec failure fix
Shylesh Kumar [Thu, 14 Jun 2018 16:25:37 +0000 (21:55 +0530)]
exec failure fix

Signed-off-by: Shylesh Kumar <shylesh.mohan@gmail.com>
6 years agoFix log remote dir with dual clusters
Shilpa Jagannath [Fri, 31 Aug 2018 07:22:35 +0000 (12:52 +0530)]
Fix log remote dir with dual clusters

6 years agomissing nfss key added in generate hosts file section
rakesh [Fri, 22 Jun 2018 17:42:23 +0000 (23:12 +0530)]
missing nfss key  added in generate hosts file section

6 years agoFix compatibility with single cluster run
Shilpa Jagannath [Tue, 12 Jun 2018 08:31:48 +0000 (14:01 +0530)]
Fix compatibility with single cluster run

6 years agoAll fixes included for running dual cluster with ceph-ansible.
Shilpa Jagannath [Tue, 12 Jun 2018 05:17:28 +0000 (10:47 +0530)]
All fixes included for running dual cluster with ceph-ansible.

6 years agoFix unregister during final cleanup, due to stage cdn task that is not needed now.
Vasu Kulkarni [Mon, 11 Jun 2018 00:10:08 +0000 (17:10 -0700)]
Fix unregister during final cleanup, due to stage cdn task that is not needed now.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoneed to debug why check_status is being ignored, for now catch
Vasu Kulkarni [Sun, 10 Jun 2018 22:50:55 +0000 (15:50 -0700)]
need to debug why check_status is being ignored, for now catch
the command failed error, log and ignore so that tests can pass.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agounsubscribe at the start of the test as well, if nodes are not freshly reimaged
Vasu Kulkarni [Sun, 10 Jun 2018 21:41:42 +0000 (14:41 -0700)]
unsubscribe at the start of the test as well, if nodes are not freshly reimaged
then they may have subscription from old configuration

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agotypo fix and ignore status if unregister fails
Vasu Kulkarni [Sun, 10 Jun 2018 15:35:09 +0000 (08:35 -0700)]
typo fix and ignore status if unregister fails

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoEnable standard rhel repos as well after stage cdn configuration
Vasu Kulkarni [Sun, 10 Jun 2018 14:27:54 +0000 (07:27 -0700)]
Enable standard rhel repos as well after stage cdn configuration

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agosubscribe rhel octo nodes using stage cdn from configuration
Vasu Kulkarni [Fri, 8 Jun 2018 23:08:48 +0000 (16:08 -0700)]
subscribe rhel octo nodes using stage cdn from configuration

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoAdd misc cleanup options before we unlock the system
Vasu Kulkarni [Thu, 31 May 2018 17:44:40 +0000 (10:44 -0700)]
Add misc cleanup options before we unlock the system

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoosd addition fix in roles and cleanup shipped files
Vasu Kulkarni [Sat, 26 May 2018 02:11:33 +0000 (19:11 -0700)]
osd addition fix in roles and cleanup shipped files

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoship_utilities import fix
Vasu Kulkarni [Fri, 25 May 2018 22:51:24 +0000 (15:51 -0700)]
ship_utilities import fix

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoship utilities file during ceph-ansible task
Vasu Kulkarni [Fri, 25 May 2018 22:19:18 +0000 (18:19 -0400)]
ship utilities file during ceph-ansible task

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agodetect osd id's and use them in new roles as ansible can change the order
Vasu Kulkarni [Fri, 25 May 2018 05:04:08 +0000 (01:04 -0400)]
detect osd id's and use them in new roles as ansible can change the order
of osd's that are bootstrapped

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoFix roles after cluster is setup for mon/mgr/mds and also
Vasu Kulkarni [Thu, 24 May 2018 22:39:32 +0000 (18:39 -0400)]
Fix roles after cluster is setup for mon/mgr/mds and also
setup daemons for use by ceph_manager

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoFog provides fresh setup so there is no need to do any precleanup
Vasu Kulkarni [Thu, 3 May 2018 22:30:37 +0000 (15:30 -0700)]
Fog provides fresh setup so there is no need to do any precleanup

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agofast fix for nvme test
Vasu Kulkarni [Fri, 16 Mar 2018 01:38:03 +0000 (18:38 -0700)]
fast fix for nvme test

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoDisable running cm-ansible by default, FOG images have already
Vasu Kulkarni [Thu, 15 Mar 2018 00:06:34 +0000 (17:06 -0700)]
Disable running cm-ansible by default, FOG images have already
run cm-ansible code and it would be redundant to run them again.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agodont poweroff nodes, leave it as is for adhoc debug if needed.
Vasu Kulkarni [Tue, 27 Feb 2018 20:50:23 +0000 (12:50 -0800)]
dont poweroff nodes, leave it as is for adhoc debug if needed.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoOcto lab has no VPS and its default FOG, so we dont
Vasu Kulkarni [Thu, 15 Feb 2018 21:19:50 +0000 (13:19 -0800)]
Octo lab has no VPS and its default FOG, so we dont
need any data[os_type] to be sent at all for queue requests

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoskip specific os_type/os_version request when FOG reimage in place
Vasu Kulkarni [Thu, 15 Feb 2018 21:08:05 +0000 (13:08 -0800)]
skip specific os_type/os_version request when FOG reimage in place

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoEnable FOG reimage by default for all machine types
Vasu Kulkarni [Wed, 14 Feb 2018 17:33:01 +0000 (09:33 -0800)]
Enable FOG reimage by default for all machine types

the downside: you can't control from teuthology.yaml what
machines can be enabled for FOG

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agorun git_ignore_ssl task after ansible setup
Vasu Kulkarni [Sat, 6 Jan 2018 19:51:10 +0000 (11:51 -0800)]
run git_ignore_ssl task after ansible setup

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoAdd internal task to ignore ssl errors while
Vasu Kulkarni [Sat, 6 Jan 2018 02:04:25 +0000 (18:04 -0800)]
Add internal task to ignore ssl errors while
cloning from untrusted gitlab

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoAdd option to schedule jobs using simple subset
Vasu Kulkarni [Sat, 27 Jan 2018 02:32:15 +0000 (18:32 -0800)]
Add option to schedule jobs using simple subset

Total number of jobs are divided into equal subsets based on
user options and can be scheduled using 1/10, 2/10 etc

If a suite produces 100 jobs, 1/10 would schedule first 10 jobs,
2/10 will schedule next set of 10 jobs and so on.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agouse update_latest_rh_kernel for redhat configs
Vasu Kulkarni [Fri, 26 Jan 2018 01:11:01 +0000 (17:11 -0800)]
use update_latest_rh_kernel for redhat configs

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoAdd option to retry for exec task.
Vasu Kulkarni [Fri, 5 Jan 2018 01:51:04 +0000 (17:51 -0800)]
Add option to retry for exec task.

retry and sleep_for_retry options can be used with exec task without
needing to use lengthy shell based while loops for similar
task. Also adds timeout option for commands that can be used
to return within specified time.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agowhen cm-ansible breaks!, backup to skip cm-ansible and run jobs
Vasu Kulkarni [Fri, 26 Jan 2018 00:31:56 +0000 (16:31 -0800)]
when cm-ansible breaks!, backup to skip cm-ansible and run jobs

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agomisc run-rh-task fixes during rhcs 3.0
Vasu Kulkarni [Fri, 26 Jan 2018 00:23:06 +0000 (16:23 -0800)]
misc run-rh-task fixes during rhcs 3.0

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agodebian repo is setup during internal task and no longer needed.
Vasu Kulkarni [Thu, 25 Jan 2018 23:03:21 +0000 (15:03 -0800)]
debian repo is setup during internal task and no longer needed.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoSome more cleanup before repo setup and skip subscription manager
Vasu Kulkarni [Thu, 25 Jan 2018 22:49:40 +0000 (14:49 -0800)]
Some more cleanup before repo setup and skip subscription manager
for beta ISO tests

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
6 years agoMerge pull request #1258 from kshtsk/wip-no-nuke
kshtsk [Thu, 14 Feb 2019 12:23:42 +0000 (13:23 +0100)]
Merge pull request #1258 from kshtsk/wip-no-nuke

openstack: fix all volumes nuke

6 years agoopenstack: fix all volumes nuke 1258/head
Kyr Shatskyy [Wed, 6 Feb 2019 23:48:04 +0000 (00:48 +0100)]
openstack: fix all volumes nuke

Do not allow teuthology-nuke to delete all volumes on openstack.

There is a bug on some openstack clients that --name option
does not work correctly for 'openstack volume list' in contrast
to 'openstack server list' and lists all available volumes
ignoring '--name' option at all.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoMerge pull request #1255 from kshtsk/wip-reconnect-timeout
vasukulkarni [Thu, 14 Feb 2019 01:01:16 +0000 (17:01 -0800)]
Merge pull request #1255 from kshtsk/wip-reconnect-timeout

orchestra: fix retry and socket timeout misconception

6 years agoMerge pull request #1257 from kshtsk/fix-test-repo-utils
kshtsk [Mon, 11 Feb 2019 14:30:57 +0000 (15:30 +0100)]
Merge pull request #1257 from kshtsk/fix-test-repo-utils

test_repo_utils: fix shared temporary directory

6 years agotest_repo_utils: fix shared temporary directory 1257/head
Kyr Shatskyy [Mon, 11 Feb 2019 07:37:28 +0000 (08:37 +0100)]
test_repo_utils: fix shared temporary directory

Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
6 years agoorchestra: fix retry and socket timeouts misconception 1255/head
Kyr Shatskyy [Mon, 4 Feb 2019 20:08:26 +0000 (21:08 +0100)]
orchestra: fix retry and socket timeouts misconception

Fix retry and socket timeouts misconception for reconnect.
Add default sleep time as argument to the signature.

Signed-off-by: Kyr <kyrylo.shatskyy@gmail.com>
6 years agoMerge pull request #1254 from kshtsk/wip-dump-console-log
kshtsk [Tue, 5 Feb 2019 11:41:21 +0000 (12:41 +0100)]
Merge pull request #1254 from kshtsk/wip-dump-console-log

Dump console log if ssh_keyscan failed

6 years agoMerge pull request #1253 from ceph/wip-valgrind-whitelist
Gregory Farnum [Tue, 5 Feb 2019 07:51:24 +0000 (23:51 -0800)]
Merge pull request #1253 from ceph/wip-valgrind-whitelist

valgrind.supp: whitelist something in glibc

6 years agoopenstack: dump console log if ssh_keyscan failed 1254/head
Kyr Shatskyy [Mon, 4 Feb 2019 18:07:40 +0000 (19:07 +0100)]
openstack: dump console log if ssh_keyscan failed

Dump server's console log if ssh_keyscan failed

Signed-off-by: Kyr <kyrylo.shatskyy@gmail.com>
6 years agomisc: ssh_keyscan_wait should use _ssh_keyscan
Kyr Shatskyy [Mon, 4 Feb 2019 17:56:34 +0000 (18:56 +0100)]
misc: ssh_keyscan_wait should use _ssh_keyscan

After ssh_keyscan refactoring ssh_keyscan_wait should be using
the _ssh_keyscan instead.

Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
6 years agomisc: ssh_keyscan_wait should not raise any exceptions
Kyr Shatskyy [Mon, 4 Feb 2019 17:50:58 +0000 (18:50 +0100)]
misc: ssh_keyscan_wait should not raise any exceptions

The ssh_keyscan_wait raises exception MaxWhileTries while
it should return False.

Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
6 years agoMerge pull request #1256 from kshtsk/fix-f632
kshtsk [Mon, 4 Feb 2019 23:08:46 +0000 (00:08 +0100)]
Merge pull request #1256 from kshtsk/fix-f632

Fix flake8 pytest F632 errors

6 years agoFix flake8 pytest F632 errors 1256/head
Kyr Shatskyy [Mon, 4 Feb 2019 18:22:45 +0000 (19:22 +0100)]
Fix flake8 pytest F632 errors

Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
6 years agovalgrind.supp: whitelist something in glibc 1253/head
Sage Weil [Thu, 24 Jan 2019 23:03:11 +0000 (17:03 -0600)]
valgrind.supp: whitelist something in glibc

  <kind>Leak_PossiblyLost</kind>
  <xwhat>
    <text>7 bytes in 1 blocks are possibly lost in loss record 20 of 33,344</text>
    <leakedbytes>7</leakedbytes>
    <leakedblocks>1</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0xA811C23</ip>
      <obj>/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>malloc</fn>
      <dir>/builddir/build/BUILD/valgrind-3.13.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>299</line>
    </frame>
    <frame>
      <ip>0xE709809</ip>
      <obj>/usr/lib64/libc-2.17.so</obj>
      <fn>strdup</fn>
    </frame>
    <frame>
      <ip>0xFC49444</ip>
      <obj>/usr/lib64/libnl-3.so.200.23.0</obj>
      <fn>__trans_list_add</fn>
    </frame>
    <frame>
      <ip>0xF9E07E0</ip>
      <obj>/usr/lib64/libnl-route-3.so.200.23.0</obj>
    </frame>
    <frame>
      <ip>0x9BF7B02</ip>
      <obj>/usr/lib64/ld-2.17.so</obj>
      <fn>_dl_init</fn>
    </frame>
    <frame>
      <ip>0x9BE9069</ip>
      <obj>/usr/lib64/ld-2.17.so</obj>
    </frame>
    <frame>
      <ip>0x5</ip>
    </frame>
    <frame>
      <ip>0x1FFF000CA2</ip>
    </frame>
    <frame>
      <ip>0x1FFF000CAB</ip>
    </frame>
    <frame>
      <ip>0x1FFF000CAE</ip>
    </frame>
    <frame>
      <ip>0x1FFF000CB8</ip>
    </frame>
    <frame>
      <ip>0x1FFF000CBD</ip>
    </frame>
    <frame>
      <ip>0x1FFF000CC0</ip>
    </frame>
  </stack>
</error>

On centos 7.4

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #1250 from tchaikov/wip-sphinx-reformat
Gregory Farnum [Mon, 21 Jan 2019 21:26:06 +0000 (13:26 -0800)]
Merge pull request #1250 from tchaikov/wip-sphinx-reformat

task: reformat the docstring for sphinx

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge pull request #1251 from kshtsk/wip-matrix-tostr
kshtsk [Mon, 21 Jan 2019 18:41:48 +0000 (19:41 +0100)]
Merge pull request #1251 from kshtsk/wip-matrix-tostr

Fix matrix dump tostr() method

6 years agoFix matrix dump tostr() method 1251/head
Kyr Shatskyy [Tue, 15 Jan 2019 14:01:24 +0000 (15:01 +0100)]
Fix matrix dump tostr() method

Addresses issue while trying to dump matrix object:

  AttributeError: Base instance has no attribute '__getitem__'

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
6 years agotask: reformat the docstring for sphinx 1250/head
Kefu Chai [Mon, 21 Jan 2019 04:20:33 +0000 (12:20 +0800)]
task: reformat the docstring for sphinx

the code block should start with `::`, and should be indented.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #1247 from kshtsk/wip-allow-runtime-logging-for-sh
kshtsk [Thu, 17 Jan 2019 11:23:19 +0000 (12:23 +0100)]
Merge pull request #1247 from kshtsk/wip-allow-runtime-logging-for-sh

orchestra: allow runtime logging for sh

6 years agoorchestra: allow runtime logging for sh 1247/head
Kyr Shatskyy [Thu, 3 Jan 2019 07:48:07 +0000 (08:48 +0100)]
orchestra: allow runtime logging for sh

When run.run is used with 'stdout' argument, the output of run command
is read to the given stream and logged with corresponding level only after
completion, which is different from the default behaviour. This 'hides'
useful information when, for example, the command is hung or stuck.
Aso it is usually handy when there are some data can be found
in the log for a prolonged command execution during runtime.

This patch addresses the issue.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoMerge pull request #1246 from tchaikov/wip-downgrade
Kefu Chai [Thu, 3 Jan 2019 01:38:57 +0000 (09:38 +0800)]
Merge pull request #1246 from tchaikov/wip-downgrade

task/install: assert on installed_version > downgrade_version

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agotask/install: assert on installed_version > downgrade_version 1246/head
Kefu Chai [Mon, 31 Dec 2018 08:07:26 +0000 (16:07 +0800)]
task/install: assert on installed_version > downgrade_version

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #1245 from tchaikov/wip-downgrade-packages
Kefu Chai [Sat, 22 Dec 2018 01:36:42 +0000 (09:36 +0800)]
Merge pull request #1245 from tchaikov/wip-downgrade-packages

task/install: populate "downgrade_packages" to nested_config

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agotask/install: populate "downgrade_packages" to nested_config 1245/head
Kefu Chai [Fri, 21 Dec 2018 07:17:09 +0000 (15:17 +0800)]
task/install: populate "downgrade_packages" to nested_config

- populate "downgrade_packages" to `nested_config` in `task()`.
  otherwise, the "downgrade_packages" is invisible to the `install()`
  function.
- also print logging message before downgrading packages.
- cleanup rpm._downgrade_packages(), no need to format `downgrade_cmd`.
  it's already formated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #1244 from tchaikov/wip-install-downgrade-packages
Kefu Chai [Thu, 13 Dec 2018 03:01:00 +0000 (11:01 +0800)]
Merge pull request #1244 from tchaikov/wip-install-downgrade-packages

task/install: add "downgrade_packages" option for "install" task

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agotask/install: add "downgrade_packages" option for "install" task 1244/head
Kefu Chai [Tue, 11 Dec 2018 12:19:08 +0000 (20:19 +0800)]
task/install: add "downgrade_packages" option for "install" task

in rados/thrash-old-clients, hammer or jewel packages is installed. but
yum does not allow downgrade a package by default, if a newer version is
already installed. in this case, librbd1 and librados2 are installed as
dependencies of qemu-kvm. their version is 1:10.2.5-4.el7 at the time of
writing in CentOS/RHEL 7.5. so if we want to install librbd1 or
librados2 from jewel, yum will simply consider the requirement is
already fulfilled and hence do nothing. if we want to install
ceph-radosgw from jewel, yum will fail, as ceph-radosgw depends on
librados2 and other Ceph packages of the same version from jewel. but
librbd1 and librados2 have been already installed. the error message
looks like:

Error: Package: 1:ceph-common-0.94.10-87.g116a558.el7.x86_64 (Ceph)
           Requires: librados2 = 1:0.94.10-87.g116a558.el7
           Installed: 1:librados2-10.2.5-4.el7.x86_64 (@base)
               librados2 = 1:10.2.5-4.el7
           Available: 1:librados2-0.94.10-87.g116a558.el7.x86_64 (Ceph)
               librados2 = 1:0.94.10-87.g116a558.el7

so we need to downgrade librbd1 and librados2 first.

in this change, "downgrade_package" option is added for "install" task,
so we can specify packages to be downgraded to given version, these
packages won't be installed twice if they are also specified by
"install" task elsewhere to be installed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotask/install: define "project" before using it
Kefu Chai [Tue, 11 Dec 2018 09:31:08 +0000 (17:31 +0800)]
task/install: define "project" before using it

no need to define `project` at the beginning of install(), we can
just use `config.get('project', 'ceph')`. better readability this way,
as we will reference `ceph` in the same expression.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #1243 from tchaikov/wip-install-pkg-order
Kefu Chai [Tue, 11 Dec 2018 01:30:46 +0000 (09:30 +0800)]
Merge pull request #1243 from tchaikov/wip-install-pkg-order

task/install: keep the order of pkgs to be installed

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agotask/install: keep the order of pkgs to be installed 1243/head
Kefu Chai [Mon, 10 Dec 2018 14:50:38 +0000 (22:50 +0800)]
task/install: keep the order of pkgs to be installed

before this change, the package list to be installed are ordered by
the hash function used by set().

after this change, the order of packages are not changed. so we can
ensure the order of package installation is the identical to that
of package list in yaml.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #1241 from ceph/wip-job-id
vasukulkarni [Mon, 3 Dec 2018 23:32:42 +0000 (15:32 -0800)]
Merge pull request #1241 from ceph/wip-job-id

Remove unused 'machine_type' parameter from kill_job()

6 years agoMerge pull request #1194 from adamwg/no-validate-refs
vasukulkarni [Mon, 3 Dec 2018 23:32:21 +0000 (15:32 -0800)]
Merge pull request #1194 from adamwg/no-validate-refs

Add no-validate-refs option to teuthology-suite

6 years agoMerge pull request #1239 from ceph/wip-addrvec
Sage Weil [Fri, 30 Nov 2018 19:18:01 +0000 (13:18 -0600)]
Merge pull request #1239 from ceph/wip-addrvec

misc: optionally bind to v1+v2 addrs for mons

6 years agoMerge pull request #1237 from ceph/wip-rhel8
Zack Cerza [Fri, 30 Nov 2018 18:42:13 +0000 (11:42 -0700)]
Merge pull request #1237 from ceph/wip-rhel8

opsys: Add RHEL8

6 years agoMerge pull request #1238 from ceph/wip-instrument-import
Zack Cerza [Fri, 30 Nov 2018 18:41:24 +0000 (11:41 -0700)]
Merge pull request #1238 from ceph/wip-instrument-import

run_tasks.py: log the right ImportError message

6 years agoRemove unused 'machine_type' parameter from kill_job() 1241/head
Shilpa Jagannath [Wed, 28 Nov 2018 07:44:13 +0000 (13:14 +0530)]
Remove unused 'machine_type' parameter from kill_job()

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
6 years agomisc: optionally bind to v1+v2 addrs for mons 1239/head
Sage Weil [Mon, 26 Nov 2018 17:59:51 +0000 (11:59 -0600)]
misc: optionally bind to v1+v2 addrs for mons

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorun_tasks.py: allow _import to raise the right ImportError 1238/head
Nathan Cutler [Thu, 22 Nov 2018 11:59:48 +0000 (12:59 +0100)]
run_tasks.py: allow _import to raise the right ImportError

It turns out it's possible for a file qa/tasks/foo.py to exist,
yet importing it still raises an ImportError because it references a
non-existent symbol.

In this case, teuthology was clobbering the real ImportError with its
own bogus text.

Fixes: http://tracker.ceph.com/issues/37370
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoAdd validate-sha1 option to teuthology-suite 1194/head
Adam Wolfe Gordon [Mon, 23 Jul 2018 22:28:05 +0000 (16:28 -0600)]
Add validate-sha1 option to teuthology-suite

Allow users to skip validation of SHA1s passed to -S when submitting
jobs via teuthology-suite. This is useful when testing against
non-GitHub repos, since teuthology can't validate refs for a plain git
repository.

Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
6 years agoMerge PR #1234 into master 1240/head
Patrick Donnelly [Wed, 21 Nov 2018 19:40:26 +0000 (11:40 -0800)]
Merge PR #1234 into master

* refs/pull/1234/head:
only pass system errors to hub handler
small refactor of bash code

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoopsys: Add RHEL8 1237/head
David Galloway [Tue, 20 Nov 2018 20:04:53 +0000 (15:04 -0500)]
opsys: Add RHEL8

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoonly pass system errors to hub handler 1234/head
Patrick Donnelly [Fri, 9 Nov 2018 19:31:04 +0000 (11:31 -0800)]
only pass system errors to hub handler

Fixes: http://tracker.ceph.com/issues/36731
Code suggested/contributed by Kefu.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agosmall refactor of bash code
Patrick Donnelly [Fri, 9 Nov 2018 19:26:45 +0000 (11:26 -0800)]
small refactor of bash code

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #1236 from ceph/wip-netaddr
Yuri Weinstein [Wed, 14 Nov 2018 16:19:43 +0000 (08:19 -0800)]
Merge pull request #1236 from ceph/wip-netaddr

ceph_ansible: Install netaddr

6 years agoceph_ansible: Install netaddr 1236/head
David Galloway [Tue, 13 Nov 2018 20:56:44 +0000 (15:56 -0500)]
ceph_ansible: Install netaddr

See https://github.com/ceph/ceph-ansible/pull/3199

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #1230 from tchaikov/wip-better-remote-run
Kefu Chai [Mon, 12 Nov 2018 00:09:23 +0000 (08:09 +0800)]
Merge pull request #1230 from tchaikov/wip-better-remote-run

@zmc @smithfarm gents, i've updated the change to address the concerns. if no objections, i'd like merge as it is in two days.

6 years agoMerge pull request #1235 from ceph/wip-suppress-cpython
Sage Weil [Sat, 10 Nov 2018 20:11:08 +0000 (14:11 -0600)]
Merge pull request #1235 from ceph/wip-suppress-cpython

valgind: ignore all leaks relating to CPython code

6 years agovalgind: ignore all leaks relating to CPython code 1235/head
Sage Weil [Fri, 9 Nov 2018 14:53:03 +0000 (08:53 -0600)]
valgind: ignore all leaks relating to CPython code

Yes, this is a big hammer, and we are ignoring a lot.  However, it is a
HUGE step forward to what we do now, which is not check for ceph-mgr
leaks at all.

By adding this suppress I found and fixed 3 separate ceph-mgr leaks.  This
will let us prevent others (in non-Py code) from being introduced.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #1231 from kshtsk/wip-shortname-logging-for-ip
Gregory Farnum [Fri, 2 Nov 2018 20:07:23 +0000 (13:07 -0700)]
Merge pull request #1231 from kshtsk/wip-shortname-logging-for-ip

Fix ipv4 and ipv6 address logging for Remote.run

Reviewed-by: Greg Farnum <gfarnum@redhat.com>