blob: 8f2d67b3e8e5dca33c830a2552cadd3e566528c8 [file] [log] [blame]
Hanna Arhipovaaad914c2020-04-13 17:10:20 +03001{%- macro MACRO_CEPH_SET_PGNUM() %}
2{######################################}
3- description: |
4 Set greater pg_num/pgp_num for gnocchi pool in Ceph. RelatedProd:PROD-34833
5
6 cmd: |
7 set -e;
8 set -x;
9 . /root/venv-reclass-tools/bin/activate;
10 reclass-tools add-key parameters.ceph.setup.pool.gnocchi.pg_num 32 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
11 reclass-tools add-key parameters.ceph.setup.pool.gnocchi.pgp_num 32 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
Hanna Arhipova7d1c7202020-05-14 16:41:24 +030012 cd /srv/salt/reclass
13 git add /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
14 git commit -m "[from tcp-qa/shared_workarounds.yaml] Set greater pg_num/pgp_num for gnocchi pool in Ceph. RelatedProd:PROD-34833"
Hanna Arhipovaaad914c2020-04-13 17:10:20 +030015 node_name: {{ HOSTNAME_CFG01 }}
16 retry: {count: 1, delay: 1}
17 skip_fail: false
Denis V. Meltsaykinb3b14f02020-04-27 15:50:02 +020018{%- endmacro %}
19
20{%- macro CLEAR_CEPH_OSD_DRIVES() %}
21{######################################}
22- description: |
23 Clear Ceph OSD drives before deploying Ceph. RelatedProd:PROD-35141
24
25 cmd: |
26 set -e;
27 set -x;
28 salt -C 'I@ceph:osd' cmd.run 'dd if=/dev/zero of=/dev/sdb bs=1M count=50 conv=fsync ; dd if=/dev/zero of=/dev/sdc bs=1M count=50 conv=fsync'
29 node_name: {{ HOSTNAME_CFG01 }}
30 retry: {count: 1, delay: 1}
31 skip_fail: true
Hanna Arhipova3df06bb2021-10-22 17:09:38 +030032{%- endmacro %}
33
34
35{%- macro DELETE_BOND0() %}
36{######################################}
37- description: |
38 Delete empty bond0 interface on kvm and osd nodes. RelatedProd:PROD-35758
39
40 cmd: |
41 set -x;
42 salt -C 'osd* or kvm*' cmd.run 'ip link delete bond0'
43 salt -C 'osd* or kvm*' file.write /etc/modprobe.d/bonding.conf "options bonding max_bonds=0"
44 node_name: {{ HOSTNAME_CFG01 }}
45 retry: {count: 1, delay: 1}
46 skip_fail: true
Hanna Arhipovaae1ae6e2020-03-02 19:07:41 +020047{%- endmacro %}