]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
5 years agoAdded task level log files and job tasks html report file in archive directory wip-sunil-rh
sunilkumarn417 [Wed, 16 Sep 2020 13:21:41 +0000 (18:51 +0530)]
Added task level log files and job tasks html report file in archive directory
And change max job time in worker.py.

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoset max job time for system tests
sunilkumarn417 [Fri, 4 Sep 2020 13:47:53 +0000 (19:17 +0530)]
set max job time for system tests

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoupdated redhat ntp server in ntp.conf
sunilkumarn417 [Wed, 5 Aug 2020 08:44:37 +0000 (14:14 +0530)]
updated redhat ntp server in ntp.conf

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agocreated new rhos-d osp provider provisioner class
sunilkumarn417 [Fri, 31 Jul 2020 13:18:35 +0000 (18:48 +0530)]
created new rhos-d osp provider provisioner class

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoRHOSD openstack changes python3 compatibility
sunilkumarn417 [Fri, 31 Jul 2020 12:51:28 +0000 (18:21 +0530)]
RHOSD openstack changes python3 compatibility

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoAdd option to schedule jobs using simple subset
Vasu Kulkarni [Mon, 22 Jun 2020 09:32:26 +0000 (15:02 +0530)]
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>
5 years agoadd derefernce of symlink
Vasu Kulkarni [Tue, 12 May 2020 03:11:35 +0000 (20:11 -0700)]
add derefernce of symlink

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
5 years agoHandle derefernce of symlinks during tar
Vasu Kulkarni [Tue, 12 May 2020 03:08:23 +0000 (20:08 -0700)]
Handle derefernce of symlinks during tar

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
5 years agogenerate polarion frag-ids
rakeshgm [Thu, 23 Apr 2020 13:40:26 +0000 (19:10 +0530)]
generate polarion frag-ids

Signed-off-by: rakeshgm <rakeshgm@redhat.com>
5 years agoMerge pull request #1563 from tchaikov/pip-resolver
Kefu Chai [Thu, 24 Sep 2020 02:55:55 +0000 (10:55 +0800)]
Merge pull request #1563 from tchaikov/pip-resolver

bootstrap: use pip --use-feature=2020-resolver

Reviewed-by: David Galloway <dgallowa@redhat.com>
5 years agobootstrap: use pip --use-feature=2020-resolver 1563/head
Kefu Chai [Wed, 23 Sep 2020 14:26:50 +0000 (22:26 +0800)]
bootstrap: use pip --use-feature=2020-resolver

follow the suggestion from pip

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1561 from tchaikov/wip-doc-rtd
Kefu Chai [Fri, 18 Sep 2020 03:00:19 +0000 (11:00 +0800)]
Merge pull request #1561 from tchaikov/wip-doc-rtd

doc: add requirements.txt

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agodoc: add requirements.txt 1561/head
Kefu Chai [Fri, 18 Sep 2020 01:54:33 +0000 (09:54 +0800)]
doc: add requirements.txt

so we can built this project using readthedocs.org

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1557 from kshtsk/wip-id_rsa-0500
kyr [Sun, 6 Sep 2020 18:08:40 +0000 (20:08 +0200)]
Merge pull request #1557 from kshtsk/wip-id_rsa-0500

Use remote.write_file instead of misc.create_file

5 years agotask/ssh_keys: use remote.write_file instead misc.create_file 1557/head
Kyr Shatskyy [Sat, 5 Sep 2020 09:23:56 +0000 (11:23 +0200)]
task/ssh_keys: use remote.write_file instead misc.create_file

