Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EL8 packages missing #78

Closed
stephanwehr opened this issue May 24, 2023 · 10 comments
Closed

EL8 packages missing #78

stephanwehr opened this issue May 24, 2023 · 10 comments

Comments

@stephanwehr
Copy link

stephanwehr commented May 24, 2023

Currently only version 2.1.11 is available in the EL8 repository.

Steps to reproduce:

sudo dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm

sudo dnf install -y zfs-2.1.9*
ZFS on Linux for EL8 - dkms                                                           3.6 kB/s | 2.9 kB     00:00
ZFS on Linux for EL8 - dkms                                                            37 kB/s |  57 kB     00:01
No match for argument: zfs-2.1.9*
Error: Unable to find a match: zfs-2.1.9*

The only package listed is version 2.1.11:

sudo dnf list --showduplicates zfs                                                                      
Docker CE Stable - x86_64                                                             358 kB/s |  45 kB     00:00
Ksplice Uptrack for Oracle Linux                                                      3.9 kB/s | 5.0 kB     00:01
Oracle Linux 8 EPEL Packages for Development (x86_64)                                  80 MB/s |  46 MB     00:00
Oracle Linux 8 EPEL Modular Packages for Development (x86_64)                         3.6 MB/s | 322 kB     00:00
Oracle Linux 8 BaseOS Latest (x86_64)                                                  95 MB/s |  58 MB     00:00
Oracle Linux 8 Application Stream (x86_64)                                            108 MB/s |  45 MB     00:00
Oracle Linux 8 Addons (x86_64)                                                         46 MB/s | 6.9 MB     00:00
packages-microsoft-com-prod                                                            60 MB/s | 7.2 MB     00:00
Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64)             85 MB/s |  15 MB     00:00
ZFS on Linux for EL8 - dkms                                                            37 kB/s |  57 kB     00:01
Available Packages
zfs.x86_64                                              2.1.11-2.el8                                               zfs
@tonyhutter
Copy link
Member

tonyhutter commented May 24, 2023

Here's what I see on my AlmaLinux 8 VM:

$ cat /etc/redhat-release 
AlmaLinux release 8.8 (Sapphire Caracal)

$ sudo dnf install zfs-release-2-3.el8.noarch.rpm
Last metadata expiration check: 0:04:07 ago on Wed 24 May 2023 12:29:50 PM EDT.
Dependencies resolved.
=======================================================================================================
 Package                   Architecture         Version               Repository                  Size
=======================================================================================================
Installing:
 zfs-release               noarch               2-3.el8               @commandline                13 k

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

Total size: 13 k
Installed size: 6.5 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                               1/1 
  Installing       : zfs-release-2-3.el8.noarch                                                    1/1 
  Running scriptlet: zfs-release-2-3.el8.noarch                                                    1/1 
  Verifying        : zfs-release-2-3.el8.noarch                                                    1/1 

Installed:
  zfs-release-2-3.el8.noarch                                                                           

Complete!

$ sudo dnf list --showduplicates zfs                                                                      
Last metadata expiration check: 0:04:15 ago on Wed 24 May 2023 12:29:50 PM EDT.
Available Packages
zfs.x86_64                                       2.1.6-1.el8                                        zfs
zfs.x86_64                                       2.1.7-1.el8                                        zfs
zfs.x86_64                                       2.1.8-1.el8                                        zfs
zfs.x86_64                                       2.1.9-1.el8                                        zfs
zfs.x86_64                                       2.1.10-1.el8                                       zfs
zfs.x86_64                                       2.1.11-1.el8                                       zfs

@stephanwehr
Copy link
Author

stephanwehr commented May 24, 2023

What is the checksum of your rpm package?

wget https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm

md5sum zfs-release-2-3.el8.noarch.rpm
191547340e36aec2c0072c29f12cf1e4  zfs-release-2-3.el8.noarch.rpm

Same result using an AlmaLinux 8.7 Docker image

