Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Question -OMS and DSC installation for Rhel8.2 #815

Open
PauCoda opened this issue Sep 26, 2021 · 1 comment
Open

Question -OMS and DSC installation for Rhel8.2 #815

PauCoda opened this issue Sep 26, 2021 · 1 comment

Comments

@PauCoda
Copy link

PauCoda commented Sep 26, 2021

Hi All,

Could you please tell me how to install DSC with OMS for rhel8.2 properly?

I've tried several ways to install them and have enabled Update management in Automation Account. And I get 'not configured' status and 'Current.mof is missing'.

I used OMS extension schema:
https://docs.microsoft.com/en-gb/azure/virtual-machines/extensions/oms-linux?toc=/azure/azure-monitor/toc.json

  1. First question, is it possible? We are spending a lot of days on that and would like to know if there is a chance to do it.
  2. Which version of python should I use? Do I need python2 installation? Only Python3 is available after VM creation.
  3. Maybe we need to install another tools, can you share them?

I would be grateful for any information.

@PauCoda
Copy link
Author

PauCoda commented Sep 29, 2021

Hi,

I executed the MS instructions.

  • I installed python2,
  • added 1270 Port to omiserver.conf
  • used OMS extension and DSC installation
  • registered VM

But I can't enable patching for this Virtual Machine in Update Management. I got error:
Hybrid runbook worker is not running. Update deployment is disabled in current_mof file: (/etc/opt/omi/conf/omsconfig/configuration/Current.mof).

I used this articles and tools:
Python2 installation: https://docs.microsoft.com/en-us/azure/azure-monitor/agents/agent-linux#python-requirement
Linux agent configuration: https://docs.microsoft.com/en-us/azure/azure-monitor/agents/agent-manage#linux-agent-3
OMS extension: https://docs.microsoft.com/en-gb/azure/virtual-machines/extensions/oms-linux?toc=/azure/azure-monitor/toc.json
DSC: yum install -y -q wget https://github.com/microsoft/PowerShell-DSC-for-Linux/releases/download/v1.2.1-0/dsc-1.2.1-0.ssl_110.x64.rpm || exit 1

For /var/opt/microsoft/omsconfig/omsconfig.log I'm getting many errors like:

2021/09/29 17:51:50: ERROR: null(0): EventId=1 Priority=ERROR Job 36EEE86D-5FBC-47C9-9419-0B9E709A3844 :
DSC Engine Error :
         Error Message FindFirstFile Failed.
        Error Code : 1
2021/09/29 17:53:44: ERROR: null(0): EventId=1 Priority=ERROR Job 36EEE86D-5FBC-47C9-9419-0B9E709A3844 :
DSC Engine Error :
         Error Message FindFirstFile Failed.
        Error Code : 1
2021/09/29 17:54:15: ERROR: null(0): EventId=1 Priority=ERROR Job 36EEE86D-5FBC-47C9-9419-0B9E709A3844 :
DSC Engine Error :
         Error Message FindFirstFile Failed.
        Error Code : 1

I found in logs "OMSAgent is multi-homed and resource is updating workspace .." for RHEL8.2 and RHEL7.8.
According MS documentation https://docs.microsoft.com/en-us/azure/automation/troubleshoot/update-agent-issues-linux#multihoming :
"Update Management doesn't support multihoming."

I see here that this variable uses existing workspace, that's why it causes multihoming..

mh_conf_dir = os.path.join(ETC_OMSAGENT_DIR, WorkspaceID, CONF_PATH_SUFFIX)

It's strange because RHEL7.8 has the same information but we can enable Update Management.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant