[Bug 1980903] Re: [UBUNTU 22.04] Packaging bug in zfcp-hbaapi-utils package

Simon Chopin 1980903 at bugs.launchpad.net
Mon Feb 13 14:24:54 UTC 2023


** Changed in: sg3-utils (Ubuntu)
       Status: New => Invalid

** No longer affects: sg3-utils (Ubuntu Jammy)

** No longer affects: sg3-utils (Ubuntu Kinetic)

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1980903

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

Status in Ubuntu on IBM z Systems:
  Fix Released
Status in sg3-utils package in Ubuntu:
  Invalid
Status in tableau-parm package in Ubuntu:
  Fix Released
Status in zfcp-hbaapi package in Ubuntu:
  Fix Released
Status in tableau-parm source package in Jammy:
  Fix Released
Status in zfcp-hbaapi source package in Jammy:
  Fix Released
Status in tableau-parm source package in Kinetic:
  Fix Released
Status in zfcp-hbaapi source package in Kinetic:
  Fix Released

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 at 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 at 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 at t35lp39:~# zfcp_show
  zfcp_show: error while loading shared libraries: libsgutils2.so.2: cannot open shared object file: No such file or directory
  -------------------------------------------------------

  -------------------------------------------------------
  root at 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 at t35lp39:~# dpkg -S libsgutils2.so.2
  dpkg-query: no path found matching pattern *libsgutils2.so.2*
  -------------------------------------------------------

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1980903/+subscriptions




More information about the Ubuntu-sponsors mailing list