NC | Online Upgrade GPFS fixes + new host but existing system fix #8560
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explain the changes
config_dir_retructure.prepare_account_upgrade_params()
- change the open mode of the dst file to be w*config_dir_retructure.create_account_access_keys_index_if_missing()
Changed tmp_access_keys_path to be a backup dir under the config root.config_dir_retructure.create_account_access_keys_index_if_missing()
- Changed the linkfileat() usage to rename, this is not working as expected on GPFS, hence used the POSIX method that works as expected also on GPFS machine.safe_link()
- changed dir_file to dst_file and src_path to dst_path.General fixes -
config_dir_retructure.run()
- Added util.inspect() for printing failed accounts.config_fs.init_nc_system()
- when system exists but there is a new host - Changed the property new_host_data to be the host_name.Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
/usr/local/bin/noobaa-cli upgrade start --expected_version 5.18.0 --expected_hosts host1,host2,host3
on a GPFS cluster