Skip to content

Commit feca579

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "docs: Get release name dynamically" into stable/victoria
2 parents 7e1aa5e + 36fdd6c commit feca579

File tree

3 files changed

+29
-28
lines changed

3 files changed

+29
-28
lines changed

doc/source/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import os
1616
import sys
1717

18+
import openstackdocstheme
19+
20+
1821
sys.path.insert(0, os.path.abspath('../..'))
1922
# -- General configuration ----------------------------------------------------
2023

@@ -109,18 +112,15 @@
109112
# For replacement, use in docs as |VAR_NAME| (note there's no space around variable name)
110113
# When adding new variables, make sure you add them to GLOBAL_VARIABLE_MAP dictionary as well
111114

112-
KOLLA_ANSIBLE_MAJOR_VERSION = '9'
113-
114-
# use 'master' or release name, e.g. 'victoria', 'xena' etc.
115-
KOLLA_OPENSTACK_RELEASE = 'master'
115+
KOLLA_OPENSTACK_RELEASE = openstackdocstheme.ext._get_series_name()
116116

117-
if KOLLA_OPENSTACK_RELEASE == 'master':
118-
KOLLA_BRANCH_NAME = KOLLA_OPENSTACK_RELEASE
117+
if KOLLA_OPENSTACK_RELEASE == 'latest':
118+
KOLLA_OPENSTACK_RELEASE = 'master'
119+
KOLLA_BRANCH_NAME = 'master'
119120
else:
120121
KOLLA_BRANCH_NAME = 'stable/{}'.format(KOLLA_OPENSTACK_RELEASE)
121122

122123
GLOBAL_VARIABLE_MAP = {
123-
"|KOLLA_ANSIBLE_MAJOR_VERSION|": KOLLA_ANSIBLE_MAJOR_VERSION,
124124
"|KOLLA_OPENSTACK_RELEASE|": KOLLA_OPENSTACK_RELEASE,
125125
"|KOLLA_BRANCH_NAME|": KOLLA_BRANCH_NAME,
126126
}

doc/source/user/operating-kolla.rst

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ release. Alpha tag usage is at discretion of the operator. The alpha identifier
2222
could be a number as recommended or a string of the operator's choosing.
2323

2424
To customize the version number uncomment ``openstack_release`` in globals.yml
25-
and specify the version number desired. If ``openstack_release`` is not
26-
specified, Kolla will deploy or upgrade using the version number information
27-
contained in the kolla-ansible package.
25+
and specify the desired version number or name (e.g. ``victoria``,
26+
``wallaby``). If ``openstack_release`` is not specified, Kolla will deploy or
27+
upgrade using the version number information contained in the kolla-ansible
28+
package.
2829

2930
Upgrade procedure
3031
~~~~~~~~~~~~~~~~~
@@ -82,32 +83,34 @@ should be upgraded first. This will include reviewing some of the configuration
8283
and inventory files. On the operator/master node, a backup of the
8384
``/etc/kolla`` directory may be desirable.
8485

85-
If upgrading from ``5.0.0`` to ``6.0.0``, upgrade the kolla-ansible package:
86+
If upgrading to ``|KOLLA_OPENSTACK_RELEASE|``, upgrade the kolla-ansible
87+
package:
8688

8789
.. code-block:: console
8890
89-
pip install --upgrade kolla-ansible==6.0.0
91+
pip install --upgrade git+https://opendev.org/openstack/kolla-ansible@|KOLLA_BRANCH_NAME|
9092
9193
If this is a minor upgrade, and you do not wish to upgrade kolla-ansible
9294
itself, you may skip this step.
9395

9496
The inventory file for the deployment should be updated, as the newer sample
9597
inventory files may have updated layout or other relevant changes.
96-
Use the newer ``6.0.0`` one as a starting template, and merge your existing
97-
inventory layout into a copy of the one from here::
98+
Use the newer ``|KOLLA_OPENSTACK_RELEASE|`` one as a starting template, and
99+
merge your existing inventory layout into a copy of the one from here::
98100

99101
/usr/share/kolla-ansible/ansible/inventory/
100102

101-
In addition the ``6.0.0`` sample configuration files should be taken from::
103+
In addition the ``|KOLLA_OPENSTACK_RELEASE|`` sample configuration files should
104+
be taken from::
102105

103106
# CentOS
104107
/usr/share/kolla-ansible/etc_examples/kolla
105108

106109
# Ubuntu
107110
/usr/local/share/kolla-ansible/etc_examples/kolla
108111

109-
At this stage, files that are still at the ``5.0.0`` version - which need
110-
manual updating are:
112+
At this stage, files that are still at the previous version and need manual
113+
updating are:
111114

112115
- ``/etc/kolla/globals.yml``
113116
- ``/etc/kolla/passwords.yml``
@@ -117,18 +120,20 @@ template, and then replace the file in ``/etc/kolla`` with the updated version.
117120
For ``passwords.yml``, see the ``kolla-mergepwd`` instructions in
118121
`Tips and Tricks`.
119122

120-
For the kolla docker images, the ``openstack_release`` is updated to ``6.0.0``:
123+
For the kolla docker images, the ``openstack_release`` is updated to
124+
``|KOLLA_OPENSTACK_RELEASE|``:
121125

122126
.. code-block:: yaml
123127
124-
openstack_release: 6.0.0
128+
openstack_release: |KOLLA_OPENSTACK_RELEASE|
125129
126130
Once the kolla release, the inventory file, and the relevant configuration
127131
files have been updated in this way, the operator may first want to 'pull'
128-
down the images to stage the ``6.0.0`` versions. This can be done safely
129-
ahead of time, and does not impact the existing services. (optional)
132+
down the images to stage the ``|KOLLA_OPENSTACK_RELEASE|`` versions. This can
133+
be done safely ahead of time, and does not impact the existing services.
134+
(optional)
130135

131-
Run the command to pull the ``6.0.0`` images for staging:
136+
Run the command to pull the ``|KOLLA_OPENSTACK_RELEASE|`` images for staging:
132137

133138
.. code-block:: console
134139

doc/source/user/quickstart.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,19 @@ Install Kolla-ansible
149149
Install Kolla-ansible for deployment or evaluation
150150
--------------------------------------------------
151151

152-
For a list of ``kolla-ansible`` versions compatible with each OpenStack release
153-
see `Kolla Ansible release notes
154-
<https://docs.openstack.org/releasenotes/kolla-ansible/>`__.
155-
156152
#. Install kolla-ansible and its dependencies using ``pip``.
157153

158154
If using a virtual environment:
159155

160156
.. code-block:: console
161157
162-
pip install 'kolla-ansible == |KOLLA_ANSIBLE_MAJOR_VERSION|.*'
158+
pip install git+https://opendev.org/openstack/kolla-ansible@|KOLLA_BRANCH_NAME|
163159
164160
If not using a virtual environment:
165161

166162
.. code-block:: console
167163
168-
sudo pip3 install 'kolla-ansible == |KOLLA_ANSIBLE_MAJOR_VERSION|.*'
164+
sudo pip3 install git+https://opendev.org/openstack/kolla-ansible@|KOLLA_BRANCH_NAME|
169165
170166
#. Create the ``/etc/kolla`` directory.
171167

0 commit comments

Comments
 (0)