AlmaLinux / leapp-data

ELevate related data
https://almalinux.org/elevate/
Apache License 2.0
11 stars 20 forks source link

Centos OS 7 x86_64 (cPanel) to Almalinux 8 or 9 - Missing packages #101

Open shakaran opened 3 months ago

shakaran commented 3 months ago

Reading the guide:

https://wiki.almalinux.org/elevate/ELevating-CentOS7-to-AlmaLinux-9.html

Mentions about

sudo yum install -y leapp-upgrade leapp-data-almalinux

But that packages are not found in the repository or are not fetched, so it cannot be installed, in particular leapp-data-almalinux

I can find https://repo.almalinux.org/elevate/el7/x86_64/leapp-0.14.0-1.el7.noarch.rpm

Which is pretty outdated compared with SRPMs

https://repo.almalinux.org/elevate/el7/SRPMS/

Could you release new updated files in the repository?

prilr commented 3 months ago

Isn't leapp-data-almalinux in the same repository you've linked to?

shakaran commented 3 months ago

Isn't leapp-data-almalinux in the same repository you've linked to?

This is what I am trying to say, even if the file is present, it is not picking the package. This is my output:

-bash-4.2# sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
Loaded plugins: product-id, search-disabled-repos, universal-hooks
elevate-release-latest-el7.noarch.rpm                                                                                                                                 | 6.6 kB  00:00:00     
Examining /var/tmp/yum-root-SRmeK3/elevate-release-latest-el7.noarch.rpm: elevate-release-1.0-2.el7.noarch
/var/tmp/yum-root-SRmeK3/elevate-release-latest-el7.noarch.rpm: does not update installed package.
Error: Nothing to do
-bash-4.2# sudo yum install -y leapp-upgrade leapp-data-almalinux
Loaded plugins: product-id, search-disabled-repos, universal-hooks
No package leapp-data-almalinux available.
Nothing to do
andrewlukoshko commented 3 months ago

Does repo enabled? I can't reproduce this.

# yum info leapp-data-almalinux
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
Installed Packages
Name        : leapp-data-almalinux
Arch        : noarch
Version     : 0.2
Release     : 15.el7.20230823
Size        : 24 M
Repo        : installed
From repo   : elevate
Summary     : data for migrating tool
URL         : https://github.com/AlmaLinux/leapp-data
License     : ASL 2.0
Description : almalinux data for migrating tool
shakaran commented 3 months ago

It seems listed:

-bash-4.2# yum repolist 
Loaded plugins: product-id, search-disabled-repos, universal-hooks
repo id                                                                             repo name                                                                                     status
EA4-c7/7/x86_64                                                                     EA4 ( EasyApache 4 - c7 )                                                                     5,438+1,008
cpanel-addons-production-feed/x86_64                                                cPanel Addons Production Feed                                                                          78
cpanel-plugins/x86_64                                                               cPanel Plugins project                                                                              72+42
base/7/x86_64                                                                       CentOS-7 - Base                                                                                 10,031+41
centos7-els/x86_64                                                                  CentOS 7 Extended Lifecycle Support by TuxCare                                                     765+44
centos7els-rollout-1/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 1                                                                   0
centos7els-rollout-2/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 2                                                                   0
centos7els-rollout-3/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 3                                                                   0
centos7els-rollout-4/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 4                                                                   0
centos7els-rollout-5/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 5                                                                   0
centos7els-rollout-6/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 6                                                                   0
centosplus/7/x86_64                                                                 CentOS-7 - Plus                                                                                       277
elevate/x86_64                                                                      ELevate                                                                                                 7
epel/x86_64                                                                         Extra Packages for Enterprise Linux 7 - x86_64                                                 12,988+803
extras/7/x86_64                                                                     CentOS-7 - Extras                                                                                     526
wp-toolkit-cpanel                                                                   WP Toolkit for cPanel                                                                                   1
repolist: 30,183

Also listed as enabled:

-bash-4.2# yum repolist enabled
Loaded plugins: product-id, search-disabled-repos, universal-hooks
repo id                                                                             repo name                                                                                     status
EA4-c7/7/x86_64                                                                     EA4 ( EasyApache 4 - c7 )                                                                     5,438+1,008
cpanel-addons-production-feed/x86_64                                                cPanel Addons Production Feed                                                                          78
cpanel-plugins/x86_64                                                               cPanel Plugins project                                                                              72+42
base/7/x86_64                                                                       CentOS-7 - Base                                                                                 10,031+41
centos7-els/x86_64                                                                  CentOS 7 Extended Lifecycle Support by TuxCare                                                     765+44
centos7els-rollout-1/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 1                                                                   0
centos7els-rollout-2/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 2                                                                   0
centos7els-rollout-3/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 3                                                                   0
centos7els-rollout-4/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 4                                                                   0
centos7els-rollout-5/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 5                                                                   0
centos7els-rollout-6/7/x86_64                                                       CentOS 7 ELS - Gradual Rollout Slot 6                                                                   0
centosplus/7/x86_64                                                                 CentOS-7 - Plus                                                                                       277
elevate/x86_64                                                                      ELevate                                                                                                 7
epel/x86_64                                                                         Extra Packages for Enterprise Linux 7 - x86_64                                                 12,988+803
extras/7/x86_64                                                                     CentOS-7 - Extras                                                                                     526
wp-toolkit-cpanel                                                                   WP Toolkit for cPanel                                                                                   1
repolist: 30,183

