Project

General

Profile

Tasks #50490

Feature #50320: mgr/dashboard: Lean Dashboard

mgr/dashboard: native dependencies

Added by Ernesto Puerta almost 2 years ago. Updated 6 months 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

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

History

#1 Updated by Ernesto Puerta 6 months ago

  • Description updated (diff)

#2 Updated by Ernesto Puerta 6 months ago

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

#3 Updated by Alfonso Martínez 6 months ago

  • Assignee changed from Alfonso Martínez to Nizamudeen A

Also available in: Atom PDF