Skip to content

Commit e4f019a

Browse files
committed
Build source type images by default
Source images get the most test coverage, so it makes sense to build these by default. Change-Id: Ie10a41a94af95075a1b91feb2b74ade02b17117e
1 parent e6c124f commit e4f019a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

doc/source/admin/image-building.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ When building images, there are two methods of the OpenStack install. One is
118118
``binary``. Another is ``source``. The ``binary`` means that OpenStack will be
119119
installed from apt/dnf. And the ``source`` means that OpenStack will be
120120
installed from upstream sources. The default method of the OpenStack install is
121-
``binary``. It can be changed to ``source`` using the ``-t`` option:
121+
``source``. It can be changed to ``binary`` using the ``-t`` option:
122122

123123
.. code-block:: console
124124
125-
kolla-build -t source
125+
kolla-build -t binary
126126
127127
The locations of OpenStack source code are written in ``kolla-build.conf``.
128128
The source type supports ``url``, ``git``, and ``local``. The location of

kolla/common/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
help='Format to write the final results in'),
204204
cfg.StrOpt('tarballs-base', default=TARBALLS_BASE,
205205
help='Base url to OpenStack tarballs'),
206-
cfg.StrOpt('type', short='t', default='binary',
206+
cfg.StrOpt('type', short='t', default='source',
207207
choices=INSTALL_TYPE_CHOICES,
208208
dest='install_type',
209209
help=('The method of the OpenStack install.')),
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
upgrade:
3+
- |
4+
Updates the default image type to ``source``. Users wishing to build
5+
``binary`` type images should either specify the ``--type binary`` CLI
6+
argument or set ``[DEFAULT] type=binary`` in ``kolla-build.conf``.
7+
This change is to reflect the reality that source images are tested more
8+
thoroughly and we (as OpenStack community) have better control over them.

0 commit comments

Comments
 (0)