Platformdirs was upgraded to 2.4.1 from 2.4.0 over the holidays,
and this breaks our build that requires python 2.7 compatibility.
We'll stay with 2.4.0 which has worked for StarlingX for some time,
rather than reverting to 2.0.2 which was the last with official
python 2.7 support.
Closes-Bug: 1956054
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I303429a744f4addf639f1ab88f03a06b52bc7144
Filelock was upgraded to 3.4.2 from 3.4.0 over the holidays,
and this breaks our build that requires python 2.7 compatibility.
We'll stay with 3.4.0 which has worked for StarlingX for some time,
rather than reverting to 3.2.1 which was the last with official
python 2.7 support.
Closes-Bug: 1956054
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I77e595f7fcf081707da78f2fba8df70bf19033de
Integrate 2 important fixes:
a) genimage: process SIGTERM signal gracefully (f215b627e3a5)
It introduces a new variable "debootstrap-mirror" to set the source of
debootstrap instead of picking a source from package_feeds randomly.
b) genimage: add yaml params debootstrap-mirror for external debian
(ec3758936b3f)
It fixes a bug of build-image after terminating previous build-image,
and change to handle the signal.SIGTERM.
The error message is:
====================
build-image - DEBUG: Update /localdisk/deploy/lat.yaml to add packages
latc - INFO: build request handled by server
rm: cannot remove './rootfs/proc/523189/gid_map': Operation not permitted
rm: cannot remove './rootfs/proc/523189/projid_map': Operation not permitted
rm: cannot remove './rootfs/proc/523189/setgroups': Operation not permitted
rm: cannot remove './rootfs/proc/523189/timers': Operation not permitted
rm: cannot remove './rootfs/proc/523189/timerslack_ns': Operation not permitted
rm: cannot remove './rootfs/proc/523189/patch_state': Operation not permitted
rm: cannot remove './rootfs/proc/523189/arch_status': Operation not permitted
appsdk - ERROR: Generate sub initramfs failed
====================
Test Plan:
a) Testcase 1
Pass: successfully build-image, and the debootstrap is fed by the "debootstrap-mirror".
Pass: successfully install test
Pass: successfully boot test
b) Testcase 2
Pass: sucessfully build-image after terminating previous build-image.
$build-image
$ctrl+c
$latc stop
$build-image
Story: 2008846
Task: 44194
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I7f1b9a743d6fc0018d2e7347fbd38eddc5913b12
This reverts commit 45bdf502e0.
Reason for revert: This package version is not available in bullseye. This needs to be handled in a different manner.
Change-Id: Ia2956c8c55bbb9c6517f9baa79eeae3611a1688e
This work is part of Debian integration effort.
Add pciutils and python3-coverage which are needed for sysinv-agent
to properly start.
PASS: Built packages
PASS: Built iso
PASS: Installed iso
Story: 2009101
Task: 43732
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I96bd3d64ac2f676e3f240841191826cc2c9eea66
This work is part of Debian integration effort.
Add strace and man and dependencies for the 2.
PASS: Built packages
PASS: Built iso
PASS: Installed iso
Story: 2009101
Task: 43732
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I39a88350bd9e4273e766513328cb3914816e9b72
Debootstrap 1.0.126 has been removed from from debian/unstable.
Replace with 1.0.126+nmu1 .
Upstream bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998867
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: Ie3154c76619f0ad9efb0fcbd2af8c6b854d89135
It was discovered that missing input sanitising in Babel, a set of tools
for internationalising Python applications, could result in the
execution of arbitrary code.
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ida4807a446ed67b65fa203b1c01a626125f26ce1
Staring with Debian bullseye release, all python packages
use explicit python3 or python2 interperter and do not use
the unversioned /usr/bin/python at all. This causes some
issues with StarlingX scripts that uses the unversioned
python.
Python-is-python3 is a convience wrapper which ships a symlink
to point the /usr/bin/python intereperter at the current default
python3. This will improved the compatibility with older python2
scripts.
Story: 2009101
Task: 44173
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I62cebf5b81a3eb5ab0f5dc06a9ad94920422b437
Now we update the default value for CENGNURL variable to support
mirror functions.
Story: 2008862
Task: 44172
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: Ibe2fbae6c636ca608ee77edc887b258c1c25adfb
Added the following packages for ntp support on
the ISO:
- ntp
- libopts25
- ntpdate
- libnet-ntp-perl
PASS: Build iso
PASS: Install iso
PASS: ran ntpq
Story: 2009101
Task: 43732
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I168c4813199c4a31d333879b95ea5253c7d0d246
Set up the sysadmin user to change the default password when they
first login. This is done to keep parity with the Centos install.
Also lock the root user as well.
Tested by building image and checking that user is prompted
to change the password when they first login.
Story: 2009101
Task: 44147
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I4ef5222a7dbd6bb61fcd9b599d1bb89cb1f734ea
This work is part of Debian integration effort.
Add merged packages that are built.
PASS: Build packages
PASS: Build iso
PASS: Install iso
Story: 2009101
Task: 43848
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I6a890a591a798815cce459679f8b28bf16df41ab
This work is part of Debian integration effort.
Puppet will try to configure nslcd and nscd services for ldap.
The software components for the 2 services are missing.
Add nscd and nslcd and their dependencies.
PASS: Build iso
PASS: Install iso
PASS: nscd and nslcd services exist and are configured by puppet
Story: 2009101
Task: 43732
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Ib4523c2fbbef3948252abf0efe51f9516c70d531
This work is part of Debian integration effort.
mkfs.xfs is needed for docker logical volume. The utility is missing
from the iso.
Add xfsprogs and its dependencies.
PASS: Build iso
PASS: Install iso
PASS: mkfs.xfs present
Story: 2009101
Task: 43732
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I07982ab3994e353990528f090394732d54ca7608
pam-config requires libpam-pwquality and libpam-ldap
to be installed in order for it to work properly. It
is not included by default on the image so install it.
This is a debian only change that will not affect
Centos build. Tested by building image and trying
to change password.
Story: 2009101
Task: 44006
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I0665a7137128c217be7f8544d7020fb7c7e5d110
This work is part of Debian integration effort.
Add postgresql and its dependencies.
PASS: Build iso
PASS: Install iso
Story: 2009101
Task: 43732
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I977860869f365721f2c929485820539213101f66
Add the following dependencies for lvm2:
- lvm2 2.03.11-2.1
- libaio1 0.3.112-9
- libdevmapper-event1.02.1 2:1.02.175-2.1
- dmeventd 2:1.02.175-2.1
- liblvm2cmd2.03 2.03.11-2.1
Otherwise ansible-playbook and sysinv-agent will not work
properly.
Tested by building and running an image.
Story: 2009101
Task: 43848
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I4ba7f6707ca54159bf5a842d53d9054f8b357a28
The root partition is set to 4GB which will fill
up pretty quickly. Make it 20GB to align with CentOS
implementation.
Tested by creating an image using build-image and checked
the output of "df".
Story: 2009101
Task: 44093
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ied7967a8f7ae487eb536479663fa8436a6083d61
Remove the ostree repo since it has become
out of date, which prevents the ISO from booting correctly.
Story: 2009101
Task: 44111
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I6bb82047009e71476bcd2d322ae2d283ce9b80cf
This work is part of Debian integration effort.
Iso installation hits an issue:
'''
/sbin/grub-install: warning: cannot open directory
`/usr/share/locale': No such file or directory.
'''
After rootfs is generated a directory is removed. Keep the directory.
PASS: Build iso
PASS: Iso install goes past the point of failure
Story: 2009101
Task: 43994
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I27b63182bf93cdb526426ecf09d554e8b10134a0
This work is part of Debian integration effort.
Add merged packages that are built.
Add ostree related packages, but comment them since they are only used
for build.
PASS: Build packages
PASS: Build iso
PASS: Install iso
Story: 2009101
Task: 43848
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I5531554b1f75643fdf94677c2cff6b212f555e4b
base-passwd is already in stx-std.lst
Story: 2009101
Task: 43848
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: Ib910bf6e489346db9b1ba43d46dc2d7a01a4cf16
To add the jobs during the package building, we export the env variable
MAX_CPUS to the builder container.
Story: 2008862
Task: 44081
Depends-On: https://review.opendev.org/c/starlingx/tools/+/819596
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: I5bd15232209e69d4836bb5ae134ad5bd2912aab6
Add the support to allow to define the cpu and memory resources
when we start the minikube.
Story: 2008862
Task: 44079
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: I4ca4f7b5bb6d6eb59ceafbb8114b2fd4a856cb0d
Upstream hasn't created any repodata for these two repos yet.
StarlingX-C8.5.2111-centosplus-Source
StarlingX-C8.5.2111-extras-Source
The mirroring job fails if there is a reference to invalid upstream repos.
Closes-bug: 1952478
Change-Id: I039a3577e1e8dab1b828fb0c114d226d9fbf4d3c
Signed-off-by: Scott Little <scott.little@windriver.com>
This work is part of Debian integration effort.
PASS: manually added barbican into iso
PASS: built iso & installed
Depends-On: https://review.opendev.org/c/starlingx/upstream/+/818785
Story: 2009101
Task: 43732
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Iae3f1d48175255cc7d5bae3275336c2f26a80ddb