1529 Commits

Author SHA1 Message Date
Zuul
f1d555fa03 Merge "[codespell] Fixing Spelling Mistakes" 2024-02-28 12:20:07 +00:00
Zuul
5f9ae76a01 Merge "add pyproject.toml to support pip 23.1" 2024-02-14 01:36:30 +00:00
Zuul
187cb72598 Merge "Bump hacking to 6.1.0" 2024-02-13 23:10:47 +00:00
Riccardo Pittau
c47857351a Moving functional job to non-voting until we have a fix for it
Change-Id: Id0ac8ef310727d0d3857187aeb17a9b3ffaf6145
2024-02-12 15:25:25 +00:00
99763a9655 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: If61cd51d1010df706f68d552de674a28a0323625
2024-02-06 15:05:35 +00:00
Sharpz7
9bb0fcd05e [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: Iab417bfd09cb0bf416982733933c29e49e3229eb
2024-01-29 23:22:19 +00:00
Takashi Kajinami
bf66f254fa Bump hacking to 6.1.0
... which is the latest version available now.

Change-Id: I367ce5a5599959d3da433cb63412cb18ac68ffb2
2024-01-29 18:26:05 +09:00
likui
8d79ad8672 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.

This is required to support installing devstack on
centos stream 9 and related distros with GLOBAL_VENV=True
Without this change the wsgi scripts are not generated in
editable mode. i.e. pip install -e /opt/stack/keystone

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

Change-Id: Ib5fd98d58d282df24c86defd8cce50ed861f912c
2024-01-19 09:22:39 +08:00
likui
b319505e2f 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: I2d72dfbcd336e5668f35fbd8d2a3de58ee655ec4
2024-01-17 10:40:09 +08:00
1a11b9c463 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: If84153722f8b3e58b5a33a693fa90dac1b4225ae
2023-09-08 14:56:42 +00:00
Iury Gregory Melo Ferreira
cea2c5a574 Firmware Interface support
Command to list firmware components of a node:
* ``openstack baremetal node firmware list <node_ident>``

The `firmware_interface` can be specified in the commands below:
* ``openstack baremetal node create``
* ``openstack baremetal node show``
* ``openstack baremetal node set``
* ``openstack baremetal node unset``
* ``openstack baremetal driver list``
* ``openstack baremetal driver show``

Bumping API to match the required version for it and added unit testing.

Change-Id: I90146439768444a92a586cb96c5ab1fca9899653
5.4.0
2023-08-29 17:43:56 -03:00
Zuul
6a363dbff3 Merge "These should be indented 4 spaces to match the other things in this block" 2023-08-10 22:14:38 +00:00
Zuul
b3e49e691b Merge "tox: Remove basepython" 2023-08-10 22:13:43 +00:00
Zuul
765c2780bc Merge "Followup: Remove print statements from test" 2023-08-04 07:37:09 +00:00
Zuul
f3f90ec50e Merge "Add baremetal node unhold" 2023-08-03 23:01:33 +00:00
Jay Faulkner
8bcf52ed4d Followup: Remove print statements from test
The previous support for parent_node left some debugging print
statements in; remove them.

Change-Id: If03bbd0c3eda4997338c8a45617286c5a08f1ae2
2023-08-03 15:54:52 -07:00
Zuul
eb1f2668c3 Merge "Add support for parent node" 2023-08-03 22:36:11 +00:00
likui
fb03b3ef38 tox: Remove basepython
Python 2 is EOL. No environment should be defaulting to it. Our CI
environments certainly aren't.

Change-Id: Ic9c845a7c7e52d15fba8f353dfc60d2db45e2a9d
2023-08-02 17:01:22 +08:00
likui
11d09bc32f 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.1.html

Change-Id: I0106ca91e75ec8055846c3c476eb9137c5f43b24
2023-07-31 15:16:00 +08:00
likui
048f5fdd41 These should be indented 4 spaces to match the other things in this block
Change-Id: Ibf92dc1e27028ca6af93d59f828219bd851c4a92
2023-07-31 15:03:24 +08:00
Julia Kreger
508073d976 Add baremetal node unhold
- Updates the version of the API to 1.85
- Adds an unhold command to allow a user to tell Ironic
  so it "unholds" the held step from "deploy hold" or "clean hold".

Change-Id: Ib10fca5e9fce89a94fadd97cb7417bd50359b4a5
2023-07-28 17:41:57 +00:00
Julia Kreger
b57429ffdb Add support for parent node
- Updates the API client version to 1.83
- Adds support to get/set/update a parent_node value on a node.
- Adds support to ask the API for a list of nodes which related.
- Adds support to filter query list by parent_node as well.

Change-Id: Iea24e96f0360c6e5ac61cb57ab0c6f5d47c57f2b
2023-07-28 10:41:46 -07:00
Jay Faulkner
0e9a476610 Node sharding support
- Bumps known API version high enough for shards to exist
- Implements support for querying for sharded nodes, or by a list
  of shards
- Adds basic unit testing.
- Adds support for all of this to OSC

Change-Id: Ie66bd3a6d68ff4051f3d52dfb2bca26b1053187e
5.3.0
2023-07-04 17:39:34 +00:00
Zuul
dd8e146a4c Merge "Add support for node inventory" 2023-06-08 11:35:29 +00:00
Mahnoor Asghar
0b6b282d40 Add support for node inventory
Adds REST API version 1.81, which supports querying a node's hardware
inventory using the python client library, and also using the baremetal
CLI using the
`baremetal node inventory save [--file <filename>] <node>` command.

Change-Id: Idf6ba4cbf7035e0617edc67f55c93b434d9a76aa
2023-06-06 12:15:56 -04:00
Mahnoor Asghar
bea37aa66c Fix minor spelling errors and incorrect help text
Change-Id: Ia0dd66d015f3fcfb32e553f26765e5cf47b9210d
2023-06-01 08:13:42 -04:00
Zuul
a01ba938c2 Merge "Allow several nodes for most node actions" 5.2.0 2023-05-08 20:11:15 +00:00
Jay Faulkner
c2f15737a0 Update dependencies for pep8: to hacking v6
Updates hacking to latest, 6.0.0. Updates other deps to permit
coinstallability. No code changes needed.

Change-Id: Ib0b277e3c6b318cc0a24b5532dedd925fbe1ffc6
2023-04-21 12:51:56 -07:00
Zuul
19b80e0c6e Merge "Accept configdrive as a JSON file" 2023-04-03 11:39:05 +00:00
Dmitry Tantsur
e914086282 Accept configdrive as a JSON file
Change-Id: I32171ce0d61af00b7d242d455221a903692976f0
2023-03-02 19:35:10 +01:00
138d7974ad 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: Ic09f5fdb57d6487d920a945203aec86795503f6b
2023-03-02 14:13:54 +00:00
Dmitry Tantsur
0fd4c65803 Allow several nodes for most node actions
This saves the users from writing scripts with "-f value -c uuid" or
similar. It is also faster since OSC initialisation takes significant
time (up to several seconds).

Change-Id: I8ec6da97dc30d97764655b52b712c95f6c22c76a
2023-02-28 18:11:43 +01:00
Riccardo Pittau
f945974fea Fix tox4 error
Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.

Change-Id: I003c38181f4900127aefc29025b600c2d9681c75
2022-12-28 15:09:18 +01:00
Jay Faulkner
9646f89018 No longer override install_command in tox.ini
Per ClarkB on the list, overriding install_command makes it more
difficult to troubleshoot failing CI.

Change-Id: I3e1a7ddac620ba2418d5e9038183848969a1afb2
2022-11-29 07:39:31 -08:00
Takashi Natsume
4e1e3a3649 Fix wrong assertion methods
Replace 'has_calls' with 'assert_has_calls'.

Change-Id: I075919e633aa93486270f872465940ae569b48ab
Stroy: 2010306
Task: 46339
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-09-18 15:51:35 +09:00
Zuul
d456d5e18b Merge "remove unicode from code" 2022-09-08 17:08:57 +00:00
7173ed90e3 Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.

See also the PTI in governance [1].

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

Change-Id: I5498cf1c77b405b4ee91d9bdce51da34776bd750
2022-09-08 07:52:57 +00:00
e93c4c8c34 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: I783a8eae7370da6078b349a7361ce86abb7862ad
2022-09-08 07:52:55 +00:00
wangjiaqi07
80537809c5 remove unicode from code
Change-Id: If9318a262f7b023ec5e845e44a50e8e247f6e851
2022-08-25 10:25:40 +08:00
Zuul
18ec45ed40 Merge "Remove unused check_python_version" 5.0.1 2022-08-08 19:54:50 +00:00
Zuul
489bb43058 Merge "Fix logging in the baremetal CLI" 2022-07-18 20:10:20 +00:00
Takashi Kajinami
ef4fc3e558 Remove unused check_python_version
This method is not used actually. In addition now the required python
version is enforced by setup.cfg .

Change-Id: If0cbb97c4adfb51f775bf438ad50c8ddf832e794
2022-07-17 00:44:56 +09:00
likui
dfbd08f35f 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: I91efe328b33d7f0443cafb1f67d8c2dbd7df5996
5.0.0
2022-06-01 16:17:04 +08:00
Zuul
0c39b935ee Merge "Avoid using 'foo' as invalid JSON test data" 2022-05-31 10:38:05 +00:00
Ghanshyam Mann
a7ad7fdfa4 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I3d7ad8a49bbb63fd00ae9523243135a24419c465
2022-05-25 21:23:01 +09:00
Zuul
524f16c3c5 Merge "CI: Removing ironic job queue" 2022-05-24 10:23:33 +00:00
Zuul
a30bb14405 Merge "Add Python3 zed unit tests" 2022-05-23 19:27:21 +00:00
Dmitry Tantsur
bc753e22b4 Fix logging in the baremetal CLI
* Ask openstacksdk to log to stderr instead of stdout, otherwise its
  warnings break parsing the output.
* Respect the --verbose flag (same as --debug but without tracebacks).
* Do not propagate log records that are handled by either openstacksdk's
  or ours logging code.

Change-Id: Ia191ab32f0d4f8f50cb266332d4f4bc96619cb58
2022-05-23 16:51:18 +02:00
Julia Kreger
e801e1c11e CI: Removing ironic job queue
Please see:
https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes

Change-Id: I9a9fc3b765153da7be3ee9416517b16659e587a7
2022-05-19 11:12:29 -07:00
Riccardo Pittau
bf48ad2394 Fix CI
Change-Id: I378860714ee716b569598e41016e70c09a3eefb2
2022-05-10 17:05:57 +02:00