Because misc.create_file with data arguments creates file,
changes permissions, and later appends the data using
misc.append_lines_to_file, this logic makes the algorythm
above to fail if the file created without write permissions.

    2020-09-05T10:00:32.003 INFO:teuthology.task.ssh_keys:pushing keys to smithi086.front.sepia.ceph.com for ubuntu
    2020-09-05T10:00:32.003 INFO:teuthology.orchestra.run.smithi086:> rm -f -- /home/ubuntu/.ssh/id_rsa
    2020-09-05T10:00:32.046 INFO:teuthology.orchestra.run.smithi086:> touch /home/ubuntu/.ssh/id_rsa && chmod 500 -- /home/ubuntu/.ssh/id_rsa
    2020-09-05T10:00:32.095 INFO:teuthology.orchestra.run.smithi086:> set -ex
    2020-09-05T10:00:32.096 INFO:teuthology.orchestra.run.smithi086:> dd of=/home/ubuntu/.ssh/id_rsa conv=notrunc oflag=append
    2020-09-05T10:00:32.140 INFO:teuthology.orchestra.run.smithi086.stderr:+ dd of=/home/ubuntu/.ssh/id_rsa conv=notrunc oflag=append
    2020-09-05T10:00:32.142 INFO:teuthology.orchestra.run.smithi086.stderr:dd: failed to open '/home/ubuntu/.ssh/id_rsa': Permission denied
    2020-09-05T10:00:32.142 DEBUG:teuthology.orchestra.run:got remote process result: 1

However we have more advanced remote.write_file function now,
which does not have such issues and moreover creates file
with the data provided in a single hop without trying to
download the file locally.

Related-to: 243ff3bbf218102b24ed992e3931bf8c76cdaadd
Related-to: 45aba9cf8d72fd30ca607200694c638cfd240fd8
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/ansible: reset fail_log file index 1556/head
Kyr Shatskyy [Fri, 4 Sep 2020 20:53:05 +0000 (22:53 +0200)]
task/ansible: reset fail_log file index

The yaml.safe_load reads the fail_log opened file
and shifts the offset to the end of stream.
However in case of error we need to shift offset
to the begin of the file stream, so we can read
data again.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/remote: raise FileNotFoundError in read_file
Kyr Shatskyy [Fri, 4 Sep 2020 16:47:03 +0000 (18:47 +0200)]
orchestra/remote: raise FileNotFoundError in read_file

Raise FileNotFoundError exception if the file passed to
remote.read_file was not found.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1538 from kshtsk/wip-remote-write-file
kyr [Fri, 4 Sep 2020 14:29:50 +0000 (16:29 +0200)]
Merge pull request #1538 from kshtsk/wip-remote-write-file

Add remote file operations

5 years agoorchestra.remote: add move_file, copy_file and read_file 1538/head
Kyr Shatskyy [Mon, 20 Jul 2020 13:16:32 +0000 (15:16 +0200)]
orchestra.remote: add move_file, copy_file and read_file

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agomisc: optimize append_lines_to_file() to reuse remote.write_file
Kyr Shatskyy [Thu, 16 Jul 2020 17:35:11 +0000 (19:35 +0200)]
misc: optimize append_lines_to_file() to reuse remote.write_file

The misc.append_lines_to_file method has been using get
remote file to temporary file and then write back to
remote host.

The orchestra.remote.write_file method has 'append' parameter
when using which there is no data downloaded from remote host.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agomisc: deprecate (sudo_)write_file methods
Kyr Shatskyy [Thu, 16 Jul 2020 16:17:18 +0000 (18:17 +0200)]
misc: deprecate (sudo_)write_file methods

Deprecate misc.write_file() and misc.sudo_write_file()
in favor of the orchestra.remote package methods.
The code of the misc's methods is now calling the
remote's ones.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/remote: add (sudo_)write_file method
Kyr Shatskyy [Thu, 16 Jul 2020 16:14:57 +0000 (18:14 +0200)]
orchestra/remote: add (sudo_)write_file method

Add advanced write_file and sudo_write_file to remote context
for more intuitive and handy coding

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1548 from kshtsk/wip-laptop
kyr [Tue, 1 Sep 2020 06:50:55 +0000 (08:50 +0200)]
Merge pull request #1548 from kshtsk/wip-laptop

Setup development environment for teuthology on your laptop

5 years agoprovision/downburst: add machine customization 1548/head
Kyr Shatskyy [Fri, 21 Aug 2020 11:42:31 +0000 (13:42 +0200)]
provision/downburst: add machine customization

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoprovision/downburst: replace stock systemd-logger for opensuse-15.2
Kyr Shatskyy [Fri, 14 Aug 2020 11:04:23 +0000 (13:04 +0200)]
provision/downburst: replace stock systemd-logger for opensuse-15.2

