2010 Commits

Author SHA1 Message Date
Takashi Kajinami
93352b6994 Update regex to detect closed branch
... based on the change made in reno recently[1].

Also the overall regex is updated to be more consistent with the regex
used in ironic.

[1] https://review.opendev.org/c/openstack/reno/+/910547

Change-Id: Ibd1db024b9d7ab03aec083675465c6c24229a805
2024-03-13 19:39:10 +09:00
Zuul
945c76de1d Merge "[codespell] Adding Tox Target for Codespell" 2024-01-29 13:24:11 +00:00
Zuul
93bef2405a Merge "[codespell] Fixing Spelling Mistakes" 2024-01-27 00:00:48 +00:00
Zuul
212d0b2a9a Merge "Change policy to enforce only new policy" 2024-01-26 04:03:33 +00:00
Julia Kreger
fff80086d6 Change policy to enforce only new policy
Change's inspector's default policy to align with the 2023.2
release goal.

Depends-On: https://review.opendev.org/c/openstack/ironic/+/902009
Change-Id: Iaa271bd13e3a62c4a3b35b6e6b556984f7b1d09c
2024-01-26 01:01:11 +00:00
Sharpz7
fd0d8171b7 [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: I2e356fb4dea543d6e57614394d439a6767498f8d
2024-01-25 21:22:18 +00:00
Sharpz7
98a226b9c6 [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: Icb4e66359c3e79618c916b35793ea7b5f79b030d
2024-01-25 21:22:07 +00:00
Zuul
bebf29d4f8 Merge "Fix RBAC access for service/admin user access" 2024-01-18 21:09:24 +00:00
likui
0fb55899f0 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: I6cfc38e2d7b1d272acbe6b6d904e09c172bce78c
2024-01-15 14:14:41 +08:00
Zuul
c4a177c8eb Merge "Handle LLDP parse Unicode error" 2024-01-12 00:10:37 +00:00
Zuul
e1bbae3f31 Merge "Fix versions in release notes" 2024-01-11 23:42:51 +00:00
Julia Kreger
5523b11cba Fix RBAC access for service/admin user access
This change fixes inspector so a project scoped service role user
can connect to inspector, and a project scoped admin user can also
access inspector as the OpenStack community pivoted it's RBAC
direction after the original RBAC work was done, and inspector
was sort of forgotten about.

Closes-Bug: #2049098
Change-Id: Ide9420843a680b09d682062a99b2c88c0fcf5228
2024-01-11 11:55:11 -08:00
Riccardo Pittau
db76af9c86 Handle LLDP parse Unicode error
Closes-Bug: #2044793
Change-Id: I939c80bb309b22e05ba7cc93686f12bbe0d71624
2024-01-03 14:37:41 +01:00
Riccardo Pittau
bf59b80e93 Fix versions in release notes
Change-Id: I6a3db14cd24ac50c02801fa7b156749c109bb17d
2023-12-20 10:27:04 +01:00
Takashi Kajinami
dc5da6722e Suppress logs from stevedore
The stevedore library tends to put large number of logs especially when
debug is enabled.

This suppresses from this library, as is done in oslo.log by default.

Change-Id: I8989bdf132e8498093cbe05a7858a9315e858994
2023-12-18 12:27:22 +09:00
Takashi Kajinami
969cccb0c5 [coordination] backend_url should be secret
The backend_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[coordination]
backend_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: If0f142a742d407e5e91e422ef3109002b37c475d
2023-12-14 15:41:54 +09:00
Zuul
8cf0b3a9f8 Merge "[CI] Add sqlalchemy 2.0 unit testing" 11.8.0 2023-11-22 21:19:28 +00:00
Zuul
85aadd6338 Merge "Drop before_first_request usage of Flask app" 2023-11-22 09:59:16 +00:00
Pavlo Shchelokovskyy
ad4664b9ac Drop before_first_request usage of Flask app
Flask 2.3 removed this method, with recommended way of running
startup actions explicitly as part of app initialization.

Change-Id: I5dea1320c9aa63c1ef1742382cb46ea7cc56b10b
2023-11-21 17:58:06 +00:00
Julia Kreger
da6a4460a6 [CI] Add sqlalchemy 2.0 unit testing
Change-Id: I9a6ea8e18152ab9e2c26bfd68fa4129c01bc312f
2023-11-08 18:58:05 +00:00
Julia Kreger
24733d08bc SQLAlchemy 2.0 - Fix items lost in migration
Seems we forgot some leftovers of autocommit in our unit tests,
and we never updated our unit tests to the newer query style
for sqlalchemy 2.0.

This patch corrects those issues.

Change-Id: I9f3eb1f8efadd8438ac7dd69b06ea545b9a8ee5e
2023-11-08 10:55:27 -08:00
Zuul
11f52aa5d3 Merge "Fix python shebang" 2023-11-07 08:51:45 +00:00
Takashi Kajinami
1d2a6d7d32 Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

Change-Id: I7e8bff6da0a71216426985d3fa6fd5f30b853e2c
2023-10-17 16:02:33 +00:00
fbfe131c5d 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: Ice4a0d1b8e17d12f5b31aa0bcf4f0f8d76596510
2023-09-21 11:20:13 +00:00
Zuul
f957f6fccc Merge "Support LLDP data coming in the new field" 11.7.0 2023-09-20 12:38:54 +00:00
Zuul
f09ce1f01c Merge "Handle bracketed IPv6 redfish_address" 2023-09-20 10:57:34 +00:00
Zuul
728df8893d Merge "CI: re-add genade job to normal CI queues" 2023-09-20 00:11:53 +00:00
Zuul
04f0f5ba54 Merge "Fix bindep for debian bookworm for py3.11" 2023-09-19 22:31:55 +00:00
Julia Kreger
a696dbee1f CI: re-add genade job to normal CI queues
We fixed the grenade job, it works now. Moving it back to the standard
check and gate queue.

Change-Id: Ie0e810c4eec1322180c024703b90a584f1161672
2023-09-19 14:36:58 -07:00
Jay Faulkner
31e07e423f Fix bindep for debian bookworm for py3.11
Debian Bookworm has mariadb, not mysql.

Depends-On: https://review.opendev.org/c/openstack/ironic-inspector/+/895164
Change-Id: I1f1e620225dc280c4740600f53b7a78ace646882
2023-09-19 12:44:11 -07:00
Dmitry Tantsur
be3d3772de Update the project status and move broken jobs to experimental
Since ironic-inspector is pending deprecation and does not see a lot of
changes, simply disable the jobs that do not pass. A release note is
issued about the status of the project.

Also: Re-adjust the memory footprint of the VMs since we use
tinycore linux on this job, *and* we were previously introsepcting
4 VMs at 1GB each. The count has been changed to two.

Change-Id: I11d10a9f83552b5875812fa65d87cc5c72081537
2023-09-19 08:03:43 -07:00
Harald Jensås
278ba52bf9
Handle bracketed IPv6 redfish_address
If redfish_address is in brackets, unwrap it
and check that it is a valid IPv6 address.
If that is the case use the unwrapped address
to avoid "Name or service not known".

Closes-Bug: #2036455
Change-Id: I0d194091be22e8401d379b7ffa720f8004cca3d0
2023-09-19 14:59:44 +02:00
Pierre Riteau
4a6bdaaf4b docs: fix typo
Change-Id: I9ad7b07834a0f83f82c2580fe277a337c6d03a12
2023-08-25 14:45:56 +02:00
likui
13a0d9374f tox: Remove basepython
Python 2 is EOL. No environment should be defaulting to it. Our CI
environments certainly aren't.

Change-Id: I7c5d73f8499a6eec3cae2a6254e6a26a64a9de9b
2023-08-02 16:58:22 +08:00
likui
53778d62f1 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: I49200c48d2331cdeef9ceccb32e1f5b032d3c0ce
11.6.0
2023-07-31 15:25:30 +08:00
OpenStack Proposal Bot
62e42d3800 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Idda5fcfacc300cb812827399b68c928a357e28fd
11.5.0
2023-05-09 04:01:21 +00:00
Zuul
418aa6b1f5 Merge "Upgrade to latest hacking - v6" 2023-04-25 14:37:29 +00:00
Dmitry Tantsur
c2cb0f235a Support LLDP data coming in the new field
Change-Id: Id8d6978035f81215c52ed5ab3406d7adac2c561e
Depends-On: https://review.opendev.org/c/openstack/ironic-python-agent/+/881462
2023-04-25 12:22:33 +02:00
Jay Faulkner
c3dd0f18ac Upgrade to latest hacking - v6
No code changes needed to work with latest flake8.

Change-Id: I5a45f31590534685016a4fdb78f3ea2b954150f1
2023-04-21 12:20:25 -07:00
Zuul
10ffd3a28e Merge "Update master for stable/2023.1" 2023-03-09 17:18:22 +00:00
Lon Hohberger
437e743e6c tests: Replace assertItemsEqual with assertCountEqual
The assertItemsEqual API is no longer current.

1. fd4abac1d6
2. https://bugs.python.org/issue17866

Change-Id: I76aab9210de2a1871305d93afc80f1a0542b55f9
2023-03-09 10:23:04 -05:00
974ec5a45e 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: I4e7efcbb18a2e44508ca7ca74250c9a17a3be4b6
2023-03-09 13:37:10 +00:00
Julia Kreger
836ba11b9b Use UTC for the timezone in functional tests
The prior code uses the local time zone, in my case
prsently 'PST' which pytz doesn't grok, however it does
grok UTC, and CI runs in UTC, and the API, as far as I know,
conveys in UTC. So this should just be for consistency.

Change-Id: Ia47b6adfc18be54f8e9623b34ef34b66436828dc
11.4.0
2023-02-21 08:38:26 -08:00
OpenStack Proposal Bot
933c4f8d10 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia1b6c60ec3b3c649c223b1aa1bb2c21334940f74
2023-02-04 03:41:46 +00:00
Zuul
d65d6020c2 Merge "Rename NodeInfo._lock to avoid conflict with Mock._lock in tests" 11.3.0 2023-01-27 13:12:40 +00:00
Zuul
21b02523a1 Merge "Stop gating on unit test coverage" 2023-01-26 16:51:50 +00:00
Zuul
c43b7bf64b Merge "Use new get_rpc_client API from oslo.messaging" 2023-01-26 16:27:58 +00:00
Dmitry Tantsur
20797f0a82 Stop gating on unit test coverage
It's nice to keep coverage high, but with little active development
it starts merely hindering refactorings, causing us to gradually lower
the expected minimum anyway.

Change-Id: I4bec5dbb224c59048c24cf2189a80014d63bfa36
2023-01-26 16:17:42 +01:00
Jay Faulkner
e1f3b71a39 Make reno ignore bugfix eol tags
Reno was assuming all tags ending in -eol represented an old, EOL'd
stable branch. That's not true for Ironic projects which have bugfix
branches. Update the regexp to exclude those branches.

Co-Authored-By: Adam McArthur <adam@mcaq.me>
Change-Id: I2f8c80bd2aac2d00616ac2a2789a7da303d29656
2023-01-25 13:22:33 -08:00
Tobias Urdin
84b5f8cc1b Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: I66bef4d339b5ee2462dc46f626fd1b2c6182b2cd
2023-01-19 21:05:00 +00:00