12962 Commits

Author SHA1 Message Date
Dmitry Tantsur
004e78c413
Fix the confusion around service_reboot/servicing_reboot
We ended up using two names for the same flag (and forgot it in one
place completely). To not just fix the issue but also prevent it in the
future, refactor asynchronous steps handling into a new helper module
with constants and helper functions.

I've settled on servicing_reboot as opposed to service_reboot because
that's the value we currently set (but not read), so it provides
better compatibility when backporting.

Remove excessive mocking in the Redfish unit tests.

Change-Id: I32b5f860b5d10864ce68f8d5f1dac3f76cd158d6
2024-04-12 18:09:54 +02:00
Zuul
7d1bc77861 Merge "Handle servicing failures in the Redfish BIOS interface" 2024-04-12 14:41:15 +00:00
Dmitry Tantsur
c61c7fabe3
Handle servicing failures in the Redfish BIOS interface
Change-Id: I58a27ec9e3646b143fc0874f033849056848c411
2024-04-12 13:52:13 +02:00
Zuul
60b263df50 Merge "Fix get_async_step_return_state to account for servicing" 2024-04-12 11:49:28 +00:00
Zuul
9d8d5a9387 Merge "Remove unused DEFAULT_NEUTRON_URL constant" 2024-04-12 08:50:35 +00:00
Dmitry Tantsur
c1ce255f01
Fix get_async_step_return_state to account for servicing
Change-Id: I502be5613ffef7c2f51eafd0a10d5e9c5d5ec2a4
2024-04-11 13:42:07 +02:00
Dmitry Tantsur
22aa29b864
Stop assuming service steps have priorities
Unlike clean, deploy and verify steps, service steps cannot run
automatically and thus do not have a usable notion of priority. It's not
possible to provide a priority through the API but our validation code
still requires it. This change gets rid of most priority handling for
service steps, leaving only some foundation for future enhancements.

Change-Id: I82aefc03a5c062b67e0f457612fe568399226dc8
2024-04-10 13:59:19 +02:00
Zuul
7737a2549d Merge "Add states.SERVICING and SERVICEWAIT to need_prepare_ramdisk" 2024-04-10 09:09:31 +00:00
Jacob Anders
70ccb6af11 Add states.SERVICING and SERVICEWAIT to need_prepare_ramdisk
Currently, service steps do not work with virtual media deployments
because states.SERVICING and states.SERVICEWAIT are missing from the whitelist
of valid provision_states. This change resolves this issue.

Change-Id: I5e3ec08d128b35385f2d90c9c852140b757b8dbf
2024-04-10 10:48:04 +10:00
Zuul
604ff49456 Merge "Fix redfish detach generic vmedia device method" 2024-04-09 14:57:28 +00:00
Riccardo Pittau
58fc21fc0b Fix redfish detach generic vmedia device method
Fixes usage of redfish detach virtual media feature to be conform to
the general implementation.
Before the detach virtual media API call using redfish driver was not
working as intended and caused the operation to fail.

The method implementation was allowing only a single device_type
while it should be multiple devices to match the conductor manager
implementation.

Change-Id: I9edd3b77eeb3ec1b0484d4e6f0c6dea53e83f9ad
2024-04-09 11:07:50 +02:00
Takashi Kajinami
2f040ea32e Remove unused DEFAULT_NEUTRON_URL constant
This constant is not used by any logic in the current code.

Change-Id: I75122a8c8a3698227b381bb72d58c09d8b77982f
2024-04-08 13:25:27 +09:00
Zuul
d5802f832f Merge "Expose conductor online boolean for accurate alive" 2024-04-07 17:38:51 +00:00
Zuul
243e14359a Merge "Fix generating local paths when connecting virtual media" 2024-04-05 17:44:09 +00:00
Zuul
cf71415410 Merge "CI: Limit redfish https job to wholedisk images" 2024-04-05 14:11:23 +00:00
Dmitry Tantsur
a9a4fff71c
Fix generating local paths when connecting virtual media
The generate path does not contain the node UUID, causing conflicts.

Also make sure to always clean up any existing files first.

Change-Id: I30f948d64e7b87f33841dc22828db60338a62dd8
2024-04-03 16:16:31 +02:00
Zuul
d68aea2ebe Merge "ci: automatically set the branch for IPA to match TARGET_BRANCH" 2024-04-02 11:21:34 +00:00
Julia Kreger
16e839d749 CI: Limit redfish https job to wholedisk images
Change-Id: I174b7e01e1009b6e44e529fbc1d4d1d0032f5f85
2024-04-01 17:50:39 -07:00
Zuul
bc260cc838 Merge "Do not rely on predefined UUIDs in tests" 2024-03-29 16:33:59 +00:00
Zuul
565d18f0d5 Merge "Fix Reopen Web Console Duplicate Sol Session" 2024-03-28 21:41:33 +00:00
Zuul
0d6bbb3620 Merge "Drop fallback to unmanaged inspection for virtual media and UEFI boot" 2024-03-27 22:19:29 +00:00
Zuul
2cb8eafc6a Merge "Fix new codespell issues; tweak config" 2024-03-27 22:13:42 +00:00
Julia Kreger
12cf47da0b ci: automatically set the branch for IPA to match TARGET_BRANCH
... if present, use TARGET_BRANCH parameter to influence which
branch is used for IPA downloads.

