blob: 8f2d67b3e8e5dca33c830a2552cadd3e566528c8 [file] [log] [blame]
{%- macro MACRO_CEPH_SET_PGNUM() %}
{######################################}
- description: |
Set greater pg_num/pgp_num for gnocchi pool in Ceph. RelatedProd:PROD-34833
cmd: |
set -e;
set -x;
. /root/venv-reclass-tools/bin/activate;
reclass-tools add-key parameters.ceph.setup.pool.gnocchi.pg_num 32 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
reclass-tools add-key parameters.ceph.setup.pool.gnocchi.pgp_num 32 /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
cd /srv/salt/reclass
git add /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/ceph/setup.yml
git commit -m "[from tcp-qa/shared_workarounds.yaml] Set greater pg_num/pgp_num for gnocchi pool in Ceph. RelatedProd:PROD-34833"
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 1}
skip_fail: false
{%- endmacro %}
{%- macro CLEAR_CEPH_OSD_DRIVES() %}
{######################################}
- description: |
Clear Ceph OSD drives before deploying Ceph. RelatedProd:PROD-35141
cmd: |
set -e;
set -x;
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'
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 1}
skip_fail: true
{%- endmacro %}
{%- macro DELETE_BOND0() %}
{######################################}
- description: |
Delete empty bond0 interface on kvm and osd nodes. RelatedProd:PROD-35758
cmd: |
set -x;
salt -C 'osd* or kvm*' cmd.run 'ip link delete bond0'
salt -C 'osd* or kvm*' file.write /etc/modprobe.d/bonding.conf "options bonding max_bonds=0"
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 1}
skip_fail: true
{%- endmacro %}