383 Commits

Author SHA1 Message Date
Takashi Kajinami
14978002cc Drop TripleO job
The TripleO project has been deprecated and its master is no longer
maintained.

Change-Id: Ie7af68c26fcc345ca8f67ba437a0a9e83c12a6cf
(cherry picked from commit e392a47c13e7280aa7d75a04884c5f8a348760b4)
5.2.1
2024-01-17 04:30:15 +00:00
Dmitry Tantsur
568409ce38 Fix building images for Bullseye and Bookworm
Bullseye requires installing lshw from backports because the default one
has broken JSON output:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002025

Bookworm requires installing firmware from a different repository.

Change-Id: I1bfecfcaff1547f99fcb48cc54b8f7ff77f0b0d9
(cherry picked from commit 9da0cf41d446e11651a5bd8b111cfd13a02d76b6)
2023-12-13 14:34:37 +00:00
Julia Kreger
3dd1341a2c CI: Change image-build to use Ubuntu Jammy
It appears openstack/project-config is still set to focal for image
artifact builds/uploads. After discussing with opendev infra team,
we think we might be crashing the host vm on the focal kernel
leaving us with minimal information to troubleshoot.

The cleanest path forward is to match what we run the check job on
which is Ubuntu Jammy, as a data point before we change the overall
project-config.

Change-Id: I9d6581132569b4a921e8cbc0a1b10c73a6aeba0d
(cherry picked from commit 732852f31fe595d54bb74b0b7f8cad4800b4352e)
2023-09-22 13:09:38 +00:00
042080fcae Update TOX_CONSTRAINTS_FILE for stable/2023.2
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/2023.2 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I704479528c21d54a95866e98e9cdaa6e92e94ef1
2023-09-21 11:23:32 +00:00
31bf1d4685 Update .gitreview for stable/2023.2
Change-Id: Iaf7f0846e364a5c4ab46a17afc0ed50318afe70f
2023-09-21 11:23:30 +00:00
Zuul
7c2e1b341d Merge "Exclude .pyc encoding files." 5.2.0 2023-08-28 14:24:47 +00:00
Illia Polliul
ab1992b528 Exclude .pyc encoding files.
We use IPA ramdisk image as a minimal operating system to execute firmware updates for disks/NICs, i.e. things that cannot be updated through BMC. This requires the ability to run Ansible.

Closes-Bug: rhbz#2234514
Closes-Bug: 2032981
Change-Id: Ic6fbc5f48ddd385a9bbbbabebe0a2c5980142c6f
2023-08-25 10:35:48 +00:00
Riccardo Pittau
b5974ad713 Build tinyipa with tinycore 14.x
- update kernel module versions
- mount efivar partition manually as it's not done automatically
anymore in recent kernels
- link /bin/sh to bash as it's not done automatically anymore

Change-Id: Ic17ffa07e8429a88326f70addda7eebd2a6dbef6
2023-08-01 17:15:53 +02:00
Zuul
d2b8115631 Merge "Extend the DIB_CHECKSUM variable usage" 2023-07-08 20:10:22 +00:00
Riccardo Pittau
241d14cd24 Remove outdated install pyyaml with pip2
We don't support python2 since a while

Change-Id: I430ba8f86883b233b975f615e0e50b01e22c66e6
2023-06-19 10:48:21 +02:00
Zuul
612ce753c5 Merge "Add libaio engine for fio on Centos/Rhel9" 2023-06-06 21:58:19 +00:00
Julia Kreger
1c1b8cf663 Add libaio engine for fio on Centos/Rhel9
fio packaging previously contained everything in one RPM,
but at some point for EL9 builds, this was split into multiple
RPMs where each engine used was put into it's own RPM.

In order for integrated disk benchmarking to work with
introspection, we use python-hardware. Python-hardware uses
fio, with libaio as a default option.

So now, we will attempt to install the other package which
should make users of the feature happier as their ramdisk
images will come with the contents required to do a benchmark
upfront.

Change-Id: I2028ac1cf350d86903a33e4bd91c209887de1e5c
2023-06-02 06:44:29 -07:00
Maksim Malchuk
e118104f98 Extend the DIB_CHECKSUM variable usage
Followup on I2dd1c60e3bfd9c823a7382b1390b1d40c52a5c97

Change-Id: I5e2d454fb84b76810f3c5ed26a0caeef8ea06675
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2023-05-24 23:43:53 +03:00
Zuul
4969f5a1f4 Merge "Add a non-voting ubuntu arm64 build check job" 2023-04-27 17:11:17 +00:00
Jay Faulkner
f99b3da74b Update pep8 deps - including hacking v6
Upgraded to latest hacking. Also had to bump the upper limit for
pycodestyle to be in line with other repos in order for pip to be happy
installing new hacking.

Change-Id: I4fd9e1e135b6759738f7faecfe8a8a046274d566
2023-04-21 12:36:13 -07:00
Riccardo Pittau
607ecace37 Add a non-voting ubuntu arm64 build check job
Adding it non-voting for the time being as the standard ubuntu
build check job is also non-voting

Change-Id: I3c166dca2db48546dd18f975ef761552f9d40cdc
2023-04-19 16:56:55 +02:00
Riccardo Pittau
8cad404502 Move ubuntu jobs to jammy
Remove focal support
This is long due

DO not use tmpfs to build the jammy image, use the disk space instead.
This is to avoid increasing the tmpfs mounted partition, we have 80gb
disk space available.

Change-Id: I6d6ebbb217886ed0e65137b8c8f0825d97abec81
2023-04-12 13:57:53 +02:00
Riccardo Pittau
5cb6910043 Add the option to not use tmpfs to build dib images
Currently the dib images are built on tmpfs mounted partition.
As the images become bigger and bigger we may want to use disk
space instead of increasing the tmpfs, considering that a
standard VM in CI has around 80gb disk space while only
8gb of RAM.

Change-Id: Ifbb1f38700e6b57e1da7be80c27c532aa9949493
2023-04-12 13:32:22 +02:00
Riccardo Pittau
f997078c99 Collect disk usage info post CI jobs run
Add extra-logs playbook to collect more logs in the post phase.

Change-Id: I4f9144f45a8c38b098ed67b2fdacffd3a596ae0d
2023-04-12 13:19:46 +02:00
Zuul
aa1757438d Merge "Remove ussuri CI jobs" 2023-04-05 19:12:04 +00:00
Riccardo Pittau
cee31aad80 Remove ussuri CI jobs
Also remove ussuri exception for tinyipa build

Change-Id: Ibec5c50472901e71b275288302d63fe8824df853
2023-04-03 17:17:32 +02:00
Steve Baker
59d79f6ccd Add checksum generation support
DIB_CHECKSUM is set by the disk-image-create --checksum flag, and for
other images results in checksum files being generated for the
image[1].

This change ensures checksum files are generated for built
ramdisk/kernel as well.

[1] https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/lib/common-functions#L68

Change-Id: I6128fbad5d9db2ea6469f196f3ee13b6fab76837
2023-03-23 13:36:45 +13:00
Zuul
1949d5c09b Merge "Add DIB_IPA_HARDWARE_RDO to define repo behaviour" 2023-03-21 12:41:48 +00:00
Steve Baker
cb216b6cd8 Add DIB_IPA_HARDWARE_RDO to define repo behaviour
Currently the latest RDO repo is installed on centos9
for the python-hardware package. This would not be appropriate in the
following cases:
* When repos are copied in from the host via DIB_YUM_REPO_CONF
* When another element is responsible for setting up repos

This change adds environment variable DIB_IPA_HARDWARE_RDO, which will
only be set to `1` on centos9, when DIB_YUM_REPO_CONF isn't set, and
when the user hasn't explicitly set DIB_IPA_HARDWARE_RDO.

This retains the current default behaviour of just working, while
giving flexibility for repos to be set up another way.