Teuthology uses rsyslog, but opensuse-15.2 has conflicting
systemd-logger preinstalled.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoprovision/downburst: update distro conversion table
Kyr Shatskyy [Fri, 14 Aug 2020 08:51:23 +0000 (10:51 +0200)]
provision/downburst: update distro conversion table

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agodocs: teuthology ready laptop guide
Kyr Shatskyy [Wed, 12 Aug 2020 17:04:46 +0000 (19:04 +0200)]
docs: teuthology ready laptop guide

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1552 from jdurgin/wip-sentry
Josh Durgin [Mon, 31 Aug 2020 16:22:34 +0000 (09:22 -0700)]
Merge pull request #1552 from jdurgin/wip-sentry

run_tasks: improve sentry reporting

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge PR #1553 into master
Patrick Donnelly [Fri, 28 Aug 2020 01:40:43 +0000 (18:40 -0700)]
Merge PR #1553 into master

* refs/pull/1553/head:
task/install: skip package removal by default
teutholog/task/install: sort dict entries

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/install: skip package removal by default 1553/head
Patrick Donnelly [Wed, 26 Aug 2020 14:29:27 +0000 (07:29 -0700)]
task/install: skip package removal by default

Every teuthology job cleans up its package install after completion.
This was necessary cleanup when we didn't reimage boxes before the use
of FOG as we wanted a "clean" slate for the next job to acquire the
machine. Now this is just unnecessary work which takes up valuable
machine time. For one job I looked at, this takes about 2 minutes.

We should still test that there are no unexpected issues with removing
the packages but this can be delegated to a small subset of smoke tests.
That will be posted in another PR to ceph.git.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoteutholog/task/install: sort dict entries
Patrick Donnelly [Thu, 27 Aug 2020 17:48:35 +0000 (10:48 -0700)]
teutholog/task/install: sort dict entries

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #1550 from varshar16/wip-add-priority-check
Josh Durgin [Thu, 27 Aug 2020 00:08:42 +0000 (17:08 -0700)]
Merge pull request #1550 from varshar16/wip-add-priority-check

teuthology-suite: Check the priority of jobs to be run

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agorun_tasks: include more tags in sentry 1552/head
Josh Durgin [Wed, 26 Aug 2020 01:15:38 +0000 (21:15 -0400)]
run_tasks: include more tags in sentry

Sentry lets you search and filter by tag, so these will help
identifying issues within a suite, or only affecting a particular OS
or machine type.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
5 years agorun_tasks: update sentry query url
Josh Durgin [Wed, 26 Aug 2020 00:12:28 +0000 (20:12 -0400)]
run_tasks: update sentry query url

The parameter changed from q to query in the version of sentry we're using now

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #1551 from kshtsk/wip-kill-job-nuke-nodes
kyr [Tue, 25 Aug 2020 20:39:47 +0000 (22:39 +0200)]
Merge pull request #1551 from kshtsk/wip-kill-job-nuke-nodes

kill: find targets for killing a job

5 years agokill: find targets for killing a job 1551/head
Kyr Shatskyy [Tue, 25 Aug 2020 07:40:03 +0000 (09:40 +0200)]
kill: find targets for killing a job

In some circumstances teuthology-kill does not unlock the nodes
if it is used to kill just a single job from a run, for example,
while a job in the middle of locking many targets the job_info
does not include targets yet, correspondingly if someone kills
the job at that point, the targets remain in locked state.
This commit address the issue.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1545 from ceph/wip-wl-bl
kyr [Mon, 24 Aug 2020 20:58:47 +0000 (22:58 +0200)]
Merge pull request #1545 from ceph/wip-wl-bl

roles/overrides, placeholder.py: add log-ignorelist

5 years agoteuthology-suite: Check the priority of jobs to be run 1550/head
Varsha Rao [Wed, 19 Aug 2020 11:32:58 +0000 (17:02 +0530)]
teuthology-suite: Check the priority of jobs to be run

Check if the passed testing priority is according to the range mentioned in
developer guide[1]. This patch also adds '--force-priority' flag which
allows to skip the priority check.

[1] https://docs.ceph.com/docs/master/dev/developer_guide/tests-integration-tests/#testing-priority

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #1549 from sunilkumarn417/systemd-changes
Vasu Kulkarni [Tue, 18 Aug 2020 17:05:11 +0000 (10:05 -0700)]
Merge pull request #1549 from sunilkumarn417/systemd-changes

fix py3 issue in pid method

