Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • 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
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/prune_unused_shared_parts
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7