Commit Graph

1520 Commits (master)

Author SHA1 Message Date
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
OpenStack Release Bot 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" 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
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
OpenStack Release Bot 283f82cad0 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: Ia287c2d03851439658858e21fc077dc544044bc4
2022-03-07 14:08:59 +00:00
OpenStack Release Bot 9ee2509d29 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I3add67c089032ceeddaff8651b77a5fca8efa7e0
2022-03-07 14:08:55 +00:00
Steve Baker 59df415bbf Avoid using 'foo' as invalid JSON test data
Downstream test environments appear to have a file called 'foo' either
created out-of-band, or created by tests executed in a
non-deterministic order.

This changes the test data to very invalid json which is unlikely to
be a filename, ensuring the expected codepath is tested.

Change-Id: I88ed81337c6e2d724b3cf4ddf90e0d60fa052d1c
2022-03-01 13:42:54 +13:00
Zuul 4126936c4b Merge "Validate path when passing a config-drive" 2022-01-04 20:58:06 +00:00
Zuul d3372784ea Merge "Add node history support" 2022-01-04 18:05:30 +00:00
Zuul dce5146c11 Merge "Updating python testing classifier as per Yoga testing runtime" 2022-01-04 16:45:01 +00:00
Zuul 85c934bd39 Merge "Use only Yoga tests" 2022-01-04 15:44:56 +00:00
Steve Baker 4549820bfa Improve description of "node boot mode set"
The current description is ambigious and suggests that the actual boot
mode for an existing node might be immediately changed.

This change clarifies that the set boot mode will be used for the next
deployment attempt.

rhbz#2006021

Change-Id: Iefbbe47c64f7ca302761c02106b79bdef1a1c635
2021-12-16 09:34:51 +13:00
Riccardo Pittau 6c3f20aee7 Use only Yoga tests
TC has decided to keep support for Python 3.6 during the Yoga cycle.
For more info see [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-December/026164.html

Change-Id: I9ad08221b74d0ddbb800f6b56c98fdd472f0815d
2021-12-14 09:01:24 +01:00