Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 1 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %} |
| 2 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %} |
| 5 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %} |
sgudz | 09e9aa9 | 2018-04-12 12:31:53 +0300 | [diff] [blame] | 6 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %} |
| 7 | {% from 'virtual-mcp-pike-ovs/underlay.yaml' import DOMAIN_NAME with context %} |
Oleksii Butenko | c05c9f6 | 2018-04-19 19:00:02 +0300 | [diff] [blame] | 8 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 9 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
sgudz | 09e9aa9 | 2018-04-12 12:31:53 +0300 | [diff] [blame] | 10 | {% import 'shared-salt.yaml' as SHARED with context %} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 11 | # Install OpenStack control services |
| 12 | |
| 13 | - description: Install glance on all controllers |
| 14 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 15 | -C 'I@glance:server' state.sls glance -b 1 |
| 16 | node_name: {{ HOSTNAME_CFG01 }} |
| 17 | retry: {count: 1, delay: 5} |
| 18 | skip_fail: false |
| 19 | |
| 20 | - description: Install keystone service (note that different fernet keys are created on different nodes) |
| 21 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 22 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 23 | node_name: {{ HOSTNAME_CFG01 }} |
| 24 | retry: {count: 2, delay: 15} |
| 25 | skip_fail: false |
| 26 | |
| 27 | - description: Restart apache due to PROD-10477 |
| 28 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2" |
| 29 | node_name: {{ HOSTNAME_CFG01 }} |
| 30 | retry: {count: 1, delay: 15} |
| 31 | skip_fail: false |
| 32 | |
| 33 | - description: Check apache status to PROD-10477 |
| 34 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2" |
| 35 | node_name: {{ HOSTNAME_CFG01 }} |
| 36 | retry: {count: 1, delay: 15} |
| 37 | skip_fail: false |
| 38 | |
| 39 | - description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users) |
| 40 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 41 | -C 'I@glance:server' state.sls glusterfs.client |
| 42 | node_name: {{ HOSTNAME_CFG01 }} |
| 43 | retry: {count: 1, delay: 5} |
| 44 | skip_fail: false |
| 45 | |
| 46 | - description: Update fernet keys for keystone server on the mounted glusterfs volume |
| 47 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 48 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 49 | node_name: {{ HOSTNAME_CFG01 }} |
| 50 | retry: {count: 1, delay: 5} |
| 51 | skip_fail: false |
| 52 | |
| 53 | - description: Populate keystone services/tenants/admins |
| 54 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 55 | -C 'I@keystone:client' state.sls keystone.client |
| 56 | node_name: {{ HOSTNAME_CFG01 }} |
Dennis Dmitriev | f073e6f | 2018-02-06 23:45:15 +0200 | [diff] [blame] | 57 | retry: {count: 2, delay: 5} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 58 | skip_fail: false |
| 59 | |
| 60 | - description: Check keystone service-list |
| 61 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 62 | -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack service list' |
| 63 | node_name: {{ HOSTNAME_CFG01 }} |
| 64 | retry: {count: 1, delay: 5} |
| 65 | skip_fail: false |
| 66 | |
| 67 | - description: Check glance image-list |
| 68 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 69 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list' |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 70 | node_name: {{ HOSTNAME_CFG01 }} |
| 71 | retry: {count: 1, delay: 5} |
| 72 | skip_fail: false |
| 73 | |
| 74 | |
| 75 | - description: Install nova on all controllers |
| 76 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 77 | -C 'I@nova:controller' state.sls nova -b 1 |
| 78 | node_name: {{ HOSTNAME_CFG01 }} |
| 79 | retry: {count: 2, delay: 5} |
| 80 | skip_fail: false |
| 81 | |
| 82 | - description: Check nova service-list |
| 83 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 84 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova --debug service-list' |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 85 | node_name: {{ HOSTNAME_CFG01 }} |
| 86 | retry: {count: 3, delay: 5} |
| 87 | skip_fail: false |
| 88 | |
| 89 | |
| 90 | - description: Install cinder |
| 91 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 92 | -C 'I@cinder:controller' state.sls cinder -b 1 |
| 93 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 94 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 95 | skip_fail: false |
| 96 | |
| 97 | - description: Check cinder list |
| 98 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 99 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list' |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 100 | node_name: {{ HOSTNAME_CFG01 }} |
| 101 | retry: {count: 1, delay: 5} |
| 102 | skip_fail: false |
| 103 | |
| 104 | |
| 105 | - description: Install neutron service |
| 106 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 107 | -C 'I@neutron:server' state.sls neutron -b 1 |
| 108 | node_name: {{ HOSTNAME_CFG01 }} |
| 109 | retry: {count: 1, delay: 5} |
| 110 | skip_fail: false |
| 111 | |
| 112 | - description: Install neutron on gtw node |
| 113 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 114 | -C 'I@neutron:gateway' state.sls neutron |
| 115 | node_name: {{ HOSTNAME_CFG01 }} |
| 116 | retry: {count: 1, delay: 5} |
| 117 | skip_fail: false |
| 118 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 119 | # isntall designate |
| 120 | - description: Install bind |
| 121 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 122 | -C 'I@bind:server' state.sls bind |
| 123 | node_name: {{ HOSTNAME_CFG01 }} |
| 124 | retry: {count: 1, delay: 5} |
| 125 | skip_fail: false |
| 126 | |
| 127 | - description: Install designate |
| 128 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 129 | -C 'I@designate:server' state.sls designate -b 1 |
| 130 | node_name: {{ HOSTNAME_CFG01 }} |
| 131 | retry: {count: 5, delay: 10} |
| 132 | skip_fail: false |
| 133 | |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 134 | - description: Check neutron agent-list |
| 135 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 136 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 137 | node_name: {{ HOSTNAME_CFG01 }} |
| 138 | retry: {count: 1, delay: 5} |
| 139 | skip_fail: false |
| 140 | |
| 141 | |
| 142 | - description: Install heat service |
| 143 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 144 | -C 'I@heat:server' state.sls heat -b 1 |
| 145 | node_name: {{ HOSTNAME_CFG01 }} |
| 146 | retry: {count: 1, delay: 5} |
| 147 | skip_fail: false |
| 148 | |
| 149 | - description: Check heat service |
| 150 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 151 | -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack orchestration resource type list' |
| 152 | node_name: {{ HOSTNAME_CFG01 }} |
| 153 | retry: {count: 5, delay: 10} |
| 154 | skip_fail: false |
| 155 | |
Dennis Dmitriev | d86ffa1 | 2018-03-15 22:07:51 +0200 | [diff] [blame] | 156 | # Install Telemetry services (mdb nodes) |
| 157 | - description: Install redis service |
| 158 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:cluster:role:master' state.sls redis && |
| 159 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@redis:server' state.sls redis |
| 160 | node_name: {{ HOSTNAME_CFG01 }} |
| 161 | retry: {count: 1, delay: 5} |
| 162 | skip_fail: false |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 163 | |
Dennis Dmitriev | d86ffa1 | 2018-03-15 22:07:51 +0200 | [diff] [blame] | 164 | - description: Install gnocchi server |
| 165 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server and *01*' state.sls gnocchi.server && |
| 166 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:server' state.sls gnocchi.server |
| 167 | node_name: {{ HOSTNAME_CFG01 }} |
| 168 | retry: {count: 1, delay: 5} |
| 169 | skip_fail: false |
| 170 | |
Dennis Dmitriev | 78df9ce | 2018-03-16 11:45:50 +0200 | [diff] [blame] | 171 | #- description: Install gnocchi statsd (optional) |
| 172 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd and *01*' state.sls gnocchi.statsd && |
| 173 | # salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@gnocchi:statsd' state.sls gnocchi.statsd |
| 174 | # node_name: {{ HOSTNAME_CFG01 }} |
| 175 | # retry: {count: 1, delay: 5} |
| 176 | # skip_fail: false |
Dennis Dmitriev | d86ffa1 | 2018-03-15 22:07:51 +0200 | [diff] [blame] | 177 | |
| 178 | - description: Install panko server |
| 179 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server and *01*' state.sls panko && |
| 180 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@panko:server' state.sls panko |
| 181 | node_name: {{ HOSTNAME_CFG01 }} |
| 182 | retry: {count: 1, delay: 5} |
| 183 | skip_fail: false |
| 184 | |
Tatyana Leontovich | 51644ec | 2018-03-22 13:13:31 +0200 | [diff] [blame] | 185 | - description: Install ceilometer server on first node |
| 186 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server and *01*' state.sls ceilometer |
Dennis Dmitriev | d86ffa1 | 2018-03-15 22:07:51 +0200 | [diff] [blame] | 187 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 51644ec | 2018-03-22 13:13:31 +0200 | [diff] [blame] | 188 | retry: {count: 2, delay: 5} |
| 189 | skip_fail: false |
| 190 | |
| 191 | - description: Install ceilometer server on other nodes |
| 192 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@ceilometer:server' state.sls ceilometer |
| 193 | node_name: {{ HOSTNAME_CFG01 }} |
| 194 | retry: {count: 2, delay: 5} |
Dennis Dmitriev | d86ffa1 | 2018-03-15 22:07:51 +0200 | [diff] [blame] | 195 | skip_fail: false |
| 196 | |
| 197 | - description: Install aodh server |
| 198 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server and *01*' state.sls aodh && |
| 199 | salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@aodh:server' state.sls aodh |
| 200 | node_name: {{ HOSTNAME_CFG01 }} |
| 201 | retry: {count: 1, delay: 5} |
| 202 | skip_fail: false |
| 203 | |
| 204 | # Install OpenStack dashboard and proxy services |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 205 | - description: Deploy horizon dashboard |
| 206 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 207 | -C 'I@horizon:server' state.sls horizon |
| 208 | node_name: {{ HOSTNAME_CFG01 }} |
| 209 | retry: {count: 1, delay: 5} |
| 210 | skip_fail: true |
| 211 | |
| 212 | - description: Deploy nginx proxy |
| 213 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 214 | -C 'I@nginx:server' state.sls nginx |
| 215 | node_name: {{ HOSTNAME_CFG01 }} |
| 216 | retry: {count: 1, delay: 5} |
| 217 | skip_fail: true |
| 218 | |
| 219 | |
| 220 | # Install compute node |
| 221 | |
| 222 | - description: Apply formulas for compute node |
| 223 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 224 | node_name: {{ HOSTNAME_CFG01 }} |
| 225 | retry: {count: 1, delay: 5} |
| 226 | skip_fail: true |
| 227 | |
| 228 | - description: Re-apply(as in doc) formulas for compute node |
| 229 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 230 | node_name: {{ HOSTNAME_CFG01 }} |
| 231 | retry: {count: 1, delay: 5} |
Oleksii Butenko | 9f2601c | 2018-02-08 15:13:21 +0200 | [diff] [blame] | 232 | skip_fail: false |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 233 | |
| 234 | - description: Check IP on computes |
| 235 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 236 | 'ip a' |
| 237 | node_name: {{ HOSTNAME_CFG01 }} |
| 238 | retry: {count: 10, delay: 30} |
| 239 | skip_fail: false |
| 240 | |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 241 | - description: Create net04_external |
| 242 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 243 | '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat' |
| 244 | node_name: {{ HOSTNAME_CFG01 }} |
| 245 | retry: {count: 1, delay: 30} |
| 246 | skip_fail: false |
| 247 | |
| 248 | - description: Create subnet_external |
| 249 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 250 | '. /root/keystonercv3; neutron subnet-create net04_ext {{ IPV4_NET_EXTERNAL_PREFIX }}.0/24 --name net04_ext__subnet --disable-dhcp --allocation-pool start={{ IPV4_NET_EXTERNAL_PREFIX }}.150,end={{ IPV4_NET_EXTERNAL_PREFIX }}.180 --gateway {{ IPV4_NET_EXTERNAL_PREFIX }}.1' |
| 251 | node_name: {{ HOSTNAME_CFG01 }} |
| 252 | retry: {count: 1, delay: 30} |
| 253 | skip_fail: false |
| 254 | |
| 255 | - description: Create net04 |
| 256 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 257 | '. /root/keystonercv3; neutron net-create net04' |
| 258 | node_name: {{ HOSTNAME_CFG01 }} |
| 259 | retry: {count: 1, delay: 30} |
| 260 | skip_fail: false |
| 261 | |
| 262 | - description: Create subnet_net04 |
| 263 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 264 | '. /root/keystonercv3; neutron subnet-create net04 {{ IPV4_NET_TENANT_PREFIX }}.0/24 --name net04__subnet --allocation-pool start={{ IPV4_NET_TENANT_PREFIX }}.120,end={{ IPV4_NET_TENANT_PREFIX }}.240' |
| 265 | node_name: {{ HOSTNAME_CFG01 }} |
| 266 | retry: {count: 1, delay: 30} |
| 267 | skip_fail: false |
| 268 | |
| 269 | - description: Create router |
| 270 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 271 | '. /root/keystonercv3; neutron router-create net04_router01' |
| 272 | node_name: {{ HOSTNAME_CFG01 }} |
| 273 | retry: {count: 1, delay: 30} |
| 274 | skip_fail: false |
| 275 | |
| 276 | - description: Set geteway |
| 277 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 278 | '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext' |
| 279 | node_name: {{ HOSTNAME_CFG01 }} |
| 280 | retry: {count: 1, delay: 30} |
| 281 | skip_fail: false |
| 282 | |
| 283 | - description: Add interface |
| 284 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 285 | '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet' |
| 286 | node_name: {{ HOSTNAME_CFG01 }} |
| 287 | retry: {count: 1, delay: 30} |
| 288 | skip_fail: false |
| 289 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 290 | #- description: Allow all tcp |
| 291 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 292 | # '. /root/keystonercv3; openstack security group rule create --proto tcp --dst-port 22 default' |
| 293 | # node_name: {{ HOSTNAME_CFG01 }} |
| 294 | # retry: {count: 1, delay: 30} |
| 295 | # skip_fail: false |
| 296 | # |
| 297 | #- description: Allow all icmp |
| 298 | # cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 299 | # '. /root/keystonercv3; openstack security group rule create --proto icmp default' |
| 300 | # node_name: {{ HOSTNAME_CFG01 }} |
| 301 | # retry: {count: 1, delay: 30} |
| 302 | # skip_fail: false |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 303 | |
| 304 | - description: sync time |
| 305 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run |
| 306 | 'service ntp stop; ntpd -gq; service ntp start' |
| 307 | node_name: {{ HOSTNAME_CFG01 }} |
| 308 | retry: {count: 1, delay: 30} |
| 309 | skip_fail: false |
| 310 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame] | 311 | # Configure cinder-volume salt-call |
| 312 | - description: Set disks 01 |
| 313 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 314 | node_name: {{ HOSTNAME_CTL01 }} |
| 315 | retry: {count: 1, delay: 30} |
| 316 | skip_fail: false |
| 317 | |
| 318 | - description: Set disks 02 |
| 319 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 320 | node_name: {{ HOSTNAME_CTL02 }} |
| 321 | retry: {count: 1, delay: 30} |
| 322 | skip_fail: false |
| 323 | |
| 324 | - description: Set disks 03 |
| 325 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 326 | node_name: {{ HOSTNAME_CTL03 }} |
| 327 | retry: {count: 1, delay: 30} |
| 328 | skip_fail: false |
| 329 | |
| 330 | - description: Create partitions 01 |
| 331 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 332 | node_name: {{ HOSTNAME_CTL01 }} |
| 333 | retry: {count: 1, delay: 30} |
| 334 | skip_fail: false |
| 335 | |
| 336 | - description: Create partitions 02 |
| 337 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 338 | node_name: {{ HOSTNAME_CTL02 }} |
| 339 | retry: {count: 1, delay: 30} |
| 340 | skip_fail: false |
| 341 | |
| 342 | - description: Create partitions 03 |
| 343 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 344 | node_name: {{ HOSTNAME_CTL03 }} |
| 345 | retry: {count: 1, delay: 30} |
| 346 | skip_fail: false |
| 347 | |
| 348 | - description: create volume_group |
| 349 | cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1' |
| 350 | node_name: {{ HOSTNAME_CFG01 }} |
| 351 | retry: {count: 1, delay: 30} |
| 352 | skip_fail: false |
| 353 | |
| 354 | - description: Install cinder-volume |
| 355 | cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y' |
| 356 | node_name: {{ HOSTNAME_CFG01 }} |
| 357 | retry: {count: 1, delay: 30} |
| 358 | skip_fail: false |
| 359 | |
| 360 | - description: Install crudini |
| 361 | cmd: salt "ctl*" cmd.run 'apt-get install crudini -y' |
| 362 | node_name: {{ HOSTNAME_CFG01 }} |
| 363 | retry: {count: 1, delay: 30} |
| 364 | skip_fail: false |
| 365 | |
| 366 | - description: Temporary WR set enabled backends value 01 |
| 367 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 368 | node_name: {{ HOSTNAME_CTL01 }} |
| 369 | retry: {count: 1, delay: 30} |
| 370 | skip_fail: false |
| 371 | |
| 372 | - description: Temporary WR set enabled backends value 02 |
| 373 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 374 | node_name: {{ HOSTNAME_CTL02 }} |
| 375 | retry: {count: 1, delay: 30} |
| 376 | skip_fail: false |
| 377 | |
| 378 | - description: Temporary WR set enabled backends value 03 |
| 379 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 380 | node_name: {{ HOSTNAME_CTL03 }} |
| 381 | retry: {count: 1, delay: 30} |
| 382 | skip_fail: false |
| 383 | |
| 384 | - description: Restart cinder volume |
| 385 | cmd: | |
| 386 | salt -C 'I@cinder:controller' service.restart cinder-volume; |
| 387 | node_name: {{ HOSTNAME_CFG01 }} |
| 388 | retry: {count: 2, delay: 5} |
| 389 | skip_fail: false |
| 390 | |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 391 | - description: Install docker.io on gtw |
| 392 | cmd: salt-call cmd.run 'apt-get install docker.io -y' |
| 393 | node_name: {{ HOSTNAME_GTW01 }} |
| 394 | retry: {count: 1, delay: 30} |
| 395 | skip_fail: false |
| 396 | |
Tatyana Leontovich | d6bcbc9 | 2018-03-23 15:02:28 +0200 | [diff] [blame] | 397 | - description: Enable forward policy |
| 398 | cmd: iptables --policy FORWARD ACCEPT |
| 399 | node_name: {{ HOSTNAME_GTW01 }} |
| 400 | retry: {count: 1, delay: 30} |
| 401 | skip_fail: false |
| 402 | |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 403 | - description: create rc file on cfg |
| 404 | cmd: scp ctl01:/root/keystonercv3 /root |
| 405 | node_name: {{ HOSTNAME_CFG01 }} |
| 406 | retry: {count: 1, delay: 30} |
| 407 | skip_fail: false |
| 408 | |
| 409 | - description: Copy rc file |
| 410 | cmd: scp /root/keystonercv3 gtw01:/root |
| 411 | node_name: {{ HOSTNAME_CFG01 }} |
| 412 | retry: {count: 1, delay: 30} |
| 413 | skip_fail: false |
sgudz | be155c2 | 2018-03-22 13:12:13 +0200 | [diff] [blame] | 414 | |
| 415 | - description: Install manila-api on first node |
| 416 | cmd: | |
| 417 | salt -C 'I@manila:api and *01*' state.sls manila.api; |
| 418 | node_name: {{ HOSTNAME_CFG01 }} |
| 419 | retry: {count: 1, delay: 5} |
| 420 | skip_fail: false |
| 421 | |
| 422 | - description: Install manila-api on other nodes |
| 423 | cmd: | |
| 424 | salt -C 'I@manila:api and not *01*' state.sls manila.api; |
| 425 | node_name: {{ HOSTNAME_CFG01 }} |
| 426 | retry: {count: 1, delay: 5} |
| 427 | skip_fail: false |
| 428 | |
| 429 | - description: Install manila-scheduler |
| 430 | cmd: | |
| 431 | salt -C 'I@manila:scheduler' state.sls manila.scheduler; |
| 432 | node_name: {{ HOSTNAME_CFG01 }} |
| 433 | retry: {count: 1, delay: 5} |
| 434 | skip_fail: false |
| 435 | |
| 436 | - description: Install manila-share |
| 437 | cmd: | |
| 438 | salt -C 'I@manila:share' state.sls manila.share; |
| 439 | node_name: {{ HOSTNAME_CFG01 }} |
| 440 | retry: {count: 1, delay: 5} |
| 441 | skip_fail: false |
| 442 | |
Tatyana Leontovich | 3cc1c13 | 2018-04-03 00:41:17 +0300 | [diff] [blame] | 443 | - description: WR https://mirantis.jira.com/browse/PROD-19012 |
| 444 | cmd: | |
Tatyana Leontovich | 1618a2a | 2018-04-03 10:19:25 +0300 | [diff] [blame] | 445 | salt 'ctl*' cmd.run 'systemctl restart apache2' |
Tatyana Leontovich | 3cc1c13 | 2018-04-03 00:41:17 +0300 | [diff] [blame] | 446 | node_name: {{ HOSTNAME_CFG01 }} |
| 447 | retry: {count: 1, delay: 5} |
| 448 | skip_fail: false |
| 449 | |
sgudz | be155c2 | 2018-03-22 13:12:13 +0200 | [diff] [blame] | 450 | - description: Check manila-services |
| 451 | cmd: | |
| 452 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila service-list' |
| 453 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 1618a2a | 2018-04-03 10:19:25 +0300 | [diff] [blame] | 454 | retry: {count: 3, delay: 15} |
sgudz | be155c2 | 2018-03-22 13:12:13 +0200 | [diff] [blame] | 455 | skip_fail: false |
| 456 | |
| 457 | - description: Create manila type |
| 458 | cmd: | |
sgudz | 1d65840 | 2018-04-06 11:59:48 +0300 | [diff] [blame] | 459 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila type-create default false --create_share_from_snapshot_support true --revert_to_snapshot_support true --mount_snapshot_support true --snapshot_support true --is_public true' |
sgudz | be155c2 | 2018-03-22 13:12:13 +0200 | [diff] [blame] | 460 | node_name: {{ HOSTNAME_CFG01 }} |
| 461 | retry: {count: 1, delay: 5} |
| 462 | skip_fail: false |
| 463 | |
| 464 | - description: Create CIFS and NFS share and check it status |
| 465 | cmd: | |
| 466 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create CIFS 1 --share-type=default'; |
| 467 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create NFS 1 --share-type=default'; |
| 468 | sleep 5; |
| 469 | salt 'ctl01*' cmd.run '. /root/keystonercv3; manila list'; |
| 470 | node_name: {{ HOSTNAME_CFG01 }} |
| 471 | retry: {count: 1, delay: 5} |
| 472 | skip_fail: false |
sgudz | 09e9aa9 | 2018-04-12 12:31:53 +0300 | [diff] [blame] | 473 | |
| 474 | {{ SHARED.RUN_NEW_TEMPEST() }} |