Azure / WALinuxAgent

Microsoft Azure Linux Guest Agent
http://azure.microsoft.com/
Apache License 2.0
542 stars 372 forks source link

Linux [CentOS 8] readiness 'Not configured' #2388

Closed nicolaibaralmueller closed 3 years ago

nicolaibaralmueller commented 3 years ago

Update agent readiness says not configured.

Python2 and Python3 are installed.

I tried several installation attemps, including manual installation and purging.

The troubleshoot update agent shows the following issues:

Hybrid runbook worker status | Failed | Hybrid runbook worker is not running. current_mof file: (/etc/opt/omi/conf/omsconfig/configuration/Current.mof) is missing.

Operations endpoint | Failed | Unable to get the operations endpoint.

Software Repositories | Failed | Some of the repositories configured could not be accessed. Kindly check /var/lib/waagent/run-command/download/healthcheck-aum.log.

healthcheck-aum.log:

Debug: Machine Information:   Static hostname: myhostname
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 6cc37d7585ce476d8909603a266fb56f
           Boot ID: b06b7aaff6504585b3d3b2eae1a5773c
    Virtualization: microsoft
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-305.19.1.el8_4.x86_64
      Architecture: x86-64

Passed: Operating system version is supported
Passed: Microsoft Monitoring agent is installed
Debug: omsadmin.conf file contents: WORKSPACE_ID=X
    AGENT_GUID=X
    LOG_FACILITY=local0
    CERTIFICATE_UPDATE_ENDPOINT=https://X.oms.opinsights.azure.com/ConfigurationService.Svc/RenewCertificate
    URL_TLD=opinsights.azure.com
    DSC_ENDPOINT=https://X.agentsvc.azure-automation.net/Accounts/X/Nodes\(AgentId='X'\)
    OMS_ENDPOINT=https://X.ods.opinsights.azure.com/OperationalData.svc/PostJsonDataItems
    AZURE_RESOURCE_ID=/subscriptions/X/resourceGroups/rg-euw-myhostname/providers/Microsoft.Compute/virtualMachines/myhostname
    OMSCLOUD_ID=X
    UUID=X

Passed: Microsoft Monitoring agent is running
Passed: Machine registered with log analytics workspace:['X']
Passed: Hybrid worker package is present
Failed: Hybrid worker is not running. current_mof file:(/etc/opt/omi/conf/omsconfig/configuration/Current.mof) is missing
Passed: Machine has no proxy enabled.
Debug: IMDS Server Information:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: true
100    68  100    68    0     0   9714      0 --:--:-- --:--:-- --:--:--  9714
{ "error": "Bad request: . Required metadata header not specified" }
Passed: Machine is able to reach IMDS server.
Passed: Machine is connected to internet
Passed: TCP test for {X.agentsvc.azure-automation.net} (port 443) succeeded
Failed: Unable to get the operations (JRDS) endpoint
Passed: TCP test for {X.ods.opinsights.azure.com} (port 443) succeeded
Passed: TCP test for {X.oms.opinsights.azure.com} (port 443) succeeded
Passed: TCP test for {ods.systemcenteradvisor.com} (port 443) succeeded
Debug: Machine Information:   Static hostname: myhostname
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 6cc37d7585ce476d8909603a266fb56f
           Boot ID: b06b7aaff6504585b3d3b2eae1a5773c
    Virtualization: microsoft
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-305.19.1.el8_4.x86_64
      Architecture: x86-64

Debug: repo URI List
Debug: Extracted RepoURI netloc List: set([u'olcentgbl.trafficmanager.net', u'vault.centos.org', u'mirrors.fedoraproject.org', u'mirrorlist.centos.org', u'download.docker.com', u'mirror.centos.org', u'rpm.rancher.io', u'download.example', u'debuginfo.centos.org'])
Debug: vault.centos.org Ping unsuccessful.
Debug: mirrors.fedoraproject.org Ping unsuccessful.
Debug: download.example Ping unsuccessful.
Debug: download.docker.com Ping unsuccessful.
Debug: mirror.centos.org Ping unsuccessful.
Debug: rpm.rancher.io Ping unsuccessful.
Debug: mirrorlist.centos.org Ping unsuccessful.
Debug: debuginfo.centos.org Ping unsuccessful.
Debug: olcentgbl.trafficmanager.net Ping unsuccessful.
Debug: Error - Not able to ping all repositories!
Debug: Access Check for Repo failed !
Failed: Some of the repositories configured could not be accessed
narrieta commented 3 years ago

@nicolaibaralmueller Is this related to the Microsoft Monitoring Agent? this repo is for a different agent.

narrieta commented 3 years ago

Seems unrelated to the VM Agent. Re-open if needed.