Closed Biboba closed 2 years ago
Hello @cameronkroeker, Were you able to reproduce this issue ? Any workaround ?
Thanks !
Hello @cameronkroeker, Were you able to reproduce this issue ? Any workaround ?
Thanks !
Hello @Biboba,
I tested similar scenario prior to release and did not see this issue. However, I will see if it can reproduced using your json config file.
Thanks, Cameron K.
Hi @Biboba,
I was able to reproduce this issue. When "EnableFailoverOnPrimaryStop" is set to true, the module will first stop the standby prior to installing so that a failover isn't invoked once the installation is complete (the setup will stop/start the service which may inadvertently invoke a failover especially if standby completes before primary).
We will work on getting this fixed in the next release, however in the meantime here is a workaround:
-Mode Upgrade
, this will upgrade the Data Store successfully-Mode InstallLicenseConfigure
, which will then re-enable EnableFailoverOnPrimaryStop.Thanks, Cameron K.
Hi @cameronkroeker,
Thanks for your reply. I confirm that following your workaround, it works.
Thanks !
Hello @Biboba,
This issue has been addressed in the latest release, v3.3.0:
https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v3.3.0
Thanks, Cameron K.
Community Note
Module Version
Affected Resource(s)
Configuration Files
ArcGIS_Enterprise_HA.txt
Expected Behavior
Upgrading datastore should be successful.
Actual Behavior
Upgrading datastore seems to be successful (no error thrown) but the datastore is actually not upgraded. Rerunning the configuration does not solve the issue.
Steps to Reproduce
Upgrading from 10.8.1 to 10.9 with the config file above:
Important Factoids
Log from DataStoreUpgradeConfigure on the primary datastore host:
It fails because it is complaning that it cannot run the prerequisite check on the standby datastore. Going on the standby datastore host, I noticed that the service is stopped. The reason ? It has been stopped previously by DSC in the "DataStoreUpgradePreInstall" module.
Log from the standby datastore "DataStoreUpgradePreInstall":
So I think there is something wrong with the upgrade workflow when "EnableFailoverOnPrimaryStop" is set to true which triggers the "DataStoreUpgradePreInstall":
https://github.com/Esri/arcgis-powershell-dsc/blob/78e488fc0aac6f8f4cdf574e1bdb50a7d39ed350/Modules/ArcGIS/ArcGIS.psm1#L2156-L2163
Thanks for your help and for this nice library :-)