Giter VIP home page Giter VIP logo

Comments (10)

tonyhutter avatar tonyhutter commented on September 10, 2024

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

from zfsonlinux.github.com.

stephanwehr avatar stephanwehr commented on September 10, 2024

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

from zfsonlinux.github.com.

tonyhutter avatar tonyhutter commented on September 10, 2024

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.

from zfsonlinux.github.com.

stephanwehr avatar stephanwehr commented on September 10, 2024

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. 😃

from zfsonlinux.github.com.

tonyhutter avatar tonyhutter commented on September 10, 2024

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.

from zfsonlinux.github.com.

stephanwehr avatar stephanwehr commented on September 10, 2024

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

from zfsonlinux.github.com.

stephanwehr avatar stephanwehr commented on September 10, 2024

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) <[email protected]>"
 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'.

from zfsonlinux.github.com.

tonyhutter avatar tonyhutter commented on September 10, 2024

@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

from zfsonlinux.github.com.

stephanwehr avatar stephanwehr commented on September 10, 2024

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.

from zfsonlinux.github.com.

stephanwehr avatar stephanwehr commented on September 10, 2024

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.

from zfsonlinux.github.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.