Bug 2058423 - Can't install bdii on EPEL9
Summary: Can't install bdii on EPEL9
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: bdii
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Mattias Ellert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2054043
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-24 21:25 UTC by Diego Herrera
Modified: 2022-11-17 18:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-11-17 18:37:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Diego Herrera 2022-02-24 21:25:17 UTC
Description of problem:
bdii doesn't install on EPEL9 because mkpasswd is not being distributed


Version-Release number of selected component (if applicable):
bdii-5.2.26-8.el9


Steps to Reproduce:
1. sudo dnf -y install bdii

Actual results:
...
 Problem: conflicting requests
  - nothing provides /usr/bin/mkpasswd needed by bdii-5.2.26-8.el9.noarch

Additional info:

This problem was found using the following service:
https://tdawson.fedorapeople.org/epel/willit/epel9/status-wont-install.html

Comment 1 Diego Herrera 2022-02-24 21:43:15 UTC
Added a pull request with a possible solution [1]. I created this using the project source and LDAP documentation [2] as reference and verified that it would install correctly. 

I didn't test if it actually works fine since I don't have a server to test with, but you can use it as reference if you want to solve it in other way. 

Since mkpasswd is just being used to generate a default password in the install process and not by the program itself, I think that the project would also work without generating that password at all.

[1] https://src.fedoraproject.org/rpms/bdii/pull-request/2
[2] https://www.openldap.org/faq/data/cache/419.html

Comment 2 Mattias Ellert 2022-02-25 08:20:55 UTC
The missing /usr/bin/mkpasswd is a stupid mistake by RedHat. They renamed the mkpasswd binary provided by the expect package, but then did not enable the build of the mkpasswd in the whois package.
This was reported to them on 2022-02-14 but there has not been any response yet. I don't know what is happening with this report inside redhat. If you have any inside knowledge?

It certainly can be worked around if not fixed, and your suggestion is not bad, but I would like to get some indication from redhat if they are going to fix it... Sometimes reporting issues to readhat is like throwing things into a black hole. Sometimes things are fixed swiftly. Sometimes things are fixed after 4 month of radio silence. It is a bit of a lottery.

Comment 3 Petr Menšík 2022-02-25 18:06:22 UTC
It seems to me bdii package should not use %post for generating the password, but use instead use single-time executed systemd unit. That might choose from multiple ways to generate some password and do not depend on single package.

I thought it would have simple workaround:
(cd /usr/bin && ln -s mkpasswd-expect mkpasswd)

But that does not help. It needs to be provided by RPM package under that name. It was easy to miss, because it is not reported by:
dnf repoquery --whatrequires mkpasswd

It would have been easier detected if bdii package required directly mkpasswd package. Could be fixed in 9.1 release. I am sorry, it seems late to fix for 9.0 release.

Comment 4 Mattias Ellert 2022-05-24 04:32:00 UTC
Package is installable in CenOS Stream 9:

$ mock --root centos-stream+epel-9-x86_64 --install bdii
INFO: mock.py version 3.0 starting (python version = 3.10.4, NVR = mock-3.0-1.fc36)...
Start(bootstrap): init plugins
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: enabled HW Info plugin
Mock Version: 3.0
INFO: Mock Version: 3.0
Finish(bootstrap): chroot init
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
Mock Version: 3.0
INFO: Mock Version: 3.0
Finish: chroot init
INFO: installing package(s): bdii
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
CentOS Stream 9 - BaseOS                         21 kB/s |  10 kB     00:00    
CentOS Stream 9 - AppStream                      12 kB/s |  11 kB     00:00    
CentOS Stream 9 - CRB                            44 kB/s |  10 kB     00:00    
CentOS Stream 9 - Extras packages                46 kB/s |  11 kB     00:00    
Extra Packages for Enterprise Linux 9 - x86_64   71 kB/s |  19 kB     00:00    
Extra Packages for Enterprise Linux 9 - x86_64  3.0 MB/s | 6.0 MB     00:02    
Dependencies resolved.
================================================================================
 Package                        Arch     Version              Repository   Size