5 years agoFix py3 comparison issue(None with integers) in pid method and 1549/head
sunilkumarn417 [Tue, 18 Aug 2020 08:03:04 +0000 (13:33 +0530)]
Fix py3 comparison issue(None with integers) in pid method and
Fix split issue which creates empty string value due to newline character at
end of command response.

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoorchestra/opsys: add tumbleweed
Kyr Shatskyy [Thu, 13 Aug 2020 15:21:22 +0000 (17:21 +0200)]
orchestra/opsys: add tumbleweed

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoprovision/downburst: add environment variables
Kyr Shatskyy [Wed, 12 Aug 2020 16:17:59 +0000 (18:17 +0200)]
provision/downburst: add environment variables

Add downburst environment variables to make it possible
to config disk number and disk size when locking machines
locally.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1547 from sunilkumarn417/master
Vasu Kulkarni [Wed, 12 Aug 2020 15:33:19 +0000 (08:33 -0700)]
Merge pull request #1547 from sunilkumarn417/master

Removed dbench installation workaround for redhat downstream runs

5 years agoRemoved dbench installation workaround for redhat downstream runs 1547/head
sunilkumarn417 [Tue, 11 Aug 2020 15:11:04 +0000 (20:41 +0530)]
Removed dbench installation workaround for redhat downstream runs

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoMerge pull request #1544 from sunilkumarn417/master
Vasu Kulkarni [Fri, 7 Aug 2020 19:15:03 +0000 (12:15 -0700)]
Merge pull request #1544 from sunilkumarn417/master

added user option to perform rh kernel update

5 years agoadded user option to perform rh kernel update 1544/head
sunilkumarn417 [Fri, 7 Aug 2020 08:28:58 +0000 (13:58 +0530)]
added user option to perform rh kernel update

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>
5 years agoroles/overrides, placeholder.py: add log-ignorelist 1545/head
Neha Ojha [Fri, 7 Aug 2020 16:04:55 +0000 (16:04 +0000)]
roles/overrides, placeholder.py: add log-ignorelist

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #1543 from ceph/rh-repos
Vasu Kulkarni [Tue, 4 Aug 2020 15:02:24 +0000 (08:02 -0700)]
Merge pull request #1543 from ceph/rh-repos

read redhat repos list from downstream.yaml

5 years agoread redhat repos list from downstream.yaml 1543/head
rakeshgm [Tue, 28 Jul 2020 09:35:01 +0000 (15:05 +0530)]
read redhat repos list from downstream.yaml

Signed-off-by: rakeshgm <rakeshgm@redhat.com>
5 years agoMerge pull request #1541 from tchaikov/wip-cluster-sh
Kefu Chai [Fri, 31 Jul 2020 07:38:51 +0000 (15:38 +0800)]
Merge pull request #1541 from tchaikov/wip-cluster-sh

orchestra/cluster: be explicit that a positional argument is needed

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoorchestra/cluster: be explicit that a positional argument is needed 1541/head
Kefu Chai [Fri, 31 Jul 2020 05:05:15 +0000 (13:05 +0800)]
orchestra/cluster: be explicit that a positional argument is needed

otherwise the caller may run into

sh() missing 1 required positional argument: 'script'

if the developer only check the function signature of Cluster.sh().

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1531 from kshtsk/wip-autonomous
kyr [Wed, 29 Jul 2020 08:11:16 +0000 (10:11 +0200)]
Merge pull request #1531 from kshtsk/wip-autonomous

teuthology-suite: allow dump job configs to a file instead of beanstalkd

5 years agoMerge pull request #1529 from tchaikov/wip-requirements-cliff
Kefu Chai [Tue, 21 Jul 2020 11:55:58 +0000 (19:55 +0800)]
Merge pull request #1529 from tchaikov/wip-requirements-cliff

requirements.txt: bump up cliff and other packages.

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agorequirements: bump up python-openstackclient 1529/head
Kefu Chai [Wed, 15 Jul 2020 14:13:48 +0000 (22:13 +0800)]
requirements: bump up python-openstackclient

