Skip to content

NC | CLI | Check if system.json exists and if not create system.json on the CLI start #8468

@romayalon

Description

@romayalon

Environment info

  • NooBaa Version: 5.18
  • Platform: NC

Actual behavior

  1. Today we create system.json when starting noobaa service (nsfs.js).
  2. A possible scenario is that the user creates a bucket/account without starting the S3 service ever, during this flow, we are checking the version of the config directory but don't have config directory info because there is no system.json. Hence, we won't know if updates on the config directory should be allowed or not.
  3. In order to avoid such cases, we shall set-up system.json if it's missing before creating any other CLI operations.

Expected behavior

  1. Check if system.json exists and if not create system.json on the CLI start

Steps to reproduce

  1. Run noobaa-cli account/bucket operations

More information - Screenshots / Logs / Other output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions