Skip to content

mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster - #69116

Merged
nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-cephadm-e2e-quoting
May 27, 2026
Merged

nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-cephadm-e2e-quoting

Conversation

@afreen23

Copy link
Copy Markdown
Contributor

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.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

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 <[email protected]>
@afreen23 afreen23 changed the title mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster May 27, 2026
@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins testd ashboard cephadm

@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@afreen23 afreen23 changed the title mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster May 27, 2026
@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@afreen23

afreen23 commented May 27, 2026 •

Copy link
Copy Markdown
Contributor Author

e2e tests running now https://jenkins.ceph.com/job/ceph-dashboard-cephadm-e2e/22830/console earlier failing with syntax error:

...
#############################################################
May 27 00:01:32 ceph-node-00 cloud-init[1020]: kcli boot finished, up 143.83 seconds
,...
sh: 1: Syntax error: Unterminated quoted string
+++ on_error 2 5 
+++ set +x
ERROR 2 thrown on line 5

...

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard May 27, 2026
@nizamial09
nizamial09 merged commit ab49b3a into ceph:main May 27, 2026
10 of 13 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard May 27, 2026
@nizamial09
nizamial09 deleted the fix-cephadm-e2e-quoting branch May 27, 2026 05:52
@github-actions github-actions Bot mentioned this pull request Aug 3, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants