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

prune: tolerate all forms of broken slapos.cfg in instance

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge fix/prune_recursive_slapos_cfg into master Apr 30, 2020
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

When we recurse in instance to find nested slapos that might be using parts from ourselves, we check all files named slapos.cfg but we may encounter some slapos.cfg that are not actual slapos config files, for example in testnodes we have a working copy of slapos repository which contains a stack/slapos.cfg which is completly different.

This was breaking prune with an error like this:

2020-04-29 20:07:28 slapos[2097] DEBUG Reading config at /srv/slapgrid/slappart9/srv/testnode/czp/slapos-repository/stack/slapos.cfg
2020-04-29 20:07:28 slapos[2097] ERROR No section: 'slapos'
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/prune_recursive_slapos_cfg
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7