]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
4 years agoorchestra: introduce quiet mode for remote.run 1584/head
Kyr Shatskyy [Mon, 30 Nov 2020 15:27:10 +0000 (16:27 +0100)]
orchestra: introduce quiet mode for remote.run

Applied changes:

- Add quiet option to remote.run and subsidiary function calls
- Logging commands now directed to DEBUG instead of INFO logger

This is usefull when we want suppress logs for some kind of commmands like
reading binary files or logging useless data to stdout/stderr as well as
dumping some vulnarable information.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
4 years agoMerge pull request #1575 from mdw-at-linuxbox/ssh-ecdsa
Kefu Chai [Sat, 21 Nov 2020 05:44:42 +0000 (13:44 +0800)]
Merge pull request #1575 from mdw-at-linuxbox/ssh-ecdsa

orchestra/connection: accept ecdsa (and future) host key types.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoorchestra/connection: accept ecdsa (and future) host key types. 1575/head
Marcus Watts [Sat, 31 Oct 2020 19:31:35 +0000 (15:31 -0400)]
orchestra/connection: accept ecdsa (and future) host key types.

Out of the box, centos 8 ssh daemon makes this file,
/etc/ssh/ssh_host_ecdsa_key.pub
containing a key of type "ecdsa-sha2-nistp256", which was
not recognized by the existing teuthology logic.
Use logic in paramiko.hostkeys to recognize the new key types.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
4 years agoMerge pull request #1580 from ceph/rh_ds_yml
Vasu Kulkarni [Thu, 12 Nov 2020 03:18:34 +0000 (19:18 -0800)]
Merge pull request #1580 from ceph/rh_ds_yml

redhat downstream yaml location changed and redhat install tasks to accept lists

4 years agoMerge pull request #1577 from dmick/wip-container-build-complete
Dan Mick [Tue, 10 Nov 2020 20:34:37 +0000 (12:34 -0800)]
Merge pull request #1577 from dmick/wip-container-build-complete

Check shaman not only for repo but for build complete

4 years agoredhat ds yaml location changed and redhat install tasks to accept lists 1580/head
rakeshgm [Tue, 27 Oct 2020 13:25:07 +0000 (18:55 +0530)]
redhat ds yaml location changed and redhat install tasks to accept lists

fetch the dowstream yaml location from
downstream teuth_config and redhat install tasks
to accept lists too

Signed-off-by: rakeshgm <rakeshgm@redhat.com>
4 years agoCheck shaman not only for repo but for build complete 1577/head
Dan Mick [Mon, 2 Nov 2020 22:11:26 +0000 (22:11 +0000)]
Check shaman not only for repo but for build complete

The package repo might be done, but the build must be totally
complete for the container to be present.  For a specific build
(in global variables, for now), demand that the build be complete
before claiming packages exist.  This allows suite jobs to
fail or --newest to continue searching when the container isn't
done.

Signed-off-by: Dan Mick <dmick@redhat.com>
4 years agoMerge pull request #1572 from lxbsz/deb
Kefu Chai [Mon, 9 Nov 2020 13:32:25 +0000 (21:32 +0800)]
Merge pull request #1572 from lxbsz/deb

task/install/deb: retry installing the package if resource temporarily unavailable

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #1574 from ceph/dependabot/pip/cryptography-3.2
kyr [Sun, 1 Nov 2020 11:32:41 +0000 (12:32 +0100)]
Merge pull request #1574 from ceph/dependabot/pip/cryptography-3.2

build(deps): bump cryptography from 2.8 to 3.2

4 years agoMerge pull request #1576 from mdw-at-linuxbox/centos-8-stream
kyr [Sun, 1 Nov 2020 11:32:17 +0000 (12:32 +0100)]
Merge pull request #1576 from mdw-at-linuxbox/centos-8-stream

misc: CentOSStream => rpm

4 years agomisc: CentOSStream => rpm 1576/head
Marcus Watts [Sat, 31 Oct 2020 19:30:25 +0000 (15:30 -0400)]
misc: CentOSStream => rpm

lsb_release -is identifies CentOS 8 Stream as CentOSStream.
Teuthology should recognize this as 'rpm'.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
4 years agoMerge pull request #1559 from ryg-/wip-fix-domain
kyr [Wed, 28 Oct 2020 10:07:18 +0000 (11:07 +0100)]
Merge pull request #1559 from ryg-/wip-fix-domain

Makes (de)canonicalize_hostname ready to empty domains

4 years agobuild(deps): bump cryptography from 2.8 to 3.2 1574/head
dependabot[bot] [Tue, 27 Oct 2020 22:43:06 +0000 (22:43 +0000)]
build(deps): bump cryptography from 2.8 to 3.2

