[UBUNTU 22.04] Packaging bug in zfcp-hbaapi-utils package
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-
-rw-r--r-- root/root 264184 2022-03-25 09:57 ./usr/lib/
drwxr-xr-x root/root 0 2022-03-25 09:57 ./usr/share/
lrwxrwxrwx root/root 0 2022-03-25 09:57 ./usr/lib/
* 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 (0x500507631234
echo received from WWPN (0x500507631234
echo received from WWPN (0x500507631234
---------- 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:/
[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_
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/
/usr/lib/
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/lib/
-------
The libsgutils2-2 package was already installed.
-------
root@t35lp39:~# dpkg -S libsgutils2.so.2
dpkg-query: no path found matching pattern *libsgutils2.so.2*
-------
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) |
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 |
description: | updated |
Changed in zfcp-hbaapi (Ubuntu Jammy): | |
status: | New → In Progress |
importance: | Undecided → High |
tags: | added: fr-2577 |
Changed in tableau-parm (Ubuntu Jammy): | |
status: | New → Confirmed |
Changed in tableau-parm (Ubuntu Kinetic): | |
status: | New → Confirmed |
tags: |
added: verification-done verification-done-jammy removed: verification-needed verification-needed-jammy |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
Changed in sg3-utils (Ubuntu): | |
status: | New → Invalid |
no longer affects: | sg3-utils (Ubuntu Jammy) |
no longer affects: | sg3-utils (Ubuntu Kinetic) |
The current version of 'zfcp-hbaapi-utils' as it is today in jammy (2.2.0-0ubuntu1) ports.ubuntu. com/ubuntu- ports jammy/universe s390x Packages dpkg/status ports.ubuntu. com/ubuntu- ports jammy/main s390x Packages dpkg/status e000) linux-gnu/ libzfcphbaapi. so.0 (0x000003ffa7f0 0000) linux-gnu/ libc.so. 6 (0x000003ffa7d0 0000) linux-gnu/ libpthread. so.0 (0x000003ffa7c8 0000) 0000) 2_1.46- 1build1_ s390x.deb s390x-linux- gnu/ s390x-linux- gnu/libsgutils2 -1.46.so. 2.0.0 doc/libsgutils2 -2/ doc/libsgutils2 -2/changelog. Debian. gz doc/libsgutils2 -2/copyright s390x-linux- gnu/libsgutils2 -1.46.so. 2 -> libsgutils2- 1.46.so. 2.0.0
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://
100 /var/lib/
libsgutils2-2:
Installed: 1.46-1build1
Candidate: 1.46-1build1
Version table:
*** 1.46-1build1 500
500 http://
100 /var/lib/
$ ldd /usr/bin/zfcp_show
linux-vdso64.so.1 (0x000003ffa80f
libzfcphbaapi.so.0 => /lib/s390x-
libc.so.6 => /lib/s390x-
libsgutils2.so.2 => not found
libpthread.so.0 => /lib/s390x-
/lib/ld64.so.1 (0x000003ffa808
$
$ dpkg -c ./libsgutils2-
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/
-rw-r--r-- root/root 264184 2022-03-25 09:57 ./usr/lib/
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/
-rw-r--r-- root/root 1604 2022-03-25 09:57 ./usr/share/
-rw-r--r-- root/root 2804 2021-08-17 15:51 ./usr/share/
lrwxrwxrwx root/root 0 2022-03-25 09:57 ./usr/lib/
ubuntu@s1lp14:~$
This can be fixed by a no change rebuild with the latest 'libsgutils2-2' /launchpad. net/~fheimes/ +archive/ ubuntu/ lp1980903 /ppa.launchpadc ontent. net/fheimes/ lp1980903/ ubuntu jammy/main s390x Packages dpkg/status ports.ubuntu. com/ubuntu- ports jammy/universe s390x Packages e000) linux-gnu/ libzfcphbaapi. so.0 (0x000003ff8320 0000) linux-gnu/ libc.so. 6 (0x000003ff8300 0000) 1.46.so. 2 => /lib/s390x- linux-gnu/ libsgutils2- 1.46.so. 2 (0x000003ff82f8 0000) 0000)
that will link correctly:
I've did a rebuild in PPA: https:/
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:/
100 /var/lib/
2.2.0-0ubuntu1 500
500 http://
$
$ ldd /usr/bin/zfcp_ping
linux-vdso64.so.1 (0x000003ff833f
libzfcphbaapi.so.0 => /lib/s390x-
libc.so.6 => /lib/s390x-
libsgutils2-
/lib/ld64.so.1 (0x000003ff8338
$