Commit Graph

127 Commits

Author SHA1 Message Date
Zuul 7a6af41a26 Merge "Deprecate ironic-inspector support" 2024-02-20 19:53:25 +00:00
Zuul eed3a81cac Merge "Switch the dibipa jobs to Redfish" 2024-02-02 17:55:29 +00:00
Dmitry Tantsur dcbf1d98b9
Deprecate ironic-inspector support
Switches to the built-in inspection by default and deprecates support
for ironic-inspector. The actual removal should happen after we get
inspection rules in since it's the last feature that is relevant for
bifrost.

Depends-On: https://review.opendev.org/c/openstack/ironic/+/907398
Change-Id: Id157d5ada2ff3f87f3f4d161423b1f3989f73194
2024-02-01 14:50:16 +01:00
Sharpz7 1d68cd7708 [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: I08ecde1afbda435e0e45d2b6d1edbca52a643e07
2024-01-25 21:31:50 +00:00
Dmitry Tantsur a385e0956e
Switch the dibipa jobs to Redfish
IPMI in these jobs regularly fails with:

    Failed to prepare node 4e41df61-84b1-5856-bfb6-6b5f2cd3dd11 for cleaning:
    IPMI call failed: raw 0x00 0x08 0x05 0xa0 0x04 0x00 0x00 0x00."

Since the goal of these jobs is not to test IPMI, and since we have
never seen this issue outside of these jobs, just switch them to Redfish.

Change-Id: I34f1bb57909acab4be21588d11e4de37de29839d
2024-01-09 13:48:42 +01:00
Dmitry Tantsur ea0b4ec50b
Configure the new inspection implementation
The ironic-inspector one is still the default at this point.

Change-Id: I431ced6496ca6dac078a240f653afd33256048f6
2024-01-05 15:13:56 +01:00
Dmitry Tantsur 05ee7f72ab
Drop support for Ubuntu Focal
Its Python 3.8 is not supported by any active version of Ansible.
Focal has been best-effort for a while already.

Change-Id: Id04f9b9835cc705716a797caa7beef2536027186
2023-12-19 13:17:10 +01:00
Dmitry Tantsur f66cd939a2
Support for Debian Bookworm
Change-Id: Ia687d7652980da81f94b6a7644faa26354afc65b
2023-12-08 15:58:25 +01:00
Dmitry Tantsur 16b34f378d Remove Fedora from the CI
It is currently broken since the only supported version (36) is EOL.
The OpenDev infrastructure will stop supporting Fedora:
https://lists.opendev.org/archives/list/service-discuss@lists.opendev.org/thread/IOYIYWGTZW3TM4TR2N47XY6X7EB2W2A6/

The UEFI netboot job has been migrated to Stream 9.

Change-Id: Ie4e67491a62a4c6cb4ca9d6e700cfc226a121235
2023-08-21 09:45:52 +02:00
Riccardo Pittau f3477e4458 Revert "Pin systemd to 252-15 for CentOS Stream 9"
This reverts commit dd9f50258b.

Change-Id: Iec5e04051f1f13ebc49b6bb9fdfebfa2213c14e4
2023-08-10 08:58:38 +02:00
Riccardo Pittau dd9f50258b Pin systemd to 252-15 for CentOS Stream 9
Newest versions break libvirtd
For more info check https://bugs.launchpad.net/neutron/+bug/2029335

Disabling upgrade job until we fix CS9 in all stable branches

Change-Id: If5da0b1b81e17ad0dd6dc1ac62442a84510e35ce
2023-08-03 17:04:31 +02:00
Dmitry Tantsur 08a2c52d61 Upgrade from 2023.1 and use Jammy for the upgrade job
But add the jammy shimx64.efi.signed fix also to focal.

Change-Id: Ib357e967ec1c2820bf23b52fbb3e95528454afb3
2023-03-15 16:40:32 +01:00
Riccardo Pittau 86dc21a3fe Support ansible-collections-openstack 2 and later
Change-Id: Ibff355af7be0735741a2fbb1a81c3c64e3f52a94
2023-03-01 10:29:32 +01:00
Zuul 23f23dbca7 Merge "CI: Rename kolla-ansible-ubuntu-bifrost job" 2023-02-03 16:54:10 +00:00
Michal Nasiadka 2eb367de9b CI: Rename kolla-ansible-ubuntu-bifrost job
Kolla-Ansible  has dropped install_type, so all -source jobs have
been renamed.

Change-Id: I1a75d00f22ac22d46e5b3b0b5de72fbba039a1dd
2023-01-24 18:34:06 +01:00
Steve Baker 51d988af54 Support PXE network boot with grub
It is now possible to do a PXE network boot with grub as an
alternative to iPXE. Grub is loaded via the signed shim, so it may
allow end-to-end automated deployments with secure-boot enabled.

To use grub network boot, deploy bifrost with variable
``default_boot_interface`` set to ``pxe``.

This feature is tested by job
bifrost-integration-redfish-uefi-fedora-latest.

test-bifrost.sh is also modified to only enable the hardware-type
driver which matches driver used for test nodes. This allows a default
interface to be set which is not supported by one of the enabled
drivers (for example, ironic will exit because the ilo driver doesn't
support the pxe boot interface)

Change-Id: I8ac33d0aa0f71b092d2c0538ac3a73491ff44921
2023-01-19 10:33:21 +13:00
Zuul a066309e94 Merge "Upgrade from zed" 2022-10-28 16:39:07 +00:00
Zuul 514b1939c8 Merge "Move bifrost tests to Ubuntu Jammy" 2022-10-28 16:34:26 +00:00
Jakob Meng de0d4c738e Use openstacksdk<0.99.0 and a-c-o<2.0.0 on bifrost-*collections-* jobs
The latest release 1.9.1 of Ansible OpenStack Collection [1] is
compatible only to openstacksdk <0.99.0. Until the former has been
fixed, a workaround [2] is required in Bifrost to pin both the
Ansible OpenStack Collection as well as openstacksdk.

These pinned versions will be overwritten when their repositories
are listed in job.required-projects in .zuul.yaml, which we do in
the master branch of Ansible OpenStack collection [3] for both jobs
bifrost-collections-src and bifrost-keystone-collections-src.

This has two side effects: First, Bifrost's CI jobs use the master
branch of both openstacksdk and Ansible OpenStack Collection for
both bifrost-*collections-* jobs which thus differ from other
Bifrost jobs that use pinned releases.
Second, it causes a chicken-and-egg problem: Applying a breaking
change to module openstack.cloud.baremetal_node [4] will break
Bifrost but could easily be fixed [5]. The fix would be backward
compatible to previous releases of Ansible OpenStack Collection
and openstacksdk. But merging that fix [5] without patching
module openstack.cloud.baremetal_port [6] first would break the
bifrost-*collections-* jobs. The patch for openstack.cloud.\
baremetal_port [6] would break bifrost-*collections-* jobs
without the Bifrost fix [5].

The solution is to use the last known working releases of
Ansible OpenStack collection and openstacksdk in both
bifrost-*collections-* jobs like all other Bifrost jobs already
do.

Once we release Ansible OpenStack collection 2.0.0, we simply
have to revert Dmitry's workaround [2] and this patch.

[1] https://opendev.org/openstack/ansible-collections-openstack
[2] 03ddd02656
[3] 41f3007a80/.zuul.yaml (L286)
[4] https://review.opendev.org/c/openstack/ansible-collections-openstack/+/854113
[5] https://review.opendev.org/c/openstack/bifrost/+/859430/

Change-Id: I1bb2fc8057e769dafdbeb10b4874591c03c89d1e
2022-09-30 14:47:23 +02:00
Riccardo Pittau 26ac5a1a5a Upgrade from zed
We should test upgrade from stable/zed now

Change-Id: Ie874182f9a3366203c9a0180203291ce647fadf8
2022-09-26 13:30:17 +00:00
Riccardo Pittau 4626648887 Move bifrost tests to Ubuntu Jammy
Leave ubuntu focal job defined for compatiblity with other projects
and older versions.

Change-Id: Idcfde886c9a92a5d09a07b1b8e88caa6a388f92a
2022-09-26 15:29:43 +02:00
OpenStack Release Bot f44e16a125 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: I12214e0794a8c434c64fbdda472e0c11f8f00862
2022-09-23 08:41:07 +00:00
Zuul 49d48f729c Merge "Fix upgrade on CentOS and with Keystone enabled" 2022-07-18 18:40:49 +00:00
Dmitry Tantsur 03ddd02656 Fix upgrade on CentOS and with Keystone enabled
* Downgrade openstacksdk instead of the collections since some keystone
  code does not work on old collection and new SDK.
* Force checkout on upgrade since we have local changes to requirements

Reverts commit c12b7fafe8.

Change-Id: I14a83b703c1c76fd311c60aa23880b5708105165
2022-07-08 16:28:37 +02:00
Riccardo Pittau db0037150e Remove old unused CentOS Stream 8 based jobs
They've been replaced by CentOS Stream 9 based jobs

Change-Id: I05be546aa8d4601bb31ee559694b581acad2aa5b
2022-06-16 17:41:42 +02:00
Zuul 115ffee589 Merge "[CI] Test Kolla on Ubuntu" 2022-05-25 11:32:43 +00:00
Dmitry Tantsur 901d587f88 Remove support for all distributions with Python 3.6
They are broken after setup.cfg changes have been done to projects.

Change-Id: I762755024322afc6517adfb8ad79adfa3ec346cf
2022-05-18 18:39:37 +02:00
Radosław Piliszek 1d9f1c4a34 [CI] Test Kolla on Ubuntu
This is because CentOS Stream 8 is no longer supported in Zed and
Stream 9 support is not ready on Kolla's side.
Long-term it is also ok to keep testing here against Ubuntu
because it is a bit stabler than Stream in general.

Change-Id: I09eb82ca122483fbd0f91486af35e80698c92ce0
Depends-On: https://review.opendev.org/c/openstack/kolla/+/842368
2022-05-18 14:22:26 +00:00
Riccardo Pittau 0761867184 Upgrade from stable/yoga
We should test upgrade from stable/yoga now

Change-Id: Ia87c77233c83ef612e2cba817865928a365a243f
2022-05-10 15:06:40 +02:00
OpenStack Release Bot e5f928ee46 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: Ifc2deb2803ab223445dfc58b719a74747d47ded1
2022-03-22 15:32:46 +00:00
Riccardo Pittau bb43fd8b75 Fix dib ipa jobs
The dib image is based on debian "bullseye" which currently suffers of
two issues:
- does not get an ip when booting
- does not recognize any partition for the EFI installation

The first issue is fixed by the patch in diskimage-builder this patch
depends on.
The second issue is fixed addin the block-device-efi dib element to
the dib image.

Depends-On: I117964a60615a5b7e9984f52f02cd018d1a48ed0

Story: 2009756
Task: 44226

Change-Id: I7ee0bd04f387e7fc2055feeab345f80ca6b3ad0a
2022-02-15 15:49:48 +01:00
Riccardo Pittau 909c04059a Add dhcp, vmedia and dibipa CentOS Stream 9 jobs
This should complete the CentOS Stream 9 support for bifrost

Change-Id: I0479a79a6c81be83496b27a1d396ef5debb88090
2022-01-31 17:43:09 +01:00
Riccardo Pittau d289757401 Add CentOS Stream 9 keystone integration job
Also change bifrost-integration-tinyipa-keystone-centos-8 parent to
bifrost-integration-tinyipa-centos-8

Change-Id: I9004f0dde0d20203360e7a5b945ba30095db3457
2022-01-21 14:42:08 +01:00
Riccardo Pittau 03b56cf590 Run bifrost on CentOS Stream 9
- Adjust bindep packages
- Remove unneded trousers package
- Enable CRB repository for CentOS Stream 9 for libvirt packages
- Allow ssh-rsa algorithm for CentOS Stream 9
- Create a voting CentOS Stream 9 job

Change-Id: I718262b40e268836812d4c38df79c8d9d8f36513
2022-01-10 15:46:22 +00:00
Zuul 36fc1d94af Merge "Remove unused integration job" 2021-12-06 11:37:26 +00:00
Zuul 65bddfbe31 Merge "Upgrade from Xena in the upgrade job" 2021-11-24 09:52:26 +00:00
Riccardo Pittau ec042fa3b8 Remove unused integration job
The ansible-collections-openstack project has moved to
bifrost-integration-tinyipa-keystone-ubuntu-focal since a while.
No other projects are using bifrost-integration-tinyipa-keystone-ubuntu-bionic

Change-Id: Icf40c0ded39b2afa9a667425971faa61f260c9c8
2021-11-24 07:51:54 +01:00
Dmitry Tantsur 694809bc94 Upgrade from Xena in the upgrade job
Change-Id: I410fa8853773b198381cf22ea96bce0e45f24b6e
2021-11-23 11:41:39 +01:00
Dmitry Tantsur 69cbcf4348 Use UEFI by default and deprecate legacy boot
Change-Id: If31bb7e15dd1213b3b17f1aa2a80c0307f2fca91
2021-11-22 10:35:13 +01:00
Riccardo Pittau a2a9b7267b Support debian 11 "bullseye"
Change-Id: Iebf15915ac6cd1c6a575923bf1b4828fab7b1385
2021-09-24 10:51:56 +02:00
Riccardo Pittau e2928841ec Add redfish vmedia jobs to gate
They should be here as they're voting jobs.

Change-Id: Ied3f4e9f61f6c55b723e6c557baad1d766e27745
2021-09-22 15:21:31 +02:00
OpenStack Release Bot 5707aff718 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: Idaae2f7d3385dee3b90dd8a2af6416689d781e3c
2021-09-21 17:31:03 +00:00
Dmitry Tantsur 4f2fd6df32 Use TLS for virtual media when TLS is enabled
Virtual media images can potentially contain sensitive data, such as
password hashes or private keys. This change adds TLS to this traffic.

A new HTTP server is now started with Nginx, serving the same /httpboot
directory as the old one. If vmedia_enable_tls is true, the /redfish
and /ilo directories are only accessible through it.

One of the redfish-vmedia CI jobs has been switched to using TLS.

Change-Id: I024b81efdbebe08ddb5a20cd0d5e7ae61a180f1b
2021-08-25 20:04:18 +02:00
Dmitry Tantsur 984d979419 CI: upgrade from Wallaby
Change-Id: I4aa5d67eccf5bf61e38550b9edad605ed4c55d9e
2021-07-13 17:39:51 +02:00
Dmitry Tantsur ff637c4311 Skip running jobs on ironic and inspector unit tests
Bifrost jobs run on ironic and ironic-inspector as well, we need to skip
integration jobs if only unit tests are modified.

Change-Id: I7796f0b4d702b8347f3dadb4f3c907b8b499a819
2021-06-17 19:06:35 +02:00
Julia Kreger 1075ee9a28 Add a benchmark job for ironic
Adds a new job which can be invoked by Ironic to allow it to easily
benchmark in CI on a minimalist deployment.

Depends-On: https://review.opendev.org/c/openstack/ironic/+/788335
Change-Id: Ib32f4f05133f68f4c79cd0861597bbf81a736a97
2021-05-26 07:33:04 -07:00
Radosław Piliszek e3d16ab416 [CI] Make Kolla job running again
Kolla renamed the CentOS 8 Stream jobs recently.

Change-Id: Ibb9cf61fa1de6f8f131f10c3a841efddb1bc6670
2021-04-22 14:50:26 +00:00
OpenStack Release Bot 7271695714 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I16ef205415a8936c2b2d3c686699db2bd0047be7
2021-03-31 09:23:46 +00:00
Dmitry Tantsur abf7d3fcb3 Add basic upgrade jobs
The CI scripts install Bifrost on old stable, test it, then
do the same on master.

Change-Id: I300828d54af78ef4843094ff231652adc4566aa0
2021-01-19 16:19:03 +01:00
Riccardo Pittau 986427ce8e Remove lower-constraints job
As discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Change-Id: Ie5e6a655b103dd7edb447f56bff8da870193deba
2020-12-15 18:38:49 +01:00