please note, some packages not related to python-openstackclient are
also updated. the reason is that, because before this change, all
packages are pin'ed to a certain version, but after this change
only the direct dependencies are pin'ed using requirements.txt,
so, if any of the direct dependencies does not pin its own dependencies
to a certain version, pip-compile will pick the latest available version
from pypi to fulfill the requirement, and generated requirements.txt
accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorequirements.in: add requirements.in back for tracking pinned direct requirements
Kefu Chai [Wed, 15 Jul 2020 14:02:02 +0000 (22:02 +0800)]
requirements.in: add requirements.in back for tracking pinned direct requirements

and update `update-requirements.sh` to use requirements.in for building
requirements.txt

for some install_requires versus requirements.txt, see
https://packaging.python.org/discussions/install-requires-vs-requirements/.
in an ideal world, we should have not put those non-essential dependencies in
``setup.py``.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotox.ini: force pytest to add a formatter to logger
Kefu Chai [Thu, 2 Jul 2020 10:05:25 +0000 (18:05 +0800)]
tox.ini: force pytest to add a formatter to logger

as `test_sh_progress` in `teuthology/test/test_misc.py` tries to access
LogRecord.asctime for verifying the behavior of `misc.sh()`

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoupdate-requirements.sh: pass params to pip-compile
Kefu Chai [Wed, 1 Jul 2020 08:46:17 +0000 (16:46 +0800)]
update-requirements.sh: pass params to pip-compile

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1539 from batrick/i46300
Kefu Chai [Sat, 18 Jul 2020 16:23:43 +0000 (00:23 +0800)]
Merge pull request #1539 from batrick/i46300

ignore selinux errors from ksmtuned

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoignore selinux errors from ksmtuned 1539/head
Patrick Donnelly [Fri, 17 Jul 2020 22:33:53 +0000 (15:33 -0700)]
ignore selinux errors from ksmtuned

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #1528 from kshtsk/wip-up-status
David Galloway [Thu, 16 Jul 2020 14:28:44 +0000 (10:28 -0400)]
Merge pull request #1528 from kshtsk/wip-up-status

lock/cli: show up/down status when --brief

5 years agolock/cli: show up/down status when --brief 1528/head
Kyr Shatskyy [Tue, 30 Jun 2020 17:51:45 +0000 (19:51 +0200)]
lock/cli: show up/down status when --brief

This change makes --brief option to display 'up' and 'down' statuses.

Fixes: https://tracker.ceph.com/issues/45569
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1536 from kshtsk/wip-py3-downburst
Kefu Chai [Thu, 16 Jul 2020 04:11:38 +0000 (12:11 +0800)]
Merge pull request #1536 from kshtsk/wip-py3-downburst

provision/downburst: py3 fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #1535 into master
Patrick Donnelly [Thu, 16 Jul 2020 01:28:27 +0000 (18:28 -0700)]
Merge PR #1535 into master

* refs/pull/1535/head:
orchestra/remote: increase console timeout

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoprovision/downburst: py3 fixes 1536/head
Kyr Shatskyy [Wed, 15 Jul 2020 21:11:08 +0000 (23:11 +0200)]
provision/downburst: py3 fixes

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/remote: increase console timeout 1535/head
Patrick Donnelly [Mon, 13 Jul 2020 17:14:20 +0000 (10:14 -0700)]
orchestra/remote: increase console timeout

20s appears too short for some fog operations.

Fixes: https://tracker.ceph.com/issues/46503
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #1534 from ceph/wip-defaults
David Galloway [Thu, 9 Jul 2020 16:53:03 +0000 (12:53 -0400)]
Merge pull request #1534 from ceph/wip-defaults

suite/util.py: Update Ubuntu default to Xenial

5 years agosuite/util.py: Update Ubuntu default to Xenial 1534/head
David Galloway [Thu, 9 Jul 2020 15:30:16 +0000 (11:30 -0400)]
suite/util.py: Update Ubuntu default to Xenial

This will need to change to Bionic when we stop supporting luminous or must test Octopus.

Signed-off-by: David Galloway <dgallowa@redhat.com>
5 years agoMerge pull request #1532 from kshtsk/wip-ignore-git
Kefu Chai [Wed, 8 Jul 2020 11:45:46 +0000 (19:45 +0800)]
Merge pull request #1532 from kshtsk/wip-ignore-git

teuthology: don't use git to define version for released teuthology

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoteuthology: don't use git to define version for released teuthology 1532/head
Kyr Shatskyy [Tue, 7 Jul 2020 16:45:11 +0000 (18:45 +0200)]
teuthology: don't use git to define version for released teuthology