Just in case that some plugin or excludes from cpanel is appled, I try with:

-bash-4.2# yum install leapp-data-almalinux --disableexcludes=all --disableplugin=*
No package leapp-data-almalinux available.
Error: Nothing to do

it doesnt get the package:

-bash-4.2# yum info leapp-data-almalinux
Loaded plugins: product-id, search-disabled-repos, universal-hooks
Error: No matching Packages to list
-bash-4.2# yum info leapp-data-almalinux --disableexcludes=all --disableplugin=*
Error: No matching Packages to list

I try delating the .repo file and downloading again:

wget https://repo.almalinux.org/elevate/el7/elevate.repo -O /etc/yum.repos.d/elevate.repo

-bash-4.2# cat /etc/yum.repos.d/elevate.repo
# ELevate project repo for el7

[elevate]
name=ELevate
baseurl=https://repo.almalinux.org/elevate/el7/$basearch/
gpgkey=https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate

## Sources
[elevate-source]
name=name=ELevate - Source
baseurl=https://repo.almalinux.org/elevate/el7/SRPMS/
enabled=0
gpgkey=https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate

It only list this packages in repo:

-bash-4.2# yum --disableexcludes=all --disableplugin="*" --disablerepo="*" --enablerepo="elevate" list available
Available Packages
preupgrade-assistant.noarch                                                                            2.6.2-2.el6                                                                    elevate
preupgrade-assistant-el6toel7.noarch                                                                   0.8.0-4.el6                                                                    elevate
preupgrade-assistant-el6toel7-data.noarch                                                              0.20200704-2.el6                                                               elevate
preupgrade-assistant-tools.noarch                                                                      2.6.2-2.el6                                                                    elevate
preupgrade-assistant-ui.noarch                                                                         2.6.2-2.el6                                                                    elevate
redhat-upgrade-tool.noarch                                                                             1:0.8.0-10.el6                                                                 elevate

More debug:

python -c 'import sys; sys.path.append("/usr/lib/python2.7/site-packages/");sys.path.append("/usr/lib64/python2.7/site-packages");import yum, json; yb = yum.YumBase(); print json.dumps(yb.conf.yumvar, indent=2)'

Loaded plugins: product-id
{
  "uuid": "<redacted>", 
  "contentdir": "centos", 
  "basearch": "x86_64", 
  "infra": "stock", 
  "ea4_repo_uri_os": "CentOS_7", 
  "cp_centos_major_version": "7", 
  "releasever": "7", 
  "arch": "ia32e"
}
shakaran commented 3 months ago

Not sure why, but after:

cat /etc/yum.repos.d/cPkernel.repo 
[cPkernel]
name=cPanel Kernel
type=rpm-md
baseurl=http://httpupdate.cpanel.net/cpanelsync/repos/CentOS/7/cPkernel/x86_64/
gpgcheck=1
gpgkey=https://securedownloads.cpanel.net/cPanelPublicRPMKey.asc
enabled=0

Put as enable=1 in cPKernel or remove that repo, I can install:

# yum update
Loaded plugins: product-id, search-disabled-repos, universal-hooks
elevate                                                                                                                                                               | 3.0 kB  00:00:00     
elevate/primary_db                                                                                                                                                    |  40 kB  00:00:01     
Resolving Dependencies
--> Running transaction check
---> Package leapp-upgrade-el7toel8.noarch 0:0.20.0-100.20240806094105182827.master.95.g95ce0865.el7_9 will be updated
---> Package leapp-upgrade-el7toel8.noarch 1:0.19.0-7.1.el7 will be an update
---> Package leapp-upgrade-el7toel8-deps.noarch 0:0.20.0-100.20240806094105182827.master.95.g95ce0865.el7_9 will be updated
---> Package leapp-upgrade-el7toel8-deps.noarch 1:0.19.0-7.1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                                   Arch                                 Version                                          Repository                             Size
=============================================================================================================================================================================================
Updating:
 leapp-upgrade-el7toel8                                    noarch                               1:0.19.0-7.1.el7                                 elevate                               972 k
 leapp-upgrade-el7toel8-deps                               noarch                               1:0.19.0-7.1.el7                                 elevate                                34 k

