upgrade testing: commit missing volume specification (#25305)

In #25285 we converted the CSI workload for upgrade testing to use a self-hosted
NFS. But the volume spec name got changed to `volume.hcl` in the process, which
is in our `.gitignore` file for the repo. We missed this during testing because
the file existed locally, but it fails in nightly runs.

Ref: https://github.com/hashicorp/nomad/pull/25285
Ref: https://github.com/hashicorp/nomad-e2e/actions/runs/13703979647/job/38324786351
This commit is contained in:
Tim Gross
2025-03-06 14:36:34 -05:00
committed by GitHub
parent 73ceacd236
commit 694b10d71c
2 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
type = "csi"
id = "nfsTestVolume"
name = "nfsTestVolume"
plugin_id = "rocketduck-nfs"
capability {
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
}
capability {
access_mode = "multi-node-single-writer"
attachment_mode = "file-system"
}
capability {
access_mode = "multi-node-reader-only"
attachment_mode = "file-system"
}
parameters {
uid = "1000"
gid = "1000"
mode = "770"
}

View File

@@ -30,12 +30,13 @@ checkPlugin() {
last_error="expected plugin to have at least 1 healthy nodes, found none"
return 1
fi
last_error=
return 0
}
createVolume() {
dir=$(dirname "${BASH_SOURCE[0]}")
nomad volume create "${dir}/volume.hcl" || {
nomad volume create "${dir}/nfs-volume.hcl" || {
echo "Could not register volume"
exit 1
}