================================================================================
Installing:
 bdii                           noarch   5.2.26-8.el9         epel         30 k
Installing dependencies:
 acl                            x86_64   2.3.1-3.el9          baseos       73 k
 checkpolicy                    x86_64   3.3-1.el9            appstream   339 k
 cryptsetup-libs                x86_64   2.4.3-4.el9          baseos      436 k
 dbus                           x86_64   1:1.12.20-5.el9      baseos      4.3 k
 dbus-broker                    x86_64   28-5.el9             baseos      172 k
 dbus-common                    noarch   1:1.12.20-5.el9      baseos       15 k
 device-mapper                  x86_64   9:1.02.183-4.el9     baseos      142 k
 device-mapper-libs             x86_64   9:1.02.183-4.el9     baseos      179 k
 expat                          x86_64   2.4.7-1.el9          baseos      116 k
 glue-schema                    noarch   2.0.11-8.el9         epel         34 k
 json-c                         x86_64   0.14-11.el9          baseos       43 k
 kmod-libs                      x86_64   28-7.el9             baseos       64 k
 libdb-utils                    x86_64   5.3.28-53.el9        appstream   141 k
 libseccomp                     x86_64   2.5.2-2.el9          baseos       72 k
 libselinux-utils               x86_64   3.3-2.el9            baseos      181 k
 libtool-ltdl                   x86_64   2.4.6-45.el9         appstream    37 k
 logrotate                      x86_64   3.18.0-5.el9         baseos       76 k
 mkpasswd                       x86_64   5.5.9-4.el9          appstream    26 k
 openldap-clients               x86_64   2.4.59-5.el9         baseos      164 k
 openldap-compat                x86_64   2.4.59-5.el9         baseos       14 k
 openldap-servers               x86_64   2.4.59-1.el9         epel        2.1 M
 policycoreutils                x86_64   3.3-5.el9            baseos      233 k
 policycoreutils-python-utils   noarch   3.3-5.el9            appstream    74 k
 python3                        x86_64   3.9.10-2.el9         baseos       30 k
 python3-audit                  x86_64   3.0.7-102.el9        appstream    84 k
 python3-libs                   x86_64   3.9.10-2.el9         baseos      7.8 M
 python3-libselinux             x86_64   3.3-2.el9            appstream   183 k
 python3-libsemanage            x86_64   3.3-3.el9            appstream    81 k
 python3-pip-wheel              noarch   21.2.3-6.el9         baseos      1.1 M
 python3-policycoreutils        noarch   3.3-5.el9            appstream   2.1 M
 python3-setools                x86_64   4.4.0-4.el9          baseos      600 k
 python3-setuptools             noarch   53.0.0-10.el9        baseos      946 k
 python3-setuptools-wheel       noarch   53.0.0-10.el9        baseos      471 k
 systemd                        x86_64   250-4.el9            baseos      4.2 M
 systemd-pam                    x86_64   250-4.el9            baseos      243 k
 systemd-rpm-macros             noarch   250-4.el9            baseos       28 k
 whois-nls                      noarch   5.5.9-4.el9          appstream    34 k

Transaction Summary
================================================================================
Install  38 Packages

