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

Open
Created May 05, 2025 by Łukasz Nowak@lukeMaintainer
  • Report abuse
Report abuse

Draft: Feature/drop manager devperm

  • Overview 1
  • Commits 1
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feature/drop-manager-devperm
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7