Commit Graph

1542 Commits

Author SHA1 Message Date
Julia Kreger 8b9be99432 Add Service Steps to client
Change-Id: I46519120bcad8bdb369c455d73fafee914c20b00
2024-04-19 15:40:59 -07:00
Zuul 2e8d526f0d Merge "Replace appdirs by platformdirs" 2024-03-29 21:18:58 +00:00
Takashi Kajinami 52467b5498 Replace appdirs by platformdirs
appdirs was deprecated[1] and now platformdirs is the recommended
replacement.

[1] 8734277956

Change-Id: I32fab3052e858394429d15bc6fa2ec89b2d41f51
2024-03-30 02:36:38 +09:00
Zuul 2ad0b28e9b Merge "Fix on-creation ability" 2024-03-29 09:12:25 +00:00
Julia Kreger ff17b5478d Fix on-creation ability
On node creation, the underlying code does a validate of the fields
passed, and errors if you try to pass excess fields which are not in
a super easy to miss list, because actual OSC testing doesn't fully
exercise the entire command execution.

Change-Id: Iae35f80c1ae547044dea615a4309b6810ea8fee9
2024-03-28 13:16:02 -07:00
OpenStack Release Bot 20d0a88526 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: I5f053758f348653d9e08339885bd91aa6f13b08c
2024-03-07 15:35:54 +00:00
Dmitry Tantsur 33699ff12a
Add missing commands to the documentation
Change-Id: If2e942e2ffa5504b67e865cbee677286792e2134
Closes-Bug: #2052527
2024-02-28 18:31:57 +01:00
Zuul cbbd07f1e4 Merge "[codespell] Adding CI target for Tox Codespell" 2024-02-28 16:58:28 +00:00
Zuul 29f9a23905 Merge "Force constraints when installing a package during tox test" 2024-02-28 14:27:00 +00:00
Zuul f457a88e34 Merge "[codespell] Adding Tox Target for Codespell" 2024-02-28 12:20:09 +00:00
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
Riccardo Pittau 63f631ef3a Force constraints when installing a package during tox test
The tox deps option grants installation of single dependencies and
requirements, optionally pinned using constraints, before installing
a package, therefore not granting installation of the correct
constraint during the package installation.
To fix that tox 4.4.0 has introduced the constrain_package_deps
option [1]

[1] https://tox.wiki/en/4.12.1/faq.html#using-constraint-files

Change-Id: I578946bc780acfcc63388201a35e7c6fa0e10a35
2024-02-12 15:00:51 +01:00
OpenStack Release Bot 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 ccbe211e31 [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: I49f9dd8f8a47db1704896af01255551f10a75e71
2024-01-30 23:26:54 +00:00
Sharpz7 380435c13a [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: Ie5b066676b9058d7f4cb00fe279711834ca06720
2024-01-30 23:26:46 +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
OpenStack Release Bot 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
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
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" 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
OpenStack Release Bot 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
OpenStack Release Bot 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