Esri / arcgis-powershell-dsc

This repository contains scripts, code and samples for automating the install and configuration of ArcGIS (Enterprise and Desktop) using Microsoft Windows PowerShell DSC (Desired State Configuration).
Apache License 2.0
115 stars 62 forks source link

ArcGIS Server patch "ArcGIS-111-S-WSD-Patch.msp" always installed #465

Closed Biboba closed 1 year ago

Biboba commented 1 year ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

GisPortalAGSDeployment_anonymous.txt

Expected Behavior

Already installed patch should be reinstalled.

Actual Behavior

Patch is always installed when running the configuration.

Steps to Reproduce

Run the configuration twice: patch will be installed twice. On "Check for ArcGIS Enterprise updates" utility, it does appear as installed.

Important Factoids

04.05.2023 22:00:50: [MAPSQA01]:                            [[ArcGIS_InstallPatch]ServerInstallPatch] Checking Patch File at \\pathto\patches\11.1\server\ArcGIS-111-S-WSD-Patch.msp
04.05.2023 22:00:50: [MAPSQA01]:                            [[ArcGIS_InstallPatch]ServerInstallPatch] Patch File at \\pathto\patches\11.1\server\ArcGIS-111-S-WSD-Patch.msp with QFE Id  not installed

References

cameronkroeker commented 1 year ago

Hi @Biboba,

This looks similar to the 10.9.1 log4j patch issue: https://github.com/Esri/arcgis-powershell-dsc/issues/394#issuecomment-1118923443.

Looks like the ArcGIS-111-S-WSD-Patch.msp is missing the QFE_ID. The module will extract the QFE_ID from the .msp file to use to compare with the Windows registry:

image

Since the msp doesn't contain the QFE_ID the idempotency check fails every time. I'm afraid there isn't much we can do within the Module to address this issue.

Note: When ConfigData.DownloadPatches is set to true the module will obtain the QFE_ID from the internet to use and compare against the registry entry rather than the msp file.

Thanks, Cameron K.

Biboba commented 1 year ago

Hi @cameronkroeker,

Thanks for your reply. I understand it is not related to DSC.... but it's annoying. I like to master patches installation timing so I am not fond of downloading them at runtime. Maybe you could do some lobbying to the team in charge of releasing patches ? Or do you think we should open a ticket with support to get that fixed ?

Thanks

cameronkroeker commented 1 year ago

Hi @cameronkroeker,

Thanks for your reply. I understand it is not related to DSC.... but it's annoying. I like to master patches installation timing so I am not fond of downloading them at runtime. Maybe you could do some lobbying to the team in charge of releasing patches ? Or do you think we should open a ticket with support to get that fixed ?

Thanks

Hi @Biboba,

I've notified the various teams that coordinate the patching effort, and hopefully it will be addressed. It may take some time though because once a patch has been released, they have to go through the release process to re-release each effected patch for both Windows and Linux and each version the patch was released for.

Thanks, Cameron K.

ceddc commented 1 year ago

Hello @Biboba @cameronkroeker The patch have been updated 👍 https://support.esri.com/en-us/patches-updates/2023/arcgis-server-11-1-wms-services-display-patch-8108

Important Note May 16, 2023: The ArcGIS Server 11.1 WMS Services Display Patch setups have been updated to allow installation using a Chef Cookbooks or PowerShell DSC automation script. Please download and install the new setup. It is not necessary to uninstall the original patch, the new setup will install and replace the original patch.

Biboba commented 1 year ago

Thanks for update @ceddc ! Very good news. Closing then !