blob: 5e508fdf6585c61623f2b0f96c23c3e90902d296 [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 Arhipovaae1ae6e2020-03-02 19:07:41 +020032{%- endmacro %}