Skip to content

Commit 13a1433

Browse files
committed
docs: Add info on how to deploy and test ironic in ci-aio env
Use Tenks to provide virtual bare metal, with Kayobe helper scripts to deploy.
1 parent 2a739da commit 13a1433

File tree

1 file changed

+73
-1
lines changed

1 file changed

+73
-1
lines changed

doc/source/contributor/environments/ci-aio.rst

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ Add initial network configuration:
104104
sudo ip l set dummy1 up
105105
sudo ip l set dummy1 master breth1
106106
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+
107119
Installation
108120
------------
109121

@@ -140,12 +152,72 @@ Finally, deploy the overcloud services.
140152
141153
The control plane should now be running.
142154

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+
143162
Testing
144163
-------
145164

146165
Run a smoke test:
147166

148167
.. parsed-literal::
149168
150-
cd ~/kayobe
169+
cd ~/src/kayobe
151170
./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

Comments
 (0)