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