Total download size: 23 M
Installed size: 73 M
Downloading Packages:
(1/38): dbus-1.12.20-5.el9.x86_64.rpm            23 kB/s | 4.3 kB     00:00    
(2/38): acl-2.3.1-3.el9.x86_64.rpm              241 kB/s |  73 kB     00:00    
(3/38): dbus-common-1.12.20-5.el9.noarch.rpm    158 kB/s |  15 kB     00:00    
(4/38): dbus-broker-28-5.el9.x86_64.rpm         582 kB/s | 172 kB     00:00    
(5/38): cryptsetup-libs-2.4.3-4.el9.x86_64.rpm  841 kB/s | 436 kB     00:00    
(6/38): device-mapper-1.02.183-4.el9.x86_64.rpm 851 kB/s | 142 kB     00:00    
(7/38): expat-2.4.7-1.el9.x86_64.rpm            1.2 MB/s | 116 kB     00:00    
(8/38): device-mapper-libs-1.02.183-4.el9.x86_6 1.1 MB/s | 179 kB     00:00    
(9/38): json-c-0.14-11.el9.x86_64.rpm           450 kB/s |  43 kB     00:00    
(10/38): kmod-libs-28-7.el9.x86_64.rpm          802 kB/s |  64 kB     00:00    
(11/38): libseccomp-2.5.2-2.el9.x86_64.rpm      819 kB/s |  72 kB     00:00    
(12/38): logrotate-3.18.0-5.el9.x86_64.rpm      849 kB/s |  76 kB     00:00    
(13/38): libselinux-utils-3.3-2.el9.x86_64.rpm  1.1 MB/s | 181 kB     00:00    
(14/38): openldap-clients-2.4.59-5.el9.x86_64.r 1.6 MB/s | 164 kB     00:00    
(15/38): openldap-compat-2.4.59-5.el9.x86_64.rp 136 kB/s |  14 kB     00:00    
(16/38): policycoreutils-3.3-5.el9.x86_64.rpm   2.4 MB/s | 233 kB     00:00    
(17/38): python3-3.9.10-2.el9.x86_64.rpm        297 kB/s |  30 kB     00:00    
(18/38): python3-setools-4.4.0-4.el9.x86_64.rpm 1.9 MB/s | 600 kB     00:00    
(19/38): python3-setuptools-53.0.0-10.el9.noarc 3.9 MB/s | 946 kB     00:00    
(20/38): python3-setuptools-wheel-53.0.0-10.el9 2.8 MB/s | 471 kB     00:00    
(21/38): python3-pip-wheel-21.2.3-6.el9.noarch. 1.0 MB/s | 1.1 MB     00:01    
(22/38): python3-libs-3.9.10-2.el9.x86_64.rpm   5.7 MB/s | 7.8 MB     00:01    
(23/38): systemd-rpm-macros-250-4.el9.noarch.rp 278 kB/s |  28 kB     00:00    
(24/38): systemd-250-4.el9.x86_64.rpm           5.1 MB/s | 4.2 MB     00:00    
(25/38): systemd-pam-250-4.el9.x86_64.rpm       511 kB/s | 243 kB     00:00    
(26/38): libtool-ltdl-2.4.6-45.el9.x86_64.rpm   104 kB/s |  37 kB     00:00    
(27/38): libdb-utils-5.3.28-53.el9.x86_64.rpm   289 kB/s | 141 kB     00:00    
(28/38): checkpolicy-3.3-1.el9.x86_64.rpm       507 kB/s | 339 kB     00:00    
[MIRROR] mkpasswd-5.5.9-4.el9.x86_64.rpm: Status code: 404 for https://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/9-stream/AppStream/x86_64/os/Packages/mkpasswd-5.5.9-4.el9.x86_64.rpm (IP: 129.143.116.10)
(29/38): policycoreutils-python-utils-3.3-5.el9 730 kB/s |  74 kB     00:00    
(30/38): python3-audit-3.0.7-102.el9.x86_64.rpm 872 kB/s |  84 kB     00:00    
[MIRROR] mkpasswd-5.5.9-4.el9.x86_64.rpm: Status code: 404 for http://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/9-stream/AppStream/x86_64/os/Packages/mkpasswd-5.5.9-4.el9.x86_64.rpm (IP: 129.143.116.10)
(31/38): python3-libsemanage-3.3-3.el9.x86_64.r 852 kB/s |  81 kB     00:00    
(32/38): python3-libselinux-3.3-2.el9.x86_64.rp 1.6 MB/s | 183 kB     00:00    
(33/38): whois-nls-5.5.9-4.el9.noarch.rpm       258 kB/s |  34 kB     00:00    
(34/38): python3-policycoreutils-3.3-5.el9.noar 6.8 MB/s | 2.1 MB     00:00    
(35/38): bdii-5.2.26-8.el9.noarch.rpm           179 kB/s |  30 kB     00:00    
(36/38): glue-schema-2.0.11-8.el9.noarch.rpm    310 kB/s |  34 kB     00:00    
(37/38): mkpasswd-5.5.9-4.el9.x86_64.rpm         33 kB/s |  26 kB     00:00    
(38/38): openldap-servers-2.4.59-1.el9.x86_64.r 3.7 MB/s | 2.1 MB     00:00    
--------------------------------------------------------------------------------
Total                                           3.6 MB/s |  23 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : expat-2.4.7-1.el9.x86_64                              1/38 
  Installing       : glue-schema-2.0.11-8.el9.noarch                       2/38 
  Installing       : whois-nls-5.5.9-4.el9.noarch                          3/38 
  Installing       : mkpasswd-5.5.9-4.el9.x86_64                           4/38 
  Installing       : libtool-ltdl-2.4.6-45.el9.x86_64                      5/38 
  Installing       : libdb-utils-5.3.28-53.el9.x86_64                      6/38 
  Installing       : checkpolicy-3.3-1.el9.x86_64                          7/38 
  Installing       : systemd-rpm-macros-250-4.el9.noarch                   8/38 
  Installing       : python3-setuptools-wheel-53.0.0-10.el9.noarch         9/38 
  Installing       : python3-pip-wheel-21.2.3-6.el9.noarch                10/38 
  Installing       : python3-3.9.10-2.el9.x86_64                          11/38 
  Installing       : python3-libs-3.9.10-2.el9.x86_64                     12/38 
  Installing       : python3-libselinux-3.3-2.el9.x86_64                  13/38 
  Installing       : python3-libsemanage-3.3-3.el9.x86_64                 14/38 
  Installing       : python3-setuptools-53.0.0-10.el9.noarch              15/38 
  Installing       : python3-setools-4.4.0-4.el9.x86_64                   16/38 
  Installing       : python3-audit-3.0.7-102.el9.x86_64                   17/38 
  Installing       : openldap-compat-2.4.59-5.el9.x86_64                  18/38 
  Installing       : openldap-clients-2.4.59-5.el9.x86_64                 19/38 
  Installing       : libselinux-utils-3.3-2.el9.x86_64                    20/38 
  Installing       : policycoreutils-3.3-5.el9.x86_64                     21/38 
  Running scriptlet: policycoreutils-3.3-5.el9.x86_64                     21/38 
  Installing       : python3-policycoreutils-3.3-5.el9.noarch             22/38 
  Installing       : policycoreutils-python-utils-3.3-5.el9.noarch        23/38 
  Installing       : libseccomp-2.5.2-2.el9.x86_64                        24/38 
  Installing       : kmod-libs-28-7.el9.x86_64                            25/38 
  Installing       : json-c-0.14-11.el9.x86_64                            26/38 
  Installing       : acl-2.3.1-3.el9.x86_64                               27/38 
  Installing       : device-mapper-9:1.02.183-4.el9.x86_64                28/38 
  Installing       : device-mapper-libs-9:1.02.183-4.el9.x86_64           29/38 
  Installing       : cryptsetup-libs-2.4.3-4.el9.x86_64                   30/38 
  Installing       : dbus-1:1.12.20-5.el9.x86_64                          31/38 
  Installing       : systemd-pam-250-4.el9.x86_64                         32/38 
  Running scriptlet: systemd-250-4.el9.x86_64                             33/38 
  Installing       : systemd-250-4.el9.x86_64                             33/38 
  Running scriptlet: systemd-250-4.el9.x86_64                             33/38 
  Installing       : dbus-common-1:1.12.20-5.el9.noarch                   34/38 
  Running scriptlet: dbus-common-1:1.12.20-5.el9.noarch                   34/38 