Change-Id: I9d8878ddc56f1cd90debfc2e61838162fe39e039
2024-03-27 13:46:52 -07:00
OpenStack Proposal Bot
272344e951 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3394a59586b253c4270b5590ff63b86ab8399d57
2024-03-25 04:45:51 +00:00
Zuul
9fa0320458 Merge "Add redfish https boot CI job" 2024-03-24 21:36:07 +00:00
Riccardo Pittau
388b9ddcac Update min required version of scciclient
For compatibility with pysnmp-lextudio and pyasn1 we increase the
minimum required version of python-scciclient to latest available.
Also capping proliantutils to avoid breaking changes.

Change-Id: I64587d24383dc05927135d7e7e3a2a6975a58558
2024-03-22 13:18:52 +01:00
Steve Baker
161374f763 Expose conductor online boolean for accurate alive
Currently the online database column is not considered when displaying
the "baremetal conductor list" Alive status. This means that when a
conductor is stopped gracefully it will be shown as (inaccurately)
alive for the duration of [conductor]graceful_timeout.

This change adds the online field to the alive evaluation, so the
conductor must be online *and* have a recent heartbeat.

Change-Id: Ic5a8d56ec236faca1b9797bd0d3e42c956469fab
2024-03-22 15:07:12 +13:00
cd117d1ed9 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: Ie669c480f361e7df0ba0566931685a3bf38045a2
2024-03-19 15:25:16 +00:00
Zuul
99b1f9c479 Merge "Bump proliantutils for pyasn1 compatibility" 24.1.0 2024-03-18 16:46:53 +00:00
Zuul
5c00b7cf0b Merge "Fix data length exceeding limit error" 2024-03-18 14:40:05 +00:00
Dmitry Tantsur
b7954ad720
Do not rely on predefined UUIDs in tests
Change-Id: I0e9d73351a92e133cd6c484b5fb415ae005314b0
2024-03-18 12:35:30 +01:00
Dmitry Tantsur
2f399a1fb7
Drop fallback to unmanaged inspection for virtual media and UEFI boot
It is not expected that nodes configured this way start PXE-booting.

Change-Id: I9bc5ab73bb54e0612fb6025f10c4d41a5b8842cb
2024-03-18 10:26:47 +01:00
Riccardo Pittau
d57e113605 Bump proliantutils for pyasn1 compatibility
Latest version moves back to lextduio pysnmp keeping pyasn1
as dependency.

Change-Id: I042a74eccacd6f358daf04d4ccbd53390bcc8df8
2024-03-18 10:14:23 +01:00
Zuul
60e780fe15 Merge "Ignore generated config/policy file" 2024-03-17 23:05:39 +00:00
Zuul
0237392002 Merge "Fix artifical rbac policy constraint that resulted in 500s" 2024-03-17 21:33:45 +00:00
CID
ef8bca007d Fix data length exceeding limit error
This commit increases the length of the 'user' column to
accommodate longer UUIDs, ensuring that the full user UUIDs are stored
without exceeding the column limit.

Closes-Bug: #2054594
Change-Id: I59b435ca2bb5850bb2338228b64868c2003bfea3
2024-03-16 22:26:15 +00:00
Jay Faulkner
10785a0550 Release mappings for 23.1, 24.0, 24.1/2024.1
Release mappings! We made a Caracal!

Change-Id: I0106d43080746e1b159f4a54e6808d477cfbef44
2024-03-15 11:44:13 -07:00
Zuul
8922c79b7c Merge "Support more standard way of passing lists via query strings" 2024-03-15 14:09:31 +00:00
Zuul
2f71e5d512 Merge "Update regex to detect closed branch" 2024-03-15 01:58:15 +00:00
Zuul
f2257d33db Merge "docs: augment admin troubleshooting docs for system scope context" 2024-03-15 01:58:12 +00:00
Zuul
64595e704a Merge "Release notes prelude for 2024.1/24.1" 2024-03-15 01:58:07 +00:00
Zuul
96565b6894 Merge "Tempest test with only wholedisk for some jobs" 2024-03-15 00:46:31 +00:00
Zuul
bf1aadf2bc Merge "Allow usage of virtual media via System" 2024-03-14 22:14:59 +00:00
Zuul
16b0ea709a Merge "Implement generic redfish vmedia attach detach" 2024-03-14 21:39:50 +00:00
Iury Gregory Melo Ferreira
10ebbe74da Tempest test with only wholedisk for some jobs
Changing the ironic-tempest-uefi-redfish-vmedia and
ironic-tempest-ovn-uefi-ipmi-pxe jobs to only run
tempest test_baremetal_server_ops_wholedisk_image.

We saw failures on the partition tests for this jobs.

Related-Bug: #2057972
Change-Id: I2e26d7955ade11046bf89b6f4c9c2c4f16da1574
2024-03-14 18:39:39 -03:00
Jay Faulkner
0c735264d6 Release notes prelude for 2024.1/24.1
Change-Id: If17630cccd4e61d4c966deec6ff473a50752eeb2
2024-03-14 20:12:15 +00:00
Jay Faulkner
45502d7beb Fix new codespell issues; tweak config
Configuration was fine for the gate, but I've updated it to ignore
directories and files that can be found in a well-used development
checkout.

Fixed any new spelling issues.

Change-Id: Icef5addba938b27911c26e841a37a2e9ba3fbe43
2024-03-14 12:57:26 -07:00
Zuul
8fa1de8ab0 Merge "[codespell] Adding CI target for Tox Codespell" 2024-03-14 17:38:09 +00:00
Zuul
4aa096877e Merge "[codespell] Adding Tox Target for Codespell" 2024-03-14 17:13:10 +00:00
Zuul
df9e1ba80e Merge "[codespell] Fixing Spelling Mistakes" 2024-03-14 17:13:05 +00:00