From 5a14ae734d38df2f8691840e07f3be62edccbb37 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 10 Oct 2024 09:50:38 -0700 Subject: [PATCH] Add raxflex provider and debian-bullseye image This adds the initial nodepool-in-zuul config to: * Tell zuul that it's responsible for an image named "debian-bullseye" * Attach the job to a pipeline that builds missing images * Connect to raxflex and upload that image * Use that image when launching nodes with a label of "niz-debian-bullseye-normal" Change-Id: I8a838253a4683f34f538c90949369ba2d192e8d7 --- zuul.d/flavors.yaml | 2 ++ zuul.d/images.yaml | 3 +++ zuul.d/labels.yaml | 7 +++++++ zuul.d/project.yaml | 7 +++++++ zuul.d/providers.yaml | 23 +++++++++++++++++++++++ 5 files changed, 42 insertions(+) create mode 100644 zuul.d/flavors.yaml create mode 100644 zuul.d/images.yaml create mode 100644 zuul.d/labels.yaml create mode 100644 zuul.d/providers.yaml diff --git a/zuul.d/flavors.yaml b/zuul.d/flavors.yaml new file mode 100644 index 0000000..88376a5 --- /dev/null +++ b/zuul.d/flavors.yaml @@ -0,0 +1,2 @@ +- flavor: + name: normal diff --git a/zuul.d/images.yaml b/zuul.d/images.yaml new file mode 100644 index 0000000..3d96def --- /dev/null +++ b/zuul.d/images.yaml @@ -0,0 +1,3 @@ +- image: + name: debian-bullseye + type: zuul diff --git a/zuul.d/labels.yaml b/zuul.d/labels.yaml new file mode 100644 index 0000000..0612a41 --- /dev/null +++ b/zuul.d/labels.yaml @@ -0,0 +1,7 @@ +# During testing, prefix all label names with "niz-" so it's very +# clear which system we're using. + +- label: + name: niz-debian-bullseye-normal + image: debian-bullseye + flavor: normal diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index a7e084a..9716820 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -9,3 +9,10 @@ - name: image_upload_secret secret: image-upload-secret pass-to-parent: true + image-build: + jobs: + - opendev-build-diskimage-debian-bullseye: + secrets: + - name: image_upload_secret + secret: image-upload-secret + pass-to-parent: true diff --git a/zuul.d/providers.yaml b/zuul.d/providers.yaml new file mode 100644 index 0000000..ab745a3 --- /dev/null +++ b/zuul.d/providers.yaml @@ -0,0 +1,23 @@ +- section: + name: raxflex-base + abstract: true + connection: raxflex + boot-timeout: 120 + launch-timeout: 600 + flavors: + - name: normal + flavor-name: gp.0.4.8 + images: + - name: debian-bullseye + +- section: + name: raxflex-sjc3 + parent: raxflex-base + region: SJC3 + +- provider: + name: raxflex-sjc3-main + section: raxflex-sjc3 + labels: + - name: niz-debian-bullseye-normal + key-name: infra-root-keys-2024-04-08