After installing teuthology using pip there can be found error messages
in the log when running any command, for example 'teuthology --version':

  fatal: not a git repository (or any parent up to mount point /)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  Can't get version from git rev-parse Command '['git', 'rev-parse', '--short', 'HEAD']' returned non-zero exit status 128.
  1.0.0

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite/run: include 'user' and 'timestamp' in job conf 1531/head
Kyr Shatskyy [Tue, 12 May 2020 15:02:26 +0000 (17:02 +0200)]
suite/run: include 'user' and 'timestamp' in job conf

This is useful to avoid unnecessary parsing of job name in order
to get run user and timestamp.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoschedule: add more than one queue backend
Kyr Shatskyy [Sun, 10 May 2020 15:01:21 +0000 (17:01 +0200)]
schedule: add more than one queue backend

This allows to have more than one beanstalk queue for jobs.
For example, use paddles or local sqlite for managing queue.

At the moment it gives a possibility to omit 'beanstalk'
queue in order to get job configurations letting a user
to run teuthology job autonomously.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoschedule: print yaml_dump instead of pprint
Kyr Shatskyy [Sun, 10 May 2020 12:20:33 +0000 (14:20 +0200)]
schedule: print yaml_dump instead of pprint

This will allow to redirect output of dry-run to a file
which will produce a multi-document yaml, and can be
parsed easily afterwards.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agosuite: allow override architecture
Kyr Shatskyy [Sun, 10 May 2020 14:45:09 +0000 (16:45 +0200)]
suite: allow override architecture

By default for generation job configuration and filtering
them out there is 'arch' field is used determined automatically
via request to paddles database for give machine_type.

This makes it possible to override the 'arch' value with
teuthology-suite '--arch' parameter. This is only useful
at the moment just when a user don't one to make any request
to paddles.
Originally the arch is used to filter out the suites
which are not supposed to be queued on the given nodes.

In future we probably need to have tests with heterogeneous
configuration which will use multiple architectures.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1530 from shyukri/wip-py3-exception-msg
kyr [Mon, 6 Jul 2020 12:33:24 +0000 (14:33 +0200)]
Merge pull request #1530 from shyukri/wip-py3-exception-msg

run_tasks.py: Python3 don't have exception.message anymore

5 years agorun_tasks.py: Python3 don't have exception.message anymore. 1530/head
Shyukri Shyukriev [Mon, 6 Jul 2020 08:08:30 +0000 (11:08 +0300)]
run_tasks.py: Python3 don't have exception.message anymore.

This was probably working fine due to six library which was removed
recently: https://github.com/ceph/teuthology/commit/9f99b9298265be583c350c71de47109bac4bf6f1

Error seen:

```
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/worker/src/github.com_ceph_teuthology_master/teuthology/contextutil.py", line 33, in nested
    yield vars
  File "/home/worker/src/github.com_ceph_teuthology_master/teuthology/task/install/__init__.py", line 612, in task
    yield
  File "/home/worker/src/github.com_ceph_teuthology_master/teuthology/run_tasks.py", line 151, in run_tasks
    if e.message == 'too many values to unpack':
AttributeError: 'ValueError' object has no attribute 'message'
```

Signed-off-by: Shyukri Shyukriev <shshyukriev@suse.com>
5 years agoMerge pull request #1527 from smithfarm/wip-opensuse-kernel-distro
Nathan Cutler [Fri, 3 Jul 2020 14:58:36 +0000 (16:58 +0200)]
Merge pull request #1527 from smithfarm/wip-opensuse-kernel-distro

kernel: add kernel version matching code for opensuse

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
5 years agokernel: add kernel version matching code for opensuse 1527/head
Nathan Cutler [Tue, 30 Jun 2020 12:14:45 +0000 (14:14 +0200)]
kernel: add kernel version matching code for opensuse

The current code for checking if the running kernel version matches the
most recent kernel version in the repos does not work on opensuse when
"-k distro" is given.

This commit adds an opensuse-specific codepath with a version match
check that works in the opensuse testing environment.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #1526 from kshtsk/wip-reimage
Vasu Kulkarni [Wed, 1 Jul 2020 15:38:48 +0000 (08:38 -0700)]
Merge pull request #1526 from kshtsk/wip-reimage

