Record version on container build
This changes default behaviour of build.py to instad of putting latest tag on it, it puts current kolla version as found in setup.cfg Change-Id: I4d6e9a0159c6a5598abd58072594df4204427308 Partially-Implements: blueprint upgrade-nova Partially-Implements: blueprint record-version
This commit is contained in:
parent
a02bcdcacc
commit
3f2a4f2c06
@ -114,7 +114,7 @@ magnum_api_port: "9511"
|
|||||||
####################
|
####################
|
||||||
# Openstack options
|
# Openstack options
|
||||||
####################
|
####################
|
||||||
openstack_release: "latest"
|
openstack_release: "1.0.0"
|
||||||
openstack_logging_verbose: "True"
|
openstack_logging_verbose: "True"
|
||||||
openstack_logging_debug: "False"
|
openstack_logging_debug: "False"
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ neutron_external_interface: "eth1"
|
|||||||
# OpenStack options
|
# OpenStack options
|
||||||
####################
|
####################
|
||||||
# This option is used to specify the tag to use when pulling the Docker images
|
# This option is used to specify the tag to use when pulling the Docker images
|
||||||
#openstack_release: "latest"
|
#openstack_release: "1.0.0"
|
||||||
|
|
||||||
# Use these options to set the various log levels across all OpenStack projects
|
# Use these options to set the various log levels across all OpenStack projects
|
||||||
#openstack_logging_verbose: "True"
|
#openstack_logging_verbose: "True"
|
||||||
|
@ -227,6 +227,14 @@ class WorkerThread(Thread):
|
|||||||
LOG.info('{}:Built'.format(image['name']))
|
LOG.info('{}:Built'.format(image['name']))
|
||||||
|
|
||||||
|
|
||||||
|
def get_kolla_version():
|
||||||
|
local_conf_path = os.path.join(find_base_dir(), "setup.cfg")
|
||||||
|
config = six.moves.configparser.RawConfigParser()
|
||||||
|
config.read(local_conf_path)
|
||||||
|
version = config.get("metadata", "version")
|
||||||
|
return version
|
||||||
|
|
||||||
|
|
||||||
def find_os_type():
|
def find_os_type():
|
||||||
return platform.linux_distribution()
|
return platform.linux_distribution()
|
||||||
|
|
||||||
@ -267,7 +275,7 @@ def merge_args_and_config(settings_from_config_file):
|
|||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
"namespace": "kollaglue",
|
"namespace": "kollaglue",
|
||||||
"tag": "latest",
|
"tag": get_kolla_version(),
|
||||||
"base": "centos",
|
"base": "centos",
|
||||||
"base_tag": "latest",
|
"base_tag": "latest",
|
||||||
"install_type": "binary",
|
"install_type": "binary",
|
||||||
|
Loading…
Reference in New Issue
Block a user