From 6ecc75285dff12d432d2033a097cedff45f00849 Mon Sep 17 00:00:00 2001 From: GanghyeonSeo Date: Sat, 25 Oct 2025 22:33:54 +0900 Subject: [PATCH] external: fix quote parsing and message in import-external-cluster.sh Fixed a syntax error caused by incorrect quotation parsing in the importClusterID function of import-external-cluster.sh, and updated the output message shown while waiting for the SubVolumeGroup CR to be created. Signed-off-by: GanghyeonSeo (cherry picked from commit f9acdab1469e37fb5c750e101c33d39216c00d60) --- deploy/examples/import-external-cluster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/examples/import-external-cluster.sh b/deploy/examples/import-external-cluster.sh index 81aee863f..93d86a91d 100644 --- a/deploy/examples/import-external-cluster.sh +++ b/deploy/examples/import-external-cluster.sh @@ -125,13 +125,13 @@ eof function importClusterID() { if [ -n "$RADOS_NAMESPACE" ]; then createRadosNamespaceCR - timeout 20 sh -c "until [ $($KUBECTL -n "$NAMESPACE" get CephBlockPoolRadosNamespace/"$RADOS_NAMESPACE" -o jsonpath='{.status.phase}' | grep -c "Ready") -eq 1 ]; do echo "waiting for radosNamespace to get created" && sleep 1; done" + timeout 20 sh -c "until [ \$($KUBECTL -n \"$NAMESPACE\" get CephBlockPoolRadosNamespace/$RADOS_NAMESPACE -o jsonpath='{.status.phase}' | grep -c 'Ready') -eq 1 ]; do echo 'waiting for radosNamespace to get created' && sleep 1; done" CLUSTER_ID_RBD=$($KUBECTL -n "$NAMESPACE" get cephblockpoolradosnamespace.ceph.rook.io/"$RADOS_NAMESPACE" -o jsonpath='{.status.info.clusterID}') RBD_STORAGE_CLASS_NAME=ceph-rbd-$RADOS_NAMESPACE fi if [ -n "$SUBVOLUME_GROUP" ]; then createSubvolumeGroupCR - timeout 20 sh -c "until [ $($KUBECTL -n "$NAMESPACE" get CephFilesystemSubVolumeGroup/"$SUBVOLUME_GROUP" -o jsonpath='{.status.phase}' | grep -c "Ready") -eq 1 ]; do echo "waiting for radosNamespace to get created" && sleep 1; done" + timeout 20 sh -c "until [ \$($KUBECTL -n \"$NAMESPACE\" get CephFilesystemSubVolumeGroup/$SUBVOLUME_GROUP -o jsonpath='{.status.phase}' | grep -c 'Ready') -eq 1 ]; do echo 'waiting for subVolumeGroup to get created' && sleep 1; done" CLUSTER_ID_CEPHFS=$($KUBECTL -n "$NAMESPACE" get cephfilesystemsubvolumegroup.ceph.rook.io/"$SUBVOLUME_GROUP" -o jsonpath='{.status.info.clusterID}') CEPHFS_STORAGE_CLASS_NAME=cephfs-$SUBVOLUME_GROUP fi