scripts: add reimage cli tool

5 years agoscripts: add cli tools for reimaging nodes without locking 1526/head
Vasu Kulkarni [Thu, 24 Jan 2019 21:47:58 +0000 (13:47 -0800)]
scripts: add cli tools for reimaging nodes without locking

Add teuthology-reimage cli tool to be able to provision nodes using
Fog or Pelagos without locking and unlocking.

This is useful, for example, when someone just locks the node for
development or debugging purposes and do not want to release while
resetting the image, because it can happen that there are no free
nodes available.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
5 years agoprovision/pelagos: allow decanonicalized name in constructor
Kyr Shatskyy [Tue, 30 Jun 2020 13:41:32 +0000 (15:41 +0200)]
provision/pelagos: allow decanonicalized name in constructor

This is actually a bug fix for pelagos class, because fog's
name constructor supposed to use decanonicalized hostname.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1472 from kshtsk/wip-dont-report-status
Kefu Chai [Tue, 30 Jun 2020 15:39:14 +0000 (23:39 +0800)]
Merge pull request #1472 from kshtsk/wip-dont-report-status

schedule: do not report status for first and last in suite jobs

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #1525 from kshtsk/wip-journalctl-suffix
kyr [Tue, 30 Jun 2020 14:45:15 +0000 (16:45 +0200)]
Merge pull request #1525 from kshtsk/wip-journalctl-suffix

orchestra/daemon/cephadmunit: add journalctl suffix

5 years agoMerge pull request #1432 from grapheo12/scrapeAddition
kyr [Sat, 27 Jun 2020 10:01:43 +0000 (12:01 +0200)]
Merge pull request #1432 from grapheo12/scrapeAddition

Added Results Scraping after a suite is run

5 years agoAdded Scraper Script from github.com/jcsp/scrape with tests 1432/head
grapheo12 [Sun, 29 Mar 2020 16:56:33 +0000 (22:26 +0530)]
Added Scraper Script from github.com/jcsp/scrape with tests

Signed-off-by: Shubham Mishra <smishra99.iitkgp@gmail.com>
5 years agoMerge pull request #1523 from kshtsk/wip-check-repos
kyr [Thu, 25 Jun 2020 21:23:59 +0000 (23:23 +0200)]
Merge pull request #1523 from kshtsk/wip-check-repos

task/install: add check for repos

5 years agotask/install: add mention of 'repos' in task doc 1523/head
Kyr Shatskyy [Wed, 24 Jun 2020 12:48:42 +0000 (14:48 +0200)]
task/install: add mention of 'repos' in task doc

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agotask/install/rpm: verify zypper repo is valid
Kyr Shatskyy [Wed, 24 Jun 2020 12:33:19 +0000 (14:33 +0200)]
task/install/rpm: verify zypper repo is valid

Add zypper ref right after addrepo so we can fail
earlier when remote repo is gone or has any issues.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/daemon/cephadmunit: add journalctl suffix 1525/head
Kyr Shatskyy [Thu, 25 Jun 2020 16:30:27 +0000 (18:30 +0200)]
orchestra/daemon/cephadmunit: add journalctl suffix

The logger is running in background and the output is mixed
with other loggers. Adding a recognizable suffix will
help to distinguish logging threads.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1511 from ceph/dependabot/pip/httplib2-0.18.0
kyr [Thu, 25 Jun 2020 13:04:53 +0000 (15:04 +0200)]
Merge pull request #1511 from ceph/dependabot/pip/httplib2-0.18.0

build(deps-dev): bump httplib2 from 0.10.3 to 0.18.0

5 years agoMerge pull request #1512 from ceph/dependabot/pip/psutil-5.6.6
kyr [Thu, 25 Jun 2020 13:04:36 +0000 (15:04 +0200)]
Merge pull request #1512 from ceph/dependabot/pip/psutil-5.6.6

build(deps): bump psutil from 5.2.2 to 5.6.6

5 years agoMerge pull request #1513 from ceph/dependabot/pip/ansible-2.8.8
kyr [Thu, 25 Jun 2020 13:04:20 +0000 (15:04 +0200)]
Merge pull request #1513 from ceph/dependabot/pip/ansible-2.8.8

build(deps): bump ansible from 2.8.2 to 2.8.8

