blob: b78b85ab657296d3a20639ce6edc9ea86036fc68 [file] [log] [blame]
Jiri Broulik2c00f4c2017-10-26 13:23:11 +02001/**
2 *
3 * Replace failed disk with a new disk
4 *
5 * Requred parameters:
Jiri Broulika657d562017-11-28 14:19:32 +01006 * SALT_MASTER_URL URL of Salt master
7 * SALT_MASTER_CREDENTIALS Credentials to the Salt API
Jiri Broulik2c00f4c2017-10-26 13:23:11 +02008 *
Jiri Broulika657d562017-11-28 14:19:32 +01009 * HOST Host (minion id) to be removed
10 * ADMIN_HOST Host (minion id) with admin keyring and /etc/crushmap file present
11 * OSD Failed OSD ids to be replaced (comma-separated list - 1,2,3)
Jiri Broulika657d562017-11-28 14:19:32 +010012 * CLUSTER_FLAGS Comma separated list of tags to apply to cluster
Jiri Broulik2c00f4c2017-10-26 13:23:11 +020013 *
14 */
15
Jakub Josefa63f9862018-01-11 17:58:38 +010016timeout(time: 12, unit: 'HOURS') {
17 node("python") {
Mateusz Los63811962019-03-28 14:12:23 +010018 stage ('remove OSD') {
19 build job: 'ceph-remove-osd', parameters: [[$class: 'StringParameterValue', name: 'OSD', value: OSD],[$class: 'StringParameterValue', name: 'HOST', value: HOST],[$class: 'StringParameterValue', name: 'SALT_MASTER_CREDENTIALS', value: SALT_MASTER_CREDENTIALS], [$class: 'StringParameterValue', name: 'SALT_MASTER_URL', value: SALT_MASTER_URL], [$class: 'StringParameterValue', name: 'CLUSTER_FLAGS', value: CLUSTER_FLAGS], [$class: 'StringParameterValue', name: 'ADMIN_HOST', value: ADMIN_HOST]]
20 }
Jiri Broulik96c867a2017-11-07 16:14:10 +010021
Mateusz Los63811962019-03-28 14:12:23 +010022 stage ('replace failed disk') {
23 input("Replace failed disk and click proceed")
24 }
Jiri Broulik2c00f4c2017-10-26 13:23:11 +020025
Mateusz Los63811962019-03-28 14:12:23 +010026 stage ('add new osd') {
27 build job: 'ceph-add-osd-upmap', parameters: [[$class: 'StringParameterValue', name: 'HOST', value: HOST], [$class: 'StringParameterValue', name: 'SALT_MASTER_CREDENTIALS', value: SALT_MASTER_CREDENTIALS], [$class: 'StringParameterValue', name: 'SALT_MASTER_URL', value: SALT_MASTER_URL]]
28 }
Jiri Broulik2c00f4c2017-10-26 13:23:11 +020029 }
Mateusz Los63811962019-03-28 14:12:23 +010030}