]>
Commit | Line | Data |
---|---|---|
20effc67 TL |
1 | tasks: |
2 | - install: | |
3 | branch: pacific | |
4 | exclude_packages: | |
5 | - ceph-volume | |
6 | ||
7 | - cephadm: | |
8 | image: docker.io/ceph/daemon-base:latest-pacific | |
9 | cephadm_branch: pacific | |
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 | ||
17 | - cephadm.shell: | |
18 | mon.a: | |
19 | - ceph fs volume create foo | |
20 | - ceph config set mon mon_warn_on_insecure_global_id_reclaim false --force | |
21 | - ceph config set mon mon_warn_on_insecure_global_id_reclaim_allowed false --force | |
22 | ||
23 | - ceph.healthy: | |
24 | ||
25 | - print: "**** upgrading first half of cluster, with stress ****" | |
26 | - parallel: | |
27 | - first-half-tasks | |
28 | - first-half-sequence | |
29 | - print: "**** done upgrading first half of cluster ****" | |
30 | ||
31 | - ceph.healthy: | |
32 | ||
33 | - print: "**** applying stress + thrashing to mixed-version cluster ****" | |
34 | ||
35 | - parallel: | |
36 | - stress-tasks | |
37 | ||
38 | - ceph.healthy: | |
39 | ||
40 | - print: "**** finishing upgrade ****" | |
41 | - parallel: | |
42 | - second-half-tasks | |
43 | - second-half-sequence | |
44 | ||
45 | - ceph.healthy: | |
46 | ||
47 | ||
48 | ################# | |
49 | ||
50 | first-half-sequence: | |
51 | - cephadm.shell: | |
52 | env: [sha1] | |
53 | mon.a: | |
54 | - ceph config set mgr mgr/cephadm/daemon_cache_timeout 60 | |
55 | - ceph config set global log_to_journald false --force | |
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 | ||
92 | stress-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 | ||
107 | second-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 |