Bumps [cryptography](https://github.com/pyca/cryptography) from 2.8 to 3.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/2.8...3.2)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoMakes (de)canonicalize_hostname ready to empty domains 1559/head
Roman Grigorev [Wed, 16 Sep 2020 05:34:50 +0000 (07:34 +0200)]
Makes (de)canonicalize_hostname ready to empty domains

teuthology/misc.py : addied support of empty domains to
 misc.canonicalize_hostname and misc.decanonicalize_hostname.

teuthology/test/test_misc.py: added test cases for new code

Signed-off-by: Roman Grigorev <rgrigorev@suse.de>
4 years agodeb: retry installing the package if resource temporarily unavailable 1572/head
Xiubo Li [Fri, 23 Oct 2020 04:50:25 +0000 (00:50 -0400)]
deb: retry installing the package if resource temporarily unavailable

Fixes: https://tracker.ceph.com/issues/46878
Signed-off-by: Xiubo Li <xiubli@redhat.com>
4 years agoMerge pull request #1560 from ryg-/wip-pelagos-speedup-parking
kyr [Thu, 22 Oct 2020 23:55:29 +0000 (01:55 +0200)]
Merge pull request #1560 from ryg-/wip-pelagos-speedup-parking

provision/pelagos: improve parking speed

4 years agoprovision/pelagos: Speed up pelagos node parking 1560/head
Roman Grigorev [Fri, 29 May 2020 12:04:26 +0000 (14:04 +0200)]
provision/pelagos: Speed up pelagos node parking

Speed up the process of booting nodes to a special image that
is excluded node from access from other nodes.

Signed-off-by: Roman Grigorev <rgrigorev@suse.de>
4 years agoMerge pull request #1568 from ceph/wip-rpm-upgrade
Kefu Chai [Wed, 21 Oct 2020 10:54:41 +0000 (18:54 +0800)]
Merge pull request #1568 from ceph/wip-rpm-upgrade

task/install/rpm: fix issued with upgrading packages under DNF

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #1554 into master
Patrick Donnelly [Mon, 12 Oct 2020 15:17:07 +0000 (08:17 -0700)]
Merge PR #1554 into master

* refs/pull/1554/head:
rpm: retry installing the package if the mirror server is busy

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agotask/install/rpm: fix issued with upgrading packages under DNF 1568/head
Jason Dillaman [Tue, 6 Oct 2020 20:33:43 +0000 (16:33 -0400)]
task/install/rpm: fix issued with upgrading packages under DNF

yum is an alias for dnf on modern RHEL-like systems but it's not
100% compatible. The "install" command does not upgrade packages
unless you give it a specific version to install. Additionally,
the code was incorrectly inserting two blank arguments that resulted
in "yum install" failing.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #1567 from tchaikov/wip-pip-use-feature
Kefu Chai [Tue, 6 Oct 2020 08:49:18 +0000 (16:49 +0800)]
Merge pull request #1567 from tchaikov/wip-pip-use-feature

bootstrap: correct the check for --use-feature=2020-resolver

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
4 years agobootstrap: correct the check for --use-feature=2020-resolver 1567/head
Kefu Chai [Mon, 5 Oct 2020 22:46:37 +0000 (06:46 +0800)]
bootstrap: correct the check for --use-feature=2020-resolver

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #1566 from toabctl/fix-pip-new-resolver
Kefu Chai [Mon, 5 Oct 2020 15:00:35 +0000 (23:00 +0800)]
Merge pull request #1566 from toabctl/fix-pip-new-resolver

bootstrap: Do not use --use-feature=2020-resolver for pip upgrade

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agobootstrap: Conditionally use --use-feature=2020-resolver for pip 1566/head
Thomas Bechtold [Mon, 5 Oct 2020 13:28:29 +0000 (15:28 +0200)]
bootstrap: Conditionally use --use-feature=2020-resolver for pip

pip might be too old so the --use-feature flag is not available. That
leads to:

$ ./bootstrap
Removing old virtualenv because it uses system site-packages
created virtual environment CPython3.8.5.final.0-64 in 173ms
  creator CPython3Posix(dest=/home/tom/devel/ceph/teuthology/virtualenv, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/tom/.local/share/virtualenv)
    added seed packages: pip==20.1.1, setuptools==50.3.0, wheel==0.35.1
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

Usage:
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --use-feature

So for the pip upgrade itself, check if the flag is available. From
there on, use the new resolver.

Signed-off-by: Thomas Bechtold <tbechtold@suse.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 agorpm: retry installing the package if the mirror server is busy 1554/head
Xiubo Li [Thu, 27 Aug 2020 05:40:52 +0000 (01:40 -0400)]
rpm: retry installing the package if the mirror server is busy

When installing some packages, if the mirror server failed with
503 code, which means the mirror server temporarily not available,
we should retry it later. But the yum tool just skips it and
retries other mirrors, which may not contain them.

For the cephfs suites, there maybe will fire the many test cases
at the same time, and for each test case it may fire several nodes
to install tens of packages at the same time. This may cause the
mirror server overloaded.

We need one safe method to retry it.

Fixes: https://tracker.ceph.com/issues/47166
Signed-off-by: Xiubo Li <xiubli@redhat.com>
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>