Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slapos.core
  • Merge requests
  • !139

Merged
Created Oct 01, 2019 by Jérome Perrin@jeromeOwner

cli: new "node prune" command

  • Overview 3
  • Commits 1
  • 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
Reviewer
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