blob: c65fc52e73443e1d6481d344d1e8b8637c85d931 [file] [log] [blame]
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +02001{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_CTL03 with context %}
Oleksii Butenko5cd0a162018-06-14 18:18:10 +03005{% from 'cookied-mcp-pike-dpdk/underlay.yaml' import HOSTNAME_GTW01 with context %}
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +02006{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
7{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
8
Oleksii Butenko5cd0a162018-06-14 18:18:10 +03009{% import 'shared-salt.yaml' as SHARED with context %}
10
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +020011# Install OpenStack control services
12
13- description: Install glance on all controllers
14 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
15 -C 'I@glance:server' state.sls glance -b 1
16 node_name: {{ HOSTNAME_CFG01 }}
17 retry: {count: 1, delay: 5}
18 skip_fail: false
19
20- description: Install keystone service (note that different fernet keys are created on different nodes)
21 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
22 -C 'I@keystone:server' state.sls keystone.server -b 1
23 node_name: {{ HOSTNAME_CFG01 }}
24 retry: {count: 2, delay: 15}
25 skip_fail: false
26
27- description: Restart apache due to PROD-10477
28 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2"
29 node_name: {{ HOSTNAME_CFG01 }}
30 retry: {count: 1, delay: 15}
31 skip_fail: false
32
33- description: Check apache status to PROD-10477
34 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2"
35 node_name: {{ HOSTNAME_CFG01 }}
36 retry: {count: 1, delay: 15}
37 skip_fail: false
38
39- description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users)
40 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
41 -C 'I@glance:server' state.sls glusterfs.client
42 node_name: {{ HOSTNAME_CFG01 }}
43 retry: {count: 1, delay: 5}
44 skip_fail: false
45
46- description: Update fernet keys for keystone server on the mounted glusterfs volume
47 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
48 -C 'I@keystone:server' state.sls keystone.server -b 1
49 node_name: {{ HOSTNAME_CFG01 }}
50 retry: {count: 1, delay: 5}
51 skip_fail: false
52
53- description: Populate keystone services/tenants/admins
54 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
55 -C 'I@keystone:client' state.sls keystone.client
56 node_name: {{ HOSTNAME_CFG01 }}
57 retry: {count: 2, delay: 5}
58 skip_fail: false
59
60- description: Check keystone service-list
61 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
62 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack service list'
63 node_name: {{ HOSTNAME_CFG01 }}
64 retry: {count: 1, delay: 5}
65 skip_fail: false
66
67- description: Check glance image-list
68 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
69 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
70 node_name: {{ HOSTNAME_CFG01 }}
71 retry: {count: 1, delay: 5}
72 skip_fail: false
73
74
75- description: Install nova on all controllers
76 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
77 -C 'I@nova:controller' state.sls nova -b 1
78 node_name: {{ HOSTNAME_CFG01 }}
79 retry: {count: 2, delay: 5}
80 skip_fail: false
81
82- description: Check nova service-list
83 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
84 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova service-list'
85 node_name: {{ HOSTNAME_CFG01 }}
86 retry: {count: 1, delay: 5}
87 skip_fail: false
88
89
90- description: Install cinder
91 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
92 -C 'I@cinder:controller' state.sls cinder -b 1
93 node_name: {{ HOSTNAME_CFG01 }}
94 retry: {count: 1, delay: 5}
95 skip_fail: false
96
97- description: Check cinder list
98 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
99 -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list'
100 node_name: {{ HOSTNAME_CFG01 }}
101 retry: {count: 1, delay: 5}
102 skip_fail: false
103
104
105- description: Install neutron service
106 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
107 -C 'I@neutron:server' state.sls neutron -b 1
108 node_name: {{ HOSTNAME_CFG01 }}
109 retry: {count: 1, delay: 5}
110 skip_fail: false
111
112- description: Install neutron on gtw node
113 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
114 -C 'I@neutron:gateway' state.sls neutron
115 node_name: {{ HOSTNAME_CFG01 }}
116 retry: {count: 1, delay: 5}
117 skip_fail: false
118
119
120- description: Check neutron agent-list
121 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
122 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
123 node_name: {{ HOSTNAME_CFG01 }}
124 retry: {count: 1, delay: 5}
125 skip_fail: false
126
127
128- description: Install heat service
129 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
130 -C 'I@heat:server' state.sls heat -b 1
131 node_name: {{ HOSTNAME_CFG01 }}
132 retry: {count: 1, delay: 5}
133 skip_fail: false
134
135- description: Check heat service
136 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
137 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack orchestration resource type list'
138 node_name: {{ HOSTNAME_CFG01 }}
139 retry: {count: 5, delay: 10}
140 skip_fail: false
141
142
143- description: Deploy horizon dashboard
144 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
145 -C 'I@horizon:server' state.sls horizon
146 node_name: {{ HOSTNAME_CFG01 }}
147 retry: {count: 1, delay: 5}
148 skip_fail: true
149
150- description: Deploy nginx proxy
151 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
152 -C 'I@nginx:server' state.sls nginx
153 node_name: {{ HOSTNAME_CFG01 }}
154 retry: {count: 1, delay: 5}
155 skip_fail: true
156
157
158# Install compute node
159
160- description: Apply formulas for compute node
161 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
162 node_name: {{ HOSTNAME_CFG01 }}
163 retry: {count: 1, delay: 5}
164 skip_fail: true
165
166- description: Re-apply(as in doc) formulas for compute node
167 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
168 node_name: {{ HOSTNAME_CFG01 }}
169 retry: {count: 1, delay: 5}
170 skip_fail: false
171
172- description: Check IP on computes
173 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
174 'ip a'
175 node_name: {{ HOSTNAME_CFG01 }}
176 retry: {count: 10, delay: 30}
177 skip_fail: false
178
Tatyana Leontovich1dc28bc2018-05-25 14:50:10 +0300179- description: TMP step related to PROD-17975 for cmp
180 cmd: salt "cmp*" cmd.run ' systemctl restart openvswitch-switch.service'
181 node_name: {{ HOSTNAME_CFG01 }}
182 retry: {count: 1, delay: 30}
183 skip_fail: false
184
185- description: TMP step related to PROD-17975 for cmp
186 cmd: salt "gtw*" cmd.run ' systemctl restart openvswitch-switch.service'
187 node_name: {{ HOSTNAME_CFG01 }}
188 retry: {count: 1, delay: 30}
189 skip_fail: false
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +0200190
Dennis Dmitriev67aea4a2018-03-14 14:20:20 +0200191- description: Create net04_external
192 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
193 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
194 node_name: {{ HOSTNAME_CFG01 }}
195 retry: {count: 1, delay: 30}
196 skip_fail: false
197
198- description: Create subnet_external
199 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
200 '. /root/keystonercv3; neutron subnet-create net04_ext {{ IPV4_NET_EXTERNAL_PREFIX }}.0/24 --name net04_ext__subnet --disable-dhcp --allocation-pool start={{ IPV4_NET_EXTERNAL_PREFIX }}.150,end={{ IPV4_NET_EXTERNAL_PREFIX }}.180 --gateway {{ IPV4_NET_EXTERNAL_PREFIX }}.1'
201 node_name: {{ HOSTNAME_CFG01 }}
202 retry: {count: 1, delay: 30}
203 skip_fail: false
204
205- description: Create net04
206 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
207 '. /root/keystonercv3; neutron net-create net04 --provider:network_type gre'
208 node_name: {{ HOSTNAME_CFG01 }}
209 retry: {count: 1, delay: 30}
210 skip_fail: false
211
212- description: Create subnet_net04
213 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
214 '. /root/keystonercv3; neutron subnet-create net04 {{ IPV4_NET_TENANT_PREFIX }}.0/24 --name net04__subnet --allocation-pool start={{ IPV4_NET_TENANT_PREFIX }}.120,end={{ IPV4_NET_TENANT_PREFIX }}.240'
215 node_name: {{ HOSTNAME_CFG01 }}
216 retry: {count: 1, delay: 30}
217 skip_fail: false
218
219- description: Create router
220 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
221 '. /root/keystonercv3; neutron router-create net04_router01 --ha False'
222 node_name: {{ HOSTNAME_CFG01 }}
223 retry: {count: 1, delay: 30}
224 skip_fail: false
225
226- description: Set geteway
227 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
228 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
229 node_name: {{ HOSTNAME_CFG01 }}
230 retry: {count: 1, delay: 30}
231 skip_fail: false
232
233- description: Add interface
234 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
235 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
236 node_name: {{ HOSTNAME_CFG01 }}
237 retry: {count: 1, delay: 30}
238 skip_fail: false
Oleksii Butenko5cd0a162018-06-14 18:18:10 +0300239
240{{ SHARED.INSTALL_DOCKER_ON_GTW() }}
241{{ SHARED.RUN_NEW_TEMPEST() }}
242