aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2026-05-27 21:07:58 +0000
committerGerrit Code Review <review@openstack.org>2026-05-27 21:07:58 +0000
commit5b643d55c3eba44a9b82ed792bfd9d1c593bbf67 (patch)
tree50548874dacd591622e7a8b85e3c9eea9693472e
parent43f890c3fed0ba1aa3a80fe8d79a8bc525e3fd81 (diff)
parent7daa532c1a97a25834baf0ce91620489f0d882fa (diff)
downloadkolla-5b643d55c3eba44a9b82ed792bfd9d1c593bbf67.tar.gz
kolla-5b643d55c3eba44a9b82ed792bfd9d1c593bbf67.zip
Merge "Align default tag with Kolla-Ansible"
-rw-r--r--kolla/common/config.py4
-rw-r--r--releasenotes/notes/align-default-tag-with-kolla-ansible-7b2224d881848864.yaml9
2 files changed, 12 insertions, 1 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 7657ed485..8a80e1f88 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -211,7 +211,7 @@ _CLI_OPTS = [
help=('The number of threads to use while building.'
' (Note: setting to one will allow real time'
' logging)')),
- cfg.StrOpt('tag', default=version.cached_version_string(),
+ cfg.StrOpt('tag',
help='The container image tag'),
cfg.BoolOpt('template-only', default=False,
help="Don't build images. Generate Dockerfile only"),
@@ -378,6 +378,8 @@ def parse(conf, args, usage=None, prog=None,
# NOTE(jeffrey4l): set the default base tag based on the
# base option
conf.set_default('base_tag', DEFAULT_BASE_TAGS[conf.base]['tag'])
+ conf.set_default('tag',
+ f"{conf.openstack_release}-{conf.base}-{conf.base_tag}")
prefix = '' if conf.openstack_release == 'master' else 'stable-'
openstack_branch = '{}{}'.format(prefix, conf.openstack_release)
openstack_branch_slashed = openstack_branch.replace('-', '/')
diff --git a/releasenotes/notes/align-default-tag-with-kolla-ansible-7b2224d881848864.yaml b/releasenotes/notes/align-default-tag-with-kolla-ansible-7b2224d881848864.yaml
new file mode 100644
index 000000000..3d0339b36
--- /dev/null
+++ b/releasenotes/notes/align-default-tag-with-kolla-ansible-7b2224d881848864.yaml
@@ -0,0 +1,9 @@
+---
+upgrade:
+ - |
+ The default value of the ``tag`` option has changed. Previously it
+ defaulted to the Kolla version string. It now defaults to a composite
+ value of ``<openstack_release>-<base>-<base_tag>``, aligning with the
+ convention used by Kolla-Ansible. Users who relied on the implicit
+ version-based tag should set ``--tag`` explicitly to preserve the old
+ behaviour.