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