Project

General

Profile

Actions

Tasks #50490

open

Feature #50320: mgr/dashboard: Lean Dashboard

mgr/dashboard: native dependencies

Added by Ernesto Puerta about 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Build, CI, Dependencies & Tools
Target version:
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Pull request ID:

Description

Replace per distro-packaged dependencies with a common reproducible environment (pip/virtualenv/alternatives for Python).

Additionally this could be done by:
  • Embedding Python code in the repo (via git submodules or subtrees),
  • Installing at build time via pip (this is the way that Dashboard works for Front-end packages)

This would also require modifying the method PyModule::load in the file src/mgr/PyModule.cc to look for packages into the local directory (via sys.path): <mgr_module_path>/site-packages/ (or similar). The default mgr sys path is:

mgr =
$WORKSPACE/ceph-api/src/pybind/mgr
/usr/lib/python3.8/site-packages
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.8/dist-packages

$(vstart_pythonpath)

/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload

Related issues 1 (1 open0 closed)

Related to Dashboard - Cleanup #41552: mgr/dashboard: remove color literals from typescript codeNew

Actions
Actions #1

Updated by Ernesto Puerta over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Ernesto Puerta over 1 year ago

  • Related to Cleanup #41552: mgr/dashboard: remove color literals from typescript code added
Actions #3

Updated by Alfonso Martínez over 1 year ago

  • Assignee changed from Alfonso Martínez to Nizamudeen A
Actions

Also available in: Atom PDF