In some cases (specially for test patches), we want to force the package
version to be increased, so introduce a new variable "stx_patch" in
"revision", like:
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true
stx_patch: 1
Test Plan:
Pass: revision is increased by adding "stx_patch: number" in
meta_data.yaml.
Story: 2008862
Task: 46766
Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com>
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I107d3bb5b88cc69c701fa08d22d774728dcf3d06
This commit updates the build-pkgs tool to
build all packages as default without need
of any args.
This commit also update the license year in
downloader tool.
Test Plan:
Pass: run build-pkgs without args
Pass: build-pkgs -a
Pass: build-pkgs -p -c logmgmt
Pass: build-pkgs -p logmgmt
Story: 2008846
Task: 46765
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
Change-Id: Ic270bbec2e7a8218daf0bb9d00101bbd1526344b
The interfaces of repo manager should be called in the block
of 'try...except' to catch some exceptions.
Test Plan:
Pass: downloader -b
Pass: downloader -s
Story: 2008846
Task: 46744
Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com>
Change-Id: Ia401b1663a16b374e3fa7e61d3add73e4e39c327
Fix the following warning output:
2022-11-08 02:44:21,722 - repo_manager - INFO: Aptly connected, version:
<bound method MiscAPISection.version of <aptly_api.parts.misc.
MiscAPISection object at 0x7f47d6aa9a00>>
After applying this commit, the output will be as follows:
2022-11-08 08:30:10,753 - repo_manager - INFO: Aptly connected, version:
unknown
Later I can send another commit to replace the repomgr version value.
TestPlan:
Pass: build-pkgs -p ${packagename}
Pass: Get the correct output
Story: 2008862
Task: 46758
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: I2d814924d7560ee49cb428af63769c05da149125
The images starlingx/stx-debian-dev and starlingx/stx-debian-tools-dev
are static-tagged as stx.8.0-v1.0.2 due to added support of the tools:
- Processor Counter Monitor (PCM) tools
- Open Programmable Acceleration Engine (OPAE) tools
Test Plan:
- Container image is built successfully on Debian (PASS)
- PCM and OPAE packages are successfully installed (PASS)
- Run time testing of the PCM and OPAE tools (WIP)
Story: 2010138
Task: 46732
Depends-On: https://review.opendev.org/c/starlingx/utilities/+/855431
PCM tools on container image stx-debian-tools-dev
Depends-On: https://review.opendev.org/c/starlingx/utilities/+/862742
OPAE tools in container image stx-debian-tools-dev
Note: This is fix of commit fbe521201a0c9d3ecb757e4dea25481c0d71ce15.
The images starlingx/stx-debian-dev and starlingx/stx-debian-tools-dev
static-tagged as stx.8.0-v1.0.1 were added support of PCM tools only.
Signed-off-by: Rogerio Ferraz <RogerioOliveira.Ferraz@windriver.com>
Change-Id: Ibdb8334d86621785e5265f04db8f30be155a4030
This commit updates the build-image tool to
clean image build directories as default and
add argument -k/--keep to keep it.
This commit also remove some white spaces
in downloader tool.
Test Plan:
Pass: run build-image without args
Pass: build-image -k
Pass: build-image -c
Story: 2008846
Task: 46727
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
Change-Id: I232045e8456c4dcfb44e80df2096746ffc349268
This commit updates the downloader tool to
download all binaries and sources as default.
Test Plan:
Pass: run downloader without args
Pass: downloader -s
Pass: downloader -b
Story: 2008846
Task: 46726
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
Change-Id: Ibdad5d106cbb81b732da4122e487db80ab0e8cd5
The images starlingx/stx-debian-dev and starlingx/stx-debian-tools-dev
are static-tagged as stx.8.0-v1.0.1 due to added support of the tools:
- Processor Counter Monitor (PCM) tools
- Open Programmable Acceleration Engine (OPAE) tools
Story: 2010138
Task: 46732
Signed-off-by: Rogerio Ferraz <RogerioOliveira.Ferraz@windriver.com>
Change-Id: I1003d4bbe2bf1769a5aa858a926f792a5bea6e95
Update yaml file with new tag for stx-fm-rest-api using the
master-debian-stable-20221102T060000Z.0 build.
Story: 2009831
Task: 46635
Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com>
Change-Id: Ie5511c33b8eb50005bc847c33dbebfcb87e42da6
This commit updates code to handle the below things:
a. For these reused packages, updates the local debsentry cache
after successfully copying the reused debs from the shared
repository, this fixed the issue that the second project can not
get the subpackages from the shared debsentry of the first reused
project.
b. If the subpackages can't be got or failed to copy reused debs from
the shared repository, the reused packages will be reclaimed and
switch to the local build.
c. Opiton '--dl_reused' is provided to download these reused debs to
the package's local build directory if this is really needed
Test Plan:
1. Creates project A with reuse disabled and shared the build output
Creates project B with reuse enabled, the shared project is A
Creates project C with reuse enabled, the shared project is B
Project C built successfully
2. Create project D with reuse enabled and '--dl_reused' option:
$build-pkgs -a --parallel 10 --reuse --dl_reused
All the resued .deb will be downloaded to the local directory:
${MY_WORKSPACE}/reused_debs/downloads/binary
Closes-Bug: 1993224
Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com>
Change-Id: I03267aab66f17afdb540f7d407bb4c9d97805886
This reverts commit 8fd070b3f2c58663b90360959eb4ff66a6b6b3e8.
As linux-perf-5.10 is built by the kernel it will be
placed on deb-local-build and not deb-local-binary,
the file that we need to add the package is under
tools repo: stx-std.lst
Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com>
Change-Id: Ic5b335c536ee40b60b2d2b4da12f31fc2da48e26
Add the linux-perf-5.10 to ISO can run the "perf" command.
Useful for debugging performance issues.
Test Plan
PASS Build ISO
PASS Login with sysadmin user
PASS Run the command "perf"
Story: 2009968
Task: 46573
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: If301b15030fff0be66f11cf8bd4c8af4e294e647
"apachectl status" requires www-browser provided
by w3m which depends on libgc1
TEST PLAN:
PASS: the command "apachectl status" returns no errors.
Closes-bug: 1993484
Depends-On:https://review.opendev.org/c/starlingx/tools/+/861336
Signed-off-by: Wentao Zhang<Wentao.Zhang@windriver.com>
Change-Id: I3be5e9643c2f03afa27ba3431a3a16a3a3200117
Add support for cloud-init to ISO image, this allows the
image to be used on AWS. However, the systemd units will
be disabled by default.
Test Plan
PASS Build ISO image
PASS Boot ISO
PASS Check the output of 'dpkg -l | grep cloud-init'
PASS Run the 'cloud-init --help'
Story: 2009965
Task: 46608
Depends-On: https://review.opendev.org/c/starlingx/tools/+/861887
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I356a85875d01fe23d228a4ded904963595612526
Include the sysstat package on Debian ISO, it includes
tools such as iostat, sar, etc. Useful for debugging
performance issues.
Test Plan
PASS Build ISO
PASS Login with sysadmin user
PASS Run the command "iosstat"
Depends-On: https://review.opendev.org/c/starlingx/tools/+/861380
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I777cfe4dd10f550b89a0a94fbb28e1553847f2ad
On CentOS we had 'screen' included in the iso.
Keep the same behavior on Debian.
Include screen and dependency in iso.
Tests on AIO-SX:
PASS: build-image
PASS: unlocked enabled available controller-0
PASS: screen works inside controller node
Depends-On: https://review.opendev.org/c/starlingx/tools/+/861954
Story: 2010211
Task: 46632
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I3675165dd7d61af33e4cc6d62a9f3b7715a59d58
The build_image_versions_to_fluxcd_manifests function is currently using
python2 interpreter and will throw an error on Debian build
environments:
build-helm-charts.sh: line 220: python2: command not found
Failed to update manifest file
This change just replicates what was done on this script for other
python calls that need to decide between python3 and python3.
TEST PLAN:
PASS - build-helm-charts.sh for stx-openstack-helm and
make sure "stx-openstack-helm" tarball is generated.
Story: 2010317
Task: 46610
Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
Change-Id: Iab330c574c34ba548e3652fb0975e3184c462752
"base-bullseye.lst" is both the download list and installing list. It
can't be implemented if someone wants to download a binary but not
install it to image. According to:
https://docs.starlingx.io/developer_resources/Layered_Build.html#controlling-the-package-content-of-the-iso
In CentOS version, we use the "image.inc" file as the installing list.
Other .lst files are the download lists. Also introducing such file
"debian-image.inc" in Debian.
The purpose of this commit is to separate the 2 lists ASAP, so that we
can add build dependencies into "base-bullseye.lst" right now, that is
requested to fix CVEs. So this commit just copies the
"base-bullseye.lst" to "debian-image.inc", and removes the versions.
A subsequence commit will remove the dependencies from
"debian-image.inc".
Test Plan:
Pass: build-image
Pass: comparing the installing packages after and before
(No difference of "dpkg-query -l")
Story: 2008846
Task: 46274
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: Ic7af95cbefc80dff65b255028c78dc0cd078ac08
If run 'build-pkgs -p <package>' after 'build-pkgs -p <package>
--reuse', the reused package will be copied from the shared
repository again. This commit prevents importing the package
again.
Test Plan:
Pass: export STX_SHARED_REPO="<url of remote shared repository>"
export STX_SHARED_SOURCE="<url of shared source repository>"
$build-pkgs -p <package> --reuse
$build-pkgs -p <package>
The second build should not trigger to copy the deb packages
from the shared repository
Story: 2008846
Task: 46481
Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com>
Change-Id: I4f0b9ab941c7f8433c2425ade9f93757620c16be
This commit updates the image tags for:
notificationservice-base
stx.8.0-v2.0.0
notificationclient-base
stx.8.0-v2.0.0
Performing a major version uprev due to significant API changes.
This also includes using a new src_build_tag for both images to capture
the correct src_ref.
Story: 2010056
Task: 46525
Signed-off-by: Cole Walker <cole.walker@windriver.com>
Change-Id: Ie87eb3dec6d8ae575dc17b33023f2a34fdbea499
Add a new image for KubeVirt. The image is an init container
responsible for installing the corresponding version of virtctl.
Test Plan: None
Story: 2010096
Task: 46472
Signed-off-by: Gleb Aronsky <gleb.aronsky@windriver.com>
Change-Id: I1d6fcfa2008b8c3f15bb69408b59236b91b94e8e
If reuse is enabled, it's wrong to search the complete
source package directory in remote dscs cache, this
commit changes to only search the source package's
relative path in STX repositor, e.g.
"/localdisk/designer/$USER/$PROJECT/cgcs-root/stx/config/tsconfig"
changes to:
"/stx/config/tsconfig"
Test Plan:
Pass: Create two projects: PROJECT='shared', PROJECT='reuse'
Project 'shared' has been built and shared to
project 'reuse'
In project 'reuse':
build-pkgs -p <package name> --reuse
Story: 2008846
Task: 46479
Signed-off-by: hbai <haiqing.bai@windriver.com>
Change-Id: Iab38b5a24dbc3517db89386ff3e07c1052e4b1bb