blob: 554dd46e12483f7291f09ab81de6baea92bbc37f [file] [log] [blame]
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +03001{% from 'underlay/virtual-mcp11-dvr.yaml' import HOSTNAME_CFG01 with context %}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +03002
3# Install OpenStack control services
4
Dennis Dmitriev45396db2017-04-26 15:29:47 +03005- description: Install glance on all controllers
6 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
7 -C 'I@glance:server' state.sls glance -b 1
8 node_name: {{ HOSTNAME_CFG01 }}
9 retry: {count: 1, delay: 5}
10 skip_fail: false
11
12- description: Install keystone service (note that different fernet keys are created on different nodes)
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030013 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
14 -C 'I@keystone:server' state.sls keystone.server -b 1
15 node_name: {{ HOSTNAME_CFG01 }}
Tatyana Leontovichd4f1fd32017-04-21 13:31:44 +030016 retry: {count: 2, delay: 15}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030017 skip_fail: false
18
Tatyana Leontovich966af4d2017-04-24 14:08:12 +030019- description: Restart apache due to PROD-10477
20 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2"
21 node_name: {{ HOSTNAME_CFG01 }}
22 retry: {count: 1, delay: 15}
23 skip_fail: false
24
25- description: Check apache status to PROD-10477
26 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2"
27 node_name: {{ HOSTNAME_CFG01 }}
28 retry: {count: 1, delay: 15}
29 skip_fail: false
30
Dennis Dmitriev45396db2017-04-26 15:29:47 +030031- description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users)
32 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
33 -C 'I@glance:server' state.sls glusterfs.client
34 node_name: {{ HOSTNAME_CFG01 }}
35 retry: {count: 1, delay: 5}
36 skip_fail: false
37
38- description: Update fernet keys for keystone server on the mounted glusterfs volume
39 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
40 -C 'I@keystone:server' state.sls keystone.server -b 1
41 node_name: {{ HOSTNAME_CFG01 }}
42 retry: {count: 1, delay: 5}
43 skip_fail: false
44
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030045- description: Populate keystone services/tenants/admins
46 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
47 -C 'I@keystone:client' state.sls keystone.client
48 node_name: {{ HOSTNAME_CFG01 }}
49 retry: {count: 1, delay: 5}
50 skip_fail: false
51
52- description: Check keystone service-list
53 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovichb8b02d82017-04-21 14:07:33 +030054 -C 'I@keystone:server' cmd.run '. /root/keystonerc; openstack service list'
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030055 node_name: {{ HOSTNAME_CFG01 }}
56 retry: {count: 1, delay: 5}
57 skip_fail: false
58
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030059- description: Check glance image-list
60 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
61 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
62 node_name: {{ HOSTNAME_CFG01 }}
63 retry: {count: 1, delay: 5}
64 skip_fail: false
65
66
67- description: Install nova on all controllers
68 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
69 -C 'I@nova:controller' state.sls nova -b 1
70 node_name: {{ HOSTNAME_CFG01 }}
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030071 retry: {count: 2, delay: 5}
Tatyana Leontovichd8bf14f2017-04-19 12:20:50 +030072 skip_fail: false
73
74- description: Check nova service-list
75 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
76 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova service-list'
77 node_name: {{ HOSTNAME_CFG01 }}
78 retry: {count: 1, delay: 5}
79 skip_fail: false
80
81
82- description: Install cinder
83 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
84 -C 'I@cinder:controller' state.sls cinder -b 1
85 node_name: {{ HOSTNAME_CFG01 }}
86 retry: {count: 1, delay: 5}
87 skip_fail: false
88
89- description: Check cinder list
90 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
91 -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list'
92 node_name: {{ HOSTNAME_CFG01 }}
93 retry: {count: 1, delay: 5}
94 skip_fail: false
95
96
97- description: Install neutron service
98 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
99 -C 'I@neutron:server' state.sls neutron -b 1
100 node_name: {{ HOSTNAME_CFG01 }}
101 retry: {count: 1, delay: 5}
102 skip_fail: false
103
104- description: Install neutron on gtw node
105 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
106 -C 'I@neutron:gateway' state.sls neutron
107 node_name: {{ HOSTNAME_CFG01 }}
108 retry: {count: 1, delay: 5}
109 skip_fail: false
110
111
112- description: Check neutron agent-list
113 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
114 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
115 node_name: {{ HOSTNAME_CFG01 }}
116 retry: {count: 1, delay: 5}
117 skip_fail: false
118
119
120- description: Install heat service
121 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
122 -C 'I@heat:server' state.sls heat -b 1
123 node_name: {{ HOSTNAME_CFG01 }}
124 retry: {count: 1, delay: 5}
125 skip_fail: false
126
127- description: Check heat service
128 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
129 -C 'I@keystone:server' cmd.run '. /root/keystonerc; heat resource-type-list'
130 node_name: {{ HOSTNAME_CFG01 }}
131 retry: {count: 1, delay: 5}
132 skip_fail: false
133
134
135- description: Deploy horizon dashboard
136 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
137 -C 'I@horizon:server' state.sls horizon
138 node_name: {{ HOSTNAME_CFG01 }}
139 retry: {count: 1, delay: 5}
140 skip_fail: true
141
142- description: Deploy nginx proxy
143 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
144 -C 'I@nginx:server' state.sls nginx
145 node_name: {{ HOSTNAME_CFG01 }}
146 retry: {count: 1, delay: 5}
147 skip_fail: true
148
149
150# Install compute node
151
152- description: Apply formulas for compute node
153 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
154 node_name: {{ HOSTNAME_CFG01 }}
155 retry: {count: 1, delay: 5}
156 skip_fail: true
157
158- description: Re-apply(as in doc) formulas for compute node
159 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
160 node_name: {{ HOSTNAME_CFG01 }}
161 retry: {count: 1, delay: 5}
162 skip_fail: true
163
164- description: Check IP on computes
165 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
166 'ip a'
167 node_name: {{ HOSTNAME_CFG01 }}
168 retry: {count: 10, delay: 30}
169 skip_fail: false