diff options
| author | Zuul <zuul@review.opendev.org> | 2024-03-11 13:22:17 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2024-03-11 13:22:17 +0000 |
| commit | 2023ad941347d7e2f5869544173a533386d21ebc (patch) | |
| tree | a3731338c3f3dac92898ecbba307327177d7f85f /kolla | |
| parent | 4b32dd50ab027e2b19c7c69f7fc5019ec3d1add7 (diff) | |
| parent | 3795887e5f3dc1a7d3532dca274b8db64cf47d2d (diff) | |
| download | kolla-2023ad941347d7e2f5869544173a533386d21ebc.tar.gz kolla-2023ad941347d7e2f5869544173a533386d21ebc.zip | |
Merge "Fix aarch64 builds"
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' |