docker run --rm -ti --hostname alin almalinux:8.7 bash -l -i
[root@alin /]# dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
AlmaLinux 8 - BaseOS                                                                    2.7 MB/s | 2.9 MB     00:01
AlmaLinux 8 - AppStream                                                                 4.6 MB/s |  11 MB     00:02
AlmaLinux 8 - Extras                                                                     25 kB/s |  18 kB     00:00
zfs-release-2-3.el8.noarch.rpm                                                          159 kB/s |  13 kB     00:00
Dependencies resolved.
========================================================================================================================
 Package                       Architecture             Version                    Repository                      Size
========================================================================================================================
Installing:
 zfs-release                   noarch                   2-3.el8                    @commandline                    13 k

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

Total size: 13 k
Installed size: 6.5 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1
  Installing       : zfs-release-2-3.el8.noarch                                                                     1/1
  Running scriptlet: zfs-release-2-3.el8.noarch                                                                     1/1
  Verifying        : zfs-release-2-3.el8.noarch                                                                     1/1

Installed:
  zfs-release-2-3.el8.noarch

Complete!
[root@alin /]# dnf list --showduplicates zfs
ZFS on Linux for EL8 - dkms                                                              40 kB/s |  57 kB     00:01
Available Packages
zfs.x86_64                                               2.1.11-2.el8                                                zfs

@tonyhutter
Copy link
Member

What is the checksum of your rpm package?

Same as yours:

$ md5sum zfs-release-2-3.el8.noarch.rpm
191547340e36aec2c0072c29f12cf1e4  zfs-release-2-3.el8.noarch.rpm

Same result using an AlmaLinux 8.7 Docker image

That's probably the issue - AlmaLinux is at version 8.8 now. It looks like my yum metadata wasn't refreshed in my earlier example. Here's what I'm seeing now:

$ sudo dnf list --showduplicates zfs
Last metadata expiration check: 1:42:30 ago on Wed 24 May 2023 12:52:59 PM EDT.
Available Packages
zfs.x86_64                                       2.1.11-2.el8                                       zfs

$ sudo dnf --releasever=8.8 list --showduplicates zfs
Last metadata expiration check: 0:02:51 ago on Wed 24 May 2023 02:32:46 PM EDT.
Available Packages
zfs.x86_64                                       2.1.11-2.el8                                       zfs

$ sudo dnf --releasever=8.7 list --showduplicates zfs
Last metadata expiration check: 0:03:11 ago on Wed 24 May 2023 02:32:32 PM EDT.
Available Packages
zfs.x86_64                                       2.1.6-1.el8                                        zfs
zfs.x86_64                                       2.1.7-1.el8                                        zfs
zfs.x86_64                                       2.1.8-1.el8                                        zfs
zfs.x86_64                                       2.1.9-1.el8                                        zfs
zfs.x86_64                                       2.1.10-1.el8                                       zfs
zfs.x86_64                                       2.1.11-1.el8                                       zfs

⬆️ these are the correct RPMs you should be seeing for Alma 8.7 and 8.8.

@stephanwehr
Copy link
Author

Was the structure of the ZFS EL8 repository changed recently?
How can we get this working again without specifying the "--releasever" parameter?
I can't remember that I have to use this parameter in the past.
Specifying the parameter should be only a temporary workaround but not a permanent solution. 😃

@tonyhutter
Copy link
Member

The repo behavior was changed in 6a7dda9.

Your best bet is to udate your docker image to Alma 8.8. If that's not possible, you can edit /etc/yum.repos.d/zfs.repo and change all the $releasever to a hardocded 8.7 to match your docker image

- baseurl=http://download.zfsonlinux.org/epel/$releasever/$basearch/
+ baseurl=http://download.zfsonlinux.org/epel/8.7/$basearch/

Note that if you do that, you're not going to get any of the newer releases, since Alma 8.7 only supports up to zfs-2.1.11.

@stephanwehr
Copy link
Author

In general and after reading openzfs/zfs#10328 I agree, using $releasever inside the repository file is the right way forward.

As you mentioned, Requires: <specific_kernel_version> (what would be the right approach) is not used, therefore in some cases (like mine) the version needs to be hardcoded.

