Skip to content

mgr/dashboard: require nodeenv >= 1.11.0 and drop the chown workaround - #72339

Merged
djgalloway merged 1 commit into
ceph:mainfrom
tchaikov:wip-dashboard-nodeenv-1.11
Oct 7, 2026
Merged

djgalloway merged 1 commit into
ceph:mainfrom
tchaikov:wip-dashboard-nodeenv-1.11

Conversation

@tchaikov

@tchaikov tchaikov commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

nodeenv unpacks the node tarball under "src", and the files there are owned by uid 1000. When we build in a container with an id-mapped namespace, that uid can map to a bad one outside it, so we used to chown "src" after installing node. Since nodeenv 1.11.0, a prebuilt install removes "src" once node is installed, so there is nothing left to chown. See ekalinin/nodeenv#404.

Require nodeenv >= 1.11.0 and drop the chown. Also mark the custom command VERBATIM. Without it, the ">" in the version specifier reaches the shell unescaped and is taken as a redirect.

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.

nodeenv unpacks the node tarball under "src", and the files there are
owned by uid 1000. When we build in a container with an id-mapped
namespace, that uid can map to a bad one outside it, so we used to chown
"src" after installing node. Since nodeenv 1.11.0, a prebuilt install
removes "src" once node is installed, so there is nothing left to chown.
See ekalinin/nodeenv#404.

Require nodeenv >= 1.11.0 and drop the chown. Also mark the custom
command VERBATIM. Without it, the ">" in the version specifier reaches
the shell unescaped and is taken as a redirect.

Signed-off-by: Kefu Chai <[email protected]>
@tchaikov

tchaikov commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

hi @afreen23 and @djgalloway , could you help review this change?

@djgalloway
djgalloway merged commit e5fd3f3 into ceph:main Oct 7, 2026
20 of 24 checks passed
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