blob: e8f21cae546a640e7e521ae4cbbf48fbd9dc8eb5 [file] [log] [blame]
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03001{% from 'virtual-mcp-ocata-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +03002
3# Install OpenStack control services
4
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +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 Leontovich38be41b2017-04-12 14:45:23 +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 Leontovich38be41b2017-04-12 14:45:23 +030017 skip_fail: false
18
Tatyana Leontovichfa7ae4d2017-04-25 13:46:14 +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 Dmitriev4ab889c2017-04-27 14:11:04 +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 Leontovich38be41b2017-04-12 14:45:23 +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 Leontovich38be41b2017-04-12 14:45:23 +030055 node_name: {{ HOSTNAME_CFG01 }}
56 retry: {count: 1, delay: 5}
57 skip_fail: false
58
Tatyana Leontovich38be41b2017-04-12 14:45:23 +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 Leontovich38be41b2017-04-12 14:45:23 +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
Tatyana Leontovich85e822a2017-06-15 11:52:01 +0300111# isntall designate
112- description: Install bind
113 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovich033aac02017-06-15 15:01:21 +0300114 -C 'I@bind:server' state.sls bind
Tatyana Leontovich85e822a2017-06-15 11:52:01 +0300115 node_name: {{ HOSTNAME_CFG01 }}
116 retry: {count: 1, delay: 5}
117 skip_fail: false
118
119- description: Install designate
120 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Tatyana Leontovich033aac02017-06-15 15:01:21 +0300121 -C 'I@designate:server' state.sls designate -b 1
Tatyana Leontovich85e822a2017-06-15 11:52:01 +0300122 node_name: {{ HOSTNAME_CFG01 }}
123 retry: {count: 5, delay: 10}
124 skip_fail: false
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300125
126- description: Check neutron agent-list
127 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
128 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
129 node_name: {{ HOSTNAME_CFG01 }}
130 retry: {count: 1, delay: 5}
131 skip_fail: false
132
133
134- description: Install heat service
135 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
136 -C 'I@heat:server' state.sls heat -b 1
137 node_name: {{ HOSTNAME_CFG01 }}
138 retry: {count: 1, delay: 5}
139 skip_fail: false
140
141- description: Check heat service
142 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
Igor Yozhikov8ec6d2f2017-05-23 16:17:29 +0300143 -C 'I@keystone:server' cmd.run '. /root/keystonerc; openstack orchestration resource type list'
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300144 node_name: {{ HOSTNAME_CFG01 }}
Igor Yozhikov8ec6d2f2017-05-23 16:17:29 +0300145 retry: {count: 5, delay: 10}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300146 skip_fail: false
147
148
149- description: Deploy horizon dashboard
150 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
151 -C 'I@horizon:server' state.sls horizon
152 node_name: {{ HOSTNAME_CFG01 }}
153 retry: {count: 1, delay: 5}
154 skip_fail: true
155
156- description: Deploy nginx proxy
157 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
158 -C 'I@nginx:server' state.sls nginx
159 node_name: {{ HOSTNAME_CFG01 }}
160 retry: {count: 1, delay: 5}
161 skip_fail: true
162
163
164# Install compute node
165
166- description: Apply 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: true
171
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: {{ HOSTNAME_CFG01 }}
175 retry: {count: 1, delay: 5}
176 skip_fail: true
177
178- description: Check IP on computes
179 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
180 'ip a'
181 node_name: {{ HOSTNAME_CFG01 }}
182 retry: {count: 10, delay: 30}
183 skip_fail: false