diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2024-02-22 18:30:02 +0100 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2024-03-11 09:34:14 +0000 |
| commit | 3795887e5f3dc1a7d3532dca274b8db64cf47d2d (patch) | |
| tree | d8c9e68f5bab0a0241b6c1897160e5db9a0f237c /kolla | |
| parent | 0246b32d70da39f6e837974f339e845f0c8b9e8f (diff) | |
| download | kolla-3795887e5f3dc1a7d3532dca274b8db64cf47d2d.tar.gz kolla-3795887e5f3dc1a7d3532dca274b8db64cf47d2d.zip | |
Fix aarch64 builds
Those are failing now due to fixed setting of debian_arch variable
that was omitted in the general patch.
This patch also adds a validation on debian_arch cfg option
Change-Id: I372fe0bce4fc502eacce214d24c5bddd198bc33f
Diffstat (limited to 'kolla')
| -rw-r--r-- | kolla/common/config.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py index b1a2e396b..47ea1aa40 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -23,6 +23,7 @@ from kolla.version import version_info as version BASE_OS_DISTRO = ['centos', 'debian', 'rocky', 'ubuntu'] BASE_ARCH = ['x86_64', 'aarch64'] +DEBIAN_ARCH = ['amd64', 'arm64'] DEFAULT_BASE_TAGS = { 'centos': {'name': 'quay.io/centos/centos', 'tag': 'stream9'}, 'debian': {'name': 'debian', 'tag': 'bookworm'}, @@ -153,7 +154,10 @@ _CLI_OPTS = [ cfg.StrOpt('base-arch', default=hostarch, choices=BASE_ARCH, help='The base architecture. Default is same as host.'), - cfg.StrOpt('debian-arch', default=debianarch), + cfg.StrOpt('debian-arch', default=debianarch, + choices=DEBIAN_ARCH, + help='The base architecture used for downloading external ' + 'packages. Default is derived from base-arch.'), cfg.BoolOpt('use-dumb-init', default=True, help='Use dumb-init as init system in containers'), cfg.BoolOpt('debug', short='d', default=False, @@ -377,5 +381,3 @@ def parse(conf, args, usage=None, prog=None, if not conf.base_image: conf.base_image = DEFAULT_BASE_TAGS[conf.base]['name'] - - conf.debian_arch = 'amd64' |
