420 Commits

Author SHA1 Message Date
cid
2538e42348 More reliable TinyIPA builds with network retries
Wraps `wget` command with sleep and mutiple retry
support for resilient network downloads and replaces
git clone with direct tarball downloads where possible.

Closes-Bug: #2098417
Change-Id: I49435f5c1a7c0628e4eb7e824322d4e1f2938588
(cherry picked from commit 36b5e11de61928cc3218ba9c43224653778ab5e0)
2025-03-05 12:32:39 +00:00
LALLAU Bertrand
4c30a46a46 Fix vmedia network config drive handling
The publisher ID generated by Ironic (using oslo.util) is actualy in lowercase,
hence it will never match publisher ID generated by udevadm (uppercase).
In order to compare these strings without case conflict, we put both in lowercase.

Closes-Bug: #2085355
Change-Id: I501c8b46128de38c634b1c159a40ffb0d7a64f4c
(cherry picked from commit 8a27cf7167578eda62c923ac39f4e0085aab68e7)
2024-11-27 12:27:48 +00:00
2e71ef0f8e Update TOX_CONSTRAINTS_FILE for stable/2024.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/2024.2 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: Iafbda070cd07c28dcddf3090d76298ce5c784394
2024-09-20 13:51:44 +00:00
7ed5db40d5 Update .gitreview for stable/2024.2
Change-Id: I9e48f09e885512503f8418cb73a84c2e7f6bc1a4
2024-09-20 13:51:41 +00:00
Zuul
e29375da7e Merge "Block glean-early.sh from running" 5.4.0 2024-06-29 00:07:25 +00:00
Julia Kreger
a106110fcf Remove centos7 specific logic check
At this point, we are no longer supporting Centos7 ramdisks
and don't need to have extra logic to navigate the difference.

Change-Id: I9027b45f1f77f2cd188a8c5eed2ef082c3abdd09
2024-06-18 12:17:09 -07:00
Julia Kreger
6c3a8f174f Block glean-early.sh from running
Ironic has replaced the mount logic used by glean-early.sh with
it's own safer alternative.

Change-Id: If94901d1533ee6a51eaafe4ae114af901ab7e18d
2024-05-28 10:23:22 -07:00
Julia Kreger
76e2a71d58 Block cloud-init user-data loading
When cloud-init is present inside of an IPA ramdisk,
it can attempt to load user data it finds. This is not
needed in an IPA ramdisk.

https://docs.cloud-init.io/en/20.1/topics/format.html#disabling-user-data

Change-Id: Ic4fcbcc633833c062a35fc06b44843f4f6e5b1e9
2024-05-28 17:12:34 +00:00
Zuul
6a767738f4 Merge "Match publisher id" 2024-05-15 17:14:34 +00:00
Julia Kreger
f92befe127 Match publisher id
Take a publisher ID and match it for mounting configuration drives
to prevent the wrong device from being used.

Change-Id: Iafa77d9213eba864ca6dfa2d56d294e6ef4d2cd4
2024-05-07 14:27:37 +00:00
811c63b3b7 reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: I2aba74bd3975b15c90a39746a174d181f1bea817
2024-05-06 06:22:32 +00:00
6fdaa6fabc Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I844d71c552a6faf98f6ded9dd060161ecd79577b
2024-03-19 11:10:24 +00:00
Zuul
711899e575 Merge "reno: Update master for unmaintained/xena" 2024-03-14 11:57:56 +00:00
4b48bc311f reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I00a37dc792fcb7e5866c492a63145f86ec3ea252
2024-03-14 11:26:44 +00:00
53030729dd reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I6f011c9b9caecbd533a31850601e441c7c0363e5
2024-03-14 11:22:11 +00:00
Riccardo Pittau
1d2877e872 Update ipmitool version to 1.8.19
Change-Id: I75f6347a525bd30ad4d0cfe28c767620a9fb5aa5
5.3.0
2024-02-27 15:31:09 +01:00
Riccardo Pittau
dfd24a946e Update link to ipmitool repository
IPMITool is now hosted under https://codeberg.org/IPMITool/ipmitool.git

Change-Id: I64388569f09e95736376659e2921689b2a604814
2024-02-27 09:32:07 +00:00
Riccardo Pittau
99adeec0d7 Update tinyipa to tinycore 15.x
Tinycore 15.x is out!
https://forum.tinycorelinux.net/index.php/topic,26861.0.html

