Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 1 | # Install OpenStack control services |
| 2 | - description: Install keystone on primary controller |
| 3 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls |
| 4 | keystone |
| 5 | node_name: cfg01.mk22-lab-basic.local |
| 6 | retry: {count: 3, delay: 5} |
| 7 | skip_fail: false |
| 8 | - description: Install keystone on all controllers |
| 9 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 10 | keystone -b 1 |
| 11 | node_name: cfg01.mk22-lab-basic.local |
| 12 | retry: {count: 3, delay: 5} |
| 13 | skip_fail: false |
| 14 | - description: Populate keystone services/tenants/admins |
| 15 | cmd: salt-call --hard-crash --state-output=mixed --state-verbose=False state.sls |
| 16 | keystone.client |
| 17 | node_name: cfg01.mk22-lab-basic.local |
| 18 | retry: {count: 3, delay: 5} |
| 19 | skip_fail: false |
| 20 | - description: Check keystone service-list |
| 21 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 22 | '. /root/keystonerc; keystone service-list' |
| 23 | node_name: cfg01.mk22-lab-basic.local |
| 24 | retry: {count: 3, delay: 5} |
| 25 | skip_fail: false |
| 26 | - description: Install glance on primary controller |
| 27 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls |
| 28 | glance |
| 29 | node_name: cfg01.mk22-lab-basic.local |
| 30 | retry: {count: 3, delay: 5} |
| 31 | skip_fail: false |
| 32 | - description: Install glance on all controllers |
| 33 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 34 | glance -b 1 |
| 35 | node_name: cfg01.mk22-lab-basic.local |
| 36 | retry: {count: 3, delay: 5} |
| 37 | skip_fail: false |
| 38 | - description: Configure glusterfs.client on all controllers |
| 39 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 40 | glusterfs.client |
| 41 | node_name: cfg01.mk22-lab-basic.local |
| 42 | retry: {count: 3, delay: 5} |
| 43 | skip_fail: false |
| 44 | - description: Configure(re-install) keystone on all controllers |
| 45 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 46 | keystone -b 1 |
| 47 | node_name: cfg01.mk22-lab-basic.local |
| 48 | retry: {count: 3, delay: 5} |
| 49 | skip_fail: false |
| 50 | - description: Check glance image-list |
| 51 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 52 | '. /root/keystonerc; glance image-list' |
| 53 | node_name: cfg01.mk22-lab-basic.local |
| 54 | retry: {count: 3, delay: 5} |
| 55 | skip_fail: false |
| 56 | - description: Install cinder on all controllers |
| 57 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 58 | cinder -b 1 |
| 59 | node_name: cfg01.mk22-lab-basic.local |
| 60 | retry: {count: 3, delay: 5} |
| 61 | skip_fail: false |
| 62 | - description: Check cinder list |
| 63 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 64 | '. /root/keystonerc; cinder list' |
| 65 | node_name: cfg01.mk22-lab-basic.local |
| 66 | retry: {count: 3, delay: 5} |
| 67 | skip_fail: false |
| 68 | - description: Install nova on ctl01 |
| 69 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls |
| 70 | nova |
| 71 | node_name: cfg01.mk22-lab-basic.local |
| 72 | retry: {count: 3, delay: 5} |
| 73 | skip_fail: false |
| 74 | - description: Install nova on all controllers |
| 75 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 76 | nova |
| 77 | node_name: cfg01.mk22-lab-basic.local |
| 78 | retry: {count: 3, delay: 5} |
| 79 | skip_fail: false |
| 80 | - description: Check nova service-list |
| 81 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 82 | '. /root/keystonerc; nova service-list' |
| 83 | node_name: cfg01.mk22-lab-basic.local |
| 84 | retry: {count: 3, delay: 5} |
| 85 | skip_fail: false |
| 86 | - description: Install neutron on ctl01 |
| 87 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' state.sls |
| 88 | neutron |
| 89 | node_name: cfg01.mk22-lab-basic.local |
| 90 | retry: {count: 3, delay: 5} |
| 91 | skip_fail: false |
| 92 | - description: Install neutron on all controllers |
| 93 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 94 | neutron |
| 95 | node_name: cfg01.mk22-lab-basic.local |
| 96 | retry: {count: 3, delay: 5} |
| 97 | skip_fail: false |
| 98 | - description: Check neutron agent-list |
| 99 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 100 | '. /root/keystonerc; neutron agent-list' |
| 101 | node_name: cfg01.mk22-lab-basic.local |
| 102 | retry: {count: 3, delay: 5} |
| 103 | skip_fail: false |
| 104 | - description: Deploy dashboard on prx* |
| 105 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'prx*' state.apply |
| 106 | node_name: cfg01.mk22-lab-basic.local |
| 107 | retry: {count: 3, delay: 5} |
| 108 | skip_fail: true |
| 109 | - description: Deploy nginx proxy |
| 110 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cfg*' state.sls |
| 111 | nginx |
| 112 | node_name: cfg01.mk22-lab-basic.local |
| 113 | retry: {count: 3, delay: 5} |
| 114 | skip_fail: true |
| 115 | |
| 116 | # Install contrail on controllers |
Dennis Dmitriev | 2f442b8 | 2016-11-15 14:59:25 +0200 | [diff] [blame] | 117 | |
| 118 | - description: Workaround of the bug https://mirantis.jira.com/browse/PROD-8164 for opencontrail.database |
Dennis Dmitriev | 948c118 | 2016-11-10 19:43:55 +0200 | [diff] [blame] | 119 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' grains.set noservices True |
| 120 | node_name: cfg01.mk22-lab-basic.local |
| 121 | retry: {count: 3, delay: 5} |
| 122 | skip_fail: false |
| 123 | |
Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 124 | - description: Install contrail database on controllers |
| 125 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 126 | opencontrail.database -b 1 |
| 127 | node_name: cfg01.mk22-lab-basic.local |
| 128 | retry: {count: 3, delay: 5} |
| 129 | skip_fail: false |
| 130 | - description: Check cassandra status on ctl01 |
| 131 | cmd: salt 'ctl01*' cmd.run 'nodetool status;nodetool compactionstats;nodetool describecluster;' |
| 132 | node_name: cfg01.mk22-lab-basic.local |
| 133 | retry: {count: 3, delay: 5} |
| 134 | skip_fail: false |
Dennis Dmitriev | 948c118 | 2016-11-10 19:43:55 +0200 | [diff] [blame] | 135 | - description: Install opencontrail on controllers |
Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 136 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls |
| 137 | opencontrail -b 1 |
| 138 | node_name: cfg01.mk22-lab-basic.local |
| 139 | retry: {count: 3, delay: 5} |
| 140 | skip_fail: false |
| 141 | - description: Check contrail status |
| 142 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 143 | '. /root/keystonerc; contrail-status; neutron net-list; nova net-list' |
| 144 | node_name: cfg01.mk22-lab-basic.local |
| 145 | retry: {count: 3, delay: 5} |
| 146 | skip_fail: false |
| 147 | - description: Add contrail bgp router on ctl01 |
| 148 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 149 | '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254 |
| 150 | --api_server_port 8082 --host_name ctl01 --host_ip 172.16.10.101 --router_asn |
| 151 | 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin' |
| 152 | node_name: cfg01.mk22-lab-basic.local |
| 153 | retry: {count: 3, delay: 5} |
| 154 | skip_fail: false |
| 155 | - description: Add contrail bgp router on ctl02 |
| 156 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl02*' cmd.run |
| 157 | '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254 |
| 158 | --api_server_port 8082 --host_name ctl02 --host_ip 172.16.10.102 --router_asn |
| 159 | 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin' |
| 160 | node_name: cfg01.mk22-lab-basic.local |
| 161 | retry: {count: 3, delay: 5} |
| 162 | skip_fail: false |
| 163 | - description: Add contrail bgp router on ctl03 |
| 164 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl03*' cmd.run |
| 165 | '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254 |
| 166 | --api_server_port 8082 --host_name ctl03 --host_ip 172.16.10.103 --router_asn |
| 167 | 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin' |
| 168 | node_name: cfg01.mk22-lab-basic.local |
| 169 | retry: {count: 3, delay: 5} |
| 170 | skip_fail: false |
| 171 | |
| 172 | |
| 173 | # Install compute node |
Dennis Dmitriev | 2f442b8 | 2016-11-15 14:59:25 +0200 | [diff] [blame] | 174 | |
| 175 | - description: Workaround of the bug https://mirantis.jira.com/browse/PROD-8164 for opencontrail on compute nodes |
| 176 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' grains.set noservices True |
| 177 | node_name: cfg01.mk22-lab-basic.local |
| 178 | retry: {count: 3, delay: 5} |
| 179 | skip_fail: false |
Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 180 | - description: Apply formulas for compute node |
| 181 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 182 | node_name: cfg01.mk22-lab-basic.local |
| 183 | retry: {count: 3, delay: 5} |
| 184 | skip_fail: false |
Dennis Dmitriev | 9810b39 | 2016-11-16 13:41:37 +0200 | [diff] [blame] | 185 | - description: Workaround of the bug https://mirantis.jira.com/browse/PROD-8164 for opencontrail on compute nodes |
| 186 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' grains.set noservices True |
| 187 | node_name: cfg01.mk22-lab-basic.local |
| 188 | retry: {count: 3, delay: 5} |
| 189 | skip_fail: false |
Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 190 | - description: Re-apply(as in doc) formulas for compute node |
| 191 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 192 | node_name: cfg01.mk22-lab-basic.local |
| 193 | retry: {count: 3, delay: 5} |
| 194 | skip_fail: false |
| 195 | - description: Add vrouter for cmp01 |
| 196 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 197 | '/usr/share/contrail-utils/provision_vrouter.py --oper add --host_name cmp01 --host_ip |
| 198 | 172.16.10.105 --api_server_ip 172.16.10.254 --api_server_port 8082 --admin_user |
| 199 | admin --admin_password workshop --admin_tenant_name admin' |
| 200 | node_name: cfg01.mk22-lab-basic.local |
| 201 | retry: {count: 3, delay: 5} |
| 202 | skip_fail: false |
| 203 | - description: Reboot compute nodes |
| 204 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' system.reboot |
| 205 | node_name: cfg01.mk22-lab-basic.local |
| 206 | retry: {count: 3, delay: 5} |
| 207 | skip_fail: false |
| 208 | - description: Check IP on computes |
| 209 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 210 | 'ip a' |
| 211 | node_name: cfg01.mk22-lab-basic.local |
Dennis Dmitriev | 948c118 | 2016-11-10 19:43:55 +0200 | [diff] [blame] | 212 | retry: {count: 10, delay: 30} |
Dennis Dmitriev | 2a13a13 | 2016-11-04 00:56:23 +0200 | [diff] [blame] | 213 | skip_fail: false |
| 214 | - description: Check contrail status on computes |
| 215 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 216 | 'contrail-status' |
| 217 | node_name: cfg01.mk22-lab-basic.local |
| 218 | retry: {count: 3, delay: 5} |
| 219 | skip_fail: false |