blob: b69285cacce52ebabfc75540fd5120d8054686c7 [file] [log] [blame]
Dennis Dmitriev2a13a132016-11-04 00:56:23 +02001# 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 Dmitriev948c1182016-11-10 19:43:55 +0200117- description: Workaround of the bug https://mirantis.jira.com/browse/PROD-8164
118 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' grains.set noservices True
119 node_name: cfg01.mk22-lab-basic.local
120 retry: {count: 3, delay: 5}
121 skip_fail: false
122
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200123- description: Install contrail database on controllers
124 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
125 opencontrail.database -b 1
126 node_name: cfg01.mk22-lab-basic.local
127 retry: {count: 3, delay: 5}
128 skip_fail: false
129- description: Check cassandra status on ctl01
130 cmd: salt 'ctl01*' cmd.run 'nodetool status;nodetool compactionstats;nodetool describecluster;'
131 node_name: cfg01.mk22-lab-basic.local
132 retry: {count: 3, delay: 5}
133 skip_fail: false
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200134- description: Install opencontrail on controllers
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200135 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
136 opencontrail -b 1
137 node_name: cfg01.mk22-lab-basic.local
138 retry: {count: 3, delay: 5}
139 skip_fail: false
140- description: Check contrail status
141 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
142 '. /root/keystonerc; contrail-status; neutron net-list; nova net-list'
143 node_name: cfg01.mk22-lab-basic.local
144 retry: {count: 3, delay: 5}
145 skip_fail: false
146- description: Add contrail bgp router on ctl01
147 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
148 '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254
149 --api_server_port 8082 --host_name ctl01 --host_ip 172.16.10.101 --router_asn
150 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin'
151 node_name: cfg01.mk22-lab-basic.local
152 retry: {count: 3, delay: 5}
153 skip_fail: false
154- description: Add contrail bgp router on ctl02
155 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl02*' cmd.run
156 '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254
157 --api_server_port 8082 --host_name ctl02 --host_ip 172.16.10.102 --router_asn
158 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin'
159 node_name: cfg01.mk22-lab-basic.local
160 retry: {count: 3, delay: 5}
161 skip_fail: false
162- description: Add contrail bgp router on ctl03
163 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl03*' cmd.run
164 '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254
165 --api_server_port 8082 --host_name ctl03 --host_ip 172.16.10.103 --router_asn
166 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin'
167 node_name: cfg01.mk22-lab-basic.local
168 retry: {count: 3, delay: 5}
169 skip_fail: false
170
171
172# Install compute node
173- description: Apply formulas for compute node
174 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
175 node_name: cfg01.mk22-lab-basic.local
176 retry: {count: 3, delay: 5}
177 skip_fail: false
178- description: Re-apply(as in doc) formulas for compute node
179 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
180 node_name: cfg01.mk22-lab-basic.local
181 retry: {count: 3, delay: 5}
182 skip_fail: false
183- description: Add vrouter for cmp01
184 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
185 '/usr/share/contrail-utils/provision_vrouter.py --oper add --host_name cmp01 --host_ip
186 172.16.10.105 --api_server_ip 172.16.10.254 --api_server_port 8082 --admin_user
187 admin --admin_password workshop --admin_tenant_name admin'
188 node_name: cfg01.mk22-lab-basic.local
189 retry: {count: 3, delay: 5}
190 skip_fail: false
191- description: Reboot compute nodes
192 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' system.reboot
193 node_name: cfg01.mk22-lab-basic.local
194 retry: {count: 3, delay: 5}
195 skip_fail: false
196- description: Check IP on computes
197 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
198 'ip a'
199 node_name: cfg01.mk22-lab-basic.local
Dennis Dmitriev948c1182016-11-10 19:43:55 +0200200 retry: {count: 10, delay: 30}
Dennis Dmitriev2a13a132016-11-04 00:56:23 +0200201 skip_fail: false
202- description: Check contrail status on computes
203 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
204 'contrail-status'
205 node_name: cfg01.mk22-lab-basic.local
206 retry: {count: 3, delay: 5}
207 skip_fail: false