Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa/tests: initial check in for octopus-x/parallel tests (try 2) #38707

Merged
merged 2 commits into from Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions qa/crontab/teuthology-cronjobs
Expand Up @@ -186,3 +186,5 @@ CEPH_QA_EMAIL="ceph-qa@ceph.io"

20 01 * * 3,4 CEPH_BRANCH=master; MACHINE_NAME=smithi; /home/teuthology/bin/cron_wrapper teuthology-suite -v -c $CEPH_BRANCH -n 7 -m $MACHINE_NAME -s upgrade-clients/client-upgrade-octopus-pacific -k distro -e $CEPH_QA_EMAIL --suite-branch octopus

22 14 * * 3,4 CEPH_BRANCH=master; MACHINE_NAME=smithi; /home/teuthology/bin/cron_wrapper teuthology-suite -v -c $CEPH_BRANCH -k distro -n 7 -m $MACHINE_NAME -s upgrade/octopus-x -e $CEPH_QA_EMAIL -p 70 --force-priority

Empty file added qa/suites/upgrade/octopus-x/%
Empty file.
1 change: 1 addition & 0 deletions qa/suites/upgrade/octopus-x/.qa
30 changes: 30 additions & 0 deletions qa/suites/upgrade/octopus-x/0-start.yaml
@@ -0,0 +1,30 @@
roles:
- - mon.a
- mon.c
- mgr.y
- osd.0
- osd.1
- osd.2
- osd.3
- client.0
- node-exporter.a
- alertmanager.a
- - mon.b
- mgr.x
- osd.4
- osd.5
- osd.6
- osd.7
- client.1
- prometheus.a
- grafana.a
- node-exporter.b
openstack:
- volumes: # attached to each instance
count: 4
size: 10 # GB
overrides:
ceph:
conf:
osd:
osd shutdown pgref assert: true
26 changes: 26 additions & 0 deletions qa/suites/upgrade/octopus-x/1-tasks.yaml
@@ -0,0 +1,26 @@
tasks:
- install:
branch: octopus
- print: "**** done install task..."
- print: "**** done start installing octopus cephadm ..."
- cephadm:
image: docker.io/ceph/daemon-base:latest-octopus
cephadm_branch: octopus
conf:
osd:
#set config option for which cls modules are allowed to be loaded / used
osd_class_load_list: "*"
osd_class_default_list: "*"
- print: "**** done end installing octopus cephadm ..."

- print: "**** done start cephadm.shell ceph config set mgr..."
- cephadm.shell:
mon.a:
- ceph config set mgr mgr/cephadm/use_repo_digest true --force
- print: "**** done cephadm.shell ceph config set mgr..."

- print: "**** done start parallel"
- parallel:
- workload
- upgrade-sequence
- print: "**** done end parallel"
1 change: 1 addition & 0 deletions qa/suites/upgrade/octopus-x/distro$
1 change: 1 addition & 0 deletions qa/suites/upgrade/octopus-x/mon_election
15 changes: 15 additions & 0 deletions qa/suites/upgrade/octopus-x/upgrade-sequence.yaml
@@ -0,0 +1,15 @@
# renamed tasks: to upgrade-sequence:
upgrade-sequence:
sequential:
- print: "**** done start upgrade, wait"
- cephadm.shell:
env: [sha1]
mon.a:
- ceph orch upgrade start --image quay.ceph.io/ceph-ci/ceph:$sha1
- while ceph orch upgrade status | jq '.in_progress' | grep true ; do ceph orch ps ; ceph versions ; sleep 30 ; done
- ceph orch ps
- ceph versions
- ceph versions | jq -e '.overall | length == 1'
- ceph versions | jq -e '.overall | keys' | grep $sha1
- print: "**** done end upgrade, wait..."

Empty file.
12 changes: 12 additions & 0 deletions qa/suites/upgrade/octopus-x/workload/rados_api.yaml
@@ -0,0 +1,12 @@
meta:
- desc: |
object class functional tests
workload:
full_sequential:
- print: "**** done start rados_api.yaml"
- workunit:
branch: octopus
clients:
client.0:
- cls
- print: "**** done end rados_api.yaml"
12 changes: 12 additions & 0 deletions qa/suites/upgrade/octopus-x/workload/test_rbd_api.yaml
@@ -0,0 +1,12 @@
meta:
- desc: |
librbd C and C++ api tests
workload:
full_sequential:
- print: "**** done start rbd/test_librbd.sh"
- workunit:
branch: octopus
clients:
client.0:
- rbd/test_librbd.sh
- print: "**** done end rbd/test_librbd.sh"
4 changes: 2 additions & 2 deletions qa/tasks/cephadm.py
Expand Up @@ -540,10 +540,10 @@ def ceph_mgrs(ctx, config):
for mgr in [r for r in roles
if teuthology.is_type('mgr', cluster_name)(r)]:
c_, _, id_ = teuthology.split_role(mgr)
if c_ == cluster_name and id_ == ctx.ceph[cluster_name].first_mgr:
continue
log.info('Adding %s on %s' % (mgr, remote.shortname))
nodes.append(remote.shortname + '=' + id_)
if c_ == cluster_name and id_ == ctx.ceph[cluster_name].first_mgr:
continue
daemons[mgr] = (remote, id_)
if nodes:
_shell(ctx, cluster_name, remote, [
Expand Down