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