@@ -105,24 +105,19 @@ already logged in (e.g. ``ssh rocky@<ip>``, or ``ssh ubuntu@<ip>``).
105
105
# Start at home.
106
106
cd
107
107
108
- # Clone Kayobe.
109
- git clone https://opendev.org/openstack/kayobe.git -b stable/2023.1
110
- cd kayobe
108
+ # Clone Beokay.
109
+ git clone https://github.com/stackhpc/beokay.git -b master
111
110
112
- # Clone the Tenks repository .
113
- git clone https://opendev.org/openstack/tenks .git
111
+ # Use Beokay to bootstrap your control host .
112
+ [[ -d deployment ]] || beokay/beokay.py create --base-path ~/deployment --kayobe-repo https://opendev.org/openstack/kayobe .git --kayobe-branch stable/2023.1 --kayobe-config-repo https://github.com/stackhpc/a-universe-from-nothing.git --kayobe-config-branch stable/2023.1
114
113
115
- # Clone this Kayobe configuration .
116
- mkdir -p config /src
117
- cd config/src/
118
- git clone https://github.com/stackhpc/a-universe-from-nothing.git kayobe-config -b stable/2023.1
114
+ # Clone the Tenks repository .
115
+ cd ~/deployment /src
116
+ [[ -d tenks ]] || git clone https://opendev.org/openstack/tenks.git
117
+ cd
119
118
120
119
# Configure host networking (bridge, routes & firewall)
121
- ./kayobe-config/configure-local-networking.sh
122
-
123
- # Install kayobe.
124
- cd ~/kayobe
125
- ./dev/install-dev.sh
120
+ ~/deployment/src/kayobe-config/configure-local-networking.sh
126
121
127
122
Deploying a Seed
128
123
----------------
@@ -134,14 +129,9 @@ performed the necessary `Preparation`_.
134
129
135
130
.. code-block :: console
136
131
137
- cd ~/kayobe
138
-
139
- # Activate the Kayobe environment, to allow running commands directly.
140
- source ~/kayobe-venv/bin/activate
141
- source config/src/kayobe-config/kayobe-env
142
-
143
- # Bootstrap the Ansible control host.
144
- kayobe control host bootstrap
132
+ # If you have not done so already, activate the Kayobe environment, to allow
133
+ # running commands directly.
134
+ source ~/deployment/env-vars.sh
145
135
146
136
# Configure the seed hypervisor host.
147
137
kayobe seed hypervisor host configure
@@ -153,14 +143,14 @@ performed the necessary `Preparation`_.
153
143
kayobe seed host configure
154
144
155
145
# Pull, retag images, then push to our local registry.
156
- ./config /src/kayobe-config/pull-retag-push-images.sh
146
+ ~/deployment /src/kayobe-config/pull-retag-push-images.sh
157
147
158
148
# Deploy the seed services.
159
149
kayobe seed service deploy
160
150
161
151
# Deploying the seed restarts networking interface,
162
152
# run configure-local-networking.sh again to re-add routes.
163
- ./config /src/kayobe-config/configure-local-networking.sh
153
+ ~/deployment /src/kayobe-config/configure-local-networking.sh
164
154
165
155
# Optional: Shutdown the seed VM if creating a seed snapshot.
166
156
sudo virsh shutdown seed
@@ -192,11 +182,8 @@ Otherwise, continue working with the instance from `Deploying a Seed`_.
192
182
# Optional: start a new tmux session in case we lose our connection.
193
183
tmux
194
184
195
- # Set working directory
196
- cd ~/kayobe
197
-
198
185
# Configure non-persistent networking, if the node has rebooted.
199
- ./config /src/kayobe-config/configure-local-networking.sh
186
+ ~/deployment /src/kayobe-config/configure-local-networking.sh
200
187
201
188
Make sure that the seed VM (running Bifrost and supporting services)
202
189
is present and running.
@@ -215,12 +202,16 @@ our model development environment, alongside the seed VM.
215
202
216
203
.. code-block :: console
217
204
218
- # NOTE: Make sure to use ./tenks, since just ‘tenks’ will install via PyPI.
219
- export TENKS_CONFIG_PATH=config/src/kayobe-config/tenks.yml
220
- ./dev/tenks-deploy-overcloud.sh ./tenks
205
+ # Set Environment variables for Kayobe dev scripts
206
+ export KAYOBE_CONFIG_SOURCE_PATH=~/deployment/src/kayobe-config
207
+ export KAYOBE_VENV_PATH=~/deployment/venvs/kayobe
208
+ export TENKS_CONFIG_PATH=~/deployment/src/kayobe-config/tenks.yml
209
+
210
+ # Use tenks to deploy the overcloud machines
211
+ ~/deployment/src/kayobe/dev/tenks-deploy-overcloud.sh ~/deployment/src/tenks
221
212
222
213
# Activate the Kayobe environment, to allow running commands directly.
223
- source dev/environment-setup .sh
214
+ source ~/deployment/env-vars .sh
224
215
225
216
# Inspect and provision the overcloud hardware:
226
217
kayobe overcloud inventory discover
@@ -236,7 +227,7 @@ Configure and deploy OpenStack to the control plane
236
227
kayobe overcloud host configure
237
228
kayobe overcloud container image pull
238
229
kayobe overcloud service deploy
239
- source config /src/kayobe-config/etc/kolla/public-openrc.sh
230
+ source ~/deployment /src/kayobe-config/etc/kolla/public-openrc.sh
240
231
kayobe overcloud post configure
241
232
242
233
At this point it should be possible to access the Horizon GUI via the
@@ -250,15 +241,15 @@ VM:
250
241
251
242
.. code-block :: console
252
243
253
- source config /src/kayobe-config/etc/kolla/public-openrc.sh
254
- ./config /src/kayobe-config/init-runonce.sh
244
+ source ~/deployment /src/kayobe-config/etc/kolla/public-openrc.sh
245
+ ~/deployment /src/kayobe-config/init-runonce.sh
255
246
256
247
Following the instructions displayed by the above script, boot a VM.
257
- You'll need to have activated the `~/os-venv ` virtual environment.
248
+ You'll need to have activated the `~/deployment/venvs/ os-venv ` virtual environment.
258
249
259
250
.. code-block :: console
260
251
261
- source ~/os-venv/bin/activate
252
+ source ~/deployment/venvs/ os-venv/bin/activate
262
253
openstack server create --image cirros \
263
254
--flavor m1.tiny \
264
255
--key-name mykey \
@@ -274,7 +265,7 @@ You'll need to have activated the `~/os-venv` virtual environment.
274
265
275
266
# If the ssh command above fails you may need to reconfigure the local
276
267
networking setup again:
277
- ~/kayobe/config /src/kayobe-config/configure-local-networking.sh
268
+ ~/deployment /src/kayobe-config/configure-local-networking.sh
278
269
279
270
*Note *: when accessing the VNC console of an instance via Horizon,
280
271
you will be sent to the internal IP address of the controller,
@@ -386,7 +377,7 @@ all OpenStack service logging. **Be cautious as OpenSearch will consume a
386
377
significant portion of available resources on a standard deployment. **
387
378
388
379
To enable the service, one flag must be changed in
389
- ``~/kayobe/config /src/kayobe-config/etc/kayobe/kolla.yml ``:
380
+ ``~/deployment /src/kayobe-config/etc/kayobe/kolla.yml ``:
390
381
391
382
.. code-block :: diff
392
383
@@ -402,7 +393,7 @@ the seed VM. Pull, retag and push the centralised logging images:
402
393
403
394
.. code-block :: console
404
395
405
- ~/kayobe/config /src/kayobe-config/pull-retag-push-images.sh ^opensearch
396
+ ~/deployment /src/kayobe-config/pull-retag-push-images.sh ^opensearch
406
397
407
398
To deploy the logging stack:
408
399
@@ -434,7 +425,7 @@ public interface to the OpenSearch Dashboards service running on our
434
425
``controller0 `` VM.
435
426
436
427
The easiest way to do this is to add OpenSearch Dashboards's default port (5601) to our
437
- ``configure-local-networking.sh `` script in ``~/kayobe/config /src/kayobe-config/ ``:
428
+ ``configure-local-networking.sh `` script in ``~/deployment /src/kayobe-config/ ``:
438
429
439
430
.. code-block :: diff
440
431
@@ -451,7 +442,7 @@ Then rerun the script to apply the change:
451
442
452
443
.. code-block :: console
453
444
454
- config /src/kayobe-config/configure-local-networking.sh
445
+ ~/deployment /src/kayobe-config/configure-local-networking.sh
455
446
456
447
We can now connect to OpenSearch Dashboards using our hypervisor host public IP and port 5601.
457
448
@@ -461,7 +452,7 @@ but they are not here).
461
452
462
453
.. code-block :: console
463
454
464
- grep opensearch_dashboards config /src/kayobe-config/etc/kolla/passwords.yml
455
+ grep opensearch_dashboards ~/deployment /src/kayobe-config/etc/kolla/passwords.yml
465
456
466
457
Once you're in, OpenSearch Dashboards needs some further setup which is not automated.
467
458
Set the log index to ``flog-* `` and you should be ready to go.
@@ -474,7 +465,7 @@ secret management service. It is an example of a simple service we
474
465
can use to illustrate the process of adding new services to our deployment.
475
466
476
467
As with the Logging service above, enable Barbican by modifying the flag in
477
- ``~/kayobe/config /src/kayobe-config/etc/kayobe/kolla.yml `` as follows:
468
+ ``~/deployment /src/kayobe-config/etc/kayobe/kolla.yml `` as follows:
478
469
479
470
.. code-block :: diff
480
471
@@ -486,15 +477,14 @@ containers. Pull down barbican images:
486
477
487
478
.. code-block :: console
488
479
489
- ~/kayobe/config /src/kayobe-config/pull-retag-push-images.sh barbican
480
+ ~/deployment /src/kayobe-config/pull-retag-push-images.sh barbican
490
481
491
482
To deploy the Barbican service:
492
483
493
484
.. code-block :: console
494
485
495
486
# Activate the venv if not already active
496
- cd ~/kayobe
497
- source dev/environment-setup.sh
487
+ source ~/deployment/env-vars.sh
498
488
499
489
kayobe overcloud container image pull
500
490
kayobe overcloud service deploy
@@ -509,13 +499,13 @@ OpenStack venv:
509
499
deactivate
510
500
511
501
# Activate the OpenStack venv
512
- . ~ /os-venv/bin/activate
502
+ ~/deployment/venvs /os-venv/bin/activate
513
503
514
504
# Install barbicanclient
515
505
pip install python-barbicanclient -c https://releases.openstack.org/constraints/upper/2023.1
516
506
517
507
# Source the OpenStack environment variables
518
- source ~/kayobe/config /src/kayobe-config/etc/kolla/public-openrc.sh
508
+ source ~/deployment /src/kayobe-config/etc/kolla/public-openrc.sh
519
509
520
510
# Store a test secret
521
511
openstack secret store --name mysecret --payload foo=bar
0 commit comments