CPanel Elevate on Google Cloud Compute Engine

RayJ

Member
Mar 24, 2017
10
0
51
Las Vegas
cPanel Access Level
Root Administrator
Greetings All,

I have done two successful in place upgrades with /scripts/elevate-cpanel (CentOS 7 to AlmaLinux 8).

I have another server that runs on Google Cloud (compute engine).

When I do the check ( /scripts/elevate-cpanel --check --upgrade-to=almalinux ), it tells me this:

[ERROR] 4 package(s) installed from unsupported YUM repo 'google-cloud-compute' from /etc/yum.repos.d/google-cloud.repo
[ERROR] 1 package(s) installed from unsupported YUM repo 'google-cloud-sdk' from /etc/yum.repos.d/google-cloud.repo

I get that part, one of the other servers had an extra repo and package. Easy enough to remove those before starting the elevate process.

My plan is to remove the repo and packages, elevate, then restore the repo and packages.

My question is: Has anyone completed the elevate process on a Google Cloud server? If so, where there any gotchas?

--RayJ
 

RayJ

Member
Mar 24, 2017
10
0
51
Las Vegas
cPanel Access Level
Root Administrator
Many thanks! Sorry for the late response.

I could not get to the upgrade until today.

It seemed to work fine. Accept that I could not reinstall these three packages.

google-compute-engine
python-google-compute-engine
google-compute-engine-oslogin

I suspect that they are important.

Here is the result of

dnf install google-compute-engine


Last metadata expiration check: 0:01:37 ago on Fri 03 Mar 2023 09:35:54 AM UTC.
Error:
Problem: package google-compute-engine-1:20190916.00-g2.el7.noarch requires python-google-compute-engine >= 1:20190916.00, but none of the providers can be installed
- conflicting requests
- nothing provides python-setuptools needed by python-google-compute-engine-1:20191210.00-g1.el7.noarch
- nothing provides /usr/bin/python needed by python-google-compute-engine-1:20191210.00-g1.el7.noarch
- nothing provides python-boto needed by python-google-compute-engine-1:20191210.00-g1.el7.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Hoping that someone knows a workaround.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,651
2,635
363
cPanel Access Level
Root Administrator
It sounds like you may be missing the necessary repository to install that tool. The closest match I have on my AlmaLinux 8 machine is the platform-pythong-setuptools package, which is provided by the baseos repository.

It might be best to work through their guide on this here to ensure those are setup properly: Getting started with Python on Compute Engine | Google Cloud
 

Harwer

Registered
Jul 30, 2023
3
2
78
Lima
cPanel Access Level
Root Administrator
Hi, I just got this same message.

* 2023-08-13 23:34:51 [WARN] Your system is not up to date please run: /usr/bin/yum update
* 2023-08-13 23:34:51 [WARN] *** Elevation Blocker detected: ***
System is not up to date
* 2023-08-13 23:35:25 [ERROR] 5 package(s) installed from unsupported YUM repo 'google-compute-engine' from /etc/yum.repos.d/google-cloud.repo
* 2023-08-13 23:35:25 [ERROR] 1 package(s) installed from unsupported YUM repo 'google-cloud-sdk' from /etc/yum.repos.d/google-cloud.repo
* 2023-08-13 23:35:25 [ERROR] 1 package(s) installed from unsupported YUM repo 'google-cloud-ops-agent' from /etc/yum.repos.d/google-cloud-ops-agent.repo
* 2023-08-13 23:35:25 [WARN] *** Elevation Blocker detected: ***
One or more enabled YUM repo are currently unsupported and have installed packages.
You should disable these repositories and remove packages installed from them
before continuing the update.

Is there already a solution for this error?
 

saffa

Registered
Feb 3, 2022
3
2
3
Netherlands
cPanel Access Level
Root Administrator
@Harwer - I believe the solution is included in that text snippet you posted :D. You'll have to remove those packages and disable the repositories as they can cause issues with the ELevate tool.
That is not a valid response for GCP. I have the same issue and the repos required by Google Cloud so if you could please provide support as to how to process the upgrade without totally breaking the GCP VM instance install that would be awesome.


* 2023-09-03 15:35:13 [ERROR] 4 package(s) installed from unsupported YUM repo 'google-cloud-compute' from /etc/yum.repos.d/google-cloud.repo
* 2023-09-03 15:35:13 [ERROR] 1 package(s) installed from unsupported YUM repo 'google-cloud-sdk' from /etc/yum.repos.d/google-cloud.repo
* 2023-09-03 15:35:13 [ERROR] 1 package(s) installed from unsupported YUM repo 'google-cloud-monitoring' from /etc/yum.repos.d/google-cloud-monitoring.repo
* 2023-09-03 15:35:13 [ERROR] 2 package(s) installed from unsupported YUM repo 'google-cloud-logging' from /etc/yum.repos.d/google-cloud-logging.repo
* 2023-09-03 15:35:13 [ERROR] 1 package(s) installed from unsupported YUM repo 'elrepo' from /etc/yum.repos.d/elrepo.repo
* 2023-09-03 15:35:13 [WARN] *** Elevation Blocker detected: ***
One or more enabled YUM repo are currently unsupported and have installed packages.
You should disable these repositories and remove package

The reality is after disabling/removing those you won't be able to SSH in tot he server or anything as GCP will be disconnected from the OS, right?