Bug 2110630 - Missing nss-tools dependency
Summary: Missing nss-tools dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: mreynolds
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-25 17:51 UTC by Endi Sukma Dewata
Modified: 2022-07-26 16:13 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-2.1.3-2.fc36
Clone Of:
Environment:
Last Closed: 2022-07-26 16:13:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Endi Sukma Dewata 2022-07-25 17:51:59 UTC
Recently the nss-tools dependency was removed from 389-ds-base.spec:
https://src.fedoraproject.org/rpms/389-ds-base/c/31b818c739ceee72e0ab4179c879d8efeacf2ba4?branch=f36

If 389-ds-base package was installed without nss-tools, dscreate will
fail because it's still calling certutil.

Steps to reproduce:
1. Install 389-ds-base without nss-tools
2. Use dscreate to create a basic DS instance

Actual result: DS instance creation failed (see dscreate logs below).
Expected result: DS instance should be created successfully.

dscreate logs:

DEBUG: nss cmd: /usr/bin/certutil -N -d /etc/dirsrv/slapd-localhost -f /etc/dirsrv/slapd-localhost/pwdfile.txt -@ /etc/dirsrv/slapd-localhost/pwdfile.txt
DEBUG: [Errno 2] No such file or directory: '/usr/bin/certutil'
Traceback (most recent call last):
  File "/usr/sbin/dscreate", line 99, in <module>
    result = args.func(inst, log, args)
  File "/usr/lib/python3.10/site-packages/lib389/cli_ctl/instance.py", line 71, in instance_create
    if sd.create_from_inf(args.file):
  File "/usr/lib/python3.10/site-packages/lib389/instance/setup.py", line 560, in create_from_inf
    self.create_from_args(general, slapd, backends, self.extra)
  File "/usr/lib/python3.10/site-packages/lib389/instance/setup.py", line 696, in create_from_args
    self._install_ds(general, slapd, backends)
  File "/usr/lib/python3.10/site-packages/lib389/instance/setup.py", line 918, in _install_ds
    tlsdb.reinit()
  File "/usr/lib/python3.10/site-packages/lib389/nss_ssl.py", line 210, in reinit
    result = ensure_str(check_output(cmd, stderr=subprocess.STDOUT))
  File "/usr/lib64/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib64/python3.10/subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib64/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/certutil'
ERROR: Error: [Errno 2] No such file or directory: '/usr/bin/certutil'

Comment 1 mreynolds 2022-07-25 18:29:40 UTC
This must have happened by accident in the latest build, both F35 and F37 have nss-tools.  Will fix this in the next build...

Comment 2 Fedora Update System 2022-07-25 20:09:06 UTC
FEDORA-2022-c9d943a1ff has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c9d943a1ff

Comment 3 mreynolds 2022-07-25 20:13:56 UTC
@edewata would you mind verifying this build and giving it karma?

https://bodhi.fedoraproject.org/updates/FEDORA-2022-c9d943a1ff

Comment 4 Endi Sukma Dewata 2022-07-25 20:46:40 UTC
I created a COPR build using the same SRPM then reran the CI. The problem is no
longer happening. Thanks!

Comment 5 Fedora Update System 2022-07-26 16:13:39 UTC
FEDORA-2022-c9d943a1ff has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


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