blob: d2ac096781507e12f272217d95b82bfac8ea84fe [file] [log] [blame]
disc5298382016-11-23 16:03:33 +02001# Install OpenStack control services
disf0924fb2016-12-03 04:01:12 +02002
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
disc5298382016-11-23 16:03:33 +02006 node_name: cfg01.mk22-qa-lab01.local
7 retry: {count: 3, delay: 5}
8 skip_fail: false
disf0924fb2016-12-03 04:01:12 +02009
disc5298382016-11-23 16:03:33 +020010- description: Populate keystone services/tenants/admins
disf0924fb2016-12-03 04:01:12 +020011 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
12 -C 'I@keystone:client' state.sls keystone.client
disc5298382016-11-23 16:03:33 +020013 node_name: cfg01.mk22-qa-lab01.local
14 retry: {count: 3, delay: 5}
15 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020016
disc5298382016-11-23 16:03:33 +020017- description: Check keystone service-list
disf0924fb2016-12-03 04:01:12 +020018 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
19 -C 'I@keystone:server' cmd.run '. /root/keystonerc; keystone service-list'
disc5298382016-11-23 16:03:33 +020020 node_name: cfg01.mk22-qa-lab01.local
21 retry: {count: 3, delay: 5}
22 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020023
24
disc5298382016-11-23 16:03:33 +020025- description: Install glance on all controllers
disf0924fb2016-12-03 04:01:12 +020026 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
27 -C 'I@glance:server' state.sls glance -b 1
disc5298382016-11-23 16:03:33 +020028 node_name: cfg01.mk22-qa-lab01.local
29 retry: {count: 3, delay: 5}
30 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020031
disc5298382016-11-23 16:03:33 +020032- description: Configure glusterfs.client on all controllers
disf0924fb2016-12-03 04:01:12 +020033 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
34 -C 'I@glance:server' state.sls glusterfs.client
disc5298382016-11-23 16:03:33 +020035 node_name: cfg01.mk22-qa-lab01.local
36 retry: {count: 3, delay: 5}
37 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020038
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
disc5298382016-11-23 16:03:33 +020042 node_name: cfg01.mk22-qa-lab01.local
43 retry: {count: 3, delay: 5}
44 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020045
disc5298382016-11-23 16:03:33 +020046- description: Check glance image-list
disf0924fb2016-12-03 04:01:12 +020047 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
48 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
disc5298382016-11-23 16:03:33 +020049 node_name: cfg01.mk22-qa-lab01.local
50 retry: {count: 3, delay: 5}
51 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020052
53
disc5298382016-11-23 16:03:33 +020054- description: Install nova on all controllers
disf0924fb2016-12-03 04:01:12 +020055 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
56 -C 'I@nova:controller' state.sls nova -b 1
disc5298382016-11-23 16:03:33 +020057 node_name: cfg01.mk22-qa-lab01.local
58 retry: {count: 3, delay: 5}
59 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020060
disc5298382016-11-23 16:03:33 +020061- description: Check nova service-list
disf0924fb2016-12-03 04:01:12 +020062 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
63 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova service-list'
disc5298382016-11-23 16:03:33 +020064 node_name: cfg01.mk22-qa-lab01.local
65 retry: {count: 3, delay: 5}
66 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020067
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
disc5298382016-11-23 16:03:33 +020072 node_name: cfg01.mk22-qa-lab01.local
73 retry: {count: 3, delay: 5}
74 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020075
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'
disc5298382016-11-23 16:03:33 +020079 node_name: cfg01.mk22-qa-lab01.local
80 retry: {count: 3, delay: 5}
81 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020082
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
disc5298382016-11-23 16:03:33 +020091- description: Check neutron agent-list
disf0924fb2016-12-03 04:01:12 +020092 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
93 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
disc5298382016-11-23 16:03:33 +020094 node_name: cfg01.mk22-qa-lab01.local
95 retry: {count: 3, delay: 5}
96 skip_fail: false
disf0924fb2016-12-03 04:01:12 +020097
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
disc5298382016-11-23 16:03:33 +0200117 node_name: cfg01.mk22-qa-lab01.local
118 retry: {count: 3, delay: 5}
119 skip_fail: true
disf0924fb2016-12-03 04:01:12 +0200120
disc5298382016-11-23 16:03:33 +0200121- description: Deploy nginx proxy
disf0924fb2016-12-03 04:01:12 +0200122 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
123 -C 'I@nginx:server' state.sls nginx
disc5298382016-11-23 16:03:33 +0200124 node_name: cfg01.mk22-qa-lab01.local
125 retry: {count: 3, delay: 5}
126 skip_fail: true
127
disf0924fb2016-12-03 04:01:12 +0200128
disc5298382016-11-23 16:03:33 +0200129# Install contrail on controllers
130
disf0924fb2016-12-03 04:01:12 +0200131- 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
disc5298382016-11-23 16:03:33 +0200136 node_name: cfg01.mk22-qa-lab01.local
137 retry: {count: 3, delay: 5}
138 skip_fail: false
139
disc5298382016-11-23 16:03:33 +0200140- description: Check cassandra status on ctl01
disf0924fb2016-12-03 04:01:12 +0200141 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
disc5298382016-11-23 16:03:33 +0200145 node_name: cfg01.mk22-qa-lab01.local
146 retry: {count: 3, delay: 5}
147 skip_fail: false
disf0924fb2016-12-03 04:01:12 +0200148
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
disc5298382016-11-23 16:03:33 +0200152 node_name: cfg01.mk22-qa-lab01.local
153 retry: {count: 3, delay: 5}
154 skip_fail: false
disf0924fb2016-12-03 04:01:12 +0200155
156
disc5298382016-11-23 16:03:33 +0200157- description: Add contrail bgp router on ctl01
disf0924fb2016-12-03 04:01:12 +0200158 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
159 -C 'I@opencontrail:control:id:1' cmd.run
disc5298382016-11-23 16:03:33 +0200160 '/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
disf0924fb2016-12-03 04:01:12 +0200166
disc5298382016-11-23 16:03:33 +0200167- description: Add contrail bgp router on ctl02
disf0924fb2016-12-03 04:01:12 +0200168 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
169 -C 'I@opencontrail:control:id:1' cmd.run
disc5298382016-11-23 16:03:33 +0200170 '/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
disf0924fb2016-12-03 04:01:12 +0200176
disc5298382016-11-23 16:03:33 +0200177- description: Add contrail bgp router on ctl03
disf0924fb2016-12-03 04:01:12 +0200178 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
179 -C 'I@opencontrail:control:id:1' cmd.run
disc5298382016-11-23 16:03:33 +0200180 '/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
disf0924fb2016-12-03 04:01:12 +0200187- description: Check contrail status
188 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
189 -C 'I@opencontrail:control' cmd.run 'contrail-status'
disc5298382016-11-23 16:03:33 +0200190 node_name: cfg01.mk22-qa-lab01.local
191 retry: {count: 3, delay: 5}
192 skip_fail: false
disf0924fb2016-12-03 04:01:12 +0200193
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
disc5298382016-11-23 16:03:33 +0200204- 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
disf0924fb2016-12-03 04:01:12 +0200209
disc5298382016-11-23 16:03:33 +0200210- 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
disf0924fb2016-12-03 04:01:12 +0200215
disc5298382016-11-23 16:03:33 +0200216- description: Add vrouter for cmp01
disf0924fb2016-12-03 04:01:12 +0200217 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
218 -C 'I@opencontrail:control:id:1' cmd.run
disc5298382016-11-23 16:03:33 +0200219 '/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
disf0924fb2016-12-03 04:01:12 +0200225
disc5298382016-11-23 16:03:33 +0200226- description: Reboot compute nodes
disf0924fb2016-12-03 04:01:12 +0200227 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' system.reboot;
228 sleep 30
disc5298382016-11-23 16:03:33 +0200229 node_name: cfg01.mk22-qa-lab01.local
230 retry: {count: 3, delay: 5}
231 skip_fail: false
disf0924fb2016-12-03 04:01:12 +0200232
disc5298382016-11-23 16:03:33 +0200233- 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
disf0924fb2016-12-03 04:01:12 +0200239
disc5298382016-11-23 16:03:33 +0200240- 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