5 years agoschedule: do not report status for first and last in suite jobs 1472/head
Kyr Shatskyy [Tue, 12 May 2020 16:27:49 +0000 (18:27 +0200)]
schedule: do not report status for first and last in suite jobs

Addresses the issue when teuthology run gets stuck with
first_in_suite or laste_in_suite jobs in queued state.

Attention: This change requires the next steps,
which are not mutually exclusive:

 1) server teuthology worker restart, otherwise old
    worker's code will try to remove reported job
    from paddles and exit with unexpected exception.
 2) user's teuthology runner environment should be
    updated to recent code, because new workers will
    not cleanup FIS and LIS jobs and they will remain
    in paddles, correspondingly the run will get stuck.

Requires: a34fb6a3694538db8496b3bc599c3e62b9acaca6

Fixes: http://tracker.ceph.com/issues/43291
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #1524 from kshtsk/fix-worker-crash-on-try-job-delete
kyr [Thu, 25 Jun 2020 10:39:35 +0000 (12:39 +0200)]
Merge pull request #1524 from kshtsk/fix-worker-crash-on-try-job-delete

Fix worker crash on report.try_delete_jobs

5 years agoMerge pull request #1518 from sunilkumarn417/fix-regex
Vasu Kulkarni [Thu, 25 Jun 2020 01:51:53 +0000 (18:51 -0700)]
Merge pull request #1518 from sunilkumarn417/fix-regex

Fix regex for 'ps -ef' in SystemDState::pid()

5 years agobuild(deps-dev): bump httplib2 from 0.10.3 to 0.18.0 1511/head
dependabot[bot] [Wed, 24 Jun 2020 22:17:11 +0000 (22:17 +0000)]
build(deps-dev): bump httplib2 from 0.10.3 to 0.18.0

Bumps [httplib2](https://github.com/httplib2/httplib2) from 0.10.3 to 0.18.0.
- [Release notes](https://github.com/httplib2/httplib2/releases)
- [Changelog](https://github.com/httplib2/httplib2/blob/master/CHANGELOG)
- [Commits](https://github.com/httplib2/httplib2/compare/v0.10.3...v0.18.0)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agobuild(deps): bump ansible from 2.8.2 to 2.8.8 1513/head
dependabot[bot] [Wed, 24 Jun 2020 22:16:39 +0000 (22:16 +0000)]
build(deps): bump ansible from 2.8.2 to 2.8.8

Bumps [ansible](https://github.com/ansible/ansible) from 2.8.2 to 2.8.8.
- [Release notes](https://github.com/ansible/ansible/releases)
- [Commits](https://github.com/ansible/ansible/compare/v2.8.2...v2.8.8)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agobuild(deps): bump psutil from 5.2.2 to 5.6.6 1512/head
dependabot[bot] [Wed, 24 Jun 2020 22:16:09 +0000 (22:16 +0000)]
build(deps): bump psutil from 5.2.2 to 5.6.6

Bumps [psutil](https://github.com/giampaolo/psutil) from 5.2.2 to 5.6.6.
- [Release notes](https://github.com/giampaolo/psutil/releases)
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](https://github.com/giampaolo/psutil/compare/release-5.2.2...release-5.6.6)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoMerge pull request #1515 from tchaikov/wip-requirements.in
Kefu Chai [Wed, 24 Jun 2020 16:50:09 +0000 (00:50 +0800)]
Merge pull request #1515 from tchaikov/wip-requirements.in

drop requirements.in

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoworker: fix crash on try_delete_jobs 1524/head
Kyr Shatskyy [Wed, 24 Jun 2020 09:27:31 +0000 (11:27 +0200)]
worker: fix crash on try_delete_jobs

In some circumstances workers try to delete a job which
is not created yet. It quits immediately with unhandled
exception error.

We do not want to allow crashes whatever error happens,
because worker can continue working and process other
jobs correctly.

Also some schedulers might not add corresponding
first in suite and last in suite jobs to the reporter,
since it is not required.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoorchestra/daemon/systemd: fix proc_regex in pid() method 1518/head
sunilkumarn417 [Fri, 19 Jun 2020 08:14:54 +0000 (13:44 +0530)]
orchestra/daemon/systemd: fix proc_regex in pid() method

Signed-off-by: sunilkumarn417 <sunnagar@redhat.com>