Hanna Arhipova | aad914c | 2020-04-13 17:10:20 +0300 | [diff] [blame] | 1 | {%- 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 Arhipova | 7d1c720 | 2020-05-14 16:41:24 +0300 | [diff] [blame] | 12 | 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 Arhipova | aad914c | 2020-04-13 17:10:20 +0300 | [diff] [blame] | 15 | node_name: {{ HOSTNAME_CFG01 }} |
| 16 | retry: {count: 1, delay: 1} |
| 17 | skip_fail: false |
Denis V. Meltsaykin | b3b14f0 | 2020-04-27 15:50:02 +0200 | [diff] [blame] | 18 | {%- 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 Arhipova | ae1ae6e | 2020-03-02 19:07:41 +0200 | [diff] [blame] | 32 | {%- endmacro %} |