summaryrefslogtreecommitdiff
path: root/ironicclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Allow several nodes for most node actions"HEAD5.2.0masterZuul2023-05-085-259/+445
|\
| * Allow several nodes for most node actionsDmitry Tantsur2023-02-285-259/+445
| | | | | | | | | | | | | | | | 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
* | Accept configdrive as a JSON fileDmitry Tantsur2023-03-025-12/+71
|/ | | | Change-Id: I32171ce0d61af00b7d242d455221a903692976f0
* Fix wrong assertion methodsTakashi Natsume2022-09-181-2/+2
| | | | | | | | | Replace 'has_calls' with 'assert_has_calls'. Change-Id: I075919e633aa93486270f872465940ae569b48ab Stroy: 2010306 Task: 46339 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Merge "Fix logging in the baremetal CLI"Zuul2022-07-181-9/+23
|\
| * Fix logging in the baremetal CLIDmitry Tantsur2022-05-231-9/+23
| | | | | | | | | | | | | | | | | | | | * 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
* | Avoid using 'foo' as invalid JSON test dataSteve Baker2022-03-011-1/+1
|/ | | | | | | | | | | 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
* Merge "Validate path when passing a config-drive"4.11.0Zuul2022-01-042-3/+17
|\
| * Validate path when passing a config-driveFelix Huettner2021-08-272-3/+17
| | | | | | | | | | | | | | | | | | | | Currently when --config-drive should point to a file or directory the command silently uses the path as a configdrive if this file/directory does not exist. This is not easily understandable for the user as no error message appears. Change-Id: I92d8ce2a61f459ce14335bfb05424dc883dbc4d1
* | Merge "Add node history support"Zuul2022-01-046-1/+218
|\ \
| * | Add node history supportJulia Kreger2021-12-016-1/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for rest API version 1.78, which covers the node history feature. Story: 2002980 Task: 43319 Change-Id: I6edbc38353a4b2f7b0a758108bc91cc9fb72a29d
* | | Improve description of "node boot mode set"4.10.0Steve Baker2021-12-161-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | 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
* | Made `baremetal <command> --help` display command specific help.Mahnoor Asghar2021-11-021-1/+2
| | | | | | | | | | | | | | | | | | | | `baremental node show --help` shows the same command-specific help message as: `baremetal help node show` Story: 2009265 Task: 43500 Change-Id: Id79a88a1df0e641d951e46433ad9961376241cc2
* | Merge "Add support for fields in drivers CLI"4.9.0Zuul2021-09-235-9/+194
|\ \
| * | Add support for fields in drivers CLITadeas Kot2021-08-305-9/+194
| |/ | | | | | | | | | | | | | | | | | | | | | | This commit add support for fields selector to the driver CLI. * ``openstack baremetal driver list --fields <field> [<field> ...]`` * ``openstack baremetal driver show <driver_name> --fields <field> [<field> ...]`` Depends-On: https://review.opendev.org/c/openstack/ironic/+/804416 Story: 1674775 Task: 43043 Change-Id: I2d691feec876f6978d5075e779ea465ed660f09e
* | Fix distribution compatability for configdrive buildJulia Kreger2021-09-152-15/+62
|/ | | | | | | | | | | | | | | | | | | | Previously, the configuration drive generation code made use of ``genisoimage``, however ``genisoimage`` is not shipped universally on all linux distributions, and largely has been replaced in distributions with other forks, as the tooling has evolved, forked, and changed over the past quarter century. We now attempt to utilize multiple different commands, including the original ``mkisofs`` command and the newer ``xorrisofs`` command when attempting to generate the ISO image, falling back until one works. Credit goes to I720f25921f8e52f20a631f238a528dedf65a91c6 for the base pattern in OpenstackSDK. Story: 2009230 Task: 43328 Change-Id: Ic732c2e6c77474e0d5b701c47758959c3511743b
* Merge "Add support for changing 'boot_mode' and 'secure_boot' states"4.8.0Zuul2021-08-245-1/+259
|\
| * Add support for changing 'boot_mode' and 'secure_boot' statesCenne2021-08-135-1/+259
| | | | | | | | | | | | | | Story: 2008567 Task: 41709 depends-on: https://review.opendev.org/c/openstack/ironic/+/800084 Change-Id: I2937ea924ccc4ca6e9ab5599aa02e3c078c166b3
* | Include BIOS registry fields in bios setting list commandBob Fournier2021-08-065-12/+161
|/ | | | | | | | | | | | | | Add new params to the 'baremetal node bios setting list' command to include support for the BIOS registry. The '--long' option will retrieve and display the additonal BIOS registry fields, the '--fields' option will retrieve and display selected fields. The header names when the '--long' or '--fields' options are not used match the existing functionality. Note that the 'baremetal node bios setting show' includes these fields by default with no changes. Change-Id: I9d6d2e42879e12cce8e1f2111be1a27f1a251de2
* Add support for 'boot_mode' and 'secure_boot' node resource fieldsCenne2021-07-264-3/+12
| | | | | | Story: 2008567 Task: 41709 Change-Id: Idde66fc37d5395e02ad95e6bf5342b555b479b8e
* Merge "Add missing unit tests for provision state commands"Zuul2021-06-111-0/+185
|\
| * Add missing unit tests for provision state commandsTang Chen2021-02-121-0/+185
| | | | | | | | | | | | | | There are several missing unit tests for provision state commands. This patch adds them. Change-Id: Ie5b08f682f3cb8fbc5016cb02e689bb1934798f3
* | Merge "Make baremetal --debug actually work"Zuul2021-03-251-0/+18
|\ \
| * | Make baremetal --debug actually workDmitry Tantsur2021-03-221-0/+18
| | | | | | | | | | | | | | | | | | | | | The --debug option exists but does nothing. Wire in openstacksdk logging and make sure ironicclient can log as well. Change-Id: I136503f546be2ecbd3203ee07597df59a40a594e
* | | Merge "Fix --fields network_data"Zuul2021-03-222-0/+2
|\ \ \ | |/ / |/| |
| * | Fix --fields network_dataDmitry Tantsur2021-03-172-0/+2
| | | | | | | | | | | | Change-Id: Id1c6f1a69161e3ddbb83c9229aa9be84a0c8c02d
* | | Fix the functional testsDmitry Tantsur2021-03-191-0/+12
|/ / | | | | | | | | | | | | | | | | | | We somehow manage to merge a patch that breaks them. Import the required code from change Ibb8c4676f653c36978bd0c9815ddf7eb80fa8670. Make sure we run functional tests on ironicclient/tests changes. Change-Id: I94e2b3d9ae669f2522f42879dd3ee3bd78b73c77 Co-Authored-By: Kyrylo Romanenko <kromanenko@mirantis.com>
* | Merge "Add tests for 'baremetal port create' command"4.6.1Zuul2021-03-011-0/+75
|\ \
| * | Add tests for 'baremetal port create' commandKyrylo Romanenko2020-09-081-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for options: --extra --pxe-enabled --local-link-connection Change-Id: Idf70f8b24df6439a6a4ece9c840d904a4bcb8a8a Partial-Bug: #1566329
* | | Merge "Support YAML files wherever JSON files are accepted"4.6.0Zuul2021-02-174-23/+31
|\ \ \
| * | | Support YAML files wherever JSON files are acceptedDmitry Tantsur2021-02-164-23/+31
| | |/ | |/| | | | | | | Change-Id: I98ca7ee19399dfa0499c5db71257dddb64a3cf61
* | | Clearer error message when unable to parse JSONDmitry Tantsur2021-02-162-3/+3
|/ / | | | | | | | | | | Using a non-existing file currently results in a cryptic message. Change-Id: I0489380d3a3ac1c9286e754c488df68f2b85c22f
* | Merge "Add 'deploy steps' for provisioning API"Zuul2021-02-125-16/+82
|\ \
| * | Add 'deploy steps' for provisioning APIAija Jauntēva2021-01-135-16/+82
| | | | | | | | | | | | | | | | | | | | | Story: 2008043 Task: 41409 Depends-On: https://review.opendev.org/c/openstack/ironic/+/768353 Change-Id: I6adffcf304ca090ff551280f3ec4c9d09a5537d8
* | | Support setting automated_clean to FalseDmitry Tantsur2020-12-232-5/+48
|/ / | | | | | | Change-Id: I683d3e2342142d6c87c4b270ccaf82445d22e9ef
* | Remove lower-constraints jobRiccardo Pittau2020-12-163-10/+8
|/ | | | | | | | | As discussed during the upstream ironic community meeting on Monday Dec 14 2020, the lower-constraints job is being removed. Also fix functional tests. Change-Id: Iafad733ac813da65ceb1864cb24af65e924732b7
* Merge "Allow to pass global request id for remaining objects"Zuul2020-08-247-81/+221
|\
| * Allow to pass global request id for remaining objectsVladyslav Drok2020-06-237-81/+221
| | | | | | | | | | | | | | | | | | This change also allows passing ironic API microversion in places where it was not possible previously, for consistency. Story: 2007611 Task: 39602 Change-Id: I08a1d2227138e1c57ce865f159d0fc68ae95d8f0
* | Fix expected exception message in one testVladyslav Drok2020-08-121-1/+1
| | | | | | | | | | | | It seems to have changed recently. Change-Id: Ie84f5d9c3d657a49d4c443efdd695d69f5150142
* | Merge "Allow to pass global request id in port and volume"Zuul2020-07-024-57/+153
|\ \ | |/
| * Allow to pass global request id in port and volumeVladyslav Drok2020-06-234-57/+153
| | | | | | | | | | | | | | | | | | This change also allows passing ironic API microversion in places where it was not possible previously, for consistency. Story: 2007611 Task: 39602 Change-Id: Iaee01b6f774d52184c7b4bb085f542cbb8228002
* | Merge "Add port-uuid parameter to node vif attach"Zuul2020-06-293-1/+20
|\ \
| * | Add port-uuid parameter to node vif attachTzu-Mainn Chen2020-06-263-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | vif_attach has the capability to attach to a specific baremetal port. This change provides an explicit (and optional) parameter for the baremetal port UUID. Change-Id: Ie2bedda11ccf479db0cbc3dc51f100ae49f81bc2
* | | Merge "Allow to pass global request id in node methods"Zuul2020-06-252-97/+306
|\ \ \ | | |/ | |/|
| * | Allow to pass global request id in node methodsVladyslav Drok2020-06-232-97/+306
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change also allows passing ironic API microversion in places where it was not possible previously, for consistency. Story: 2007611 Task: 39602 Change-Id: Ib364456c0fa9f09002750131615d97f4f9d0a4de
* | | Merge "Add global_request_id into the base client methods"Zuul2020-06-242-41/+121
|\ \ \ | |/ /
| * | Add global_request_id into the base client methodsVladyslav Drok2020-05-152-41/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change also allows passing os_ironic_api_version into create and delete methods, which was not possible previously. Story: 2007611 Task: 39602 Change-Id: I28e094df8ca0b1921fb8b6d503e8d09dfff064d7
* | | Merge "Allow to pass additional arguments into adapter"Zuul2020-06-244-4/+63
|\ \ \ | |/ / | | / | |/ |/|
| * Allow to pass additional arguments into adapterVladyslav Drok2020-05-154-4/+63
| | | | | | | | | | | | | | | | | | | | | | This change allows to pass additional_headers and global_request_id to keystoneauth's Adapter constructor. Also SessionClient now makes use of them while doing HTTP requests (apart from version negotitaion requests). Story: 2007611 Task: 39602 Change-Id: I75cb9311bf44cbf7f6f8737d1d37b2be503be3f9
* | Merge "Add `network_data` ironic node attribute support"Zuul2020-06-026-4/+90
|\ \ | |/ |/|