upstream/openstack/python-nova/debian/stx-nova.stable_docker_image
Luan Nunes Utimura 1526d5838c Port stx-nova and stx-ceilometer to stx-debian
This change enables building the stx-nova and stx-ceilometer images
within the Debian build framework. It is now based on stx-debian and
following the new convention for StarlingX images.

Test Plan:
PASS: Build both images
PASS: Manually upload the built images to a system, use helm-override to
      change their respective containers images and reapply
      stx-openstack
PASS: Ensure affected pods successfully start and are running
PASS: Ensure affected pods liveness and readiness probes are healthy

Story: 2010072
Task: 47090

Depends-On: https://review.opendev.org/c/starlingx/root/+/871314

Signed-off-by: Luan Nunes Utimura <LuanNunes.Utimura@windriver.com>
Change-Id: Ibe92ad8eb003df225dd77be60bd9c5387f1109a3
2023-01-26 13:51:40 -03:00

32 lines
918 B
Plaintext

BUILDER=loci
LABEL=stx-nova
PROJECT=nova
PROJECT_REPO=https://opendev.org/openstack/nova.git
PROJECT_REF=stable/ussuri
PIP_PACKAGES="\
httplib2 \
pycryptodomex \
python-ironicclient
"
DIST_REPOS="OS"
DIST_PACKAGES="\
e2fsprogs \
libvirt0 \
libvirt-clients \
libvirt-daemon \
libvirt-daemon-driver-lxc \
libvirt-daemon-driver-qemu \
libvirt-daemon-driver-storage-gluster \
libvirt-login-shell \
openssh-client \
openssh-server
"
PROFILES="fluent nova ceph linuxbridge openvswitch configdrive qemu apache"
CUSTOMIZATION="\
sed -i 's/\(^\s*\)\(import oslo_service\)/\1# \2/' /var/lib/openstack/lib/python3*/site-packages/nova/monkey_patch.py && \
sed -i 's/\(^\s*\)\(eventlet.hubs.use_hub(\"oslo_service:service_hub\")\)/\1# \2/' /var/lib/openstack/lib/python3*/site-packages/nova/monkey_patch.py && \
mkdir -p /run/sshd
"
UPDATE_SYSTEM_ACCOUNT="yes"
NON_UNIQUE_SYSTEM_ACCOUNT="yes"