b612bde7fa81214b5f52bf7fafa2515357844dc8
Commit Graph

2618 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Doug Goldstein
b612bde7fa migrate lints to pre-commit
Migrated the existing lints to pre-commit and switched some over to ruff
to follow the changes that have landed in the ironic repo.
Change-Id: I361ca1b8d4ac9738f9c45ba6a87c377f5aca22a8
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025年01月29日 17:30:18 -05:00
Zuul
0c35e7e2da Merge "Add support for burnin-gpu" 2025年01月29日 19:20:10 +00:00
Zuul
234bc70f12 Merge "fix sphinx errors with incorrect backticks" 2025年01月29日 17:15:59 +00:00
Zuul
fdb15d448b Merge "avoid f-strings in logging per flake8" 2025年01月29日 17:15:58 +00:00
Zuul
b0623f0ac9 Merge "switch from 'not is' to 'is not' for pep8" 2025年01月29日 17:15:56 +00:00
Zuul
5333525411 Merge "Trivial: fix reference of unusable i18n prefix" 2025年01月29日 04:45:38 +00:00
Zuul
3ed0126a8f Merge "Replace crypt module" 2025年01月29日 03:00:25 +00:00
Doug Goldstein
fbb12a2f22 fix sphinx errors with incorrect backticks
In these cases two backticks must be used instead of one.
Change-Id: I85b00742a06ad1137a2d8f761432af97338995bb
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025年01月24日 23:07:51 -05:00
Doug Goldstein
dfdaf09508 avoid f-strings in logging per flake8
flake8 checks recommend avoiding f-strings.
Change-Id: I1636cb45c73463b9b1d70ad784582beca277af4a
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025年01月24日 21:57:23 -06:00
Doug Goldstein
c289ac0f18 switch from 'not is' to 'is not' for pep8
Fix this pep8 violation.
Change-Id: Ia69382a501791e3d11c045278c72073849cee20c
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025年01月24日 21:57:21 -06:00
Kaifeng Wang
f568ba1505 Trivial: fix reference of unusable i18n prefix
Change-Id: If3c8ed77587e4f36e6e9912c66eb9cd66700d515
2025年01月24日 11:42:41 +08:00
kubajj
018a5f6253 Fix errors in the function erase_devices_express
Prevents the UnboundLocalError in erase_devices_express clean step.
Closes-Bug: #2095499
Change-Id: I01ce5005a62638ff960d2a75f225f882b2d56973
2025年01月22日 14:17:30 +00:00
Zuul
535735b746 Merge "Silence modprobe loading errors for IPMI drivers" 2025年01月21日 01:48:46 +00:00
Zuul
a491947c1e Merge "Trivial - Follow Up: No Retry on Disk Space Error" 2025年01月20日 23:48:49 +00:00
Riccardo Pittau
51c73d22fa Silence modprobe loading errors for IPMI drivers
Debug messages from modprobe failing to load ipmi drivers can
be confusing and they do not add anything since they're
not really errors.
This patch silence the message in the logs.
Change-Id: I7452bc9e56148e3d423be92f384ff9aeffbe88d7
2025年01月20日 22:09:15 +00:00
Zuul
56037e78cc Merge "Remove dependency on ironic-lib" 2025年01月20日 11:37:18 +00:00
cid
bd07283085 Trivial - Follow Up: No Retry on Disk Space Error
Related-Change: #939500
Change-Id: Id54f5bedd5c79c587bc4484914a8eb492e018010
2025年01月19日 18:44:58 +01:00
Zuul
ca07e941cf Merge "Add a release note for 939340" 2025年01月17日 19:40:39 +00:00
cid
c222626b01 Treat 'No space left on device' error as fatal
Fail without retries when Errno 28 - "No space left
on device" error is encountered.
Closes-Bug: #2094854
Change-Id: Ie84b422916ddc02f2474164fe3da083324ef4824
2025年01月17日 11:13:01 +01:00
kubajj
2ece938671 Add a release note for 939340
Follow-up to 939340 to add a release note about the bug-fix.
Change-Id: I202f22d40776ab5d3245b8e14021d1404a9f478d
2025年01月16日 09:34:08 +00:00
kubajj
6dceb33209 Fix RAID volume name
Use just md<index> as the default volume name if a volume name is not defined.
The original change (https://review.opendev.org/c/openstack/ironic-python-agent/+/853182)
introduced an error:
mdadm: Value "/dev/md0" cannot be set as name. Reason: Not POSIX compatible.\n
This change fixes it.
Closes-Bug: #2073406
Change-Id: Ic8bd473801fcb92fc814f6ad4e1d6dc316783bf3
2025年01月15日 12:34:36 +00:00
Jay Faulkner
8b18184e2d Remove dependency on ironic-lib
ironic-lib is being retired; this change imports any used code from
ironic-lib and updates references.
This contains some changes to how we throw exceptions; aligning
ironic-lib code with IPA practice to have all exceptions be a RESTError.
This also allows us to remove code around serializing ironic-lib
exceptions.
Change-Id: I137340ce6820c68d8e0f1a32668151bba7b1ddd7
2025年01月14日 11:59:06 -08:00
cid
dfcb86d738 Add support for burnin-gpu
Adds support for running burnin tests on GPUs
using gpu-burn[1]. Also refactors stress-ng code
to be a bit cleaner.
Requires gpu-burn to be pre-installed within the IPA.
* https://github.com/wilicc/gpu-burn
Co-Authored-By: Scott Solkhon <scottsolkhon@gmail.com>
Closes-Bug: #2069085
Change-Id: I8f8cace6ebc2b7f1c245c82a64609cdfc1c492f9
2025年01月03日 17:59:31 +00:00
Takashi Kajinami
eda6c81cbf Replace crypt module
The crypt module was removed in Python 3.13 . Replace the module by
new methods from oslo_utils.secretutils .
Closes-Bug: #2083955
Change-Id: I61060fc13aabc8116c3d0f8ad50ee8c415675f31
2025年01月02日 13:07:13 +00:00
Zuul
06077cb88e Merge "Inventoried MAC address for only ipv6 addresses" 2024年12月04日 19:09:09 +00:00
b010580caf reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.
Change-Id: I0d8b1773367a61b326b5a6ff86ac1f126b15099b
2024年11月29日 07:54:13 +00:00
Maximilian Brandt
6ccd3965ff Inventoried MAC address for only ipv6 addresses
Extended the function that expose BMC MAC address in inventory data
for an IPv6 only interface.
Previously, if no IPv4 address was configured, no mac address was exposed.
Change-Id: I93e49d308cfd63be1c09749ced4428a87a3daff9
2024年11月21日 17:51:15 +01:00
Zuul
01639aab20 Merge "Add a command to lock down the agent" 10.0.0 2024年11月21日 16:20:33 +00:00
Zuul
d6187b53c8 Merge "Correct invalid docstrings; s/Found/Error/" 2024年11月08日 02:56:17 +00:00
Zuul
4f9f461ce9 Merge "A hardware manager call for a full sync before shutdown" 2024年11月07日 15:07:12 +00:00
Zuul
884bec021e Merge "Migrate more trivial code from ironic-lib" 2024年11月07日 15:07:11 +00:00
Dmitry Tantsur
aa98250066 Add a command to lock down the agent
To support a safer take-over from the provisioning to the tenant network
for hardware that cannot be powered off, this change introduces a new
command system.lockdown. When invoked, it stops the API, the heartbeater
and disables all network interfaces (if possible).
Partial-Bug: #2077432
Change-Id: I211fc64a46226127b0d82ab458029b3c702b3f74
2024年11月07日 15:50:06 +01:00
Zuul
5746ac1222 Merge "Vendor metrics library from Ironic-Lib & deprecate" 2024年11月05日 16:11:20 +00:00
Dmitry Tantsur
5aa0c1a2bb A hardware manager call for a full sync before shutdown
This is largely required for the future lockdown command but can also be
used before the normal shutdown, especially in the sync command which is
currently used before an out-of-band shutdown command is issued.
In addition to a plain sync, the new command also tells the kernel to
drop its cached and issues a low-level sync command to each block
device.
Partial-Bug: #2077432
Change-Id: I3fc87b20bc5387a466b24ebc19b9982e4e368d20
2024年11月05日 15:27:10 +01:00
Jay Faulkner
75abdb4148 Vendor metrics library from Ironic-Lib & deprecate
We are phasing out use of ironic-lib, and as such are removing the
metrics module from it. However, due to it's requirement of having
a statsd instance on the same subnet as the agent and there being no
support for prometheus exporting of metrics from IPA, these metrics are
no longer valuable (in the agent).
We are vendoring the module for the deprecation in order to facilitate
its removal from ironic-lib.
Change-Id: Ie50e078bc3f78d65cfa53680dc4116d1119ce155
2024年11月04日 20:02:11 +00:00
Zuul
f5adf261fe Merge "Remove use of ironic_lib i18n module" 2024年11月04日 19:22:05 +00:00
Zuul
b46e89ed02 Merge "Cleanup usage of imported-from-ironic-lib disk_utils" 2024年11月04日 18:57:16 +00:00
Zuul
b851ae1bc8 Merge "Remove Python 3.8 support" 2024年10月31日 17:44:24 +00:00
Jay Faulkner
9de74b630b Correct invalid docstrings; s/Found/Error/
It's clear the docstrings intended to indicate ProtectedDeviceError, but
instead indicate ProtectedDeviceFound.
This clears up the documentation to assist deployers trying to implement
hardware managers.
Change-Id: Iea534f58aeec60b3862099c1d89be829654a54c1
2024年10月30日 20:46:13 +00:00
Dmitry Tantsur
8e0fa1be20 Migrate more trivial code from ironic-lib
* The dd and is_http_url code is trivial, inline it.
* Migrate mounted (cannot be used in Ironic since it requires root).
* Remove the leftovers of run_as_root.
Change-Id: Ic6b117e34ccc7f55ebac5f808d2765305c4b317f
2024年10月30日 12:55:02 -07:00
Jay Faulkner
70aa08dad8 Remove use of ironic_lib i18n module
We traditionally have not done any translations for IPA, but some of the
code carried over from ironic_lib -- as well as a single hardware
manager -- were using the i18n wrappers. This removes them from
everywhere for consistency.
Change-Id: I85a607d7cfb50d605cc62ac8c5e3937802b4d2af
2024年10月30日 12:55:02 -07:00
Jay Faulkner
c3e7f3bece Cleanup usage of imported-from-ironic-lib disk_utils
- Removes unused methods from disk_utils
- Unifies all image writing via populate_image
Change-Id: I860744458e52a45a4cb2882e4a59e0db9fbcb93d
2024年10月30日 12:54:57 -07:00
Zuul
959e8250ce Merge "Capture and log sector sizes" 2024年10月29日 21:29:04 +00:00
Takashi Kajinami
b0ef2c0483 Remove Python 3.8 support
Python 3.8 was removed from the tested runtimes for 2024.2[1] and has
not been tested since then.
Also add Python 3.12 which is part of the tested runtimes for 2025.1.
Now unit tests job with Python 3.12 is voting.
[1] https://governance.openstack.org/tc/reference/runtimes/2024.2.html
Change-Id: Id314b4453d81dcab806768e3c7ab5dc050a35136
2024年10月24日 18:15:08 +09:00
Steve Baker
1a939105ba Capture and log sector sizes
``logical_sectors`` and ``physical_sectors`` sizes are now captured for
each hardware info ``disks`` entry, and also logged for ``lsblk`` calls.
This will be increasingly useful as storage devices with 4096 byte
sector sizes become more common.
Change-Id: I80b6b137f6e3071d9b8a4c1abe14416249aed9ac
2024年10月24日 15:07:56 +13:00
Julia Kreger
a81fd068a8 CI: Remove metalsmith legacy jobs
Change-Id: Ia299f19f6348c35f6052efc78c7cb6b3093703ba
2024年10月23日 13:51:42 -07:00
Zuul
6a51399ba3 Merge "Migrate to oslo.utils-based format_inspector" 2024年10月23日 10:43:56 +00:00
Dmitry Tantsur
d8d32d93bd Warn when the provided checksum algorithm does not match the detected
I have a case where a user provided the checksum URL with SHA256
checksums, while Metal3 defaulted os_hash_algo to "md5". We're going
to change the Metal3 defaults in the next API version, but for now let
us issue a clear warning in such case.
Closes-Bug: #2085331
Change-Id: Ie4e62a378dc4a2089944f4302df3a8671b7c960f
2024年10月22日 11:37:30 +02:00
Jay Faulkner
4553b5c025 Migrate to oslo.utils-based format_inspector
This replaces the copied-in version of format_inspector with the shared
version located in oslo.utils.
Change-Id: I62b3876f4507f28c8582cd4ba80e9f7c4e0b71ef
2024年10月18日 12:33:16 -07:00
Doug Goldstein
57476cdf29 add pyproject.toml to support pip 23.1
pip 23.1 removed the "setup.py install" for projects that do not have
their own pyproject.toml by having a hardcoded one within pip.
To address that, this change adds the minimal pyproject.toml
to enable pbr to be properly used to build editable wheels.
See https://pip.pypa.io/en/stable/news/#v23-1
and https://github.com/pypa/pip/issues/8368 for more info.
Change-Id: I76c5a8269628c4f081c4627f222c2d535534e832
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2024年10月18日 12:14:45 -05:00