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 | |
Tatyana Leontovich | 4d0d894 | 2017-04-06 19:10:56 +0300 | [diff] [blame] | 93 | - description: Install neutron on gtw node |
| 94 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 95 | -C 'I@neutron:gateway' state.sls neutron |
| 96 | node_name: {{ HOSTNAME_CFG01 }} |
| 97 | retry: {count: 1, delay: 5} |
| 98 | skip_fail: false |
| 99 | |
| 100 | |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 101 | - description: Check neutron agent-list |
| 102 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 103 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
| 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 | |
| 109 | - description: Install heat service |
| 110 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 111 | -C 'I@heat:server' state.sls heat -b 1 |
| 112 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 113 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 114 | skip_fail: false |
| 115 | |
| 116 | - description: Check heat service |
| 117 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 118 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; heat resource-type-list' |
| 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: false |
| 122 | |
| 123 | |
| 124 | - description: Deploy horizon dashboard |
| 125 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 126 | -C 'I@horizon:server' state.sls horizon |
| 127 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 128 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 129 | skip_fail: true |
| 130 | |
| 131 | - description: Deploy nginx proxy |
| 132 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 133 | -C 'I@nginx:server' state.sls nginx |
| 134 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 135 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 136 | skip_fail: true |
| 137 | |
| 138 | |
| 139 | # Install compute node |
| 140 | |
| 141 | - description: Apply formulas for compute node |
| 142 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 143 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 144 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 145 | skip_fail: true |
| 146 | |
| 147 | - description: Re-apply(as in doc) formulas for compute node |
| 148 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 149 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 8112841 | 2017-04-05 18:46:29 +0300 | [diff] [blame] | 150 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 055b506 | 2017-04-03 13:17:25 +0300 | [diff] [blame] | 151 | skip_fail: true |
| 152 | |
| 153 | - description: Check IP on computes |
| 154 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 155 | 'ip a' |
| 156 | node_name: {{ HOSTNAME_CFG01 }} |
| 157 | retry: {count: 10, delay: 30} |
| 158 | skip_fail: false |