161 Commits

Author SHA1 Message Date
Zuul
9d071d13f7 Merge "Trivial: Fix TypeError from None value being returned in sensor data" 2025-02-11 11:10:30 +00:00
Zuul
a98390786a Merge "Revert "temp hack for failing flake8 check"" 2025-02-10 17:39:27 +00:00
Zuul
9499823474 Merge "enable pre-commit lints from main ironic repo" 2025-02-10 17:39:26 +00:00
Zuul
86f6037d59 Merge "fix bashate error in script" 2025-02-10 17:39:25 +00:00
Zuul
b5886aecbf Merge "Trivial: Fix 'node_uuid' KeyError" 2025-02-07 20:59:58 +00:00
Julia Kreger
fd83d5948d Trivial: Fix TypeError from None value being returned in sensor data
When prometheus data is being transformed, there is a risk that a
None could be introduced into the data stream whcih then creates an
exception because you cannot float(None). None is also invalid data
in that we shouldn't even try to record anything.

So, this change just adds a check to exclude from trying to record
a None value. This will result in missing data if a sensor
turned from 0 to None somehow, but realistically the sensor endpoint
is yielding None to begin with in that case through a missing value
anyhow.

Change-Id: I7a7197228e5102c68e580e87fa8f0485ff2eb074
2025-02-06 06:09:52 -08:00
cid
e7c2a36507 Trivial: Fix 'node_uuid' KeyError
Closes-Bug: #2097134
Change-Id: Iad577c039490859f73b48af61d694ef677e5748f
2025-02-06 14:07:41 +01:00
Doug Goldstein
9d094ee9f8
Revert "temp hack for failing flake8 check"
This reverts commit 9abf26ba6883bf94e5cf25cd9e041e8990edbf35. Now that
we've switched to ruff and pre-commit we do not need this.

Change-Id: I6a9e3b07551a253f34819a086d6ab871bb5377fb
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-02-05 22:57:30 -06:00
Doug Goldstein
733d94088c
enable pre-commit lints from main ironic repo
Brought over the same lints as used in the main ironic repo via
pre-commit and ruff. Updated tox.ini to use pre-commit the same way.
Needed to use newer codespell due to issue with Pres vs Press.

Change-Id: I559ecb5bedae0aa79bac5aff24d621db0819ce4f
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-02-05 22:56:48 -06:00
Doug Goldstein
a394e757b6
fix bashate error in script
Change-Id: I6f97057218daad3139e21674ae405c403000f055
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-02-05 22:56:18 -06:00
Doug Goldstein
e40ca04567
fix sphinx errors with incorrect backticks
In these cases two backticks must be used instead of one.

Change-Id: I4b09f296c5fa1cd2740f34efa9561522eec2d4e9
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-02-05 22:56:14 -06:00
Doug Goldstein
7acd028945
add pyproject.toml to support pip 23.1
pip 23.1 removed the "setup.py install" fallback for projects
that do not have pyproject.toml and now uses a pyproject.toml
which is vendored in 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
details on the removal of the fallback support.

setuptools v64.0.0 is used to support editable installs
via its PEP-660 implmentation
https://github.com/pypa/setuptools/pull/3488

This patch was taken nearly verbatim from the equivalent nova change.

Change-Id: I0f1f5af46ac6914bfddc847988d815825492949f
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-02-02 18:21:35 -05:00
Doug Goldstein
9abf26ba68
temp hack for failing flake8 check
This is temporary to get us moved over to ruff and pre-commit but it is
currently failing on the master branch.

Change-Id: Ie806224013b4342007d0aab3ba83720501be0ee7
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-02-02 18:21:16 -05:00
50d9101499 reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: If4a3c74b9bf9ee64d7611fca2c15c9f5660a78ae
2024-11-29 07:53:45 +00:00
Nicholas Kuechler
1a1c37b08e docs: Updates configuration documentation
Change-Id: Ib46521c4a6fb2eed314ab07a44d8cffc6d65a898
2024-10-16 15:31:43 -05:00
73308c8b88 Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: If2321e3d6bae7aaa687282b2473cedc3afca6597
2024-09-20 13:51:23 +00:00
Zuul
ff726aca1a Merge "Update python classifier in setup.cfg" 4.4.0 2024-08-26 07:44:20 +00:00
Dmitry Tantsur
4f92263791
Trivial: log traceback on an unexpected error
Otherwise, it's way too hard to guess what went wrong.

Change-Id: I15ea8182c7699294c654dd3d61c5b7d0b4f4f8e5
2024-06-06 18:52:34 +02:00
cid
b01bbdf42a Fix codespell reported errors
Fix and ignore spelling errors raised by codespell

Change-Id: I3866472adfcdc89a5b0a826df5640eb4ecb1c362
2024-05-25 06:20:36 +01:00
c27e65c190 reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: I3b3f312e9605135cad40d375ef1fa6dc902acf19
2024-05-06 06:22:16 +00:00
Zuul
7e4e9af09e Merge "[codespell] Adding CI target for Tox Codespell" 2024-04-18 07:44:02 +00:00
6cbc49947a 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: Ie44ec5f4448de0199051c89044c9a9345f3bbb2d
2024-03-19 11:10:14 +00:00
Zuul
ea903da75e Merge "reno: Update master for unmaintained/wallaby" 2024-03-14 11:56:07 +00:00
Zuul
01935d49d8 Merge "reno: Update master for unmaintained/xena" 2024-03-14 11:56:06 +00:00
9cbc36c7e1 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Ia98a8ff864c9723e6a223d7eb777f9d7acff0b48
2024-03-14 11:26:25 +00:00
ae84e1d089 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I2285d1448c4ae01510dabe12c0815326b3705fc1
2024-03-14 11:21:55 +00:00
94765fc5ba reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I0325119f18c0ffed1798b034de15cb4bc6bd6f88
2024-03-14 11:17:39 +00:00
4cb6f5da49 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I826e70350f15d0f8dc23ab37d48f296839e87d8b
4.3.0
2024-02-06 15:03:16 +00:00
Sharpz7
23ad235ff4 [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: Icd1bcdea0a129f963510d2ca540e5be2890b88b2
2024-02-05 04:44:09 +00:00
Sharpz7
509d12e60a [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: I659e85270fa0024f69f57ffd6002c2eb20c3b1f4
2024-02-05 04:43:55 +00:00
Sharpz7
70cb6fd86e [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: I37fd53dfd4be6d4204d90fd1c6c508b20d46f617
2024-01-29 21:19:48 +00:00
likui
f2e22fe7f4 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: If6a14ea205991e268138dfd41115fffb8073859e
2024-01-17 10:37:43 +08:00
Jay Faulkner
5211827f2d Document new LP bug tracker
Ironic projects use launchpad-based bug trackers

Change-Id: I7e687cc895827f95055067bd1c6d56fc509bb92b
2023-11-08 13:38:45 -08:00
b3e0de8fef 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: I01f11e217e7e2766170837b024c75abe49c7d86f
2023-09-21 11:21:04 +00:00
Zuul
160f08d50d Merge "tox: Remove basepython" 4.2.1 2023-09-18 18:55:24 +00:00
likui
62098d7667 CI: Remove ubuntu focal job
Ubuntu focal was in testing runtime as best effort
testing in 2023.1 cycle. In 2023.2, we do not need to
test the focal as such. Removing its testing to more
focus on making Jammy testing more stable.

[0] https://review.opendev.org/c/openstack/tempest/+/884952

Change-Id: I131256047e9b9090f23f0cd06b5b493809b6b11d
2023-09-07 16:09:34 +08:00
likui
bcc3b8c26a tox: Remove basepython
Python 2 is EOL. No environment should be defaulting to it. Our CI
environments certainly aren't.

Change-Id: Ice90dfc0b3320d4e72f2cb4f3955dba670bfefd7
2023-08-02 16:59:26 +08:00
likui
9a29488f19 Add python3.10 support in testing runtime
In 2023.2 cycle testing runtime, project started adding python 3.10

[1] https://governance.openstack.org/tc/reference/runtimes/2023.2.html

Change-Id: I16965272ce8f3fbffa90f7e2f95146cfae69138c
4.2.0
2023-07-31 15:28:00 +08:00
Jay Faulkner
c52f0a7e99 Upgrade pep8 deps - including hacking v6
Upgraded pep8 deps:
- hacking is now ~=6.0.0
- Updated pycodestyle to anything less than 3.0.0, to bring in line with
  other repos and correct pip errors.

Change-Id: I9500ad85a222724f5059f17a0a4a2bbf319dc7b3
2023-04-21 12:32:58 -07:00
e63fb2ee6a 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: Ic51392300b8feddbc72604f5260f9005ef796e82
2023-03-01 13:15:18 +00:00
Julia Kreger
55cd446b3c Support extraction of ironic internal metrics
Adds support for parsing messages from the ironic code base which
include metrics related to method call counts/timers, and ultimately
items like "how many nodes were in this state".

This is in order to provide operators with greater insight into

Depends-On: https://review.opendev.org/c/openstack/ironic/+/865447
Change-Id: Ie4f3b2d3c7c7cbab1a0e03d8c7f0961d38a7d2c0
4.1.0
2023-02-27 12:53:51 -08:00
Zuul
563c0f1d39 Merge "devstack: fix plugin for local usage" 2023-01-24 14:16:30 +00:00
Julia Kreger
6a7bb474b0 devstack: fix plugin for local usage
The wsgi webserver used by the test, which is *not* a hard
requirement for the software's usage, is gunicorn, which is
not present by default unless something has already
installed it. It is in OpenStack's requirements, so it is
not impossible.

Regardless, install so the devstack plugin "just works"
when run locally on a clean/new VM.

Change-Id: I8a379aa7ca94c27211aebee77dfefc742c3f1223
2023-01-05 08:13:05 -08:00
Riccardo Pittau
15668dbea4 Fix tox4 error
Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.

Change-Id: I9885539a99918b024618cd63242b2c1b0bf9cd4c
2022-12-28 15:00:39 +01:00
22db040986 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I3421b0eac56433edad6fe3efebcbde372402ab8d
2022-09-13 09:09:52 +00:00
87ec40f7ca 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: I153dd0e8edc43f023b23f5c33f48d323a606ab9a
2022-09-13 09:09:51 +00:00
Zuul
9eaf49b58c Merge "CI: Removing ironic job queue" 4.0.0 2022-06-17 09:55:03 +00:00
Dmitry Tantsur
18ceb1e2bc Replace the centos8 job with a centos9 one
CentOS 8 uses Python 3.6, which is not supported for Zed.

Change-Id: Id15af67e436740537f1007f38df13f7ae383b5b7
2022-06-10 12:06:07 +02:00
Julia Kreger
5a5f5ef747 CI: Removing ironic job queue
Please see:
https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes

Change-Id: Id376a1ded688c52a588a96896fc70f94e803ba7e
2022-05-19 11:18:16 -07:00
likui
cf63c1bf89 The Python 3.6 and Python 3.7 Support has been dropped since zed
[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I677bd9f3e6aa34bddf059c1bc9473c0db3c247a4
2022-05-12 09:16:14 +08:00