Skip to content

Commit 39004de

Browse files
committed
Update release train documentation
Updated the documentation for release train, in particular adding information on how to use the host images in Ark, and updating the details surrounding Ubuntu packages.
1 parent 6fedc12 commit 39004de

File tree

2 files changed

+67
-13
lines changed

2 files changed

+67
-13
lines changed

doc/source/configuration/host-images.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,44 @@
44
Host Images
55
===========
66

7+
Pulling host images
8+
===================
9+
10+
StackHPC provides pre-built overcloud host images through Ark, which can be
11+
consumed using the configuration provided by this repository.
12+
13+
When configured, an image will be downloaded to the seed during the
14+
``kayobe seed service deploy`` step, and subsequently deployed using bifrost
15+
with ``kayobe overcloud provision``.
16+
17+
To use these images, set ``stackhpc_download_overcloud_host_images`` to true
18+
in ``etc/kayobe/stackhpc-overcloud-host-images.yml``.
19+
20+
Currently, images exist for the following operating systems:
21+
22+
* CentOS 8 Stream
23+
* Rocky Linux 8
24+
* Rocky Linux 9
25+
* Ubuntu Focal 20.04
26+
* Ubuntu Jammy 22.04
27+
28+
The image to download is selected automatically using the ``os_distribution``
29+
and ``os_release`` variables.
30+
31+
This content requires the same set of credentials as is used for other
32+
release train content.
33+
34+
The Ark pulp credentials issued by StackHPC should be configured in
35+
``etc/kayobe/pulp.yml``, using Ansible Vault to encrypt the password:
36+
37+
.. code-block:: yaml
38+
39+
stackhpc_release_pulp_username: <username>
40+
stackhpc_release_pulp_password: <password>
41+
42+
Building host images
43+
====================
44+
745
StackHPC Kayobe configuration provides configuration for some standard
846
overcloud host images, built using the :kayobe-doc:`overcloud DIB
947
<configuration/reference/overcloud-dib.html>` functionality of Kayobe.

doc/source/configuration/release-train.rst

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
StackHPC Release Train
33
======================
44

5-
StackHPC provides packages and container images for OpenStack via `Ark
6-
<https://ark.stackhpc.com>`__. These artifacts are built and released using a
7-
process known as the `Release Train
5+
StackHPC provides packages, container images, and host images for OpenStack via
6+
`Ark <https://ark.stackhpc.com>`__. These artifacts are built and released using
7+
a process known as the `Release Train
88
<https://stackhpc.github.io/stackhpc-release-train/>`__.
99

1010
Deployments should use a local `Pulp <https://pulpproject.org/>`__ repository
@@ -37,10 +37,12 @@ Configuration
3737
This configuration provides the following:
3838

3939
* Configuration to deploy a local Pulp service as a container on the seed
40-
* Pulp repository definitions for CentOS Stream 8 and Rocky Linux 8
40+
* Pulp repository definitions for CentOS Stream 8, Rocky Linux 8/9 and Ubuntu
41+
Jammy
4142
* Playbooks to synchronise a local Pulp service with Ark
4243
* Configuration to use the local Pulp repository mirrors on control plane hosts
4344
* Configuration to use the local Pulp container registry on control plane hosts
45+
* Configuration to deploy pre-built OS images to overcloud hosts using Bifrost
4446

4547
Local Pulp server
4648
-----------------
@@ -60,6 +62,10 @@ Pulp startup.
6062
If a proxy is required to access the Internet from the seed, ``pulp_proxy_url``
6163
may be used.
6264

65+
Host images are not synchronised to the local Pulp server, since they should
66+
only be pulled to the seed node once. More information on host images can be
67+
found :ref:`here <host-images>`.
68+
6369
StackHPC Ark
6470
------------
6571

@@ -74,12 +80,12 @@ The Ark pulp credentials issued by StackHPC should be configured in
7480
Package repositories
7581
--------------------
7682

77-
Currently, Ark does not provide package repositories for Ubuntu - only
78-
container images. For this reason, ``stackhpc_pulp_sync_ubuntu_focal`` in
79-
``etc/kayobe/pulp.yml`` is set to ``false`` by default.
83+
Currently, Ark does not provide package repositories for Ubuntu Jammy 22.04 -
84+
only container images.
8085

81-
CentOS Stream 8 and Rocky Linux 8/9 package repositories are synced based on the
82-
value of ``os_distribution``. If you need to sync multiple distributions,
86+
CentOS Stream 8, Rocky Linux 8/9, and Ubuntu Focal package repositories are
87+
synced based on the value of ``os_distribution`` and ``os_release`` . If you
88+
need to sync multiple RHEL-like distributions,
8389
``stackhpc_pulp_sync_centos_stream8``, ``stackhpc_pulp_sync_rocky_8`` and
8490
``stackhpc_pulp_sync_rocky_9`` in ``etc/kayobe/pulp.yml`` may be set to
8591
``true``.
@@ -93,8 +99,15 @@ repository.
9399
Package managers
94100
----------------
95101

96-
No configuration is provided for APT, since Ark does not currently provide
97-
package repositories for Ubuntu - only container images.
102+
For Ubuntu Focal systems, the package manager configuration is provided by
103+
``stackhpc_apt_repositories`` in ``etc/kayobe/apt.yml``.
104+
105+
The configuration is applied by default to all Ubuntu Focal hosts. The
106+
configuration can be overridden by changing the repository definitions in
107+
``apt_repositories`` or toggling ``apt_disable_sources_list`` to use the default
108+
apt repositories. This can be done on a host-by host basis by defining the
109+
variables as host or group vars under ``etc/kayobe/inventory/host_vars`` or
110+
``etc/kayobe/inventory/group_vars``.
98111

99112
For CentOS and Rocky Linux based systems, package manager configuration is
100113
provided by ``stackhpc_dnf_repos`` in ``etc/kayobe/dnf.yml``, which points to
@@ -105,6 +118,9 @@ package repositories on the local Pulp server. To use this configuration, the
105118
configuration may be added for other groups, however there may be ordering
106119
issues during initial deployment when Pulp has not yet been deployed.
107120

121+
In both instances, the configuration points to package repositories on the
122+
local Pulp server.
123+
108124
The distribution name for the environment should be configured as either
109125
``development`` or ``production`` via ``stackhpc_repo_distribution`` in
110126
``etc/kayobe/stackhpc.yml``.
@@ -156,7 +172,7 @@ See the Kayobe :kayobe-doc:`custom playbook documentation
156172
these are new container image repositories, then the new image tags will not
157173
be available to cloud nodes until they have been published.
158174
* ``pulp-container-publish.yml``: Publish synchronised container images in the
159-
local Pulp. This will make synchonised container images available to cloud
175+
local Pulp. This will make synchronised container images available to cloud
160176
nodes.
161177

162178
Syncing content
@@ -274,4 +290,4 @@ you will see a 404 error during ``pulp-repo-sync.yml``:
274290
msg: Task failed to complete. (failed; 404, message='Not Found', url=URL('https://ark.stackhpc.com/pulp/content/centos/8-stream/BaseOS/x86_64/os/20211122T102435')) '''
275291
276292
The issue can be rectified by updating the ``stackhpc_release_pulp_username``
277-
and ``stackhpc_release_pulp_password`` variables
293+
and ``stackhpc_release_pulp_password`` variables.

0 commit comments

Comments
 (0)