Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 1 | # |
| 2 | # Jobs to update cloud packages on given Salt master environment |
| 3 | # |
| 4 | parameters: |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job: |
| 8 | deploy-update-cloud: |
| 9 | type: workflow-scm |
| 10 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 11 | discard: |
| 12 | build: |
| 13 | keep_num: 10 |
| 14 | artifact: |
| 15 | keep_num: 10 |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 16 | display_name: "Deploy - update cloud" |
| 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 20 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 21 | credentials: ${_param:jenkins_gerrit_credentials} |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 22 | script: cloud-update.groovy |
| 23 | param: |
| 24 | SALT_MASTER_URL: |
| 25 | type: string |
| 26 | default: "${_param:jenkins_salt_api_url}" |
| 27 | SALT_MASTER_CREDENTIALS: |
| 28 | type: string |
| 29 | default: "salt" |
| 30 | SNAPSHOT_NAME: |
| 31 | type: string |
| 32 | default: "updateSnapshot1" |
| 33 | description: "Live snapshot name" |
| 34 | CFG_NODE_PROVIDER: |
| 35 | type: string |
| 36 | default: "" |
| 37 | description: "Physical machine hosting Salt-Master VM (ex. kvm01*)" |
| 38 | INTERACTIVE: |
| 39 | type: boolean |
| 40 | default: 'false' |
| 41 | description: "Ask interactive questions during pipeline run" |
| 42 | PER_NODE: |
| 43 | type: boolean |
| 44 | default: 'true' |
| 45 | description: "Target nodes will be managed one by one" |
| 46 | ROLLBACK_BY_REDEPLOY: |
| 47 | type: boolean |
| 48 | default: 'false' |
| 49 | description: "Omit taking live snapshots. Rollback is planned to be done by redeployment" |
| 50 | STOP_SERVICES: |
| 51 | type: boolean |
| 52 | default: 'true' |
| 53 | description: "Stop API services before update" |
Jiri Broulik | d9b0174 | 2018-04-05 13:40:31 +0200 | [diff] [blame] | 54 | TARGET_KERNEL_UPDATES: |
| 55 | type: string |
Mykyta Karpin | fe803d4 | 2018-12-04 16:43:59 +0200 | [diff] [blame] | 56 | default: "cfg,msg,dbs" |
| 57 | description: "Comma separated list of nodes to update kernel if newer version is available (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)" |
Jiri Broulik | d9b0174 | 2018-04-05 13:40:31 +0200 | [diff] [blame] | 58 | TARGET_REBOOT: |
| 59 | type: string |
Mykyta Karpin | fe803d4 | 2018-12-04 16:43:59 +0200 | [diff] [blame] | 60 | default: "cfg,msg,dbs" |
| 61 | description: "Comma separated list of nodes to reboot after update or physical machine rollback (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)" |
Jiri Broulik | d9b0174 | 2018-04-05 13:40:31 +0200 | [diff] [blame] | 62 | TARGET_HIGHSTATE: |
| 63 | type: string |
Mykyta Karpin | fe803d4 | 2018-12-04 16:43:59 +0200 | [diff] [blame] | 64 | default: "cfg,msg,dbs" |
| 65 | description: "Comma separated list of nodes to run Salt Highstate on after update or physical machine rollback (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)" |
Jiri Broulik | 64b34a8 | 2018-03-23 17:37:07 +0100 | [diff] [blame] | 66 | TARGET_UPDATES: |
| 67 | type: string |
Mykyta Karpin | fe803d4 | 2018-12-04 16:43:59 +0200 | [diff] [blame] | 68 | default: "cfg,msg,dbs" |
| 69 | description: "Comma separated list of nodes to update (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)" |
Jiri Broulik | 64b34a8 | 2018-03-23 17:37:07 +0100 | [diff] [blame] | 70 | TARGET_ROLLBACKS: |
| 71 | type: string |
| 72 | default: "" |
Mykyta Karpin | fe803d4 | 2018-12-04 16:43:59 +0200 | [diff] [blame] | 73 | description: "Comma separated list of nodes to rollback (Valid values are msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,kvm,osd)" |
Jiri Broulik | 0011a17 | 2018-03-29 13:33:37 +0200 | [diff] [blame] | 74 | TARGET_SNAPSHOT_MERGES: |
Jiri Broulik | 64b34a8 | 2018-03-23 17:37:07 +0100 | [diff] [blame] | 75 | type: string |
| 76 | default: "" |
Mykyta Karpin | fe803d4 | 2018-12-04 16:43:59 +0200 | [diff] [blame] | 77 | description: "Comma separated list of nodes to merge live snapshot for (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid)" |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 78 | MSG_TARGET: |
| 79 | type: string |
| 80 | default: "msg*" |
| 81 | description: "Salt targeted MSG nodes (ex. msg*)" |
| 82 | DBS_TARGET: |
| 83 | type: string |
| 84 | default: "dbs*" |
| 85 | description: "Salt targeted DBS nodes (ex. dbs*)" |
| 86 | LOG_TARGET: |
| 87 | type: string |
| 88 | default: "log*" |
| 89 | description: "Salt targeted LOG nodes (ex. log*)" |
| 90 | MON_TARGET: |
| 91 | type: string |
| 92 | default: "mon*" |
| 93 | description: "Salt targeted MON nodes (ex. mon*)" |
| 94 | MTR_TARGET: |
| 95 | type: string |
| 96 | default: "mtr*" |
| 97 | description: "Salt targeted MTR nodes (ex. mtr*)" |
| 98 | NTW_TARGET: |
| 99 | type: string |
| 100 | default: "ntw*" |
| 101 | description: "Salt targeted NTW nodes (ex. ntw*)" |
| 102 | NAL_TARGET: |
| 103 | type: string |
| 104 | default: "nal*" |
| 105 | description: "Salt targeted NAL nodes (ex. nal*)" |
| 106 | CMN_TARGET: |
| 107 | type: string |
| 108 | default: "cmn*" |
| 109 | description: "Salt targeted CMN nodes (ex. cmn*)" |
| 110 | RGW_TARGET: |
| 111 | type: string |
| 112 | default: "rgw*" |
| 113 | description: "Salt targeted RGW nodes (ex. rgw*)" |
| 114 | CID_TARGET: |
| 115 | type: string |
| 116 | default: "cid*" |
| 117 | description: "Salt targeted CID nodes (ex. cid*)" |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 118 | KVM_TARGET: |
| 119 | type: string |
| 120 | default: "kvm01*" |
| 121 | description: "Salt targeted physical KVM nodes (ex. kvm01*)" |
| 122 | CEPH_OSD_TARGET: |
| 123 | type: string |
| 124 | default: "osd001*" |
| 125 | description: "Salt targeted physical Ceph OSD nodes (ex. osd001*)" |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 126 | ROLLBACK_PKG_VERSIONS: |
| 127 | type: string |
| 128 | default: "" |
Jiri Broulik | 87dc9b7 | 2018-03-26 16:12:55 +0200 | [diff] [blame] | 129 | description: "Space separated list of pkgs=versions to rollback to on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)" |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 130 | PURGE_PKGS: |
| 131 | type: string |
| 132 | default: "" |
Jiri Broulik | 87dc9b7 | 2018-03-26 16:12:55 +0200 | [diff] [blame] | 133 | description: "Space separated list of pkgs=versions to be purged on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)" |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 134 | REMOVE_PKGS: |
| 135 | type: string |
| 136 | default: "" |
Jiri Broulik | 87dc9b7 | 2018-03-26 16:12:55 +0200 | [diff] [blame] | 137 | description: "Space separated list of pkgs=versions to be removed on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)" |
Jiri Broulik | ad0a9b4 | 2018-03-23 11:55:16 +0100 | [diff] [blame] | 138 | RESTORE_GALERA: |
| 139 | type: boolean |
| 140 | default: 'false' |
| 141 | description: "Restore Galera DB" |
| 142 | RESTORE_CONTRAIL_DB: |
| 143 | type: boolean |
| 144 | default: 'false' |
| 145 | description: "Restore Cassandra and Zookeeper DBs for OpenContrail" |
Richard Felkl | 464031f | 2018-06-28 11:34:18 +0200 | [diff] [blame] | 146 | RUN_CVP_TESTS: |
| 147 | type: boolean |
| 148 | default: 'false' |
| 149 | description: "Run cloud validation pipelines before and after update" |
Martin Polreich | a1c2e51 | 2018-08-21 16:31:41 +0200 | [diff] [blame] | 150 | MINIONS_TEST_TIMEOUT: |
| 151 | type: string |
| 152 | default: 10 |
| 153 | description: "Time in seconds for a Salt result to receive a response when calling a minionsReachable method." |