From fe6fd8dc5d1809f8ce91f677f6affd4e21268551 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 30 Apr 2020 11:11:20 +0200 Subject: [PATCH] debian: binary target is x86 only Other architectures run will be aborted with proper message. Change-Id: Ic81fb425fa54953f1d6c12063049d60658deb4ed --- kolla/image/build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kolla/image/build.py b/kolla/image/build.py index 87e7388970..134df59646 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -778,6 +778,12 @@ class KollaWorker(object): 'Unknown install type' ) + if (self.install_type == 'binary' and self.base == 'debian' and + self.base_arch != 'x86_64'): + LOG.info("Debian/binary target is available only for x86-64 " + "due to lack of packages for other architectures.") + sys.exit(1) + self.image_prefix = self.base + '-' + self.install_type + '-' self.regex = conf.regex