Skip to content

Commit

Permalink
use filestore isntance from network
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Pawłowski <[email protected]>
  • Loading branch information
pawloch00 committed Feb 7, 2025
1 parent 4bf1999 commit 28efc60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/storage_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
FS_DELETE_WORKLOAD: "fs-delete-workload"
FS_READ_WORKLOAD: "fs-read-workload"
FS_WRITE_WORKLOAD: "fs-write-workload"
CLUSTER_ARGUMENTS: "--network=${{secrets.NETWORK_NAME}} --subnetwork=${{secrets.SUBNETWORK_NAME}} --maintenance-window=23:50"

jobs:
run-filestore-workload:
Expand Down Expand Up @@ -148,12 +149,13 @@ jobs:
run: |
python3 xpk.py cluster create --cluster $TPU_FILESTORE_CLUSTER_NAME_CREATE --tpu-type=v4-8 --num-slices=2 \
--zone=us-central2-b --default-pool-cpu-machine-type=n1-standard-16 --default-pool-cpu-num-nodes=16 \
--reservation='${{ secrets.GCP_TPU_V4_RESERVATION }}' --enable-workload-identity --enable-gcpfilestore-csi-driver --custom-cluster-arguments="--maintenance-window=23:50"
--reservation='${{ secrets.GCP_TPU_V4_RESERVATION }}' --enable-workload-identity --enable-gcpfilestore-csi-driver --custom-cluster-arguments="--maintenance-window=23:50" \
----custom-cluster-arguments="${CLUSTER_ARGUMENTS}"
- name: Create auto-mount GCP Filestore Storage instance
run: |
python3 xpk.py storage create $FS_STORAGE_NAME --cluster=$TPU_FILESTORE_CLUSTER_NAME_CREATE --zone=us-central2-b --type=gcpfilestore \
--auto-mount=true --vol=vol1 --size=1024 --tier=BASIC_HDD \
--mount-point='/fs-test-mount-point' --readonly=false
--mount-point='/fs-test-mount-point' --readonly=false --network=${{secrets.NETWORK_NAME}}
- name: List and verify existing Storages
run: python3 xpk.py storage list --cluster $TPU_FILESTORE_CLUSTER_NAME_CREATE --zone=us-central2-b | tee output.txt | grep $FS_STORAGE_NAME || (echo 'No storage found' && exit 143)
- name: Run workload to write file on filestore
Expand Down

0 comments on commit 28efc60

Please sign in to comment.