[UBUNTU 22.04] Packaging bug in zfcp-hbaapi-utils package

Bug #1980903 reported by bugproxy
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
High
Skipper Bug Screeners
sg3-utils (Ubuntu)
Invalid
Undecided
Unassigned
tableau-parm (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned
zfcp-hbaapi (Ubuntu)
Fix Released
High
Unassigned
Jammy
Fix Released
High
Unassigned
Kinetic
Fix Released
High
Unassigned

Bug Description

SRU Justification:
==================

[Impact]

 * The tools zfcp_show and zfcp_ping from the current zfcp-hbaapi-utils
   package as it is in jammy and kinetic: 2.2.0-0ubuntu1
   are linked to a wrong library version that is not available:

 * $ ldd /usr/bin/zfcp_show | grep not\ found
 libsgutils2.so.2 => not found

 * The version available is:
   $ dpkg -c ./libsgutils2-2_1.46-1build1_s390x.deb | grep libsgutils2
   -rw-r--r-- root/root 264184 2022-03-25 09:57 ./usr/lib/s390x-linux-gnu/libsgutils2-1.46.so.2.0.0
   drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/share/doc/libsgutils2-2/
   lrwxrwxrwx root/root 0 2022-03-25 09:57 ./usr/lib/s390x-linux-gnu/libsgutils2-1.46.so.2 -> libsgutils2-1.46.so.2.0.0

 * This can be fixed by a no change rebuild using the library that exists.

[Test Plan]

 * Install an IBM zSystems LPAR or z/VM guest that uses jammy (or kinetic)
   that uses zfcp disk storage.

 * Library 'libsgutils2' is installed by default in this case.

 * Install package 'zfcp-hbaapi-utils' and 'libzfcphbaapi0' on top.

 * and execute one (or both) of the tools zfcp_show and/or zfcp_ping.

 * With the faulty package one will get:
   $ sudo zfcp_show
   zfcp_show: error while loading shared libraries: libsgutils2.so.2: cannot open shared object file: No such file or directory
   $ sudo zfcp_ping -t97 0x100050eb12345678
zfcp_ping: error while loading shared libraries: libsgutils2.so.2: cannot open shared object file: No such file or directory

 * With the fixed package the proper output is like this:
   $ sudo zfcp_show
   Interconnect Element Name 0x100050eb12345678
   Interconnect Element Domain ID 001
   Interconnect Element Type Switch
   Interconnect Element Ports 048
   ICE Port 000 Online
    Attached Port [WWPN/ID] 0xc05076da12345678 / 0x010000 [N_Port]
    Attached Port [WWPN/ID] 0xc05076da12345679 / 0x010001 [N_Port]
   ...
   $ sudo zfcp_ping -c 3 -t97 0x5005076312345678
   Sending PNG from BUS_ID=0.0.f10b speed=16 GBit/s
    echo received from WWPN (0x5005076312345678) tok=99 time=5.798 ms
    echo received from WWPN (0x5005076312345678) tok=100 time=6.994 ms
    echo received from WWPN (0x5005076312345678) tok=101 time=6.960 ms
   ---------- ping statistics -----------
   min/avg/max = 5.798/6.584/6.994 ms
   --------------------------------------

[Where problems could occur]

 * I cannot think of many problems with a no change rebuild

 * other than in case the new package is not properly published
   or only a subset of the binary packages,

 * or that a change with the tool-chain (that could have happened
   meanwhile) could introduce any build issues.

 * The first one will be checked with the package verification,
   the latter one got checked with the PPA test build:
   https://launchpad.net/~fheimes/+archive/ubuntu/lp1980903

[Other Info]

 * Need to be fixed in jammy and kinetic.
__________

After install of the package zfcp-hbaapi-utils the invocation of the zfcp_show command returns the error message:

zfcp_show: error while loading shared libraries: libsgutils2.so.2: cannot open shared object file: No such file or directory

-------------------------------------------------------
root@t35lp39:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
-------------------------------------------------------

-------------------------------------------------------
root@t35lp39:~# apt install zfcp-hbaapi-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libzfcphbaapi0
The following NEW packages will be installed:
  libzfcphbaapi0 zfcp-hbaapi-utils
0 upgraded, 2 newly installed, 0 to remove and 36 not upgraded.
Need to get 41.4 kB of archives.
After this operation, 152 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
<snip>
-------------------------------------------------------

Installation ended successfully.

-------------------------------------------------------
root@t35lp39:~# zfcp_show
zfcp_show: error while loading shared libraries: libsgutils2.so.2: cannot open shared object file: No such file or directory
-------------------------------------------------------

-------------------------------------------------------
root@t35lp39:~# dpkg -L libsgutils2-2
/.
/usr
/usr/lib
/usr/lib/s390x-linux-gnu
/usr/lib/s390x-linux-gnu/libsgutils2-1.46.so.2.0.0
/usr/share
/usr/share/doc
/usr/share/doc/libsgutils2-2
/usr/share/doc/libsgutils2-2/changelog.Debian.gz
/usr/share/doc/libsgutils2-2/copyright
/usr/lib/s390x-linux-gnu/libsgutils2-1.46.so.2
-------------------------------------------------------

The libsgutils2-2 package was already installed.

-------------------------------------------------------
root@t35lp39:~# dpkg -S libsgutils2.so.2
dpkg-query: no path found matching pattern *libsgutils2.so.2*
-------------------------------------------------------

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-198884 severity-high targetmilestone-inin22041
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → linux (Ubuntu)
Frank Heimes (fheimes)
affects: linux (Ubuntu) → zfcp-hbaapi (Ubuntu)
Changed in ubuntu-z-systems:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
Changed in zfcp-hbaapi (Ubuntu):
importance: Undecided → High
Changed in ubuntu-z-systems:
importance: Undecided → High
Revision history for this message
Frank Heimes (fheimes) wrote :

The current version of 'zfcp-hbaapi-utils' as it is today in jammy (2.2.0-0ubuntu1)
has indeed a dangling library reference:
$ apt-cache policy zfcp-hbaapi-utils libsgutils2-2
zfcp-hbaapi-utils:
  Installed: 2.2.0-0ubuntu1
  Candidate: 2.2.0-0ubuntu1
  Version table:
 *** 2.2.0-0ubuntu1 500
        500 http://ports.ubuntu.com/ubuntu-ports jammy/universe s390x Packages
        100 /var/lib/dpkg/status
libsgutils2-2:
  Installed: 1.46-1build1
  Candidate: 1.46-1build1
  Version table:
 *** 1.46-1build1 500
        500 http://ports.ubuntu.com/ubuntu-ports jammy/main s390x Packages
        100 /var/lib/dpkg/status
$ ldd /usr/bin/zfcp_show
 linux-vdso64.so.1 (0x000003ffa80fe000)
 libzfcphbaapi.so.0 => /lib/s390x-linux-gnu/libzfcphbaapi.so.0 (0x000003ffa7f00000)
 libc.so.6 => /lib/s390x-linux-gnu/libc.so.6 (0x000003ffa7d00000)
 libsgutils2.so.2 => not found
 libpthread.so.0 => /lib/s390x-linux-gnu/libpthread.so.0 (0x000003ffa7c80000)
 /lib/ld64.so.1 (0x000003ffa8080000)
$
$ dpkg -c ./libsgutils2-2_1.46-1build1_s390x.deb
drwxr-xr-x root/root 0 2022-03-25 09:57 ./
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/lib/
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/lib/s390x-linux-gnu/
-rw-r--r-- root/root 264184 2022-03-25 09:57 ./usr/lib/s390x-linux-gnu/libsgutils2-1.46.so.2.0.0
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/share/
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/share/doc/
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/share/doc/libsgutils2-2/
-rw-r--r-- root/root 1604 2022-03-25 09:57 ./usr/share/doc/libsgutils2-2/changelog.Debian.gz
-rw-r--r-- root/root 2804 2021-08-17 15:51 ./usr/share/doc/libsgutils2-2/copyright
lrwxrwxrwx root/root 0 2022-03-25 09:57 ./usr/lib/s390x-linux-gnu/libsgutils2-1.46.so.2 -> libsgutils2-1.46.so.2.0.0
ubuntu@s1lp14:~$

This can be fixed by a no change rebuild with the latest 'libsgutils2-2'
that will link correctly:
I've did a rebuild in PPA: https://launchpad.net/~fheimes/+archive/ubuntu/lp1980903
that solves this:
$ apt-cache policy zfcp-hbaapi-utils
zfcp-hbaapi-utils:
  Installed: 2.2.0-0ubuntu1.1
  Candidate: 2.2.0-0ubuntu1.1
  Version table:
 *** 2.2.0-0ubuntu1.1 500
        500 https://ppa.launchpadcontent.net/fheimes/lp1980903/ubuntu jammy/main s390x Packages
        100 /var/lib/dpkg/status
     2.2.0-0ubuntu1 500
        500 http://ports.ubuntu.com/ubuntu-ports jammy/universe s390x Packages
$
$ ldd /usr/bin/zfcp_ping
 linux-vdso64.so.1 (0x000003ff833fe000)
 libzfcphbaapi.so.0 => /lib/s390x-linux-gnu/libzfcphbaapi.so.0 (0x000003ff83200000)
 libc.so.6 => /lib/s390x-linux-gnu/libc.so.6 (0x000003ff83000000)
 libsgutils2-1.46.so.2 => /lib/s390x-linux-gnu/libsgutils2-1.46.so.2 (0x000003ff82f80000)
 /lib/ld64.so.1 (0x000003ff83380000)
$

Revision history for this message
Frank Heimes (fheimes) wrote :
Revision history for this message
Frank Heimes (fheimes) wrote :
Changed in ubuntu-z-systems:
status: New → In Progress
Changed in zfcp-hbaapi (Ubuntu):
status: New → In Progress
assignee: Skipper Bug Screeners (skipper-screen-team) → nobody
tags: added: jammy kinetic
Revision history for this message
Frank Heimes (fheimes) wrote :

The transition is trivial, since no reverse dependencies exist:
$ reverse-depends -a source src:zfcp-hbaapi
No reverse dependencies found

Frank Heimes (fheimes)
description: updated
Changed in zfcp-hbaapi (Ubuntu Jammy):
status: New → In Progress
importance: Undecided → High
Revision history for this message
Simon Chopin (schopin) wrote :

This intrigued me, so I dug a bit deeper. Turns out we're falling into https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994758

That means at least those packages could be affected:

❯ reverse-depends -a source libsgutils2-dev
Reverse-Build-Depends
* ledmon
* libgpod
* lsvpd
* tableau-parm
* zfcp-hbaapi

Simon Chopin (schopin)
tags: added: fr-2577
Simon Chopin (schopin)
Changed in tableau-parm (Ubuntu Jammy):
status: New → Confirmed
Changed in tableau-parm (Ubuntu Kinetic):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zfcp-hbaapi - 2.2.0-0ubuntu2

---------------
zfcp-hbaapi (2.2.0-0ubuntu2) kinetic; urgency=medium

  * No-change rebuild against rebuild against sg3-utils (LP: #1980903)

 -- Simon Chopin <email address hidden> Tue, 13 Sep 2022 13:10:13 +0200

Changed in zfcp-hbaapi (Ubuntu Kinetic):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tableau-parm - 0.2.0-6build1

---------------
tableau-parm (0.2.0-6build1) kinetic; urgency=medium

  * No-change rebuild against rebuild against sg3-utils (LP: #1980903)

 -- Simon Chopin <email address hidden> Tue, 13 Sep 2022 13:09:52 +0200

Changed in tableau-parm (Ubuntu Kinetic):
status: Confirmed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello bugproxy, or anyone else affected,

Accepted tableau-parm into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/tableau-parm/0.2.0-6build0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in tableau-parm (Ubuntu Jammy):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-jammy
Changed in zfcp-hbaapi (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello bugproxy, or anyone else affected,

Accepted zfcp-hbaapi into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/zfcp-hbaapi/2.2.0-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Frank Heimes (fheimes) wrote :

With a little adjustment in the test case I was able to successfully verify this on jammy.
With that I'm adjusting the tags accordingly.

description: updated
Changed in ubuntu-z-systems:
status: In Progress → Fix Committed
Frank Heimes (fheimes)
tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Simon Chopin (schopin) wrote :

Sorry, I forgot to add tableau-parm to the verification checklist. In any case, I just verified it:

❯ tableau-parm
tableau-parm: error while loading shared libraries: libsgutils2-1.45.so.2: cannot open shared object file: No such file or directory

❯ sudo apt install -t jammy-proposed tableau-parm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  tableau-parm
1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Need to get 11.4 kB of archives.
After this operation, 3072 B disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 tableau-parm amd64 0.2.0-6build0.1 [11.4 kB]
Fetched 11.4 kB in 0s (258 kB/s)
(Reading database ... 99439 files and directories currently installed.)
Preparing to unpack .../tableau-parm_0.2.0-6build0.1_amd64.deb ...
Unpacking tableau-parm (0.2.0-6build0.1) over (0.2.0-6) ...
Setting up tableau-parm (0.2.0-6build0.1) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

❯ tableau-parm
ERROR: Wrong number of arguments.
Usage: tableau-parm [-r] <DEVICE>
Version: 0.2.0

 DEVICE A SCSI block device, such as /dev/sd?

 -r Removes DCO (and possibly HPA) from the device.
   THIS WILL MODIFY THE STATE OF THE DEVICE!!

Copyright (C) 2007,2009 Timothy D. Morgan
Copyright (C) 1999,2001,2006,2007 D. Gilbert

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the conditions of the GNU General Public License, version 3.
For more information, see the LICENSE file included in this
software distribution, or http://www.gnu.org/licenses/.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Thank you for verifying tableau-parm even though it wasn't on the test case! We probably should have noticed it missing from the test case, but things like this are not always obvious.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zfcp-hbaapi - 2.2.0-0ubuntu1.1

---------------
zfcp-hbaapi (2.2.0-0ubuntu1.1) jammy; urgency=medium

  * Rebuild against sg3-utils (LP: #1980903)

 -- Simon Chopin <email address hidden> Tue, 13 Sep 2022 13:26:16 +0200

Changed in zfcp-hbaapi (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tableau-parm - 0.2.0-6build0.1

---------------
tableau-parm (0.2.0-6build0.1) jammy; urgency=medium

  * Rebuild against sg3-utils (LP: #1980903)

 -- Simon Chopin <email address hidden> Tue, 13 Sep 2022 13:24:44 +0200

Changed in tableau-parm (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for zfcp-hbaapi has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Fix Committed → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2022-10-26 10:40 EDT-------
The bug was fixed in jammy / U22.04, therefore we can close this item.

Thanks for your work!

=> Changing the status to: CLOSED

Simon Chopin (schopin)
Changed in sg3-utils (Ubuntu):
status: New → Invalid
no longer affects: sg3-utils (Ubuntu Jammy)
no longer affects: sg3-utils (Ubuntu Kinetic)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.