Add kolla version to base container
We want to record kolla version of running containers to be able to detect whether or not we need to perform certain downtime-causing actions during upgrade. Change-Id: Ie113029da98303e6809d56edbf6d8de37be128d7 Implements: blueprint record-version
This commit is contained in:
parent
03fd08d867
commit
9cd603dfde
@ -1,6 +1,8 @@
|
|||||||
FROM {{ base_distro }}:{{ base_distro_tag }}
|
FROM {{ base_distro }}:{{ base_distro_tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
LABEL kolla_version="{{ kolla_version }}"
|
||||||
|
|
||||||
{# Early failure for bases and types #}
|
{# Early failure for bases and types #}
|
||||||
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
|
||||||
{% if install_type not in ['source', 'binary', 'rdo', 'rhel'] %}
|
{% if install_type not in ['source', 'binary', 'rdo', 'rhel'] %}
|
||||||
|
@ -434,7 +434,8 @@ class KollaWorker(object):
|
|||||||
'install_type': self.install_type,
|
'install_type': self.install_type,
|
||||||
'namespace': self.namespace,
|
'namespace': self.namespace,
|
||||||
'tag': self.tag,
|
'tag': self.tag,
|
||||||
'maintainer': self.maintainer}
|
'maintainer': self.maintainer,
|
||||||
|
'kolla_version': get_kolla_version()}
|
||||||
if self.include_header:
|
if self.include_header:
|
||||||
with open(self.include_header, 'r') as f:
|
with open(self.include_header, 'r') as f:
|
||||||
values['include_header'] = f.read()
|
values['include_header'] = f.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user