Recently, LOCI changed its default so images are python3 if nothing is
specified at the *docker_image files. With the recent upversion of LOCI
in the build tools [1], we need to explictly set PYTHON3=no to images
that are still using python2. As such, we need to pass WHEELS when no
PYTHON3 is provided and when PYTHON3 == "yes" (or != "no").
TEST PLAN
PASS Build image with PYTHON3=no (stx-pci-irq-affinity-agent)
PASS Build image with PYTHON3=yes (stx-cinder, modified manually)
PASS Build image with no PYTHON3 (stx-nova)
Reviewed: https:/ /review. opendev. org/c/starlingx /root/+ /826155 /opendev. org/starlingx/ root/commit/ dba441d29df7ef8 2ac3dad47d49d2a f9096fec77
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit dba441d29df7ef8 2ac3dad47d49d2a f9096fec77
Author: Thiago Brito <email address hidden>
Date: Mon Jan 24 17:34:42 2022 -0300
Fixing default behavior of PYTHON3 for LOCI call
Recently, LOCI changed its default so images are python3 if nothing is
specified at the *docker_image files. With the recent upversion of LOCI
in the build tools [1], we need to explictly set PYTHON3=no to images
that are still using python2. As such, we need to pass WHEELS when no
PYTHON3 is provided and when PYTHON3 == "yes" (or != "no").
TEST PLAN irq-affinity- agent)
PASS Build image with PYTHON3=no (stx-pci-
PASS Build image with PYTHON3=yes (stx-cinder, modified manually)
PASS Build image with no PYTHON3 (stx-nova)
[1] https:/ /opendev. org/starlingx/ root/commit/ 00bd632a68b8172 f5d4baec2b1e4f8 a08b9d5be5
Closes-Bug: #1958696 8d6076361b1b434 234ef55d7e8
Signed-off-by: Thiago Brito <email address hidden>
Change-Id: Iec52b57e36da96