Skip to content

Commit 6c0b715

Browse files
committed
Update the'image-building.rst' document
The openstack Ussuri and Victoria versions no longer support python2 and python-pip packages by default, update the'image-building.rst' document Change-Id: I34a2880a06e80ec1b7737ec1ffbef5f6ba7bed47 (cherry picked from commit 0f2b0e047d6bdcdb37fc0a6a8dfa3470f31dcc66)
1 parent 31a9465 commit 6c0b715

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/source/admin/image-building.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ generate the ``kolla-build.conf`` file using the following steps.
2424

2525
If you don't, you can also run ``kolla-build`` without a
2626
``kolla-build.conf`` or with the file you find in the ``etc_examples``
27-
folder of the Kolla pip package. But you should only do that for
27+
folder of the Kolla Python package. But you should only do that for
2828
testing purposes, if at all.
2929

3030
.. code-block:: console
3131
32-
pip install tox
32+
python3 -m pip install tox
3333
cd kolla/
3434
tox -e genconfig
3535
@@ -51,7 +51,7 @@ In general, images are built like this:
5151

5252
.. code-block:: console
5353
54-
python tools/build.py
54+
python3 tools/build.py
5555
5656
By default, the above command would build all images based on CentOS image.
5757

@@ -65,7 +65,7 @@ The operator can change the base distro with the ``-b`` option:
6565

6666
.. code-block:: console
6767
68-
python tools/build.py -b ubuntu
68+
python3 tools/build.py -b ubuntu
6969
7070
There are following distros available for building images:
7171

@@ -94,7 +94,7 @@ command line:
9494

9595
.. code-block:: console
9696
97-
python tools/build.py keystone
97+
python3 tools/build.py keystone
9898
9999
In this case, the build script builds all images whose name contains the
100100
``keystone`` string along with their dependencies.
@@ -109,7 +109,7 @@ Multiple names may be specified on the command line:
109109

110110
.. code-block:: console
111111
112-
python tools/build.py keystone nova
112+
python3 tools/build.py keystone nova
113113
114114
The set of images built can be defined as a profile in the ``profiles`` section
115115
of ``kolla-build.conf``. Later, profile can be specified by ``--profile`` CLI
@@ -176,7 +176,7 @@ installed from source code. The default method of the OpenStack install is
176176

177177
.. code-block:: console
178178
179-
python tools/build.py -t source
179+
python3 tools/build.py -t source
180180
181181
The locations of OpenStack source code are written in
182182
``etc/kolla/kolla-build.conf``.
@@ -268,7 +268,7 @@ Then rebuild the horizon image, passing the ``--template-override`` argument:
268268

269269
.. code-block:: console
270270
271-
python tools/build.py --template-override template-overrides.j2 horizon
271+
python3 tools/build.py --template-override template-overrides.j2 horizon
272272
273273
.. note::
274274

@@ -312,7 +312,7 @@ Then rebuild the horizon image, passing the ``--template-override`` argument:
312312

313313
.. code-block:: console
314314
315-
python tools/build.py --template-override template-overrides.j2 horizon
315+
python3 tools/build.py --template-override template-overrides.j2 horizon
316316
317317
Alternatively ``template_override`` can be set in ``kolla-build.conf``.
318318

@@ -359,7 +359,7 @@ image, one may want to add the following to the ``template-override`` file:
359359
360360
{% block neutron_server_footer %}
361361
RUN git clone https://opendev.org/x/networking-cisco \
362-
&& pip --no-cache-dir install networking-cisco
362+
&& pip3 --no-cache-dir install networking-cisco
363363
{% endblock %}
364364
365365
Astute readers may notice there is one problem with this however. Assuming
@@ -411,7 +411,7 @@ The template now becomes:
411411
412412
{% block neutron_server_footer %}
413413
ADD plugins-archive /
414-
pip --no-cache-dir install /plugins/*
414+
pip3 --no-cache-dir install /plugins/*
415415
{% endblock %}
416416
417417
Many of the Dockerfiles already copy the ``plugins-archive`` to the image and

0 commit comments

Comments
 (0)