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