Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC | Online upgrade process small fix & refactoring #8467

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

romayalon
Copy link
Contributor

@romayalon romayalon commented Oct 15, 2024

Explain the changes

  1. fix -
    a. changed init_nc_system() to set config_directory properties only on a completely new system. otherwise, config_directory data will be set only via nc_upgrade_manager. Due to this change, I had to check config_directory data exists also on throw_if_config_dir_locked(), and if not, this is an old system.json and we do not allow updating config directory in that case, hence we will throw an error.
  2. refactoring -
    a. Moved init_nc_system from nsfs.js to config_fs.js, re-arranged the function and added some helper functions.
    b. Added missing JSdocs.

Issues: Fixed #xxx / Gap #xxx

  1. Open question - should we allow using the CLI without having system.json?
    Wondering if there can be scenarios where the user wants to create a bucket/account without starting the S3 service ever, if so, we don't have any version information about the already existing accounts/buckets, we won't know if updates on the config directory should be allowed or not in that case. - optional solution, create system.json via the CLI.

Testing Instructions:

  • Doc added/updated
  • Tests added

Copy link
Contributor

@nadavMiz nadavMiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@romayalon romayalon merged commit ac9cf10 into noobaa:master Oct 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants