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
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>
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>
In these cases two backticks must be used instead of one.
Change-Id: I4b09f296c5fa1cd2740f34efa9561522eec2d4e9
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
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>
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>
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
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
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
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
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
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
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
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
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
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
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
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
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
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