RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2021154 - Move nbdkit-null-plugin to nbdkit-server package
Summary: Move nbdkit-null-plugin to nbdkit-server package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nbdkit
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Vera
URL:
Whiteboard:
Depends On:
Blocks: 2016527
TreeView+ depends on / blocked
 
Reported: 2021-11-08 13:20 UTC by Richard W.M. Jones
Modified: 2022-05-17 13:12 UTC (History)
9 users (show)

Fixed In Version: nbdkit-1.28.2-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:50:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-101976 0 None None None 2021-11-08 13:21:44 UTC
Red Hat Product Errata RHEA-2022:2408 0 None None None 2022-05-17 12:51:08 UTC

Description Richard W.M. Jones 2021-11-08 13:20:54 UTC
Description of problem:

Currently the nbdkit-server package is the pure nbdkit server
with no plugins or filters.  It is packaged like this to
reduce overhead for people who want to ship their own plugin
and don't care about the built-in ones.

The way we'll actually use this from libvirt (bug 2016527) is
to use something like:

  Requires: nbdkit-server, nbdkit-curl-plugin, nbdkit-ssh-plugin

This would result in nbdkit server + only the curl and ssh plugins
being installed.

The problem with this is that the documentation describes using
"nbdkit --filter=X null ..." to probe for filters, assuming therefore
that nbdkit-null-plugin is always installed.
(https://libguestfs.org/nbdkit-probing.1.html)

The solution is to move nbdkit-null-plugin (only) into nbdkit-server.
It is not very large - just 16K - so does not add significantly
to the size of the nbdkit server package, and does not any dependencies.

Version-Release number of selected component (if applicable):

nbdkit-server-1.28.1-2.el9

The same change in Fedora:
https://src.fedoraproject.org/rpms/nbdkit/c/048b8de83c0e54418e01b3f75fc541fcf1b539e3?branch=rawhide

Comment 3 Vera 2021-12-17 07:20:02 UTC
Verified with the version below:
nbdkit-1.28.3-2.el9.x86_64

Steps:
1. check if "nbdkit-null-plugin" exists;
# man nbdkit-null-plugin
nbdkit-null-plugin(1)                                               NBDKIT                                               nbdkit-null-plugin(1)

NAME
       nbdkit-null-plugin - nbdkit bitbucket plugin

SYNOPSIS
        nbdkit null [[size=]SIZE]

..................


nbdkit-1.28.3                                                     2021-12-08                                             nbdkit-null-plugin(1)

2. check the commands;
# nbdkit foo --version
nbdkit: error: cannot open plugin 'foo': /usr/lib64/nbdkit/plugins/nbdkit-foo-plugin.so: cannot open shared object file: No such file or directory
Use 'nbdkit --help' or read the nbdkit(1) manual page for documentation.

# nbdkit --filter=foo null --version
nbdkit: error: cannot open filter 'foo': /usr/lib64/nbdkit/filters/nbdkit-foo-filter.so: cannot open shared object file: No such file or directory



Hi rjones,
Do you have any suggestions to verify this bug on the QA side?
Thanks,
Vera

Comment 4 Richard W.M. Jones 2021-12-17 10:11:57 UTC
The file /usr/lib64/nbdkit/plugins/nbdkit-null-plugin.so should have
moved from nbdkit-basic-plugins to nbdkit-server.  Try comparing
the output of these commands across the two versions of nbdkit:

$ rpm -ql nbdkit-basic-plugins | grep null-plugin

$ rpm -ql nbdkit-server | grep null-plugin

Comment 5 Vera 2021-12-21 03:08:19 UTC
Thanks, rjones.

Verified with the version below:
nbdkit-1.28.3-2.el9.x86_64

Steps:
1. check if "nbdkit-null-plugin" exists;

# ls -al /usr/lib64/nbdkit/plugins/nbdkit-null-plugin.so
-rwxr-xr-x. 1 root root 16432 Dec  8 07:06 /usr/lib64/nbdkit/plugins/nbdkit-null-plugin.so

# man nbdkit-null-plugin
nbdkit-null-plugin(1)                                               NBDKIT                                               nbdkit-null-plugin(1)

NAME
       nbdkit-null-plugin - nbdkit bitbucket plugin

SYNOPSIS
        nbdkit null [[size=]SIZE]

..................


nbdkit-1.28.3                                                     2021-12-08                                             nbdkit-null-plugin(1)

2. compare with 2 versions of nbdkit and check the following commands;

# rpm -qa nbdkit
nbdkit-1.28.3-2.el9.x86_64
# rpm -ql nbdkit-basic-plugins | grep null-plugin
# rpm -ql nbdkit-server | grep null-plugin
/usr/lib64/nbdkit/plugins/nbdkit-null-plugin.so
/usr/share/man/man1/nbdkit-null-plugin.1.gz


# rpm -qa nbdkit
nbdkit-1.24.0-3.module+el8.6.0+12861+13975d62.x86_64
# rpm -ql nbdkit-basic-plugins | grep null-plugin
/usr/lib64/nbdkit/plugins/nbdkit-null-plugin.so
/usr/share/man/man1/nbdkit-null-plugin.1.gz
# rpm -ql nbdkit-server | grep null-plugin
#


Moving status to VERIFIED.

Comment 7 errata-xmlrpc 2022-05-17 12:50:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: nbdkit), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:2408


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