277 Commits

Author SHA1 Message Date
Zuul
d815291294 Merge "Migrate lint to pre-commit" 2024-11-07 13:07:34 +00:00
Jay Faulkner
80c8b9f3fc Migrate lint to pre-commit
Migrate all existing linters to pre-commit. This consolodates our bandit
and codespell job into the general pep8 job.

Change-Id: I6b40a3338d98fab500e22918b6bd5b8bff2106fd
2024-10-29 14:59:33 -07:00
Julia Kreger
fde2cd608e CI: Change 4k block device job to use LVM
An interesting, and frustrating aspect of 4k block devices is that the math begins
to be impacted across the whole of the useage of the device.
Specifically the LVM block spacing also begins to be thrown
"out of alignment" which changes user calculations.

Most users doing smaller allocations likely won't matter, but users doing
thin volumes or filling the percentage of the remaining usable volume, also then
break.

So realistically, the best path to ensure we have appropriate 4k device testing,
and our dependent tooling in diskimage-builder is also getting tested, is to run
the more complex case in our CI job.

This change is dependent upon two other changes which are under review.

Change-Id: I5b23403c783fa84b4158708741524c3dc9a92722
2024-10-24 10:56:31 -07:00
Ghanshyam Mann
7b807eff73 Enable GLOBAL_VENV in ironic grenade jobs
grenade by default enable GLOBAL_VENV which means it
install and run everything from virtual env

- https://review.opendev.org/c/openstack/grenade/+/930507

We faced the error in ironic grenade scripts in virtual env
so GLOBAL_VENV was disabled explicitly. This fixing the scripts
and enable GLOBAL_VENV in ironic jobs also.

Change-Id: I48ee1dd4adc2e5bcc18c5f116d979e7524248495
2024-10-17 14:48:11 -07:00
Zuul
45ee7dc365 Merge "CI: Add a 4k disk CI job" 2024-10-17 15:37:45 +00:00
Ghanshyam Mann
5f58cbf22d Continue disable the GLOBAL_VENV in grenade job
Grenade is moving to virtual env by default
- https://review.opendev.org/c/openstack/grenade/+/930507

and ironic job is failing on virtual env
- https://zuul.opendev.org/t/openstack/build/f5c4aa3dd64047a1909c4a964ad89aa8/log/controller/logs/grenade.sh_log.txt#15028

Until ironic greande job is ready for virtual env,
let's continue disable it in ironic side.

Change-Id: Ia76054c7b977dd17778dc4c89e8e212ab22f51af
2024-10-15 22:02:35 -07:00
Julia Kreger
0d7fd73919 CI: Add a 4k disk CI job
Add a CI job to leverage a 4k logical block disk image which is
deployed to the remote system to ensure the build pipeline and
code to naviate 4k disk images is in working order.

Change-Id: If7aee654f9282b33ea489558f45f45cfed86e9d1
2024-10-02 14:25:19 -07:00
Dmitry Tantsur
72c792bb28
Temporarily disable PXE booting test in the standalone job
It only passes because the boot interface handling is broken in
ironic-tempest-plugin. Once something like
https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/925981
merges, it will start failing with a timeout.

Temporarily remove it from the list to allow progress on other changes.

Change-Id: I155f520be9b5815f390364c4de12528920b7594a
2024-08-27 14:46:50 +02:00
Riccardo Pittau
3f34f04bf0 [CI] Fix job parent name
ironic-tempest-partition-uefi-redfish-vmedia was renamed to
ironic-tempest-uefi-redfish-vmedia a long time ago

Change-Id: Iaa63e9cf12d47667955973033586fa65dd18e6b7
2024-08-08 11:23:26 +02:00
Zuul
fd11cd5bfb Merge "Test devstack OSCaas against all Ironic jobs" 2024-07-30 09:17:29 +00:00
Julia Kreger
8730a1a4b8 CI: Remove grub http boot from standalone CI test
Long story short, in some circles the EFI grub network boot
over http with VMs is regarded as unstable. What appears to
be happening, with service logs at least, is we get a HEAD
request (grub code always issues a HEAD request first to minimize
memory usage), and then re-requests the file contents.

So what we end up seeing on the grub side is:

error: Fail to receive a response! status=104

error: Fail to send a request! status=0x800000000000000f.

What appears to happen is things get gumed up in firmware and
the generally that means we can't run this test in CI.

Change-Id: I1471c9429b742abb250b9a3a910108f1711ad574
2024-07-08 14:28:15 +00:00
Zuul
3820fc19c9 Merge "Update the redfish interoperability profile" 2024-07-01 09:19:22 +00:00
Dmitry Tantsur
d28a61b2c0
Update the redfish interoperability profile
* Remove @Redfish.Copyright, it's not an allowed field.
* Remove unused fields such as AssetTag.
* Mark fields used in inspection and other optional features as
  optional.
* Add missing VirtualMedia on System and VirtualMedia fields.
* Add missing Thermal information and its subresources.
* Clarify which fields on System are links.
* Add Purpose field to all fields and actions.
* Expand the BIOS object with the actual requirements.
* Add ServiceRoot and services we use.
* Add missing resources related to RAID.

Change-Id: I35f8f49e4c70e736b685c3eeebf79326592b6314
2024-06-27 16:24:24 +02:00
cid
3fd1fb3518 Follow up to change on testing CI on ARM
Setting the minimum needed for configuring devstack.

Related-Change: #915441
Change-Id: Ia94ebe2d2a1bd66cd03a4c833273b20ff15171f4
2024-06-24 20:00:53 +01:00
Zuul
19c8efd9d7 Merge "Provision ARM (aarch64) fake-bare-metal-vms" 2024-06-19 16:59:05 +00:00
cid
209ba79732 Provision ARM (aarch64) fake-bare-metal-vms
This commit introduces support for provisioning ARM (aarch64)
fake-bare-metal VMs in Ironic for the purpose of eventually supporting
CI testing on ARM64 architecture-based hardware.

Change-Id: Ie4bff8892228275ad0fb940c30e8071f7f4c423f
2024-06-19 03:17:05 +01:00
Zuul
c75d04d68d Merge "Follow up to broken Zuul config" 2024-06-12 14:42:15 +00:00
Julia Kreger
46cc9e1d99 ci: fix https boot artifact path
Change-Id: Idb5720599f38b3732240e0feddacfdc739c5a67c
2024-06-07 14:41:02 -07:00
cid
e736513bec Follow up to broken Zuul config
Change-Id: I5f870dcf37bae492be30749e4e963425818e6df7
2024-06-05 12:23:52 +01:00
Zuul
df6342d1ab Merge "Fix negative lookahead assertion syntax error" 2024-05-23 16:19:33 +00:00
cid
74b148b685 Fix negative lookahead assertion syntax error
Python regexes are deprecated in Zuul, so this commit updates the
configuration to use RE2-compatible syntax.

Change-Id: If4973be103076f5a3879dc630e104d129377f7da
2024-05-23 13:56:19 +01:00
Jay Faulkner
223a700434 Test devstack OSCaas against all Ironic jobs
Depends-On: https://review.opendev.org/c/openstack/devstack/+/676016
Change-Id: Ia850715cad6f80be73372b5323d78f7a9ba74251
2024-05-14 13:34:54 -07:00
Zuul
b8bcfc33cb Merge "Remove SQLAlchemy tips jobs" 2024-05-14 17:22:53 +00:00
Zuul
0e4adceda3 Merge "Run neutron for the functional test job" 2024-05-01 04:55:23 +00:00
Julia Kreger
ae4b585343 Run neutron for the functional test job
The functional test job needs neutron for neutron dependent
tests to be able to execute. As such RabbitMQ and Neutron
are enabled for the functional test job at this time.

Change-Id: I04f76ca1570b969136c0922eb07bc85360369920
2024-04-18 21:19:41 -07:00
Takashi Kajinami
a27f29fb4c Remove SQLAlchemy tips jobs
The most recent SQLAlchemy and Alembic versions are now in
upper-constraints. As a result, this job has served its purpose and can
be removed. For more information, see [1].

[1] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/RBHXHTO3GUOOXVSZXD4C2O3TKDOH2QSC/

Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
Depends-on: https://review.opendev.org/c/openstack/requirements/+/879743
Change-Id: I51fe54d10f7b1c8fa9052f6e382a97861f469859
2024-04-15 08:27:55 +00:00
Winicius Silva
0f62bd2164 Fix spelling reported by codespell
Change-Id: I5a1f68189eb75b92bedeaaa8b645be7f10b0d30f
2024-04-12 14:34:49 -03:00
Julia Kreger
16e839d749 CI: Limit redfish https job to wholedisk images
Change-Id: I174b7e01e1009b6e44e529fbc1d4d1d0032f5f85
2024-04-01 17:50:39 -07:00
Zuul
9fa0320458 Merge "Add redfish https boot CI job" 2024-03-24 21:36:07 +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
Zuul
8fa1de8ab0 Merge "[codespell] Adding CI target for Tox Codespell" 2024-03-14 17:38:09 +00:00
Julia Kreger
fcbc2b6df6 Add redfish https boot CI job
Adds a job which utilizes the redfish-https boot mechanism
code which recently landed in ironic, which operates similar
to virtual media

Change-Id: Iad55a263ed34e6b121495b72a3c79449d7471901
2024-03-11 14:15:52 +00:00
Zuul
de3fd5d88f Merge "[CI] Support for running with shards" 2024-02-29 23:54:46 +00:00
Jay Faulkner
5606c431f2 [CI] Support for running with shards
Adds support for creating nodes with shards.
Adds multinode job to test >1 n-cpus against shards.

Change-Id: I269568d83f17879fed5ac1dd5916935aea1f7fbf
2024-02-29 18:51:56 +00:00
Julia Kreger
f28b23f8c8 Multiple CI updates/improvements
* Adds httpboot enabled CI

Sets the interfaces to be enabled on the standalone job
in anticipation for standalone job support for these
interfaces[0] and switches the boot from volume
job over to utilize httpboot by default.

* Phases out now-redundant ironic-standalone job

