From 21b075cd3f9c56327fd0446365a90715f44b1219 Mon Sep 17 00:00:00 2001
From: Dmitry Tantsur <dtantsur@protonmail.com>
Date: Tue, 17 May 2022 12:50:51 +0200
Subject: [PATCH] Add a metalsmith job with legacy boot

With netboot removal, this will be the only job that tests local legacy
boot with partition images.

Depends-On: https://review.opendev.org/c/openstack/metalsmith/+/841911
Change-Id: Id3f165286cfc47dcf45c042115a63804a0c671e8
---
 zuul.d/ironic-python-agent-jobs.yaml | 16 ++++++++++++++--
 zuul.d/project.yaml                  |  2 ++
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/zuul.d/ironic-python-agent-jobs.yaml b/zuul.d/ironic-python-agent-jobs.yaml
index 4d3de1852..05c8116b9 100644
--- a/zuul.d/ironic-python-agent-jobs.yaml
+++ b/zuul.d/ironic-python-agent-jobs.yaml
@@ -137,10 +137,22 @@
         # excluding it from the enabled list to save gate time.
         IRONIC_ENABLED_DEPLOY_INTERFACES: "direct"
 
-# This job will superceed the above centos7 metalsmith integration job
 - job:
     name: metalsmith-integration-ipa-src-uefi
-    parent: metalsmith-integration-glance-localboot-centos8-uefi
+    parent: metalsmith-integration-glance-centos8-uefi
+    required-projects:
+      - openstack/ironic-python-agent
+      - openstack/ironic-python-agent-builder
+      - openstack/ironic-lib
+    vars:
+      devstack_localrc:
+        # Don't waste time on cleaning, it's checked everywhere else
+        IRONIC_AUTOMATED_CLEAN_ENABLED: False
+        IRONIC_BUILD_DEPLOY_RAMDISK: True
+
+- job:
+    name: metalsmith-integration-ipa-src-legacy
+    parent: metalsmith-integration-glance-centos8-legacy
     required-projects:
       - openstack/ironic-python-agent
       - openstack/ironic-python-agent-builder
diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml
index 547edd436..ca5da8f48 100644
--- a/zuul.d/project.yaml
+++ b/zuul.d/project.yaml
@@ -15,6 +15,7 @@
         - ipa-tempest-bios-ipmi-direct-src
         - ipa-tempest-uefi-redfish-vmedia-src
         - metalsmith-integration-ipa-src-uefi
+        - metalsmith-integration-ipa-src-legacy
         - ironic-standalone-ipa-src
         # NOTE(dtantsur): non-voting because IPA source code is very unlikely
         # to break them. They rather serve as a canary for broken POST jobs.
@@ -34,6 +35,7 @@
         - ipa-tempest-bios-ipmi-direct-src
         - ipa-tempest-uefi-redfish-vmedia-src
         - metalsmith-integration-ipa-src-uefi
+        - metalsmith-integration-ipa-src-legacy
         - ironic-standalone-ipa-src
     post:
       jobs: