Tatyana Leontovich | ef14778 | 2017-04-05 16:05:11 +0300 | [diff] [blame] | 1 | {% from 'virtual-mcp10-ovs.jinja' import HOSTNAME_CFG01 with context %} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 2 | |
| 3 | # Install OpenStack control services |
| 4 | |
| 5 | - description: Install keystone service |
| 6 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 7 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 8 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 9 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 10 | skip_fail: false |
| 11 | |
| 12 | - description: Populate keystone services/tenants/admins |
| 13 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 14 | -C 'I@keystone:client' state.sls keystone.client |
| 15 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 16 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 17 | skip_fail: false |
| 18 | |
| 19 | - description: Check keystone service-list |
| 20 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 21 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; keystone service-list' |
| 22 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 23 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 24 | skip_fail: false |
| 25 | |
| 26 | |
| 27 | - description: Install glance on all controllers |
| 28 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 29 | -C 'I@glance:server' state.sls glance -b 1 |
| 30 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 31 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 32 | skip_fail: false |
| 33 | |
| 34 | - description: Configure glusterfs.client on all controllers |
| 35 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 36 | -C 'I@glance:server' state.sls glusterfs.client |
| 37 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 38 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 39 | skip_fail: false |
| 40 | |
| 41 | - description: Update fernet tokens for keystone server |
| 42 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 43 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 44 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 45 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 46 | skip_fail: false |
| 47 | |
| 48 | - description: Check glance image-list |
| 49 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 50 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list' |
| 51 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 52 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 53 | skip_fail: false |
| 54 | |
| 55 | |
| 56 | - description: Install nova on all controllers |
| 57 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 58 | -C 'I@nova:controller' state.sls nova -b 1 |
| 59 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 60 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 61 | skip_fail: false |
| 62 | |
| 63 | - description: Check nova service-list |
| 64 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 65 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova service-list' |
| 66 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 67 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 68 | skip_fail: false |
| 69 | |
| 70 | |
| 71 | - description: Install cinder |
| 72 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 73 | -C 'I@cinder:controller' state.sls cinder -b 1 |
| 74 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 75 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 76 | skip_fail: false |
| 77 | |
| 78 | - description: Check cinder list |
| 79 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 80 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list' |
| 81 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 82 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 83 | skip_fail: false |
| 84 | |
| 85 | |
| 86 | - description: Install neutron service |
| 87 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 88 | -C 'I@neutron:server' state.sls neutron -b 1 |
| 89 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 90 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 91 | skip_fail: false |
| 92 | |
| 93 | - description: Check neutron agent-list |
| 94 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 95 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
| 96 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 97 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 98 | skip_fail: false |
| 99 | |
| 100 | |
| 101 | - description: Install heat service |
| 102 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 103 | -C 'I@heat:server' state.sls heat -b 1 |
| 104 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 105 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 106 | skip_fail: false |
| 107 | |
| 108 | - description: Check heat service |
| 109 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 110 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; heat resource-type-list' |
| 111 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 112 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 113 | skip_fail: false |
| 114 | |
| 115 | |
| 116 | - description: Deploy horizon dashboard |
| 117 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 118 | -C 'I@horizon:server' state.sls horizon |
| 119 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 120 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 121 | skip_fail: true |
| 122 | |
| 123 | - description: Deploy nginx proxy |
| 124 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 125 | -C 'I@nginx:server' state.sls nginx |
| 126 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 127 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 128 | skip_fail: true |
| 129 | |
| 130 | |
| 131 | # Install compute node |
| 132 | |
| 133 | - description: Apply formulas for compute node |
| 134 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 135 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 136 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 137 | skip_fail: true |
| 138 | |
| 139 | - description: Re-apply(as in doc) formulas for compute node |
| 140 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 141 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 142 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 143 | skip_fail: true |
| 144 | |
| 145 | - description: Check IP on computes |
| 146 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 147 | 'ip a' |
| 148 | node_name: {{ HOSTNAME_CFG01 }} |
| 149 | retry: {count: 10, delay: 30} |
| 150 | skip_fail: false |