Skip to content

mgr/dashboard: tolerate nodeenv leaving no src directory behind - #72108

Merged
tchaikov merged 1 commit into
ceph:mainfrom
djgalloway:wip-nodeenv-1.11-prebuilt-chown
Sep 28, 2026
Merged

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

Conversation

@djgalloway

Copy link
Copy Markdown
Contributor

nodeenv 1.11.0 (released 2026-09-26 11:29 UTC) no longer leaves the node-env/src directory behind after installing a prebuilt node. The frontend build step runs an unpinned pip install nodeenv, so every build with WITH_MGR_DASHBOARD_FRONTEND (i.e. all of make check / API tests CI) started failing today:

 * Install prebuilt node (24.19.0) ..... done.
chown: cannot access '/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/src': No such file or directory
ninja: build stopped: subcommand failed.

(e.g. ceph-pr-pipeline build 2504 on #72090, but any PR built after ~11:29 UTC today hits it.)

The chown is a workaround for node-tarball uid mapping inside containers and only matters when the src directory exists — skip it when there's nothing to fix up.

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)

nodeenv 1.11.0 (released 2026-09-26) no longer leaves the node-env/src
directory behind after installing a prebuilt node.  The build step runs
an unpinned `pip install nodeenv`, so as of today every build with
WITH_MGR_DASHBOARD_FRONTEND fails at

  chown: cannot access '.../node-env/src': No such file or directory
  ninja: build stopped: subcommand failed.

(e.g. ceph-pr-pipeline build 2504).  The chown is a workaround for
tarball uid mapping in containers and is only needed when the src
directory exists, so skip it when there is nothing to fix up.

Assisted-by: Claude Fable 5
Signed-off-by: David Galloway <[email protected]>

@shraddhaag shraddhaag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Facing the same error in #72105.

RaminNietzsche added a commit to RaminNietzsche/ceph that referenced this pull request Sep 27, 2026
nodeenv 1.11.0 installs prebuilt node without leaving node-env/src, which
breaks the dashboard chown step in Jenkins. Same fix as ceph#72108.

Signed-off-by: ramin.najarbashi <[email protected]>

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

# that lets tar set the uid to a "bad" uid outside the namespace.
# nodeenv >= 1.11.0 no longer leaves the src directory behind after a
# prebuilt node install, so tolerate it being absent
COMMAND bash -c 'test ! -e ${mgr-dashboard-nodeenv-dir}/src || chown -R `id -u`:`id -g` ${mgr-dashboard-nodeenv-dir}/src'

@tchaikov tchaikov Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably after nodeenv 1.11.0 is populated to more index mirrors, we can just install nodeenv >= 1.11.0 , and drop this chown workaround. see also ekalinin/nodeenv#404

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created #72339

@tchaikov

Copy link
Copy Markdown
Contributor

@afreen23 @phlogistonjohn Hi Afreen and John, it'd be better if this change is review by you, but i am taking the liberty of merging this PR, as currently, the "make check" ci workflow is failing because of

[2026-09-28T02:45:22.737Z] chown: cannot access '/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/src': No such file or directory

@tchaikov
tchaikov merged commit c8bd769 into ceph:main Sep 28, 2026
15 checks passed
@djgalloway
djgalloway deleted the wip-nodeenv-1.11-prebuilt-chown branch September 29, 2026 13:17
uw-sc added a commit to cobaltcore-dev/ceph that referenced this pull request Oct 16, 2026
Backport-Id: 01a142fa-04c1-750b-8d64-fa05fea8072b
Backport-PR: #30
Upstream-PRs: ceph#72108, ceph#72167
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.

3 participants