Change-Id: I1cc0b9833baf642866e9762c6bae44360bffe20d
2023-03-16 14:42:20 +13:00
fee1da74ee Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: Ib41330d3e654e71012e1e6a49ff34ab2984e3788
2023-03-08 11:18:37 +00:00
Julia Kreger
49367bc9d6 Remove /var/tmp/* from images
In some cases, things such as dracut regenerating the
initramfs file, may leave some artifacts in /var/tmp/ from
the ramdisk build. These are not needed and can be discarded.

Change-Id: Ibd2a61a7e42adfea868679c52c7a786d9aab1b36
5.1.0
2023-01-03 08:57:23 -08:00
Riccardo Pittau
9416e82903 Fix tox4 and setuptools errors
- Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.
- disable setuptools autodiscovery

Change-Id: I3dd1ab78de71a2a2feb9e7d59612b5c2a09e1f4a
2022-12-28 15:44:17 +01:00
943b80c1a3 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: Ie5d9ed7fdd15ed3d0e2ad0cb784af15e8f20169c
2022-09-09 10:27:37 +00:00
niuke
ddbd6594d5 remove unicode prefix from code
Change-Id: Ie5d6e0f2c5435dc66bd81e58e27a706e1e1c75ac
5.0.0
2022-08-27 16:14:06 +08:00
Zuul
a63bb7081c Merge "Document building an image with patches" 2022-07-18 17:26:01 +00:00
Zuul
9d5ce06ac0 Merge "Remove support for openSUSE since Python 3.6 is no longer supported" 2022-07-11 00:42:24 +00:00
Riccardo Pittau
020c4b3495 Remove CentOS Stream 8 leftovers
Change-Id: I74bf0eeaf5012728a5f738826b3adfb3ba24c9df
2022-07-06 11:29:15 +02:00
Zuul
f5ef66e413 Merge "Add smartmontools package to DIB image" 2022-07-04 13:29:44 +00:00
Mark Goddard
57f50f7e10 Add smartmontools package to DIB image
This package includes smartctl, which is necessary for ATA secure erase
disk cleaning.

Without this package, IPA will fall back to shredding ATA devices, and
you will lose hours of your life. Worse, until
https://review.opendev.org/c/openstack/ironic-python-agent/+/847591, the
lack of smartctl was silently ignored.

Change-Id: I6952b833e0be4a47e45e9c4d4459956093628b6a
2022-06-27 10:27:43 +01:00
Julia Kreger
43f2eae773 Remove some extra Centos Packages
Removes webkit and polkit from ramdisks which are not
operationally needed as we don't need to render web pages
in the ramdisk, and we don't need to do system wide policy
enforcement. This does chain them with || true, just to be
on the safe side as we're trying to opportunistically cut
excess cruft in order to save space overall.

Locally, these changes have taken the uncompressed ramdisk
footprint from 780MB to 730MB.

Change-Id: I402a60c61f1b88b98798d9fae52420b1ca256512
2022-06-23 16:07:51 -07:00
Dmitry Tantsur
3272b5478b Document building an image with patches
Change-Id: Ice5ffaa0b8eea9afacc58c64dcfdaa58d3147a26
2022-06-20 14:08:49 +02:00
Dmitry Tantsur
cd3408613a Remove support for openSUSE since Python 3.6 is no longer supported
The conditions are left in the code in case someone somehow make it
work. We can clean them up later.

Change-Id: I65f6da0e90560c00eb82e8e4366fdaf3bbde8da1
2022-05-18 09:48:49 +02:00
Dmitry Tantsur
d543aa8bf4 Remove support for distributions with Python 3.6
IPA can no longer be installed on them, other projects will follow.
Leave the jobs in place for projects that consume them.
Publish Stream 9 images (we'll need to clean up tarballs.o.o later).

Also force using Python 3.9 for tinyipa.

Change-Id: I350c563c1c4ab60ac10d7c9e4bb0715bfde1b1db
2022-05-13 12:25:25 +02:00
Iury Gregory Melo Ferreira
e5bf43c791 Add multipath-io element
This commits introduces a new element `multipath-io`
that should be used when the system contains multipath devices.

Change-Id: I52761aecf0e17ed7482897b50a9b64ee514edfbe
2022-04-04 21:10:10 -03:00
835f6483d2 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I34c29fb486962154532ca1c8751881533ff0fc67
2022-03-22 15:52:57 +00:00
Riccardo Pittau
ab25ed462d Update qemu version
Change-Id: I985064e7f5e3eae70b0bbccc022afba85416de3a
4.0.1
2022-03-14 22:30:19 +01:00
Zuul
46e396af7b Merge "Make centos9 jobs voting, add to gate" 2022-03-09 15:58:25 +00:00
Steve Baker
86649a0cba Make centos9 jobs voting, add to gate
Change-Id: I56d271a6a512cb1967ac518c3165ee96ea1c4a8a
2022-03-08 11:10:33 +13:00
Zuul
65fc08446f Merge "Added element to enable RDO deps repo to install sysbench" 2022-02-25 12:10:25 +00:00
Zuul
dbe9995015 Merge "dhcp-all-interfaces: let NetworkManager doit." 4.0.0 2022-02-23 12:49:25 +00:00
Julia Kreger
94171f104c Create random character devices so systemd does not crash
Systemd, depending on the version and the configuration,
can attempt to open urandom when a ramdisk boots, before
the udevd is launched to handle the devices. In particular
in FIPS mode, this can result in the ramdisk crashing.

In order to handle this, we pre-create the chracter device
files which can be statically used in the early start sequence
to allow the agent to boot and deploy.

Change-Id: I587e66a0d6b652c4aeca6fc211602d999d4641e8
2022-02-16 09:19:57 -08:00
Zuul
8fd98f24b6 Merge "Remove ussuri job" 2022-02-14 22:12:09 +00:00
Zuul
86c1757da5 Merge "Build tinyipa on tinycore 13.x" 2022-02-14 22:12:06 +00:00
Riccardo Pittau
578d27c142 Remove ussuri job
Ussuri is EM, reducing CI commitment

Change-Id: Iedbecb6d9e51d3a511846b4b16adcdf6508426de
2022-02-09 10:08:00 +01:00
Riccardo Pittau
30415b17a9 Build tinyipa on tinycore 13.x
Change-Id: Idd9f77c7002026cbd97c78c23bb575009503ecdb
2022-02-03 14:50:33 +01:00