Commit Graph

12986 Commits

Author SHA1 Message Date
Zuul a7b2908e2c Merge "CI: Unpack cirros image partition jobs" 2024-04-18 19:20:12 +00:00
Zuul f494d2760a Merge "Small Doc Fix: Moved user export for devstack guide." 2024-04-18 18:12:22 +00:00
Zuul 5fabff87d1 Merge "Use .coveragerc file" 2024-04-18 07:59:33 +00:00
Zuul c85d9c8326 Merge "Load machine type from command-line" 2024-04-17 17:31:18 +00:00
Zuul 7df06977d3 Merge "Add states.SERVICING and SERVICEWAIT to _FASTTRACK_HEARTBEAT_ALLOWED" 2024-04-17 10:34:59 +00:00
Jacob Anders 619e1ac80c Add states.SERVICING and SERVICEWAIT to _FASTTRACK_HEARTBEAT_ALLOWED
Currently, service steps may fail to start in scenarios dependent on IPA
fasttrack. This change attempts to resolve this by incorporating
servicing states in the fast track allowed states whitelist while also
making _FASTTRACK_HEARTBEAT_ALLOWED a superset of _HEARTBEAT_ALLOWED
instead of duplicating values in the two constants.

Change-Id: I47984469c1432e7fc7b4f1494b9f6c551c34672f
2024-04-17 14:04:16 +10:00
Sharpz7 9c237240ba Small Doc Fix: Moved user export for devstack guide.
A small bugfix - you now need to ensure that the user env var is set before running any openstack commands (At least the ones that devstack uses)

Change-Id: I4afad7ea588cf6505a7b1186c749d13827b24290
2024-04-16 22:48:09 +00:00
Zuul d68490c6fe Merge "Use the new microversion-parse library to parse the version headers" 2024-04-15 23:38:05 +00:00
Zuul ddca532f52 Merge "Fix the confusion around service_reboot/servicing_reboot" 2024-04-15 23:38:00 +00:00
Zuul 3123e82a14 Merge "Fix servicing clean-up" 2024-04-15 23:37:57 +00:00
Zuul 36251de6f1 Merge "Add note regarding metal3 ci job in CI config for stable runs" 2024-04-15 23:37:55 +00:00
cid 211e007472 Load machine type from command-line
Change-Id: Ib2bdac78e0eb4043e2a2f86244ea168641571817
2024-04-16 00:30:44 +01:00
Alexon Oliveira 668dd24108 Remove deprecation warning by setting schema
Closes-Bug: #2061160

Change-Id: Ie5af73dd1b8af29734d1cf34b070e2a2bbc09949
Signed-off-by: Alexon Oliveira <alolivei@redhat.com>
2024-04-15 14:54:17 -03:00
Zuul ffd0e5c95d Merge "db: Replace use of Engine.execute() method" 2024-04-15 16:11:18 +00:00
Zuul 044ca92902 Merge "Make codespell voting" 2024-04-15 10:04:14 +00:00
Zuul a329135fad Merge "Fix spelling reported by codespell" 2024-04-15 10:01:50 +00:00
Takashi Kajinami 7408a93dcd db: Replace use of Engine.execute() method
Resolve the following RemovedIn20Warning warning:

  The Engine.execute() method is considered legacy as of the 1.x
  series of SQLAlchemy and will be removed in 2.0.

Closes-Bug: #2061345
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ib0519af8a15ca02e351f8d739d52f4e658f7615a
2024-04-15 17:27:33 +09:00
Winicius Silva 774890dd7f Make codespell voting
Change-Id: Ia3e0d347d0ca80f5f632a7ad889bea17391da136
2024-04-12 14:41:56 -03:00
Winicius Silva 0f62bd2164 Fix spelling reported by codespell
Change-Id: I5a1f68189eb75b92bedeaaa8b645be7f10b0d30f
2024-04-12 14:34:49 -03:00
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 6c8673c1b4
Fix servicing clean-up
Serious issues:
- Nothing powers on nodes after servicing, so they end up active and
  powered off in the end.
- Restoring power state was done three times.

Minor issues:
- Function _tear_down_node_servicing is called twice causing a traceback.
- Furthermore, process_event('done') is also called in another place
  in deploy utils.
- Make sure nodes are never considered for fast-track when servicing, it
  prevents clean-up of virtual media devices.

Change-Id: I92fd7a0009a816e93e316e4674c7509b61a474d4
2024-04-12 10:48:57 +02: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
cid 5552e54d8b Use the new microversion-parse library to parse the version headers
Closes-Bug: #1584718

Change-Id: Icb2e21775d1500878bb6d29f45e82e32f14332aa
2024-04-05 09:28:52 +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 adef5d60a7 CI: Unpack cirros image partition jobs
Cirros, by default, as part of its initialization, copies the initial
ramdisk contents over the filesystem on disk. This changes the partition
image creation job so we do it upfront so the partition image looks like
and matches what we generally expect from a partition image as opposed
to just a kernel, ramdisk, and bootloader.

Change-Id: Idde30e33e9453f8564a7c3b9109c4e567146dee7
2024-04-02 03:53:37 +00:00
Julia Kreger 16e839d749 CI: Limit redfish https job to wholedisk images
Change-Id: I174b7e01e1009b6e44e529fbc1d4d1d0032f5f85
2024-04-01 17:50:39 -07:00
Julia Kreger c2dd5fc830 Add note regarding metal3 ci job in CI config for stable runs
Change-Id: I2a9cc075579356c2d3e47b414ae8af162eea1608
2024-04-01 07:29:04 -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