Tomáš Kukrál | f72096d | 2017-08-11 12:58:03 +0200 | [diff] [blame] | 1 | /** |
| 2 | * |
Tomek Jaroszyk | d085e51 | 2020-11-09 13:58:02 +0100 | [diff] [blame] | 3 | * Remove Ceph osds from node |
Tomáš Kukrál | f72096d | 2017-08-11 12:58:03 +0200 | [diff] [blame] | 4 | * |
| 5 | * Requred parameters: |
| 6 | * SALT_MASTER_URL URL of Salt master |
| 7 | * SALT_MASTER_CREDENTIALS Credentials to the Salt API |
Tomek Jaroszyk | d085e51 | 2020-11-09 13:58:02 +0100 | [diff] [blame] | 8 | * 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ál | f72096d | 2017-08-11 12:58:03 +0200 | [diff] [blame] | 14 | * |
| 15 | */ |
| 16 | |
Jakub Josef | a63f986 | 2018-01-11 17:58:38 +0100 | [diff] [blame] | 17 | timeout(time: 12, unit: 'HOURS') { |
Tomek Jaroszyk | d085e51 | 2020-11-09 13:58:02 +0100 | [diff] [blame] | 18 | 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 Jaroszyk | 0cb8392 | 2020-04-07 11:20:31 +0200 | [diff] [blame] | 28 | } |