Created symlink /etc/systemd/system/sockets.target.wants/dbus.socket → /usr/lib/systemd/system/dbus.socket.
Created symlink /etc/systemd/user/sockets.target.wants/dbus.socket → /usr/lib/systemd/user/dbus.socket.

  Running scriptlet: dbus-broker-28-5.el9.x86_64                          35/38 
  Installing       : dbus-broker-28-5.el9.x86_64                          35/38 
  Running scriptlet: dbus-broker-28-5.el9.x86_64                          35/38 
Created symlink /etc/systemd/system/dbus.service → /usr/lib/systemd/system/dbus-broker.service.
Created symlink /etc/systemd/user/dbus.service → /usr/lib/systemd/user/dbus-broker.service.

  Running scriptlet: logrotate-3.18.0-5.el9.x86_64                        36/38 
  Installing       : logrotate-3.18.0-5.el9.x86_64                        36/38 
  Running scriptlet: logrotate-3.18.0-5.el9.x86_64                        36/38 
Created symlink /etc/systemd/system/timers.target.wants/logrotate.timer → /usr/lib/systemd/system/logrotate.timer.

  Running scriptlet: openldap-servers-2.4.59-1.el9.x86_64                 37/38 
  Installing       : openldap-servers-2.4.59-1.el9.x86_64                 37/38 
  Running scriptlet: openldap-servers-2.4.59-1.el9.x86_64                 37/38 
  Running scriptlet: bdii-5.2.26-8.el9.noarch                             38/38 
  Installing       : bdii-5.2.26-8.el9.noarch                             38/38 
  Running scriptlet: bdii-5.2.26-8.el9.noarch                             38/38 
  Verifying        : acl-2.3.1-3.el9.x86_64                                1/38 
  Verifying        : cryptsetup-libs-2.4.3-4.el9.x86_64                    2/38 
  Verifying        : dbus-1:1.12.20-5.el9.x86_64                           3/38 
  Verifying        : dbus-broker-28-5.el9.x86_64                           4/38 
  Verifying        : dbus-common-1:1.12.20-5.el9.noarch                    5/38 
  Verifying        : device-mapper-9:1.02.183-4.el9.x86_64                 6/38 
  Verifying        : device-mapper-libs-9:1.02.183-4.el9.x86_64            7/38 
  Verifying        : expat-2.4.7-1.el9.x86_64                              8/38 
  Verifying        : json-c-0.14-11.el9.x86_64                             9/38 
  Verifying        : kmod-libs-28-7.el9.x86_64                            10/38 
  Verifying        : libseccomp-2.5.2-2.el9.x86_64                        11/38 
  Verifying        : libselinux-utils-3.3-2.el9.x86_64                    12/38 
  Verifying        : logrotate-3.18.0-5.el9.x86_64                        13/38 
  Verifying        : openldap-clients-2.4.59-5.el9.x86_64                 14/38 
  Verifying        : openldap-compat-2.4.59-5.el9.x86_64                  15/38 
  Verifying        : policycoreutils-3.3-5.el9.x86_64                     16/38 
  Verifying        : python3-3.9.10-2.el9.x86_64                          17/38 
  Verifying        : python3-libs-3.9.10-2.el9.x86_64                     18/38 
  Verifying        : python3-pip-wheel-21.2.3-6.el9.noarch                19/38 
  Verifying        : python3-setools-4.4.0-4.el9.x86_64                   20/38 
  Verifying        : python3-setuptools-53.0.0-10.el9.noarch              21/38 
  Verifying        : python3-setuptools-wheel-53.0.0-10.el9.noarch        22/38 
  Verifying        : systemd-250-4.el9.x86_64                             23/38 
  Verifying        : systemd-pam-250-4.el9.x86_64                         24/38 
  Verifying        : systemd-rpm-macros-250-4.el9.noarch                  25/38 
  Verifying        : checkpolicy-3.3-1.el9.x86_64                         26/38 
  Verifying        : libdb-utils-5.3.28-53.el9.x86_64                     27/38 
  Verifying        : libtool-ltdl-2.4.6-45.el9.x86_64                     28/38 
  Verifying        : mkpasswd-5.5.9-4.el9.x86_64                          29/38 
  Verifying        : policycoreutils-python-utils-3.3-5.el9.noarch        30/38 
  Verifying        : python3-audit-3.0.7-102.el9.x86_64                   31/38 
  Verifying        : python3-libselinux-3.3-2.el9.x86_64                  32/38 
  Verifying        : python3-libsemanage-3.3-3.el9.x86_64                 33/38 
  Verifying        : python3-policycoreutils-3.3-5.el9.noarch             34/38 
  Verifying        : whois-nls-5.5.9-4.el9.noarch                         35/38 
  Verifying        : bdii-5.2.26-8.el9.noarch                             36/38 
  Verifying        : glue-schema-2.0.11-8.el9.noarch                      37/38 
  Verifying        : openldap-servers-2.4.59-1.el9.x86_64                 38/38 

