Skip to content

NC | Lifecycle | Small configuration adjustments/ fixes #8875

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

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

romayalon
Copy link
Contributor

@romayalon romayalon commented Mar 18, 2025

Describe the Problem

Per feedback received in a design meeting adding some changes + tiny CLI fix.

Explain the Changes

  1. Changed the following configurations -
config.NC_LIFECYCLE_TIMEOUT_MS = 8 * 60 * 60;
config.NC_LIFECYCLE_RUN_TIME = 00:00;
config.NC_LIFECYCLE_CONFIG_DIR_NAME = 'lifecycle';
  1. Moved back the lifecycle cluster lock and the timestamp file to be inside a directory in the config directory which is shared between all the nodes - /etc/noobaa.conf.d/lifecycle/. Initially was the case in 8858 but changed it mistakenly on 8860.
  2. Renamed cluster.lock to be lifecycle_cluster.lock.
  3. Moved the write_stdout_response/throw_cli_error to manage_nsfs because it was wrongly under the lock and these functions do process.exit(). So changed the order to first release the lock and then write the response to stdout.

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  1. Run noobaa-cli lifecycle and expect to see successful + status
  2. Run sudo cat /{path_to_config_path}/lifecycle/lifecycle.timestamp - should contain last lifecycle run timestamp
  3. Run sudo cat /{path_to_config_path}/lifecycle/lifecycle_cluster.lock - should be empty
  4. Run sudo cat /var/log/noobaa/lifecycle/lifecycle_run_{lifecycle_run_timestamp}.json | jq - should have the status
  • 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.

minor comments

@romayalon romayalon force-pushed the romy-lifecycle-fix branch 2 times, most recently from f0e489a to ee888b5 Compare March 18, 2025 16:06
@romayalon romayalon force-pushed the romy-lifecycle-fix branch from ee888b5 to 955f07e Compare March 18, 2025 16:07
@romayalon romayalon changed the title NC | Small configuration adjustments/ fixes NC | Lifecycle | Small configuration adjustments/ fixes Mar 18, 2025
@romayalon romayalon merged commit 111ef29 into noobaa:master Mar 18, 2025
11 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