]> git.proxmox.com Git - ceph.git/blame - ceph/qa/suites/upgrade/octopus-x/stress-split/1-start.yaml
import ceph pacific 16.2.5
[ceph.git] / ceph / qa / suites / upgrade / octopus-x / stress-split / 1-start.yaml
CommitLineData
f67539c2
TL
1tasks:
2- install:
3 branch: octopus
4
5- cephadm:
6 image: quay.ceph.io/ceph-ci/ceph:octopus
7 cephadm_branch: octopus
8 cephadm_git_url: https://github.com/ceph/ceph
9 conf:
10 osd:
11 #set config option for which cls modules are allowed to be loaded / used
12 osd_class_load_list: "*"
13 osd_class_default_list: "*"
14 # deploy additional mons the "old" (octopus) way
15 add_mons_via_daemon_add: true
b3b6e05e 16 avoid_pacific_features: true
f67539c2
TL
17
18- cephadm.shell:
19 mon.a:
20 - ceph fs volume create foo
21 - ceph config set mon mon_warn_on_insecure_global_id_reclaim false --force
22 - ceph config set mon mon_warn_on_insecure_global_id_reclaim_allowed false --force
23
24- ceph.healthy:
25
26- print: "**** upgrading first half of cluster, with stress ****"
27- parallel:
28 - first-half-tasks
29 - first-half-sequence
30- print: "**** done upgrading first half of cluster ****"
31
32- ceph.healthy:
33
34- print: "**** applying stress + thrashing to mixed-version cluster ****"
35
36- parallel:
37 - stress-tasks
38
39- ceph.healthy:
40
41- print: "**** finishing upgrade ****"
42- parallel:
43 - second-half-tasks
44 - second-half-sequence
45
46- ceph.healthy:
47
48
49#################
50
51first-half-sequence:
52- cephadm.shell:
53 env: [sha1]
54 mon.a:
55 - ceph config set mgr mgr/cephadm/daemon_cache_timeout 60
56
57 - ceph orch upgrade start --image quay.ceph.io/ceph-ci/ceph:$sha1
58 - ceph orch ps
59
60 - echo wait for minority of mons to upgrade
61 - while ! ceph mon versions | grep $sha1 ; do sleep 2 ; done
62 - ceph orch ps
63 - ceph orch upgrade pause
64 - sleep 60
65 - ceph orch upgrade resume
66
67 - echo wait for majority of mons to upgrade
68 - "while ! ceph mon versions | grep $sha1 | egrep ': [23]' ; do sleep 2 ; done"
69 - ceph orch ps
70 - ceph orch upgrade pause
71 - sleep 60
72 - ceph orch upgrade resume
73
74 - echo wait for all mons to upgrade
75 - "while ! ceph mon versions | grep $sha1 | grep ': 3' ; do sleep 2 ; done"
76 - ceph orch ps
77 - ceph orch upgrade pause
78 - sleep 60
79 - ceph orch upgrade resume
80
81 - echo wait for half of osds to upgrade
82 - "while ! ceph osd versions | grep $sha1 | egrep ': [45678]'; do sleep 2 ; done"
83 - ceph orch upgrade pause
84 - ceph orch ps
85
86 - ceph orch ps
87 - ceph versions
88
89
90#################
91
92stress-tasks:
93- thrashosds:
94 timeout: 1200
95 chance_pgnum_grow: 1
96 chance_pgpnum_fix: 1
97 chance_thrash_cluster_full: 0
98 chance_thrash_pg_upmap: 0
99 chance_thrash_pg_upmap_items: 0
100 disable_objectstore_tool_tests: true
101 chance_force_recovery: 0
102 aggressive_pg_num_changes: false
103
104
105#################
106
107second-half-sequence:
108 sequential:
109 - cephadm.shell:
110 env: [sha1]
111 mon.a:
112 - ceph orch upgrade resume
113 - sleep 60
114
115 - echo wait for upgrade to complete
116 - while ceph orch upgrade status | jq '.in_progress' | grep true ; do ceph orch ps ; ceph versions ; sleep 30 ; done
117
118 - echo upgrade complete
119 - ceph orch ps
120 - ceph versions
121 - ceph versions | jq -e '.overall | length == 1'
122 - ceph versions | jq -e '.overall | keys' | grep $sha1