blob: bdb70060bbd045a3e90f26076a03ea04157a73b0 [file] [log] [blame]
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.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-advanced.local
113 retry: {count: 3, delay: 5}
114 skip_fail: true
115
116# Install contrail on controllers
117- description: Install contrail database on controllers
118 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
119 opencontrail.database -b 1
120 node_name: cfg01.mk22-lab-advanced.local
121 retry: {count: 3, delay: 5}
122 skip_fail: false
123- description: Check cassandra status on ctl01
124 cmd: salt 'ctl01*' cmd.run 'nodetool status;nodetool compactionstats;nodetool describecluster;'
125 node_name: cfg01.mk22-lab-advanced.local
126 retry: {count: 3, delay: 5}
127 skip_fail: false
128- description: Install contrail database on controllers
129 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' state.sls
130 opencontrail -b 1
131 node_name: cfg01.mk22-lab-advanced.local
132 retry: {count: 3, delay: 5}
133 skip_fail: false
134- description: Check contrail status
135 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
136 '. /root/keystonerc; contrail-status; neutron net-list; nova net-list'
137 node_name: cfg01.mk22-lab-advanced.local
138 retry: {count: 3, delay: 5}
139 skip_fail: false
140- description: Add contrail bgp router on ctl01
141 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
142 '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254
143 --api_server_port 8082 --host_name ctl01 --host_ip 172.16.10.101 --router_asn
144 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin'
145 node_name: cfg01.mk22-lab-advanced.local
146 retry: {count: 3, delay: 5}
147 skip_fail: false
148- description: Add contrail bgp router on ctl02
149 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl02*' cmd.run
150 '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254
151 --api_server_port 8082 --host_name ctl02 --host_ip 172.16.10.102 --router_asn
152 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin'
153 node_name: cfg01.mk22-lab-advanced.local
154 retry: {count: 3, delay: 5}
155 skip_fail: false
156- description: Add contrail bgp router on ctl03
157 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl03*' cmd.run
158 '/usr/share/contrail-utils/provision_control.py --oper add --api_server_ip 172.16.10.254
159 --api_server_port 8082 --host_name ctl03 --host_ip 172.16.10.103 --router_asn
160 64512 --admin_user admin --admin_password workshop --admin_tenant_name admin'
161 node_name: cfg01.mk22-lab-advanced.local
162 retry: {count: 3, delay: 5}
163 skip_fail: false
164
165
166# Install compute node
167- description: Apply formulas for compute node
168 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
169 node_name: cfg01.mk22-lab-advanced.local
170 retry: {count: 3, delay: 5}
171 skip_fail: false
172- description: Re-apply(as in doc) formulas for compute node
173 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
174 node_name: cfg01.mk22-lab-advanced.local
175 retry: {count: 3, delay: 5}
176 skip_fail: false
177- description: Add vrouter for cmp01
178 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
179 '/usr/share/contrail-utils/provision_vrouter.py --oper add --host_name cmp01 --host_ip
180 172.16.10.105 --api_server_ip 172.16.10.254 --api_server_port 8082 --admin_user
181 admin --admin_password workshop --admin_tenant_name admin'
182 node_name: cfg01.mk22-lab-advanced.local
183 retry: {count: 3, delay: 5}
184 skip_fail: false
185- description: Reboot compute nodes
186 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' system.reboot
187 node_name: cfg01.mk22-lab-advanced.local
188 retry: {count: 3, delay: 5}
189 skip_fail: false
190- description: Check IP on computes
191 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
192 'ip a'
193 node_name: cfg01.mk22-lab-advanced.local
194 retry: {count: 3, delay: 5}
195 skip_fail: false
196- description: Check contrail status on computes
197 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
198 'contrail-status'
199 node_name: cfg01.mk22-lab-advanced.local
200 retry: {count: 3, delay: 5}
201 skip_fail: false