@@ -104,6 +104,18 @@ Add initial network configuration:
104
104
sudo ip l set dummy1 up
105
105
sudo ip l set dummy1 master breth1
106
106
107
+ Configuration
108
+ =============
109
+
110
+ If using Ironic:
111
+
112
+ .. parsed-literal ::
113
+
114
+ cd src/kayobe-config
115
+ cat << EOF > etc/kayobe/aio.yml
116
+ kolla_enable_ironic: true
117
+ EOF
118
+
107
119
Installation
108
120
------------
109
121
@@ -140,12 +152,72 @@ Finally, deploy the overcloud services.
140
152
141
153
The control plane should now be running.
142
154
155
+ If using Ironic, run overcloud post configuration:
156
+
157
+ .. parsed-literal ::
158
+
159
+ source ~/src/kayobe-config/etc/kolla/public-openrc.sh
160
+ kayobe overcloud post configure
161
+
143
162
Testing
144
163
-------
145
164
146
165
Run a smoke test:
147
166
148
167
.. parsed-literal ::
149
168
150
- cd ~/kayobe
169
+ cd ~/src/ kayobe
151
170
./dev/overcloud-test-vm.sh
171
+
172
+ Ironic
173
+ ------
174
+
175
+ For a control plane with Ironic enabled, a "bare metal" instance can be
176
+ deployed. We can use the Tenks project to create fake bare metal nodes.
177
+
178
+ Clone the tenks repository:
179
+
180
+ .. parsed-literal ::
181
+
182
+ cd ~/src/kayobe
183
+ git clone https://opendev.org/openstack/tenks.git
184
+
185
+ Optionally, edit the Tenks configuration file,
186
+ ``~/src/kayobe/dev/tenks-deploy-config-compute.yml ``.
187
+
188
+ Run the ``dev/tenks-deploy-compute.sh `` script to deploy Tenks:
189
+
190
+ .. parsed-literal ::
191
+
192
+ cd ~/src/kayobe
193
+ export KAYOBE_CONFIG_SOURCE_PATH=~/src/kayobe-config
194
+ export KAYOBE_VENV_PATH=~/venvs/kayobe
195
+ ./dev/tenks-deploy-compute.sh ./tenks/
196
+
197
+ Check that Tenks has created VMs called tk0 and tk1:
198
+
199
+ .. parsed-literal ::
200
+
201
+ sudo virsh list --all
202
+
203
+ Verify that VirtualBMC is running:
204
+
205
+ .. parsed-literal ::
206
+
207
+ ~/tenks-venv/bin/vbmc list
208
+
209
+ We are now ready to run the ``dev/overcloud-test-baremetal.sh `` script. This
210
+ will run the ``init-runonce `` setup script provided by Kolla Ansible that
211
+ registers images, networks, flavors etc. It will then deploy a bare metal
212
+ server instance, and delete it once it becomes active:
213
+
214
+ .. parsed-literal ::
215
+
216
+ ./dev/overcloud-test-baremetal.sh
217
+
218
+ The machines and networking created by Tenks can be cleaned up via
219
+ ``dev/tenks-teardown-compute.sh ``:
220
+
221
+ .. parsed-literal ::
222
+
223
+ ./dev/tenks-teardown-compute.sh ./tenks
0 commit comments