You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* _get_blocked_hosts_status checks if there are any hosts blocked for updating the config directory
487
-
* 1. when host's config_dir_version older than 5.18.0 and system's config_dit_version is 5.18.0 and higher it means it's not blocked
488
-
* because the source code won't include _throw_if_config_dir_locked() but it's still can cause invalid config files, therefore including it in the blocked list
489
-
* 2. when system's config_dir_version older than 5.18.0 and hosts's config_dir_version is 5.18.0 and higher
490
-
* it means updated to the config directory from this host are blocked
487
+
* 1. if only config dir was upgraded (>=5.18.0) - host's config_dir_version doesn not exist (<5.18.0) and system's config_dir_version exists (>=5.18.0)
488
+
* it means it's not blocked because the source code won't include _throw_if_config_dir_locked() but it still can create invalid config files, therefore including it in the blocked list
489
+
* 2. if system's config_dir_version wasn't upgraded yet and hosts's config_dir_version exist (>= 5.18.0)
490
+
* it means updates to the config directory from this host are blocked
491
+
* 3. if system's config dir version does not match the hosts's config_dir_version - updates to the config directory from this host are blocked
version_compare_err=`host's config_dir_version is undefined, system's config_dir_version already upgraded to ${system_config_dir_version}, updates to the config directory via the host will result with invalid config_dir files`;
506
+
version_compare_err=`host's config_dir_version is undefined, system's config_dir_version already upgraded to ${system_config_dir_version}, updates to the config directory via the host will result with invalid config_dir files until the host source code upgrade`;
505
507
}elseif(only_host_upgraded){
506
-
version_compare_err=`host's config_dir_version is ${host_data.config_dir_version}, system's config_dir_version is undefined`;
508
+
version_compare_err=`host's config_dir_version is ${host_data.config_dir_version}, system's config_dir_version is undefined, updates to the config directory will be blocked until the config dir upgrade`;
thrownewRpcError('CONFIG_DIR_VERSION_MISMATCH',`config_directory data is missing in system.json, any updates to the config directory are blocked until the config dir upgrade`);
@@ -1191,13 +1192,15 @@ class ConfigFS {
1191
1192
/**
1192
1193
* compare_host_and_config_dir_version compares the version of the config dir in the system.json file
1193
1194
* with the config dir version of the running host
1195
+
* if compare result is 0 - undefined will be returned
1196
+
* else - an appropriate error string will be returned
error: `host's config_dir_version is ${valid_system_json[hostname].config_dir_version}, system's config_dir_version is undefined`
655
+
error: `host's config_dir_version is ${valid_system_json[hostname].config_dir_version}, system's config_dir_version is undefined, updates to the config directory will be blocked until the config dir upgrade`
err_message=`config dir upgrade can not be started - the host's package version=${new_version} does not match the user's expected version=${expected_version}`;
0 commit comments