]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster 69848/head
authorAfreen Misbah <afreen@ibm.com>
Wed, 27 May 2026 00:07:38 +0000 (05:37 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 30 Jun 2026 21:56:53 +0000 (03:26 +0530)
commitdc3f1ab474862bb762740368e4dcd75eec0e47d8
treeadea0bb9d97e3a1a6883bc44ea0d062d144cd04a
parent51e49bbdc74972b8b95bc00308016f1971aee26d
mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster

with_libvirt wraps commands in sg libvirt -c "$1", adding an extra
shell layer. Nested double quotes inside the outer double-quoted
string caused the argument to be split — with_libvirt received a
truncated $1, producing "Unterminated quoted string" on the remote
shell.

Drop the unnecessary inner double quotes around cephadm shell
arguments since cephadm shell accepts the command as separate args.
Use single quotes for the grep pattern inside the double-quoted
string so it survives the sg subshell.

Signed-off-by: Afreen Misbah <afreen@ibm.com>
(cherry picked from commit ae1fee05818e202287609ec1cbebd5f73ed4fd81)
src/pybind/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh
src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh