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
  • !769

Draft: Feature/drop manager devperm

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Łukasz Nowak requested to merge luke/slapos.core:feature/drop-manager-devperm into master May 05, 2025
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 3

Dropping the manager means that setting up node to use disk for given partition becomes manual, but stable across reboots.

Note: /dev/sdN is unstable, so can't be used directly.

There are two actions to be done on machine reboot, after knowing the disk:

  • link it to some well place, let it be /dev/disk/disk-path-for-vm (it's not the part of the manager)
  • setup the proper permission for that disk (that's the part of the manager)

Those operations for now would have to be done manually.

Example

The operator found out that stable description of a big disk is:

/dev/disk/by-id/ata-SAMSUNG_MZ7LH3T8HMLT-00005_S456NY0M501061

Note: Finding the disk identification is part of another subsystem, which would be a declarative approach to the node.

The operator does somehow the link on the reboot with:

ln -sf $(readlink -f /dev/disk/by-id/ata-SAMSUNG_MZ7LH3T8HMLT-00005_S456NY0M501062) /dev/disk/disk-path-for-vm

And after the instance is allocated there and the operator is aware that the instance can't access the disk, he does the ownership setup on each reboot:

chown slapuser72 $(readlink -f /dev/disk/by-id/ata-SAMSUNG_MZ7LH3T8HMLT-00005_S456NY0M501062)

where the slapuser72 is the allocated instance partition.

Edited May 05, 2025 by Łukasz Nowak
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/drop-manager-devperm
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7