Installed:
  acl-2.3.1-3.el9.x86_64                                                        
  bdii-5.2.26-8.el9.noarch                                                      
  checkpolicy-3.3-1.el9.x86_64                                                  
  cryptsetup-libs-2.4.3-4.el9.x86_64                                            
  dbus-1:1.12.20-5.el9.x86_64                                                   
  dbus-broker-28-5.el9.x86_64                                                   
  dbus-common-1:1.12.20-5.el9.noarch                                            
  device-mapper-9:1.02.183-4.el9.x86_64                                         
  device-mapper-libs-9:1.02.183-4.el9.x86_64                                    
  expat-2.4.7-1.el9.x86_64                                                      
  glue-schema-2.0.11-8.el9.noarch                                               
  json-c-0.14-11.el9.x86_64                                                     
  kmod-libs-28-7.el9.x86_64                                                     
  libdb-utils-5.3.28-53.el9.x86_64                                              
  libseccomp-2.5.2-2.el9.x86_64                                                 
  libselinux-utils-3.3-2.el9.x86_64                                             
  libtool-ltdl-2.4.6-45.el9.x86_64                                              
  logrotate-3.18.0-5.el9.x86_64                                                 
  mkpasswd-5.5.9-4.el9.x86_64                                                   
  openldap-clients-2.4.59-5.el9.x86_64                                          
  openldap-compat-2.4.59-5.el9.x86_64                                           
  openldap-servers-2.4.59-1.el9.x86_64                                          
  policycoreutils-3.3-5.el9.x86_64                                              
  policycoreutils-python-utils-3.3-5.el9.noarch                                 
  python3-3.9.10-2.el9.x86_64                                                   
  python3-audit-3.0.7-102.el9.x86_64                                            
  python3-libs-3.9.10-2.el9.x86_64                                              
  python3-libselinux-3.3-2.el9.x86_64                                           
  python3-libsemanage-3.3-3.el9.x86_64                                          
  python3-pip-wheel-21.2.3-6.el9.noarch                                         
  python3-policycoreutils-3.3-5.el9.noarch                                      
  python3-setools-4.4.0-4.el9.x86_64                                            
  python3-setuptools-53.0.0-10.el9.noarch                                       
  python3-setuptools-wheel-53.0.0-10.el9.noarch                                 
  systemd-250-4.el9.x86_64                                                      
  systemd-pam-250-4.el9.x86_64                                                  
  systemd-rpm-macros-250-4.el9.noarch                                           
  whois-nls-5.5.9-4.el9.noarch                                                  

Complete!
INFO: 
Finish: run

Comment 5 Diego Herrera 2022-05-24 18:47:26 UTC
If it's ok with you, let's leave it's status as POSTED until BZ2054043 is actually resolved (RHEL 9.1 release) since this will still be a problem for people using EPEL on RHEL9.

Comment 6 Mattias Ellert 2022-11-17 18:37:31 UTC
RHEL 9.1 was released. Closing.


Note You need to log in before you can comment on or make changes to this bug.