Change-Id: I0779c6ae783ddf2d0d102a85fdd2d4db474d8eaf
2024-02-26 14:45:20 +01:00
efe4b0d7f2 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I239c1b3936b88b1bc636d92ea7852ca0e8c835e1
2024-02-06 15:03:29 +00:00
Zuul
1e5a1166dc Merge "[codespell] Adding CI target for Tox Codespell" 2024-02-01 00:44:15 +00:00
Zuul
800c6040fb Merge "[codespell] Adding Tox Target for Codespell" 2024-02-01 00:44:14 +00:00
Zuul
a00debaadd Merge "[codespell] Fixing Spelling Mistakes" 2024-02-01 00:44:13 +00:00
Takashi Kajinami
beabe8591c Bump hacking to 6.1.0
... which is the latest version available now.

Change-Id: I0829b8aa90d66037c9fa7d803203b835f8735414
2024-01-29 18:28:06 +09:00
Sharpz7
1458cbabd4 [codespell] Adding CI target for Tox Codespell
Third in a series of commits to add Codespell to Ironic Repos. This commit adds the Tox Target to CI

A future commit could potentially add a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: Ica261e5e528bde8ec4f1627f3560e8c2022e3370
2024-01-26 04:11:47 +00:00
Sharpz7
da3fccba48 [codespell] Adding Tox Target for Codespell
Second in a series of commits to add Codespell to Ironic Repos. This one adds the command that was used to fix the spelling errors.

Future Commits will add CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: Ie6d9f79138c39a530daeb471b2cf4a9bf19b5a98
2024-01-26 04:11:43 +00:00
Sharpz7
a48825d260 [codespell] Fixing Spelling Mistakes
This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent.

Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: I6ce80cc993cdd4c8d38266f3ff3f8f134f0fc5a9
2024-01-26 04:11:31 +00:00
Zuul
bdbbc53885 Merge "Drop TripleO job" 2024-01-16 23:38:28 +00:00
Zuul
0b05bfc1bb Merge "Switch IPA building to Debian Bookworm" 2024-01-16 23:34:58 +00:00
Takashi Kajinami
e392a47c13 Drop TripleO job
The TripleO project has been deprecated and its master is no longer
maintained.

Change-Id: Ie7af68c26fcc345ca8f67ba437a0a9e83c12a6cf
2024-01-02 22:43:45 +09:00
Zuul
bf7fa6a615 Merge "Always generate checksum files on image builds" 2023-12-13 14:31:17 +00:00
Dmitry Tantsur
2a1c289cc5
Switch IPA building to Debian Bookworm
Bullseye has a broken lshw [1] so it will not work.
Fixes an issue with the firmware repo renaming in Bookworm.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002025

Closes-Bug: #2043112
Change-Id: Ib0cb156b72e6fa90e1530796e81a9a41ffa9e54f
2023-12-08 15:43:55 +01:00
Dmitry Tantsur
9da0cf41d4
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
2023-12-08 15:38:23 +01:00
Steve Baker
055c999af9 Always generate checksum files on image builds
Checksums are good, lets provide them.

Change-Id: I5d79f3800966dc8e49a892f1097dcbde619ef9a3
2023-11-23 09:03:57 +13:00
Zuul
123c430db2 Merge "Remove USE_PYTHON3 option" 2023-11-12 23:41:51 +00:00
Jay Faulkner
572b780345 Add link to LP bug tracker
IPA-B has an LP bug tracker now; point to it!

Change-Id: Id8ec4f6bc73326496c13258955554cfbef9c8047
2023-11-08 10:48:29 -08:00
Zuul
095707537e Merge "Use systemd-networkd for debian" 2023-11-03 09:28:15 +00:00
Julia Kreger
eeeaa42b79 Remove USE_PYTHON3 option
The USE_PYTHON3 option has been defaulted to true for
some time, and is no longer used. It was initially added
to enable adoption of python3, we have long moved past
needing to choose between python2 and python3, and
default on python3.

Also, since python2 is no longer supported, this makes
the code cleaner to read.

Change-Id: Ia9e62634c954446b0b47067fcdcd28cac49fbf4b
2023-11-02 14:43:00 -07:00
Damien Rannou
112157b1a9 Use systemd-networkd for debian
Moving from networking to systemd-networkd for debian
Original networking is not capable to natively manage down/up on
interfaces that is necessary for rescue

Change-Id: Ia6e2f217bd3222641cc1c97931e776e7fb717755
2023-10-19 09:11:32 +02:00
Zuul
32fe65295b Merge "'sudo' group different between RH and Debian" 2023-10-18 17:59:06 +00:00
Damien Rannou
9aaf0ded2f 'sudo' group different between RH and Debian
When creating the rescue user, check if we are on Debian or RH based
in order to use the right sudo group

Change-Id: I894f47a1eb0ecbccbecc0900980de7ad9da72425
2023-10-18 15:55:06 +02:00
Julia Kreger
732852f31f 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
2023-09-21 10:29:28 -07:00
3311c9b541 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I3f44e26bf28da82d88a03995856c0837ceae0052
2023-09-21 11:23:34 +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