The ironic-standalone job does all the same work as the
ironic-standalone-redfish job, and IPMI CI jobs are covering
IPMI cases. So we don't need this anymore.

Also makes a note on another redfish job which is likely
redundant as well, although does not yet remove it.

* Fix IPMI Partition Job name

This is more of a test of OVN than of partition specifically,
in fact, it runs both wholedisk and partition jobs already. Make
the name more sensible.

[0]: https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/902171

Co-Authored-By: Julia Kreger <juliaashleykreger@gmail.com>
Change-Id: I6c41b8f124e2e1fbc314243bf821153d79e2e09b
2024-02-28 13:04:47 -08:00
Sharpz7
047b510417 [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: I82239bd5ca1b184e36c63d08413362c76fa8d4b4
2024-02-12 19:59:12 +00:00
Zuul
b256551b19 Merge "Disable legacy RBAC policy by default." 2024-01-23 21:58:26 +00:00
Zuul
2751ded6a4 Merge "Clean up removed services from devstack options" 2024-01-23 14:01:49 +00:00
Takashi Kajinami
c7d490f84f Clean up removed services from devstack options
The following services were removed some time ago.
 - nova-objectstore
 - nova-consoleauth
 - glance-registry

Change-Id: I3a577c44abe46fc6cb146f3540bded1c5cb4a511
2024-01-23 12:48:30 +09:00
Julia Kreger
4359323558 Disable legacy RBAC policy by default.
Change the default RBAC policy in ironic such that the new RBAC
policy is enforced by default and the legacy policy is not usable
unless explicitly re-enabled.

Depends-On: https://review.opendev.org/c/openstack/metalsmith/+/905012
Change-Id: Id559f1d8b9a76c8a570b598585c2d58c56d08837
2024-01-22 11:10:53 -08:00
Takashi Kajinami
7032a0d9ac Stop using a specific mirror in infra
The host currently hard-coded is not functioning. This replaces
the hard-coded mirror by the local CI mirror detected. In case
mirror info is not available then upstream centos mirror is used.

Change-Id: I96a8cb45154c9dbb50efecc22d34c4ff75c6722a
2024-01-22 22:11:08 +09:00
Dmitry Tantsur
4cc167cc6e
Test redfish with reduced sushy-tools feature set
Two jobs are changed to test a reduced Redfish implementation:
one PXE job uses the minimum version (only boot/power management)
one vmedia job uses the reduced version (+ NICs, virtual media)

Change-Id: Ib3afdb26b9cd36c0e4f3d736b9c69a5bf508fc0e
2023-12-15 11:38:00 +01:00
Riccardo Pittau
d6491b0c82 [trivial] remove note on non-voting snmp job
Also fix a couple of yaml lint errors

Change-Id: I47f1734fe9c7af75d8eda61a36b97df0ce360ed0
2023-12-01 09:15:59 +01:00
Julia Kreger
1ffdabed9d Change snmp job to not use a focal node
tl;dr, devstack no longer supports focal, and now errors which
results in the job failing.

Also changes the snmp job to utilize the test_ramdisk_iso
feature, as *opposed* to a full deployment because iPXE
shipped with Ubuntu no longer likes to chain boot in UEFI
mode to a block device. The easiest path, is just to run
a ramdisk in that case, which also sort of mirrors what
users of the SNMP power interface *tend* to do.

Related-Bug: #2034588

Change-Id: I276885b8f0492ead8cea38fe13826123131984ea
2023-11-30 09:02:57 -08:00
Zuul
266f991a13 Merge "Make sqlalchemy-2x job voting again" 2023-11-12 08:31:12 +00:00
Zuul
dbd8cf7d1b Merge "Fix unit tests broken by olso.utils" 2023-11-09 22:04:04 +00:00
Takashi Kajinami
f42b359bd9 Make sqlalchemy-2x job voting again
... because the new oslo.utils version is now used in CI.

Depends-on: https://review.opendev.org/c/openstack/requirements/+/900517
Related-Bug: #2042886
Change-Id: I855103c5ee17db3c690397e3db78139f3264735c
2023-11-10 00:45:02 +09:00
Takashi Kajinami
fa8df69194 Fix unit tests broken by olso.utils
Some of the object unit tests grub Mock object unintentionally, and
that results in failure during initializing an versioned object,
because the Mock object does not present its version correctly.

This fixes that problem.

The sqlalchemy-2x job is made non-voting because this job requires
oslo.utils 6.3.0 which is blocked by this problem.

Closes-Bug: #2043116
Related-Bug: #2042886
Change-Id: I1a622ab9c766d46b7eb4442848e91f25b26f6c61
2023-11-10 00:41:20 +09:00
Zuul
b58f6d394e Merge "Enable OVN CI" 2023-10-10 16:01:15 +00:00
Julia Kreger
3f77091c63 Enable OVN CI
Adds basic testing for PXE/iPXE boot secenarios where the OVN
DHCP service is used instead of dnsmasq.

Also adds a release note and documentation to cover the details
and caveats of using ovn as we have discovered through this process.

Change-Id: I28cd20a7f271220d8ca335895ca9e302452fd069
2023-10-03 14:24:34 +00:00