Elevate blocked by OpenLogic in Azure VM

Operating System & Version
CentOS v7.9.2009 STANDARD hyper-v
cPanel & WHM Version
110.0.8

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Following the advice from this page and this thread cleared errors reported by /scripts/elevate-cpanel --check in an Azure VM. A related error remains:

[ERROR] 2 package(s) installed from unsupported YUM repo 'openlogic' from /etc/yum.repos.d/OpenLogic.repo

The contents of /etc/yum.repos.d/OpenLogic.repo follows:

[openlogic]
name=CentOS-$releasever - OpenLogic packages for $basearch
baseurl=http://olcentgbl.trafficmanager.net/openlogic/$releasever/openlogic/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://olcentgbl.trafficmanager.net/openlogic/$releasever/openlogic/$basearch/OpenLogic-GPG-KEY
retries = 1
skip_if_unavailable = 1
keepcache = 0


The yum info for these two packages follows:

Name : WALinuxAgent
Arch : noarch
Version : 2.7.3.0
Release : 1_ol001.el7
Size : 2.4 M
Repo : installed
From repo : openlogic
Summary : Microsoft Azure Linux Agent
URL : https://github.com/Azure/WALinuxAgent
License : ASL 2.0
Description : The Azure Linux Agent supports the provisioning and running of
: Linux VMs in the Azure cloud. This package should be installed on
: Linux disk images that are built to run in the Azure environment.

Name : azure-repo-svc
Arch : noarch
Version : 1.0
Release : 0.el7.centos
Size : 2.1 k
Repo : installed
From repo : openlogic
Summary : The CentOS Azure Repo Service
URL : https://www.roguewave.com/
License : Apache License Version 2.0
Description : This service switches between the ‘mirrorlist’ vs. ‘baseurl’
: parameter in CentOS-Base.repo depending on whether the image is
: running on Azure Cloud or Azure Stack. The key indicator is the
: "/var/lib/waagent/Protocol" file, which will contain one of two
: keywords informing which protocol is in use. Public Azure uses
: what is known as a “wire server” while Azure Stack uses a metadata
: service more similar to what’s available in other clouds.


I can guess how to change gpgkey in the .repo, but am at a loss re. baseurl. Thoughts?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! I don't believe the error is saying that you need to change the repo - it's saying the presence of these packages on the system can cause issues with the ELevate process. Can you remove those packages from the system before running ELevate and then reinstall them if you're using them?
 

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Not that I use them, but Azure does. Judging by this page, uninstalling and re-installing the agent should be OK. Interestingly, it also says that the code is supported on Alma Linux 9 / Rocky Linux 9. Since those are currently experimental for cPanel, I'm going to slow down the switch.