Skip to content

Commit

Permalink
Merge pull request #201 from simondeziel/storage-buckets
Browse files Browse the repository at this point in the history
tests/storage-buckets: enable test except for ceph pools
  • Loading branch information
tomponline authored Jun 18, 2024
2 parents 3f62ad4 + 44568fe commit ecaa94e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ jobs:
os: "24.04"
- test: efi-vars-editor-vm # not compatible with 5.0/*
track: "5.0/edge"
- test: storage-buckets # waiting for integration with microceph
- test: "storage-vm ceph" # waiting for integration with microceph
- track: "5.0/edge"
os: "24.04"
Expand Down
18 changes: 12 additions & 6 deletions tests/storage-buckets
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ fi

# Grab the architecture so we can install the correct pre-built minio.
arch="$(uname -m)"
if [ "${arch}" = "aarch64" ]; then
if [ "${arch}" = "x86_64" ]; then
arch="amd64"
elif [ "${arch}" = "aarch64" ]; then
arch="arm64"
elif [ "${arch}" = "ppc64el" ]; then
arch="ppc64le"
Expand All @@ -28,12 +30,16 @@ fi
poolDriverList="${1:-dir btrfs lvm lvm-thin zfs ceph}"

if echo "${poolDriverList}" | grep -qwF "ceph"; then
echo "::warning::Skipping test on ceph until we can integrate with microceph"
poolDriverList="$(echo "${poolDriverList}" | sed 's/ \?\bceph\b//')"
fi

if echo "${poolDriverList}" | grep -qwF "ceph"; then
# XXX: LXD will be reloaded further down
snap set lxd ceph.external=true
lxd waitready --timeout=300

# Install dependencies
apt-get update
apt-get install --no-install-recommends --yes ceph-common
install_deps ceph-common
fi

# Clean up the build dir in case it hung around from a failed test.
Expand All @@ -42,11 +48,11 @@ mkdir -p /opt/minio

# Download the minio server.
curl -sSfL "https://dl.min.io/server/minio/release/linux-${arch}/minio" --output "/opt/minio/minio"
chmod +x "opt/minio/minio"
chmod +x "/opt/minio/minio"

# Also grab the latest minio client to maintain compatibility with the server.
curl -sSfL "https://dl.min.io/client/mc/release/linux-${arch}/mc" --output "/opt/minio/mc"
chmod +x "opt/minio/mc"
chmod +x "/opt/minio/mc"

# Set the snap config key for minio and reload LXD to have it take effect.
snap set lxd minio.path=/opt/minio
Expand Down

0 comments on commit ecaa94e

Please sign in to comment.