blob: 249b51c9dfb1ee714d32a661a546f24e7daa060b [file] [log] [blame]
Tomáš Kukrálf72096d2017-08-11 12:58:03 +02001/**
2 *
Tomek Jaroszykd085e512020-11-09 13:58:02 +01003 * Remove Ceph osds from node
Tomáš Kukrálf72096d2017-08-11 12:58:03 +02004 *
5 * Requred parameters:
6 * SALT_MASTER_URL URL of Salt master
7 * SALT_MASTER_CREDENTIALS Credentials to the Salt API
Tomek Jaroszykd085e512020-11-09 13:58:02 +01008 * HOST Host (minion id) to be added
9 * WAIT_FOR_HEALTHY Wait for cluster rebalance after a osd was removed
10 * CLUSTER_FLAGS Expected flags on the cluster during job run
11 * FAST_WIPE Clean only partition table insted of full wipe
12 * CLEAN_ORPHANS Clean ceph partition which are no longer part of the cluster
13 * OSD Coma separated list of OSDs to remove while keep the rest intact
Tomáš Kukrálf72096d2017-08-11 12:58:03 +020014 *
15 */
16
Jakub Josefa63f9862018-01-11 17:58:38 +010017timeout(time: 12, unit: 'HOURS') {
Tomek Jaroszykd085e512020-11-09 13:58:02 +010018 build job: 'ceph-remove-node', parameters: [
19 [$class: 'BooleanParameterValue', name: 'CLEAN_ORPHANS', value: CLEAN_ORPHANS],
20 [$class: 'BooleanParameterValue', name: 'FAST_WIPE', value: FAST_WIPE],
21 [$class: 'BooleanParameterValue', name: 'WAIT_FOR_HEALTHY', value: WAIT_FOR_HEALTHY],
22 [$class: 'StringParameterValue', name: 'HOST', value: HOST],
23 [$class: 'StringParameterValue', name: 'OSD', value: OSD],
24 [$class: 'StringParameterValue', name: 'CLUSTER_FLAGS', value: CLUSTER_FLAGS],
25 [$class: 'StringParameterValue', name: 'SALT_MASTER_CREDENTIALS', value: SALT_MASTER_CREDENTIALS],
26 [$class: 'StringParameterValue', name: 'SALT_MASTER_URL', value: SALT_MASTER_URL]
27 ]
Tomek Jaroszyk0cb83922020-04-07 11:20:31 +020028}