Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slapos.core
  • Merge requests
  • !139

cli: new "node prune" command

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge feat/prune_unused_shared_parts into master Oct 01, 2019
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 3

Used to remove shared parts that are no longer referenced.

With shared part installed for example in /opt/slapgrd/shared/name/HASH the heuristic is to assume that if HASH is present in a software's .installed.cfg, then this software is using this shared part. Similar, if HASH is present in /opt/slapgrid/shared/another/ANOTHER_HASH/.slapos*signature then share part another for hash ANOTHER_HASH is using the shared part.

This also have some support to recursively look in instances and if they contain a slapos.cfg file, look for software and shared parts to see if they use the shared part.

In other cases, this shared part can be deleted.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/prune_unused_shared_parts
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7