microsoft / PowerShell-DSC-for-Linux

PowerShell Desired State Configuration - for Linux
Other
339 stars 130 forks source link

OMSAgent installation via OMSAgent Extension removes DSC files #312

Open Indhukrishna opened 7 years ago

Indhukrishna commented 7 years ago

The following steps causes DSC to stop working on a VM 1) Install OMI 1.0.8 (This is installed as part of SCX provider install) 2) Install DSC V1.1.1.-70 from here https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases/tag/v1.1.1-70 3) Install OMSAgent extension for Linux – Version 1.4

The following files are removed from /opt/omi/lib libMSFT_nxArchiveResource.so libMSFT_nxEnvironmentResource.so libMSFT_nxFileLineResource.so libMSFT_nxFileResource.so libMSFT_nxScriptResource.so libMSFT_nxSshAuthorizedKeysResource.so

More details on https://github.com/Microsoft/OMS-Agent-for-Linux/issues/549

NarineM commented 7 years ago

Extension workflow is the following:

  1. Run omsagent bundle with --remove (this will persist all user data including conf, onboarding info, certs on the system and would not remove that), to delete old dsc, omi, scx and omsagent code base only.This step also takes into account that omi can be used by other agents such as SCOM in that case --remove will skip removing omi component.
  2. run omsagent bundle with --upgrade to upgrade the agent code base to be the latest , this will bring new version of dsc providers and omi.