Transaction Summary
=============================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 1.0 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for elevate
(1/2): leapp-upgrade-el7toel8-deps-0.19.0-7.1.el7.noarch.rpm                                                                                                          |  34 kB  00:00:00     
(2/2): leapp-upgrade-el7toel8-0.19.0-7.1.el7.noarch.rpm                                                                                                               | 972 kB  00:00:01     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                        875 kB/s | 1.0 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:leapp-upgrade-el7toel8-deps-0.19.0-7.1.el7.noarch                                                                                                                       1/4 
  Updating   : 1:leapp-upgrade-el7toel8-0.19.0-7.1.el7.noarch                                                                                                                            2/4 
  Cleanup    : leapp-upgrade-el7toel8-0.20.0-100.20240806094105182827.master.95.g95ce0865.el7_9.noarch                                                                                   3/4 
  Cleanup    : leapp-upgrade-el7toel8-deps-0.20.0-100.20240806094105182827.master.95.g95ce0865.el7_9.noarch                                                                              4/4 
  Verifying  : 1:leapp-upgrade-el7toel8-0.19.0-7.1.el7.noarch                                                                                                                            1/4 
  Verifying  : 1:leapp-upgrade-el7toel8-deps-0.19.0-7.1.el7.noarch                                                                                                                       2/4 
  Verifying  : leapp-upgrade-el7toel8-deps-0.20.0-100.20240806094105182827.master.95.g95ce0865.el7_9.noarch                                                                              3/4 
  Verifying  : leapp-upgrade-el7toel8-0.20.0-100.20240806094105182827.master.95.g95ce0865.el7_9.noarch                                                                                   4/4 

Updated:
  leapp-upgrade-el7toel8.noarch 1:0.19.0-7.1.el7                                             leapp-upgrade-el7toel8-deps.noarch 1:0.19.0-7.1.el7                                            

Complete!
-bash-4.2# yum --disableexcludes=all --disableplugin="*" --disablerepo="*" --enablerepo="elevate" list available
Available Packages
leapp-data-almalinux.noarch                                                                     0.2-15.el7.20230823                                                                   elevate
leapp-data-centos.noarch                                                                        0.2-15.el7.20230823                                                                   elevate
leapp-data-eurolinux.noarch                                                                     0.2-15.el7.20230823                                                                   elevate
leapp-data-oraclelinux.noarch                                                                   0.2-15.el7.20230823                                                                   elevate
leapp-data-rocky.noarch                                                                         0.2-15.el7.20230823

sudo yum install -y leapp-upgrade leapp-data-almalinux
Loaded plugins: product-id, search-disabled-repos, universal-hooks
Package 1:leapp-upgrade-el7toel8-0.19.0-7.1.el7.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package leapp-data-almalinux.noarch 0:0.2-15.el7.20230823 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                             Arch                                  Version                                              Repository                              Size
=============================================================================================================================================================================================
Installing:
 leapp-data-almalinux                                noarch                                0.2-15.el7.20230823                                  elevate                                399 k

Transaction Summary
=============================================================================================================================================================================================
Install  1 Package

Total download size: 399 k
Installed size: 24 M
Downloading packages:
leapp-data-almalinux-0.2-15.el7.20230823.noarch.rpm                                                                                                                   | 399 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : leapp-data-almalinux-0.2-15.el7.20230823.noarch                                                                                                                           1/1 
  Verifying  : leapp-data-almalinux-0.2-15.el7.20230823.noarch                                                                                                                           1/1 

Installed:
  leapp-data-almalinux.noarch 0:0.2-15.el7.20230823                                                                                                                                          

Complete!

But now I got this error:

-bash-4.2# leapp preupgrade

Error: Unexpected format of target version: 7
shakaran commented 3 months ago

For the VERSION_ID I have:

 cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Changing VERSION_ID="7" to VERSION_ID="7.9" seems to run.

toddr commented 3 months ago

@shakaran have you reviewed the instructions here on upgrading cPanel from 7->8?

https://cpanel.github.io/elevate/

andrewlukoshko commented 3 months ago
-bash-4.2# yum --disableexcludes=all --disableplugin="*" --disablerepo="*" --enablerepo="elevate" list available
Available Packages
preupgrade-assistant.noarch                                                                            2.6.2-2.el6                                                                    elevate
preupgrade-assistant-el6toel7.noarch                                                                   0.8.0-4.el6                                                                    elevate
preupgrade-assistant-el6toel7-data.noarch                                                              0.20200704-2.el6                                                               elevate
preupgrade-assistant-tools.noarch                                                                      2.6.2-2.el6                                                                    elevate
preupgrade-assistant-ui.noarch                                                                         2.6.2-2.el6                                                                    elevate
redhat-upgrade-tool.noarch                                                                             1:0.8.0-10.el6     

This is content of ELevate repo for el6. https://repo.almalinux.org/elevate/el6/x86_64/

shakaran commented 3 months ago

I think that the problem could be have previous el6 repos for Centos 6 to Centos 7, and the part of auto clean not done. The installer should detect this by default, for avout noise with the old repos when you go Centos 7 to Almalinux 8

bennyvasquez commented 2 months ago

Moved this from the website repo to one more appropriate to the problem.