blob: f802f0695f6a0874b3c2f4a6b77ad3c7144f0385 [file] [log] [blame]
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +02001{% from 'virtual-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'virtual-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'virtual-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'virtual-mcp-pike-dvr/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'virtual-mcp-pike-dvr/underlay.yaml' import HOSTNAME_GTW01 with context %}
Oleksii Butenkoc05c9f62018-04-19 19:00:02 +03006{% from 'virtual-mcp-pike-dvr/underlay.yaml' import LAB_CONFIG_NAME with context %}
7{% from 'virtual-mcp-pike-dvr/underlay.yaml' import DOMAIN_NAME with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +02008{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
9{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020010{% set OVERRIDE_POLICY = os_env('OVERRIDE_POLICY', '') %}
Oleksii Butenkoc05c9f62018-04-19 19:00:02 +030011{% import 'shared-salt.yaml' as SHARED with context %}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020012
13# Install OpenStack control services
14
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020015{%- if OVERRIDE_POLICY != '' %}
16- description: Upload policy override
17 upload:
18 local_path: {{ config.salt_deploy.templates_dir }}{{ LAB_CONFIG_NAME }}/
19 local_filename: overrides-policy.yml
20 remote_path: /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/
21 node_name: {{ HOSTNAME_CFG01 }}
22
23- description: Create custom cluster control class
24 cmd: echo -e "classes:\n- cluster.{{ LAB_CONFIG_NAME }}.openstack.control_orig\n$(cat /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml)" > /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml
25 node_name: {{ HOSTNAME_CFG01 }}
26
27- description: Rename control classes
28 cmd: mv /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control_orig.yml &&
29 ln -s /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml &&
30 salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.sync_all &&
31 salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.refresh_pillar
32 node_name: {{ HOSTNAME_CFG01 }}
33{%- endif %}
34
Tatyana Leontovich56005da2017-12-11 13:16:51 +020035- description: Install glance on all controllers
36 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
37 -C 'I@glance:server' state.sls glance -b 1
38 node_name: {{ HOSTNAME_CFG01 }}
39 retry: {count: 1, delay: 5}
40 skip_fail: false
41
42- description: Install keystone service (note that different fernet keys are created on different nodes)
43 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
44 -C 'I@keystone:server' state.sls keystone.server -b 1
45 node_name: {{ HOSTNAME_CFG01 }}
46 retry: {count: 2, delay: 15}
47 skip_fail: false
48
49- description: Restart apache due to PROD-10477
50 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2"
51 node_name: {{ HOSTNAME_CFG01 }}
52 retry: {count: 1, delay: 15}
53 skip_fail: false
54
55- description: Check apache status to PROD-10477
56 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2"
57 node_name: {{ HOSTNAME_CFG01 }}
58 retry: {count: 1, delay: 15}
59 skip_fail: false
60
61- description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users)
62 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
63 -C 'I@glance:server' state.sls glusterfs.client
64 node_name: {{ HOSTNAME_CFG01 }}
65 retry: {count: 1, delay: 5}
66 skip_fail: false
67
68- description: Update fernet keys for keystone server on the mounted glusterfs volume
69 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
70 -C 'I@keystone:server' state.sls keystone.server -b 1
71 node_name: {{ HOSTNAME_CFG01 }}
72 retry: {count: 1, delay: 5}
73 skip_fail: false
74
75- description: Populate keystone services/tenants/admins
76 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
77 -C 'I@keystone:client' state.sls keystone.client
78 node_name: {{ HOSTNAME_CFG01 }}
Dennis Dmitrievf073e6f2018-02-06 23:45:15 +020079 retry: {count: 2, delay: 5}
Tatyana Leontovich56005da2017-12-11 13:16:51 +020080 skip_fail: false
81
82- description: Check keystone service-list
83 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
84 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack service list'
85 node_name: {{ HOSTNAME_CFG01 }}
86 retry: {count: 1, delay: 5}
87 skip_fail: false
88
89- description: Check glance image-list
90 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +020091 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +020092 node_name: {{ HOSTNAME_CFG01 }}
93 retry: {count: 1, delay: 5}
94 skip_fail: false
95
96
97- description: Install nova on all controllers
98 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
99 -C 'I@nova:controller' state.sls nova -b 1
100 node_name: {{ HOSTNAME_CFG01 }}
101 retry: {count: 2, delay: 5}
102 skip_fail: false
103
104- description: Check nova service-list
105 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200106 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova --debug service-list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200107 node_name: {{ HOSTNAME_CFG01 }}
108 retry: {count: 3, delay: 5}
109 skip_fail: false
110
111
112- description: Install cinder
113 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
114 -C 'I@cinder:controller' state.sls cinder -b 1
115 node_name: {{ HOSTNAME_CFG01 }}
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200116 retry: {count: 1, delay: 5}
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200117 skip_fail: false
118
119- description: Check cinder list
120 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200121 -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list'
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200122 node_name: {{ HOSTNAME_CFG01 }}
123 retry: {count: 1, delay: 5}
124 skip_fail: false
125
126
127- description: Install neutron service
128 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
129 -C 'I@neutron:server' state.sls neutron -b 1
130 node_name: {{ HOSTNAME_CFG01 }}
131 retry: {count: 1, delay: 5}
132 skip_fail: false
133
134- description: Install neutron on gtw node
135 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
136 -C 'I@neutron:gateway' state.sls neutron
137 node_name: {{ HOSTNAME_CFG01 }}
138 retry: {count: 1, delay: 5}
139 skip_fail: false
140
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200141# isntall designate
142- description: Install powerdns
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200143 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200144 -C 'I@powerdns:server' state.sls powerdns.server
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200145 node_name: {{ HOSTNAME_CFG01 }}
146 retry: {count: 1, delay: 5}
147 skip_fail: false
148
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200149- description: Install designate
150 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
151 -C 'I@designate:server' state.sls designate -b 1
152 node_name: {{ HOSTNAME_CFG01 }}
153 retry: {count: 5, delay: 10}
154 skip_fail: false
155
156- description: Check neutron agent-list
157 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
158 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
159 node_name: {{ HOSTNAME_CFG01 }}
160 retry: {count: 1, delay: 5}
161 skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200162
163- description: Install heat service
164 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
165 -C 'I@heat:server' state.sls heat -b 1
166 node_name: {{ HOSTNAME_CFG01 }}
167 retry: {count: 1, delay: 5}
168 skip_fail: false
169
170- description: Check heat service
171 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
172 -C 'I@keystone:server' cmd.run '. /root/keystonercv3; openstack orchestration resource type list'
173 node_name: {{ HOSTNAME_CFG01 }}
174 retry: {count: 5, delay: 10}
175 skip_fail: false
176
177
178- description: Deploy horizon dashboard
179 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
180 -C 'I@horizon:server' state.sls horizon
181 node_name: {{ HOSTNAME_CFG01 }}
182 retry: {count: 1, delay: 5}
183 skip_fail: true
184
185- description: Deploy nginx proxy
186 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
187 -C 'I@nginx:server' state.sls nginx
188 node_name: {{ HOSTNAME_CFG01 }}
189 retry: {count: 1, delay: 5}
190 skip_fail: true
191
192
193# Install compute node
194
195- description: Apply formulas for compute node
196 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
197 node_name: {{ HOSTNAME_CFG01 }}
198 retry: {count: 1, delay: 5}
199 skip_fail: true
200
201- description: Re-apply(as in doc) formulas for compute node
202 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
203 node_name: {{ HOSTNAME_CFG01 }}
204 retry: {count: 1, delay: 5}
Oleksii Butenko9f2601c2018-02-08 15:13:21 +0200205 skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200206
207- description: Check IP on computes
208 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
209 'ip a'
210 node_name: {{ HOSTNAME_CFG01 }}
211 retry: {count: 10, delay: 30}
212 skip_fail: false
213
214
215 # Upload cirros image
216
217- description: Upload cirros image on ctl01
218 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
219 'wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img'
220 node_name: {{ HOSTNAME_CFG01 }}
221 retry: {count: 2, delay: 30}
222 skip_fail: false
223
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200224- description: Register image in glance
225 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
226 '. /root/keystonercv3; glance --timeout 120 image-create --name cirros --visibility public --disk-format qcow2 --container-format bare --progress < /root/cirros-0.3.4-i386-disk.img'
227 node_name: {{ HOSTNAME_CFG01 }}
228 retry: {count: 1, delay: 30}
229 skip_fail: false
230
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200231- description: Create net04_external
232 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
233 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
234 node_name: {{ HOSTNAME_CFG01 }}
235 retry: {count: 1, delay: 30}
236 skip_fail: false
237
238- description: Create subnet_external
239 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
240 '. /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'
241 node_name: {{ HOSTNAME_CFG01 }}
242 retry: {count: 1, delay: 30}
243 skip_fail: false
244
245- description: Create net04
246 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
247 '. /root/keystonercv3; neutron net-create net04'
248 node_name: {{ HOSTNAME_CFG01 }}
249 retry: {count: 1, delay: 30}
250 skip_fail: false
251
252- description: Create subnet_net04
253 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
Tatyana Leontovich7305c412018-04-27 00:26:27 +0300254 '. /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 }}.180'
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200255 node_name: {{ HOSTNAME_CFG01 }}
256 retry: {count: 1, delay: 30}
257 skip_fail: false
258
259- description: Create router
260 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
261 '. /root/keystonercv3; neutron router-create net04_router01'
262 node_name: {{ HOSTNAME_CFG01 }}
263 retry: {count: 1, delay: 30}
264 skip_fail: false
265
266- description: Set geteway
267 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
268 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
269 node_name: {{ HOSTNAME_CFG01 }}
270 retry: {count: 1, delay: 30}
271 skip_fail: false
272
273- description: Add interface
274 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
275 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
276 node_name: {{ HOSTNAME_CFG01 }}
277 retry: {count: 1, delay: 30}
278 skip_fail: false
279
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200280#- description: Allow all tcp
281# cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
282# '. /root/keystonercv3; nova secgroup-add-rule default tcp 1 65535 0.0.0.0/0'
283# node_name: {{ HOSTNAME_CFG01 }}
284# retry: {count: 1, delay: 30}
285# skip_fail: false
286#
287#- description: Allow all icmp
288# cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
289# '. /root/keystonercv3; nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0'
290# node_name: {{ HOSTNAME_CFG01 }}
291# retry: {count: 1, delay: 30}
292# skip_fail: false
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200293
294- description: sync time
295 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
296 'service ntp stop; ntpd -gq; service ntp start'
297 node_name: {{ HOSTNAME_CFG01 }}
298 retry: {count: 1, delay: 30}
299 skip_fail: false
300
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200301# Configure cinder-volume salt-call PROD-13167
Tatyana Leontovich7305c412018-04-27 00:26:27 +0300302#- description: Set disks 01
303# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
304# node_name: {{ HOSTNAME_CTL01 }}
305# retry: {count: 1, delay: 30}
306# skip_fail: false
307#
308#- description: Set disks 02
309# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
310# node_name: {{ HOSTNAME_CTL02 }}
311# retry: {count: 1, delay: 30}
312# skip_fail: false
313#
314#- description: Set disks 03
315# cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb'
316# node_name: {{ HOSTNAME_CTL03 }}
317# retry: {count: 1, delay: 30}
318# skip_fail: false
319#
320#- description: Create partitions 01
321# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
322# node_name: {{ HOSTNAME_CTL01 }}
323# retry: {count: 1, delay: 30}
324# skip_fail: false
325#
326#- description: Create partitions 02
327# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
328# node_name: {{ HOSTNAME_CTL02 }}
329# retry: {count: 1, delay: 30}
330# skip_fail: false
331#
332#- description: Create partitions 03
333# cmd: salt-call cmd.run 'pvcreate /dev/vdb1'
334# node_name: {{ HOSTNAME_CTL03 }}
335# retry: {count: 1, delay: 30}
336# skip_fail: false
337#
338#- description: create volume_group
339# cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1'
340# node_name: {{ HOSTNAME_CFG01 }}
341# retry: {count: 1, delay: 30}
342# skip_fail: false
343#
344#- description: Install cinder-volume
345# cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y'
346# node_name: {{ HOSTNAME_CFG01 }}
347# retry: {count: 1, delay: 30}
348# skip_fail: false
349#
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200350- description: Install crudini
351 cmd: salt "ctl*" cmd.run 'apt-get install crudini -y'
352 node_name: {{ HOSTNAME_CFG01 }}
353 retry: {count: 1, delay: 30}
354 skip_fail: false
355
Tatyana Leontovich7305c412018-04-27 00:26:27 +0300356#- description: Temporary WR set enabled backends value 01
357# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
358# node_name: {{ HOSTNAME_CTL01 }}
359# retry: {count: 1, delay: 30}
360# skip_fail: false
361#
362#- description: Temporary WR set enabled backends value 02
363# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
364# node_name: {{ HOSTNAME_CTL02 }}
365# retry: {count: 1, delay: 30}
366# skip_fail: false
367#
368#- description: Temporary WR set enabled backends value 03
369# cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm'
370# node_name: {{ HOSTNAME_CTL03 }}
371# retry: {count: 1, delay: 30}
372# skip_fail: false
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200373
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200374- description: Install docker.io on gtw
375 cmd: salt-call cmd.run 'apt-get install docker.io -y'
376 node_name: {{ HOSTNAME_GTW01 }}
377 retry: {count: 1, delay: 30}
378 skip_fail: false
379
Tatyana Leontovichd6bcbc92018-03-23 15:02:28 +0200380- description: Enable forward policy
381 cmd: iptables --policy FORWARD ACCEPT
382 node_name: {{ HOSTNAME_GTW01 }}
383 retry: {count: 1, delay: 30}
384 skip_fail: false
385
Tatyana Leontovich7305c412018-04-27 00:26:27 +0300386#- description: Restart cinder volume
387# cmd: |
388# salt -C 'I@cinder:controller' service.restart cinder-volume;
389# node_name: {{ HOSTNAME_CFG01 }}
390# retry: {count: 2, delay: 5}
391# skip_fail: false
Tatyana Leontovichb0b68d92018-01-11 13:27:08 +0200392
Tatyana Leontovich56005da2017-12-11 13:16:51 +0200393- description: create rc file on cfg
394 cmd: scp ctl01:/root/keystonercv3 /root
395 node_name: {{ HOSTNAME_CFG01 }}
396 retry: {count: 1, delay: 30}
397 skip_fail: false
398
399- description: Copy rc file
400 cmd: scp /root/keystonercv3 gtw01:/root
401 node_name: {{ HOSTNAME_CFG01 }}
402 retry: {count: 1, delay: 30}
403 skip_fail: false
sgudz3fd44542018-04-02 11:45:49 +0300404
405- description: Install manila-api on first node
406 cmd: |
407 salt -C 'I@manila:api and *01*' state.sls manila.api;
408 node_name: {{ HOSTNAME_CFG01 }}
409 retry: {count: 1, delay: 5}
410 skip_fail: false
411
412- description: Install manila-api on other nodes
413 cmd: |
414 salt -C 'I@manila:api and not *01*' state.sls manila.api;
415 node_name: {{ HOSTNAME_CFG01 }}
416 retry: {count: 1, delay: 5}
417 skip_fail: false
418
419- description: Install manila-scheduler
420 cmd: |
421 salt -C 'I@manila:scheduler' state.sls manila.scheduler;
422 node_name: {{ HOSTNAME_CFG01 }}
423 retry: {count: 1, delay: 5}
424 skip_fail: false
425
426- description: Install manila-share
427 cmd: |
428 salt -C 'I@manila:share' state.sls manila.share;
429 node_name: {{ HOSTNAME_CFG01 }}
430 retry: {count: 1, delay: 5}
431 skip_fail: false
432
Tatyana Leontovich3cc1c132018-04-03 00:41:17 +0300433- description: WR https://mirantis.jira.com/browse/PROD-19012
434 cmd: |
Tatyana Leontovich1618a2a2018-04-03 10:19:25 +0300435 salt 'ctl*' cmd.run 'systemctl restart apache2'
Tatyana Leontovich3cc1c132018-04-03 00:41:17 +0300436 node_name: {{ HOSTNAME_CFG01 }}
437 retry: {count: 1, delay: 5}
438 skip_fail: false
439
sgudz3fd44542018-04-02 11:45:49 +0300440- description: Check manila-services
441 cmd: |
442 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila service-list'
443 node_name: {{ HOSTNAME_CFG01 }}
Tatyana Leontovich1618a2a2018-04-03 10:19:25 +0300444 retry: {count: 3, delay: 15}
sgudz3fd44542018-04-02 11:45:49 +0300445 skip_fail: false
446
447- description: Create manila type
448 cmd: |
sgudz1d658402018-04-06 11:59:48 +0300449 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila type-create default false --create_share_from_snapshot_support true --revert_to_snapshot_support true --mount_snapshot_support true --snapshot_support true --is_public true'
sgudz3fd44542018-04-02 11:45:49 +0300450 node_name: {{ HOSTNAME_CFG01 }}
451 retry: {count: 1, delay: 5}
452 skip_fail: false
453
454- description: Create CIFS and NFS share and check it status
455 cmd: |
456 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create CIFS 1 --share-type=default';
457 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila create NFS 1 --share-type=default';
458 sleep 5;
459 salt 'ctl01*' cmd.run '. /root/keystonercv3; manila list';
460 node_name: {{ HOSTNAME_CFG01 }}
461 retry: {count: 1, delay: 5}
462 skip_fail: false
Oleksii Butenkoc05c9f62018-04-19 19:00:02 +0300463
464{{ SHARED.RUN_NEW_TEMPEST() }}