Skip to content

Commit d1b376b

Browse files
committed
Update docs based on review
1 parent 8ce3ed0 commit d1b376b

File tree

1 file changed

+45
-7
lines changed

1 file changed

+45
-7
lines changed

doc/source/contributor/package-updates.rst

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
Package and Container Updates
33
=============================
44

5+
This section describes the Release Train process of creating new package repository snapshots and updating the container images to use these new packages. It includes instructions on the recommended way to test these updates, using the multinode test environment.
6+
57
Preparations
68
============
79

8-
1. Before building images, you should check for any outstanding PRs into the “base branch“. Below are the links for the Wallaby branches.
10+
1. Before building images, you should check for any outstanding PRs into the earliest supported release. Below are the links for the Wallaby branches.
911

1012
kayobe-config: https://github.com/stackhpc/stackhpc-kayobe-config/pulls?q=is%3Apr+is%3Aopen+base%3Astackhpc%2Fwallaby
1113

@@ -15,16 +17,30 @@ Preparations
1517

1618
You should also check any referenced source trees in etc/kayobe/kolla.yml.
1719

18-
e.g: https://github.com/stackhpc/stackhpc-kayobe-config/blob/stackhpc/wallaby/etc/kayobe/kolla.yml#L112-L158
20+
e.g: https://github.com/stackhpc/stackhpc-kayobe-config/blob/320ba8b28da879917beec0ce7c4c90c478aaeaf7/etc/kayobe/kolla.yml#L112-L158
21+
22+
2. Follow the workflows documented `here <https://stackhpc.github.io/stackhpc-release-train/usage/content-howto/#update-package-repositories>`_. Sync the package repositories. Then, for each release:
23+
24+
* Make sure the nightly sync of package repositories has succeeded.
25+
26+
* Update the Kayobe package repository versions.
27+
28+
* Build and push Kolla container images.
29+
30+
* Open a draft PR into ``stackhpc/kayobe-config`` with the updated container image tags.
1931

20-
2. Follow the workflows documented `here <https://stackhpc.github.io/stackhpc-release-train/usage/content-howto/#update-package-repositories>`_. Sync the package repositories. Then, for each release: update the Kayobe package repository versions, build and push Kolla container images, open a draft PR with the updated container image tags. The rest of this document describes the stage "Test".
32+
* Test.
33+
34+
* Review the PR. Once approved, promote the container images before then merging the PR.
35+
36+
The rest of this document describes the final "test" stage.
2137

2238
Testing
2339
=======
2440

2541
The following steps describe the process to test the new package and container repositories. See the subsections beneath for further explanations.
2642

27-
1. Build two multinode environments for OVS and OVN, both on the "base branch".
43+
1. Build two multinode environments for OVS and OVN, both on the earliest supported release.
2844

2945
2. Run tests on current package versions as a baseline.
3046

@@ -53,14 +69,27 @@ There is a comprehensive guide to setting up a multinode environment with Terraf
5369

5470
* Remember to set different vxlan_vnis for each.
5571

56-
* Before running deploy-openstack.sh, run distro sync on each host to ensure you are using the same snapshots as in the release train.
72+
* Before starting any tests, run ``dnf distro-sync`` on each host to ensure you are using the same snapshots as in the release train. You can do this using the following commands:
73+
74+
.. code-block:: console
75+
76+
kayobe seed host command run -b --command "dnf distro-sync"
77+
kayobe overcloud host command run -b --command "dnf distro-sync"
5778
5879
* The tempest tests run automatically at the end of deploy-openstack.sh. If you have the time, it is worth fixing any failing tests you can so that there is greater coverage for the package updates. (Also remember to propose these fixes in the relevant repos where applicable.)
5980

6081
Upgrading host packages
6182
-----------------------
6283

63-
Bump the snapshot versions in /etc/yum/repos.d with
84+
Checkout the new kayobe-config branch (from the draft PR):
85+
86+
.. code-block:: console
87+
88+
cd $KAYOBE_CONFIG_ROOT
89+
git fetch
90+
git checkout <branch-name>
91+
92+
Bump the snapshot versions in /etc/yum/repos.d with:
6493

6594
.. code-block:: console
6695
@@ -94,6 +123,14 @@ Perform a rolling reboot of hosts:
94123
Upgrading containers within a release
95124
-------------------------------------
96125

126+
Checkout the new kayobe-config branch (from the draft PR):
127+
128+
.. code-block:: console
129+
130+
cd $KAYOBE_CONFIG_ROOT
131+
git fetch
132+
git checkout <branch-name>
133+
97134
Deploy the services, once the new tags are set in the kayobe_config:
98135

99136
.. code-block:: console
@@ -103,7 +140,7 @@ Deploy the services, once the new tags are set in the kayobe_config:
103140
Upgrading OpenStack to the next release in a multinode environment
104141
------------------------------------------------------------------
105142

106-
As this is not a full production system, only a reduced number of steps need to be followed to upgrade to a new release. Below describes these steps, with Wallaby as the base branch:
143+
As this is not a full production system, only a reduced number of steps need to be followed to upgrade to a new release. Below describes these steps, with ``stackhpc/wallaby`` as the starting branch:
107144

108145
.. code-block:: console
109146
@@ -128,6 +165,7 @@ As this is not a full production system, only a reduced number of steps need to
128165
kayobe overcloud service configuration generate --node-config-dir /tmp/kolla-xena-config
129166
kayobe overcloud service configuration save --output-dir config/xena --node-config-dir /tmp/kolla-xena-config
130167
kayobe overcloud host command run --command 'rm -rf /tmp/kolla-xena-config' --become
168+
# Check the diff between the old and new configs
131169
---
132170
133171
kayobe overcloud service upgrade

0 commit comments

Comments
 (0)