It seems there is no easy way out, thank you for your feedback

@stephanwehr
Copy link
Author

Sorry, I have to reopen this issue, maybe you are already aware of this but I am facing an issue using the "releasever" parameter. During the ZFS installation I've got the following error (more details below):
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-8.7 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-8.7]

Steps to reproduce:

dnf install https://zfsonlinux.org/epel/zfs-release-2-3$(rpm --eval "%{dist}").noarch.rpm
AlmaLinux 8 - BaseOS                                                     2.6 MB/s | 3.8 MB     00:01
AlmaLinux 8 - AppStream                                                  4.5 MB/s |  11 MB     00:02
AlmaLinux 8 - Extras                                                      32 kB/s |  18 kB     00:00
zfs-release-2-3.el8.noarch.rpm                                           216 kB/s |  13 kB     00:00
Dependencies resolved.
=========================================================================================================
 Package                   Architecture         Version                 Repository                  Size
=========================================================================================================
Installing:
 zfs-release               noarch               2-3.el8                 @commandline                13 k

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

Total size: 13 k
Installed size: 6.5 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                 1/1
  Installing       : zfs-release-2-3.el8.noarch                                                      1/1
  Running scriptlet: zfs-release-2-3.el8.noarch                                                      1/1
  Verifying        : zfs-release-2-3.el8.noarch                                                      1/1

Installed:
  zfs-release-2-3.el8.noarch

Complete!
dnf --releasever=8.7 list --showduplicates zfs
AlmaLinux 8.7 - BaseOS                                                   3.7 MB/s | 6.3 MB     00:01
AlmaLinux 8.7 - AppStream                                                3.5 MB/s |  12 MB     00:03
AlmaLinux 8.7 - Extras                                                    23 kB/s |  19 kB     00:00
ZFS on Linux for EL8.7 - dkms                                            157 kB/s | 301 kB     00:01
Available Packages
zfs.x86_64                                        2.1.6-1.el8                                         zfs
zfs.x86_64                                        2.1.7-1.el8                                         zfs
zfs.x86_64                                        2.1.8-1.el8                                         zfs
zfs.x86_64                                        2.1.9-1.el8                                         zfs
zfs.x86_64                                        2.1.10-1.el8                                        zfs
zfs.x86_64                                        2.1.11-1.el8                                        zfs
dnf -y --releasever=8.7 install zfs-2.1.9
...
(197/198): libzpool5-2.1.9-1.el8.x86_64.rpm                              699 kB/s | 1.3 MB     00:01
(198/198): zfs-dkms-2.1.9-1.el8.noarch.rpm                               1.9 MB/s |  30 MB     00:15
---------------------------------------------------------------------------------------------------------
Total                                                                    3.5 MB/s | 131 MB     00:37
Extra Packages for Enterprise Linux 8 - x86_64                           1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>"
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Key imported successfully
ZFS on Linux for EL8.7 - dkms                                            0.0  B/s |   0  B     00:00
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-8.7 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-8.7]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

@stephanwehr stephanwehr reopened this Jun 7, 2023
@tonyhutter
Copy link
Member

@stephanwehr try this workaround:

sudo ln -s /etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-8 etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-8.7

@stephanwehr
Copy link
Author

stephanwehr commented Jun 7, 2023

Yes possible workarounds as you mentioned would be either a symbolik link
ln -s RPM-GPG-KEY-openzfs-2013 /etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-8.7

or adjusting the ZFS repository file /etc/yum.repos.d/zfs.repo

[zfs]
name=ZFS on Linux for EL$releasever - dkms
baseurl=http://download.zfsonlinux.org/epel/8.7/$basearch/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openzfs-el-$releasever

I just wanted to let you know about the current behavior. From my point of view we should find a solution that doesn't require workarounds.

@stephanwehr
Copy link
Author

As there is a potential for data corruption (#15526) below version 2.1.14 or 2.2.2, it is not recommended to use older packages.

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

No branches or pull requests

2 participants