Multiple issues found on Ubuntu 20.04 against drmgr

Bug #2023243 reported by bugproxy
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
High
Ubuntu on IBM Power Systems Bug Triage
powerpc-utils (Ubuntu)
Fix Released
High
Patricia Domingues
Focal
Fix Released
Undecided
Patricia Domingues
Jammy
Fix Released
Undecided
Unassigned
Lunar
Fix Released
Undecided
Unassigned
Mantic
Fix Released
High
Patricia Domingues

Bug Description

SRU for Focal

[ Impact ]
 * Customers using Focal are hitting several issues with drmgr command.
 * drmgr command cannot add or remove a vty-server (server vterm device) slot - it fails finding an existent slot.
 * Open terminal for a LPAR and hit ctrl+c - closes the terminal
 * ctrl+] doesn't kill the terminal as expected.

[ Test Plan ]
 * running the script provided by IBM (original bug description at `---Steps to Reproduce---`) - adjusting to your devices

[ Where problems could occur ]
 * commit 60d9f54 introduces modifications in drmgr's hotplugging,
hence in case of issues with these modifications, hotplugging could be harmed or even broken.
 * commit b0586b5 changes internal structures for parsing new DRC info,
so things could go wrong in case the parsing has issues, or the storage in the data structure is not done properly.
Issues here could in worst case lead to unforeseen problems, but this code is now upstream like several years.
 * Package is ppc64el architecture only.

[other]
 * The commits are upstream with v1.3.8 (and newer), so we only need to add them on Focal. ___________________________________________________________________________

== Comment: #0 - SANUJIT HOTA <email address hidden> - 2023-05-09 12:40:54 ==

---Problem Description---
1. drmgr command fails as it doesn't find a slot
2. drmgr throws error while removing the slot
3. ctrl+c closes the terminal opened for any vm
4. ctrl+] doesn't close the terminal. But comes out with an extra 'Enter'

Contact Information = <email address hidden>, <email address hidden>

---uname output---
Linux novap9zz 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:04 UTC 2023 ppc64le ppc64le ppc64le GNU/Linux

Machine Type = type_model=9009-42A,serial_num=13C647W

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 Issue#1
=======
neo@novap9zz:~$ date;mkvterm --id 24;date
Tue May 9 13:23:40 EDT 2023
+ . gettext.sh
++ test 'X\t' = 'X\t'
++ echo=echo
++ test -z ''
++ case "$0" in
+ hvcsadmin=/usr/sbin/hvcsadmin
+ hvcsdevlimit=1024
+ pvmutil=/usr/sbin/pvmutil
+ socat=/usr/bin/socat
+ rmvterm=/usr/sbin/rmvtermutil
+ openvt=/bin/openvt
+ '[' -f /usr/bin/linuxvnc ']'
+ linuxvnc=/usr/bin/linuxvnc
+ flock=/usr/bin/flock
+ modprobe=/sbin/modprobe
+ slattach=/sbin/slattach
+ ifconfig=/sbin/ifconfig
+ tcpdump=/usr/sbin/tcpdump
+ Xvfb=/usr/bin/Xvfb
+ x11vnc=/usr/bin/x11vnc
+ java=/opt/pvm-rest/lib/wlp/java/bin/java
+ xinit=/usr/bin/xinit
+ bash=/bin/bash
+ xterm=/usr/bin/xterm
+ pgrep=/usr/bin/pgrep
+ giveUsage=0
+ lparId=0
+ lparIsIBMi=false
+ vnc=0
+ localVNC=0
+ ttyNumber=-1
+ vncPort=
+ vncPasswd=
+ vncDesktop=
+ lockFile=/tmp/vterm.lck
+ lockTimeout=15
+ lockFD=3
+ logFile=
+ socatParms=STDIO,raw,echo=0,escape=0x1d
+ socatParmsVNC=STDIO,raw,echo=0
+ useXterm=false
+ xtermParms='-fa xft:DejaVuSansMono:size=12 +sb -rv -e '
+ xtermSuffix1=' -- /usr/bin/Xvfb'
+ xtermSuffix2=' -screen 0 804x484x8 -nolisten tcp'
+ vncPortFile=/var/run/vterm_rfbport_lp
+ ptsLink=/var/run/5250_lp
+ socatParms5250=pty,raw,echo=0,link=/var/run/5250_lp
+ prefixLocal5250=10.252
+ prefixRemote5250=10.253
+ xvfbParms='-screen 0 976x615x8'
+ emulatorLocation=/opt/pvm/5250/
+ emulatorSettingsLocation=/etc/pvm/data/
+ emulatorSettingsLocationForLpar=/etc/pvm/data/lpar/
+ emulatorParms='-Xmx40m -cp /opt/pvm/5250/acshmchod.jar com.ibm.eNetwork.hmchod.HmcHod '
+ emulatorParmsSuffix1=' -port 2300 -title emulator_settings X X '
+ emulatorParmsSuffix2=' -- /usr/bin/Xvfb'
+ emulatorParmsSuffix3=' -screen 0 1024x768x24 -nolisten tcp'
+ RET_FAIL=1
+ RET_ITEMS_NOT_INSTALLED=2
+ RET_VTERM_ALREADY_STARTED=3
+ RET_OUT_OF_VTERMS=4
+ RET_USAGE=99
+ socatPid=-1
+ slattachPid=-1
+ declare -A lang_code
+ lang_code=([930]=0 [e930]=1 [939]=2 [1399]=3 [e1399]=4)
+ codePage=(930 930 939 1399 1399)
+ codePageKey=(KEY_JAPAN_KATAKANA KEY_JAPAN_KATAKANA_EX KEY_JAPAN_ENGLISH_EX KEY_JAPAN_LATIN_EXTENDED KEY_JAPAN_LATIN_EXTENDED_JIS2004)
+ fontName=(Monospaced)
+ pdfFont=(KozMinPro-Regular-Acro)
++ getopt -o h --long id:,help,vnc,local,passwdfile:,log:,vncport:,vncdesktop:,codepage: -- --id 24
+ TEMP=' --id '\''24'\'' --'
+ '[' 0 -ne 0 ']'
+ eval set -- ' --id '\''24'\'' --'
++ set -- --id 24 --
+ true
+ case "$1" in
+ lparId=24
+ shift 2
+ true
+ case "$1" in
+ break
+ [[ 24 -eq 0 ]]
+ [[ 24 =~ ^[0-9]+$ ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ /usr/sbin/pvmutil -o getrmcstatus
+ grep lpar_id=24,
+ grep os400
+ '[' 1 -eq 0 ']'
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ false = true ]]
+ [[ -n '' ]]
+ [[ false = false ]]
+ [[ -e /usr/bin/xinit ]]
+ [[ -e /usr/bin/Xvfb ]]
+ [[ -e /usr/bin/xterm ]]
+ [[ -e /usr/bin/x11vnc ]]
+ useXterm=true
++ expr 1024 - 1
+ '[' '!' -e /dev/hvcs1023 ']'
+ [[ false = true ]]
+ pvmhvcsadmin=/tmp/pvmhvcsadmin
+ '[' -s /tmp/pvmhvcsadmin ']'
+ hvcsadmin=/tmp/pvmhvcsadmin
+ chmod +x /tmp/pvmhvcsadmin
+ grep -F '=~ /.+(3\d+)$/' /tmp/pvmhvcsadmin
+ '[' 1 -eq 0 ']'
++ /usr/sbin/pvmutil -o create_vterm_dev --id 24
+ createDev=drc_index=30000008,drc_name=U9009.42A.13C647W-V1-C8
+ '[' 0 -ne 0 ']'
+ exec
+ /usr/bin/flock -x -w 15 3
+ '[' 0 -ne 0 ']'
+ trap '$flock -u $lockFD' SIGHUP SIGINT SIGTERM EXIT
++ /tmp/pvmhvcsadmin -all
+ hvcsCloseAll=
++ /tmp/pvmhvcsadmin -status
++ grep 'partition:24 '
+ hvcsConsoleString=
+ [[ -z '' ]]
+ gettext 'Warning - vterm not found. You likely have run out of vterm devices.'
Warning - vterm not found. You likely have run out of vterm devices.+ echo

+ gettext 'Attempting to clean up unused devices. Please wait...'
Attempting to clean up unused devices. Please wait...+ echo

++ /usr/sbin/pvmutil -o delete_vterm_dev --id 24
+ deleteDev=
+ '[' 0 -ne 0 ']'
+ /usr/sbin/rmvtermutil --inactive
Error removing the vterm device /dev/hvcs0 for partition 2:
[PVME0105FF05-0187] Command /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r -w 3 returned 3. Additional messages: /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r -w 3
Validating I/O DLPAR capability...yes.
There are no DR capable slots on this system
U9009.42A.13C647W-V1-C5 does not exist

Error removing the vterm device /dev/hvcs1 for partition 8:
[PVME0105FF05-0187] Command /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C7' -r -w 3 returned 3. Additional messages: /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C7' -r -w 3
Validating I/O DLPAR capability...yes.
There are no DR capable slots on this system
U9009.42A.13C647W-V1-C7 does not exist

++ /usr/sbin/pvmutil -o create_vterm_dev --id 24
[PVME0105FF05-0187] Command /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C8' -a -w 3 returned 255. Additional messages: /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C8' -a -w 3
Validating I/O DLPAR capability...yes.
There are no DR capable slots on this system
Could not find drc index for U9009.42A.13C647W-V1-C8, unable to add theslot.

+ createDev=
+ '[' 1 -ne 0 ']'
+ gettext 'Error creating a vterm device:'
Error creating a vterm device:+ echo

+ echo

+ exit 1
+ /usr/bin/flock -u 3
Tue May 9 13:24:16 EDT 2023
neo@novap9zz:~$

Issue#2
=======
Open terminal for a vm with mkvterm command, try to close it with ctrl+].

$ ^]
+ exitClean
+ lastCmd=0
+ [[ -z '' ]]
+ socatRet=0
+ '[' 0 -ne 0 ']'
+ echo ''

+ gettext 'Cleaning up...'
Cleaning up...+ echo

+ [[ true = true ]]
++ expr 100 + 2
+ pkill --full -SIGKILL '/usr/bin/x11vnc.*-display :102'
+ [[ false = true ]]
+ pkill --full -SIGHUP '.*/dev/hvcs0.*'
+ pkill --full -SIGKILL '.*/dev/hvcs0.*'
++ expr 100 + 2
+ pkill --full -SIGKILL '.*/usr/bin/Xvfb :102 .*'
+ /tmp/pvmhvcsadmin -close /dev/hvcs0
++ /usr/sbin/pvmutil -o delete_vterm_dev --id 2
+ deleteDev='[PVME0105FF05-0187] Command /usr/sbin/pvmdrmgr drmgr -c slot -s '\''U9009.42A.13C647W-V1-C5'\'' -r -w 3 returned 3. Additional messages: /usr/sbin/pvmdrmgr drmgr -c slot -s '\''U9009.42A.13C647W-V1-C5'\'' -r -w 3
Validating I/O DLPAR capability...yes.
There are no DR capable slots on this system
U9009.42A.13C647W-V1-C5 does not exist
 '
+ '[' 1 -ne 0 ']'
+ gettext 'Error removing the vterm device:'
Error removing the vterm device:+ echo

+ echo '[PVME0105FF05-0187]' Command /usr/sbin/pvmdrmgr drmgr -c slot -s ''\''U9009.42A.13C647W-V1-C5'\''' -r -w 3 returned 3. Additional messages: /usr/sbin/pvmdrmgr drmgr -c slot -s ''\''U9009.42A.13C647W-V1-C5'\''' -r -w 3 Validating I/O DLPAR capability...yes. There are no DR capable slots on this system U9009.42A.13C647W-V1-C5 does not exist
[PVME0105FF05-0187] Command /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r -w 3 returned 3. Additional messages: /usr/sbin/pvmdrmgr drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r -w 3 Validating I/O DLPAR capability...yes. There are no DR capable slots on this system U9009.42A.13C647W-V1-C5 does not exist
+ exit 1
Tue May 9 13:29:34 EDT 2023
neo@novap9zz:~$

Issue#3
=======
Open terminal for a vm and hit ctrl+c. terminal closes.

Issue#4
=======
ctrl+] doesn't kill the terminal. User needs to hit 'Enter'.

Userspace tool common name: mkvterm

The userspace tool has the following bit modes: 64

Userspace rpm: na

Userspace tool obtained from project website: na

*Additional Instructions for <email address hidden>, <email address hidden>:
-Post a private note with access information to the machine that the bug is occuring on.
-Attach ltrace and strace of userspace application.

== Comment: #1 - Application Cdeadmin <email address hidden> - 2023-05-09 13:05:39 ==
<===This is bridged from RTC description===>
This is the description of the defect added by LTC - RTC bridge automatically,bridged from LTC https://bugzilla.linux.ibm.com/show_bug.cgi?id=202546.
</===End of RTC description===>

== Comment: #2 - Luciano Chavez <email address hidden> - 2023-05-10 09:54:24 ==
This bug reported looks similar to

Bug 191386 - [Regression] RHEL8.3 zstream - drmgr command failing (DLPAR) (powerpc-utils?)

which was due to older version of drmgr having been bundled in the pvm-core package rather than using the provided 1.3.6 version that came with RHEL.

Here on the Ubuntu 20.04LTS we have the same binary for drmgr...

neo@novap9zz:~$ whereis drmgr
drmgr: /usr/sbin/drmgr /usr/local/sbin/drmgr
neo@novap9zz:~$ md5sum /usr/sbin/drmgr /usr/local/sbin/drmgr
c7863c699a2761567ae9d9b75dcc7854 /usr/sbin/drmgr
c7863c699a2761567ae9d9b75dcc7854 /usr/local/sbin/drmgr

yet according to the list of packages installed, is based on a fairly older version of powerpc-utils-1.3.4-0ubuntu2 which is still the latest available for 20.04 LTS. Current versions of Ubuntu provide version 1.3.10-2

Assigning to Nathan to review and see which changes might be missing in order to resolve this. I'll also attach a sosreport collected from the LPAR...

== Comment: #3 - Luciano Chavez <email address hidden> - 2023-05-10 09:55:44 ==

== Comment: #4 - Nathan Lynch <email address hidden> - 2023-05-10 15:21:34 ==
Assigning to Scott.

== Comment: #5 - Scott Cheloha <email address hidden> - 2023-05-11 09:58:31 ==
(In reply to comment #2)
> This bug reported looks similar to
>
> Bug 191386 - [Regression] RHEL8.3 zstream - drmgr command failing (DLPAR)
> (powerpc-utils?)
>
> which was due to older version of drmgr having been bundled in the pvm-core
> package rather than using the provided 1.3.6 version that came with RHEL.
>
> Here on the Ubuntu 20.04LTS we have the same binary for drmgr...
>
> neo@novap9zz:~$ whereis drmgr
> drmgr: /usr/sbin/drmgr /usr/local/sbin/drmgr
> neo@novap9zz:~$ md5sum /usr/sbin/drmgr /usr/local/sbin/drmgr
> c7863c699a2761567ae9d9b75dcc7854 /usr/sbin/drmgr
> c7863c699a2761567ae9d9b75dcc7854 /usr/local/sbin/drmgr
>
> yet according to the list of packages installed, is based on a fairly older
> version of powerpc-utils-1.3.4-0ubuntu2 which is still the latest available
> for 20.04 LTS. Current versions of Ubuntu provide version 1.3.10-2
>
> Assigning to Nathan to review and see which changes might be missing in
> order to resolve this. I'll also attach a sosreport collected from the
> LPAR...

It also resembles this:

https://bugzilla.linux.ibm.com/show_bug.cgi?id=186675

== Comment: #6 - RITU AGARWAL <email address hidden> - 2023-05-16 00:22:34 ==
The issues mentioned here is after using default drmgr provided by OS.
Yes we saw similar issues and fix has been provided for RHEL, which If i am not wrong was with socat as well.

== Comment: #7 - RITU AGARWAL <email address hidden> - 2023-05-18 00:21:22 ==
Any update ?

== Comment: #8 - RITU AGARWAL <email address hidden> - 2023-06-02 04:21:10 ==
Any update? We are seeing this issue in customer env also. Customer is looking for update.

== Comment: #9 - Scott Cheloha <email address hidden> - 2023-06-05 11:58:06 ==
(In reply to comment #8)
> Any update? We are seeing this issue in customer env also. Customer is
> looking for update.

I can't figure out what's wrong with my current permissions.

Is there a root password for that NovaLink partition? That would help me look at what the utilities are doing under the hood.

== Comment: #10 - Scott Cheloha <email address hidden> - 2023-06-05 12:35:32 ==
The version of powerpc-utils installed on this partition is ancient:

neo@novap9zz:~$ apt info powerpc-utils
Package: powerpc-utils
Version: 1.3.4-0ubuntu2
Priority: important
Section: metapackages
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Adam Conrad <adconrad@0c3.net>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11.3 kB
Depends: powerpc-ibm-utils
Homepage: http://powerpc-utils.ozlabs.org/
Task: minimal
Download-Size: 1,784 B
APT-Manual-Installed: yes
APT-Sources: http://us.ports.ubuntu.com/ubuntu-ports focal/main ppc64el Packages
Description: utilities for maintenance of PowerPC platforms (metapackage)
 The powerpc-utils metapackage pulls in the appropriate tools for each
 Debian PowerPC port.

I see that 22.04 ("Jammy Jellyfish") packages powerpc-utils 1.3.9, but that 20.04 (Focal Fossa) is still packaging 1.3.4.

Is there a protocol for advancing the packaged version in upstream for a given release?

== Comment: #11 - Scott Cheloha <email address hidden> - 2023-06-05 12:41:13 ==
(In reply to comment #10)
> The version of powerpc-utils installed on this partition is ancient:
>
> neo@novap9zz:~$ apt info powerpc-utils
> Package: powerpc-utils
> Version: 1.3.4-0ubuntu2
> Priority: important
> Section: metapackages
> Origin: Ubuntu
> Maintainer: Ubuntu Developers <email address hidden>
> Original-Maintainer: Adam Conrad <adconrad@0c3.net>
> Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> Installed-Size: 11.3 kB
> Depends: powerpc-ibm-utils
> Homepage: http://powerpc-utils.ozlabs.org/
> Task: minimal
> Download-Size: 1,784 B
> APT-Manual-Installed: yes
> APT-Sources: http://us.ports.ubuntu.com/ubuntu-ports focal/main ppc64el
> Packages
> Description: utilities for maintenance of PowerPC platforms (metapackage)
> The powerpc-utils metapackage pulls in the appropriate tools for each
> Debian PowerPC port.

To be perfectly clear: powerpc-utils 1.3.4 was tagged Sep 1 2017:

https://github.com/ibm-power-utilities/powerpc-utils/commit/2e26d2996789a1e61dd0a872f579dc5768128836

I suspect many bugs have been fixed in the interim.

== Comment: #12 - RITU AGARWAL <email address hidden> - 2023-06-06 01:50:27 ==
(In reply to comment #9)
> (In reply to comment #8)
> > Any update? We are seeing this issue in customer env also. Customer is
> > looking for update.
>
> I can't figure out what's wrong with my current permissions.
>
> Is there a root password for that NovaLink partition? That would help me
> look at what the utilities are doing under the hood.

You can "sudo su" to be root on novalink.

== Comment: #13 - RITU AGARWAL <email address hidden> - 2023-06-06 01:56:29 ==
(In reply to comment #11)
> (In reply to comment #10)
> > The version of powerpc-utils installed on this partition is ancient:
> >
> > neo@novap9zz:~$ apt info powerpc-utils
> > Package: powerpc-utils
> > Version: 1.3.4-0ubuntu2
> > Priority: important
> > Section: metapackages
> > Origin: Ubuntu
> > Maintainer: Ubuntu Developers <email address hidden>
> > Original-Maintainer: Adam Conrad <adconrad@0c3.net>
> > Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> > Installed-Size: 11.3 kB
> > Depends: powerpc-ibm-utils
> > Homepage: http://powerpc-utils.ozlabs.org/
> > Task: minimal
> > Download-Size: 1,784 B
> > APT-Manual-Installed: yes
> > APT-Sources: http://us.ports.ubuntu.com/ubuntu-ports focal/main ppc64el
> > Packages
> > Description: utilities for maintenance of PowerPC platforms (metapackage)
> > The powerpc-utils metapackage pulls in the appropriate tools for each
> > Debian PowerPC port.
>
> To be perfectly clear: powerpc-utils 1.3.4 was tagged Sep 1 2017:
>
> https://github.com/ibm-power-utilities/powerpc-utils/commit/
> 2e26d2996789a1e61dd0a872f579dc5768128836
>
> I suspect many bugs have been fixed in the interim.

What is the plan to build powerPS util for ubuntu 20.04 with latest code ?

== Comment: #14 - Scott Cheloha <email address hidden> - 2023-06-06 14:34:59 ==
(In reply to comment #13)
> (In reply to comment #11)
> > (In reply to comment #10)
> > > The version of powerpc-utils installed on this partition is ancient:
> > >
> > > neo@novap9zz:~$ apt info powerpc-utils
> > > Package: powerpc-utils
> > > Version: 1.3.4-0ubuntu2
> > > Priority: important
> > > Section: metapackages
> > > Origin: Ubuntu
> > > Maintainer: Ubuntu Developers <email address hidden>
> > > Original-Maintainer: Adam Conrad <adconrad@0c3.net>
> > > Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> > > Installed-Size: 11.3 kB
> > > Depends: powerpc-ibm-utils
> > > Homepage: http://powerpc-utils.ozlabs.org/
> > > Task: minimal
> > > Download-Size: 1,784 B
> > > APT-Manual-Installed: yes
> > > APT-Sources: http://us.ports.ubuntu.com/ubuntu-ports focal/main ppc64el
> > > Packages
> > > Description: utilities for maintenance of PowerPC platforms (metapackage)
> > > The powerpc-utils metapackage pulls in the appropriate tools for each
> > > Debian PowerPC port.
> >
> > To be perfectly clear: powerpc-utils 1.3.4 was tagged Sep 1 2017:
> >
> > https://github.com/ibm-power-utilities/powerpc-utils/commit/
> > 2e26d2996789a1e61dd0a872f579dc5768128836
> >
> > I suspect many bugs have been fixed in the interim.
>
> What is the plan to build powerPS util for ubuntu 20.04 with latest code ?

What do you mean by "plan"?

The problem is that the distribution is packaging an ancient release of powerpc-utils. They need to package a newer release.

Who on the NovaLink team is responsible for coordinating dependencies with Ubuntu packaging? That person needs to reach out to the person on the Ubuntu side responsible for packaging powerpc-utils and ask them to package powerpc-utils 1.3.9, if not 1.3.10, as they do for all later OS releases.

== Comment: #15 - Scott Cheloha <email address hidden> - 2023-06-06 14:50:05 ==
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #11)
> > > (In reply to comment #10)
> > > > The version of powerpc-utils installed on this partition is ancient:
> > > >
> > > > neo@novap9zz:~$ apt info powerpc-utils
> > > > Package: powerpc-utils
> > > > Version: 1.3.4-0ubuntu2
> > > > Priority: important
> > > > Section: metapackages
> > > > Origin: Ubuntu
> > > > Maintainer: Ubuntu Developers <email address hidden>
> > > > Original-Maintainer: Adam Conrad <adconrad@0c3.net>
> > > > Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> > > > Installed-Size: 11.3 kB
> > > > Depends: powerpc-ibm-utils
> > > > Homepage: http://powerpc-utils.ozlabs.org/
> > > > Task: minimal
> > > > Download-Size: 1,784 B
> > > > APT-Manual-Installed: yes
> > > > APT-Sources: http://us.ports.ubuntu.com/ubuntu-ports focal/main ppc64el
> > > > Packages
> > > > Description: utilities for maintenance of PowerPC platforms (metapackage)
> > > > The powerpc-utils metapackage pulls in the appropriate tools for each
> > > > Debian PowerPC port.
> > >
> > > To be perfectly clear: powerpc-utils 1.3.4 was tagged Sep 1 2017:
> > >
> > > https://github.com/ibm-power-utilities/powerpc-utils/commit/
> > > 2e26d2996789a1e61dd0a872f579dc5768128836
> > >
> > > I suspect many bugs have been fixed in the interim.
> >
> > What is the plan to build powerPS util for ubuntu 20.04 with latest code ?
>
> What do you mean by "plan"?
>
> The problem is that the distribution is packaging an ancient release of
> powerpc-utils. They need to package a newer release.
>
> Who on the NovaLink team is responsible for coordinating dependencies with
> Ubuntu packaging? That person needs to reach out to the person on the
> Ubuntu side responsible for packaging powerpc-utils and ask them to package
> powerpc-utils 1.3.9, if not 1.3.10, as they do for all later OS releases.

Alternatively, you could upgrade the release to 22.04.2, which packages a newer release of powerpc-utils.

== Comment: #16 - Scott Cheloha <email address hidden> - 2023-06-06 15:27:19 ==
I built powerpc-utils 1.3.11 on the partition in:

/home/neo/powerpc-utils-1.3.11

The installed drmgr cannot add a vty-server slot:

# drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -a
Validating I/O DLPAR capability...yes.
There are no DR capable slots on this system
Could not find drc index for U9009.42A.13C647W-V1-C5, unable to add theslot.
# tail -n 10 /var/log/drmgr
########## Jun 06 16:17:50 2023 ##########
drmgr: -c slot -s U9009.42A.13C647W-V1-C5 -a
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
Could not find DRC property group in path: /proc/device-tree/vdevice.
There are no DR capable slots on this system
Could not find DRC property group in path: /proc/device-tree.
Could not find drc index for U9009.42A.13C647W-V1-C5, unable to add theslot.
########## Jun 06 16:17:50 2023 ##########

The drmgr I built can do it:

# /home/neo/powerpc-utils-1.3.11/src/drmgr/drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -a
Validating I/O DLPAR capability...yes.
# tail -n 31 /var/log/drmgr
########## Jun 06 16:19:29 2023 ##########
drmgr: -c slot -s U9009.42A.13C647W-V1-C5 -a
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
Could not find DRC property group in path: /proc/device-tree/ibm,platform-keystore.
Could not find DRC property group in path: /proc/device-tree/memory@0.
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
Could not find DRC property group in path: /proc/device-tree/ibm,platform-facilities.
Could not find DRC property group in path: /proc/device-tree/interrupt-controller@0.
Could not find DRC property group in path: /proc/device-tree/rtas.
Could not find DRC property group in path: /proc/device-tree/ibm,serial.
Could not find DRC property group in path: /proc/device-tree/options.
Could not find DRC property group in path: /proc/device-tree/openprom.
Could not find DRC property group in path: /proc/device-tree/ibm,dynamic-reconfiguration-memory.
Could not find DRC property group in path: /proc/device-tree/interrupt-controller@800000025000017.
Could not find DRC property group in path: /proc/device-tree/event-sources.
Could not find DRC property group in path: /proc/device-tree/aliases.
Could not find DRC property group in path: /proc/device-tree/packages.
Could not find DRC property group in path: /proc/device-tree/chosen.
Acquiring drc index 0x30000005
get-sensor for 30000005: 0, 2
Setting allocation state to 'alloc usable'
Setting indicator state to 'unisolate'
Configuring connector for drc index 30000005
Adding device-tree node /proc/device-tree/vdevice/vty-server@30000005
ofdt update: add_node /vdevice/vty-server@30000005 name 11 vty-server
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
performing kernel op for U9009.42A.13C647W-V1-C5, file is /sys/bus/pci/slots/control/add_slot
########## Jun 06 16:19:29 2023 ##########

--

The drmgr binary I built can also remove vty-server slots:

# /home/neo/powerpc-utils-1.3.11/src/drmgr/drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r
Validating I/O DLPAR capability...yes.
# tail -n 17 /var/log/drmgr
########## Jun 06 16:22:01 2023 ##########
drmgr: -c slot -s U9009.42A.13C647W-V1-C5 -r
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
get-sensor for 30000005: 0, 1
The sensor-state of drc_index 0x30000005 is 1
performing kernel op for U9009.42A.13C647W-V1-C5, file is /sys/bus/pci/slots/control/remove_slot
Releasing drc index 0x30000005
get-sensor for 30000005: 0, 1
Setting isolation state to 'isolate'
Setting allocation state to 'alloc unusable'
get-sensor for 30000005: 0, 2
drc_index 30000005 sensor-state: 2
Resource is not available to the partition.
Removing device-tree node /proc/device-tree/vdevice/vty-server@30000005
########## Jun 06 16:22:01 2023 ##########

The installed drmgr chokes when trying to remove the same slot:

# drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r
Validating I/O DLPAR capability...yes.
There are no DR capable slots on this system
U9009.42A.13C647W-V1-C5 does not exist
# tail -n 9 /var/log/drmgr
########## Jun 06 16:23:20 2023 ##########
drmgr: -c slot -s U9009.42A.13C647W-V1-C5 -r
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
Could not find DRC property group in path: /proc/device-tree/vdevice.
There are no DR capable slots on this system
U9009.42A.13C647W-V1-C5 does not exist
########## Jun 06 16:23:20 2023 ##########

So, I think the newer powerpc-utils release may help to resolve the problem here.

== Comment: #18 - Scott Cheloha <email address hidden> - 2023-06-07 13:39:33 ==
Mirroring to Launchpad to bring the package maintainers into the loop.

Revision history for this message
bugproxy (bugproxy) wrote : sosreport

Default Comment by Bridge

tags: added: architecture-ppc64le bugnameltc-202546 severity-high targetmilestone-inin2004
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → powerpc-utils (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Changed in powerpc-utils (Ubuntu):
importance: Undecided → Medium
importance: Medium → High
Changed in ubuntu-power-systems:
importance: Undecided → High
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2023-06-20 11:41 EDT-------
When can we expect this package would be available for ubuntu 20.04 customers?

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

Hello Ritu,
well, it's unfortunately not possible to just update the version in an Ubuntu release that is already out and in service.
We can only update the package to it's latest version (1.3.11) as part of the current development release (which is as of today 23.10, code-name 'mantic').

For all the other affected releases (in service) we need to either ask for an upstream commit that can be cherrypicked and fixes the issue, or in case this is not possible (means the cherrypick does not work cleanly), for a backport.
$ rmadison powerpc-utils
...
 powerpc-utils | 1.3.4-0ubuntu2 | focal | source, ppc64el
 powerpc-utils | 1.3.9-1ubuntu1 | jammy | source, ppc64el
 powerpc-utils | 1.3.9-1ubuntu2 | kinetic | source, ppc64el
 powerpc-utils | 1.3.10-2 | lunar | source, ppc64el
 powerpc-utils | 1.3.10-2 | mantic | source, ppc64el
And this needs to be done for all releases down to 20.04, to avoid any potential regressions with Ubuntu release upgrades.
(However, we may skip 22.10/kinetic, since it will reach it's end of live very shortly).

We have to stick to the so called 'stable release upgrade' (in short 'SRU') process:
https://wiki.ubuntu.com/StableReleaseUpdates
for such kind of fixes/updates.

So it's unfortunately needed to find the upstream commits (https://github.com/ibm-power-utilities/powerpc-utils/commits) that fixe all these glitches and we would like to ask the vendor for help on this.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2023-07-10 13:30 EDT-------
FYI, As of now we are looking this fix for ubuntu20.04.

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

@Ritu, so can you help with identifying the correct upstream commits that fix the issues mentioned?

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2023-07-11 11:38 EDT-------
(In reply to comment #27)
> @Ritu, so can you help with identifying the correct upstream commits that
> fix the issues mentioned?

There are hundreds of commits between version 1.3.4 and 1.3.11.
Backporting the relevant fixes will yield an unstable, untested
Frankenstein's monster.

powerpc-utils 1.3.4 is *ancient*. It was tagged in 2017. It was
two releases out-of-date when Ubuntu 20.04 was released in 2020.

Keeping Ubuntu 20.04 chained to powerpc-utils 1.3.4 is inhibiting
support for new hardware. Every new version of powerpc-utils adds
support for the latest POWER hardware. Version 1.3.4 does not
have complete support for POWER 9. It has no support for POWER 10,
and it will have no support for the forthcoming POWER 11.

Can we offer a separate version of the package as an option alongside
1.3.4?

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

Somehow between bionic/18.04 and focal/20.04 there was not much activity and not a lot of updates on the powerpc-utils package, indeed:
$ rmadison powerpc-utils
 powerpc-utils | 1.2.18+r1.1.3-24ubuntu1 | trusty | source, powerpc, ppc64el
 powerpc-utils | 1.3.1-2 | xenial | source, powerpc, ppc64el
 powerpc-utils | 1.3.1-2ubuntu0.3 | xenial-updates | source, powerpc, ppc64el
 powerpc-utils | 1.3.4-0ubuntu2 | bionic | source, ppc64el
 powerpc-utils | 1.3.4-0ubuntu2 | focal | source, ppc64el
 powerpc-utils | 1.3.9-1ubuntu1 | jammy | source, ppc64el
 powerpc-utils | 1.3.9-1ubuntu2 | kinetic | source, ppc64el
 powerpc-utils | 1.3.10-2 | lunar | source, ppc64el
 powerpc-utils | 1.3.10-2 | mantic | source, ppc64el

We are happy to take requests to upgrade to the latest version, always as part of the current development release (always before Feature Freeze) - and we will consider updating powerpc-utils to latest v1.3.11 for mantic/23.10, the release that is currently in development.
I've now also subscribed myself to GH powerpc-utils for all new tags (releases) to get a notification.

Please notice that there is no P10 support in 20.04 (nor P11) and there will be never support for it - in 20.04, since it would mean that we have to lift the architectural level that we compile for.
That can only be done in the release that is currently in development.
And even trying to install will end up in an illegal instruction error - it's just not compiled for it (except one emulates an older architecture or runs in compat mode - if possible).

For P9 and P10 one actually has to migrate to the latest 22.04 LTS: https://ubuntu.com/download/server/power
20.04 is only still an option in case of P8.

I know that getting the commits to fix something in an older release can be painful, esp. if cherry-picking does not work cleanly and backports are needed - but it's due to the Ubuntu SRU process, that only allows important and critical fixes anyway, so not meant for version bumps, bigger patches or major new features.

We can of course (re-)build the latest version we have in the archive (currently v1.3.10) for focal in a PPA - and that is what I just did: https://launchpad.net/~fheimes/+archive/ubuntu/lp2023243
But this is also not ideal, since this version may for example have support for some P10 hardware features, but the underlying 20.04 has no support for this level - so the door is even more open for further issues one may run into.
So please handle the powerpc-utils package in ppa:fheimes/lp2023243 with care.

Revision history for this message
bugproxy (bugproxy) wrote :
Revision history for this message
Patricia Domingues (patriciasd) wrote :
Revision history for this message
Patricia Domingues (patriciasd) wrote :
Changed in powerpc-utils (Ubuntu):
status: New → In Progress
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Patricia Domingues (patriciasd)
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerpc-utils - 1.3.11-0ubuntu1

---------------
powerpc-utils (1.3.11-0ubuntu1) mantic; urgency=medium

  * New upstream release (LP: #2023243)
  * d/p/0001-Change-program-path-for-udevadm-from-usr-bin-to-bin.patch id
    still required

 -- Patricia Domingues <email address hidden> Wed, 26 Jul 2023 16:44:24 -0300

Changed in powerpc-utils (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (3.5 KiB)

------- Comment From <email address hidden> 2023-08-10 11:35 EDT-------
(In reply to comment #29)
>
> Somehow between bionic/18.04 and focal/20.04 there was not much activity and
> not a lot of updates on the powerpc-utils package, indeed:
> $ rmadison powerpc-utils
> powerpc-utils | 1.2.18+r1.1.3-24ubuntu1 | trusty | source, powerpc,
> ppc64el
> powerpc-utils | 1.3.1-2 | xenial | source, powerpc,
> ppc64el
> powerpc-utils | 1.3.1-2ubuntu0.3 | xenial-updates | source, powerpc,
> ppc64el
> powerpc-utils | 1.3.4-0ubuntu2 | bionic | source, ppc64el
> powerpc-utils | 1.3.4-0ubuntu2 | focal | source, ppc64el
> powerpc-utils | 1.3.9-1ubuntu1 | jammy | source, ppc64el
> powerpc-utils | 1.3.9-1ubuntu2 | kinetic | source, ppc64el
> powerpc-utils | 1.3.10-2 | lunar | source, ppc64el
> powerpc-utils | 1.3.10-2 | mantic | source, ppc64el
>
> We are happy to take requests to upgrade to the latest version, always as
> part of the current development release (always before Feature Freeze) - and
> we will consider updating powerpc-utils to latest v1.3.11 for mantic/23.10,
> the release that is currently in development.
> I've now also subscribed myself to GH powerpc-utils for all new tags
> (releases) to get a notification.
>
> Please notice that there is no P10 support in 20.04 (nor P11) and there will
> be never support for it - in 20.04, since it would mean that we have to lift
> the architectural level that we compile for.
> That can only be done in the release that is currently in development.
> And even trying to install will end up in an illegal instruction error -
> it's just not compiled for it (except one emulates an older architecture or
> runs in compat mode - if possible).

I think you have misunderstood what I meant when I said "support for P10 and P11". I was not referring to architectural features, e.g. new machine instructions. I was referring to new hypervisor features only available on hypervisor versions shipped for newer hardware.

> For P9 and P10 one actually has to migrate to the latest 22.04 LTS:
> https://ubuntu.com/download/server/power
> 20.04 is only still an option in case of P8.
>
> I know that getting the commits to fix something in an older release can be
> painful, esp. if cherry-picking does not work cleanly and backports are
> needed - but it's due to the Ubuntu SRU process, that only allows important
> and critical fixes anyway, so not meant for version bumps, bigger patches or
> major new features.

This fix is critical and important. If drmgr is misbehaving then the NovaLink partition cannot reliably orchestrate hotplug operations on the other LPARs. This cripples the machine's ability to interoperate with other machines in the cloud.

> We can of course (re-)build the latest version we have in the archive
> (currently v1.3.10) for focal in a PPA - and that is what I just did:
> https://launchpad.net/~fheimes/+archive/ubuntu/lp2023243
> But this is also not ideal, since this version may for example have support
> for some P10 hardware features, but the underlying 20.0...

Read more...

Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (6.4 KiB)

------- Comment From <email address hidden> 2023-08-30 15:56 EDT-------
We need to add commit "powerpc-utils/devtree: Parse 'ibm,drc-info' property" (b0586b5) in order for drmgr to add a slot and remove a slot.

I believe this is because Canonical has backported kernel patch "powerpc/pseries: Enable support for ibm,drc-info property" to the latest kernel level in Focal. I believe the slots were not being added correctly and removed correctly due to parsing failures.

---

In addition, I want to recommend we add commit "drmgr: don't bother with hp children for non PCI slots" (60d9f54). When removing a slot there are some harmless error messages:

root@novap9zz:/home/neo# /home/neo/powerpc-utils-1.3.4-patched/src/drmgr/drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -r
Validating I/O DLPAR capability...yes.
failed to open /sys/bus/pci/slots/U9009.42A.13C647W-V1-C5/power: No such file or directory
failed to disable hotplug children

Non-pci devices do not have hotpluggable children. These error messages could lead a user to open another bug.

---

After applying both powerpc-utils commits I listed above and building, drmgr appears to work correctly:

root@novap9zz:/home/neo# /home/neo/powerpc-utils-1.3.4-patched/src/drmgr/drmgr -c slot -s 'U9009.42A.13C647W-V1-C5' -a
Validating I/O DLPAR capability...yes.
root@novap9zz:/home/neo# tail -n 31 /var/log/drmgr
########## Aug 30 19:15:04 2023 ##########
drmgr: -c slot -s U9009.42A.13C647W-V1-C5 -a
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
Could not find DRC property group in path: /proc/device-tree/ibm,platform-keystore.
Could not find DRC property group in path: /proc/device-tree/memory@0.
Could not find DRC property group in path: /proc/device-tree/pci@800000020000017.
Could not find DRC property group in path: /proc/device-tree/ibm,platform-facilities.
Could not find DRC property group in path: /proc/device-tree/interrupt-controller@0.
Could not find DRC property group in path: /proc/device-tree/rtas.
Could not find DRC property group in path: /proc/device-tree/ibm,serial.
Could not find DRC property group in path: /proc/device-tree/options.
Could not find DRC property group in path: /proc/device-tree/openprom.
Could not find DRC property group in path: /proc/device-tree/ibm,dynamic-reconfiguration-memory.
Could not find DRC property group in path: /proc/device-tree/interrupt-controller@800000025000017.
Could not find DRC property group in path: /proc/device-tree/event-sources.
Could not find DRC property group in path: /proc/device-tree/aliases.
Could not find DRC property group in path: /proc/device-tree/packages.
Could not find DRC property group in path: /proc/device-tree/chosen.
Acquiring drc index 0x30000005
get-sensor for 30000005: 0, 2
Setting allocation state to 'alloc usable'
Setting indicator state to 'unisolate'
Configuring connector for drc index 30000005
Adding device-tree node /proc/device-tree/vdevice/vty-server@30000005
ofdt update: add_node /vdevice/vty-server@30000005 name 11 vty-server
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/pci@8...

Read more...

Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (6.8 KiB)

------- Comment From <email address hidden> 2023-09-07 15:25 EDT-------
(In reply to comment #36)
> We need to add commit "powerpc-utils/devtree: Parse 'ibm,drc-info' property"
> (b0586b5) in order for drmgr to add a slot and remove a slot.
>
> I believe this is because Canonical has backported kernel patch
> "powerpc/pseries: Enable support for ibm,drc-info property" to the latest
> kernel level in Focal. I believe the slots were not being added correctly
> and removed correctly due to parsing failures.
>
> ---
>
> In addition, I want to recommend we add commit "drmgr: don't bother with hp
> children for non PCI slots" (60d9f54). When removing a slot there are some
> harmless error messages:
>
>
> root@novap9zz:/home/neo#
> /home/neo/powerpc-utils-1.3.4-patched/src/drmgr/drmgr -c slot -s
> 'U9009.42A.13C647W-V1-C5' -r
> Validating I/O DLPAR capability...yes.
> failed to open /sys/bus/pci/slots/U9009.42A.13C647W-V1-C5/power: No such
> file or directory
> failed to disable hotplug children
>
>
> Non-pci devices do not have hotpluggable children. These error messages
> could lead a user to open another bug.
>
> ---
>
> After applying both powerpc-utils commits I listed above and building, drmgr
> appears to work correctly:
>
>
> root@novap9zz:/home/neo#
> /home/neo/powerpc-utils-1.3.4-patched/src/drmgr/drmgr -c slot -s
> 'U9009.42A.13C647W-V1-C5' -a
> Validating I/O DLPAR capability...yes.
> root@novap9zz:/home/neo# tail -n 31 /var/log/drmgr
> ########## Aug 30 19:15:04 2023 ##########
> drmgr: -c slot -s U9009.42A.13C647W-V1-C5 -a
> Validating I/O DLPAR capability...yes.
> Getting node types 0x00000003
> Could not find DRC property group in path:
> /proc/device-tree/pci@800000020000017.
> Could not find DRC property group in path:
> /proc/device-tree/ibm,platform-keystore.
> Could not find DRC property group in path: /proc/device-tree/memory@0.
> Could not find DRC property group in path:
> /proc/device-tree/pci@800000020000017.
> Could not find DRC property group in path:
> /proc/device-tree/ibm,platform-facilities.
> Could not find DRC property group in path:
> /proc/device-tree/interrupt-controller@0.
> Could not find DRC property group in path: /proc/device-tree/rtas.
> Could not find DRC property group in path: /proc/device-tree/ibm,serial.
> Could not find DRC property group in path: /proc/device-tree/options.
> Could not find DRC property group in path: /proc/device-tree/openprom.
> Could not find DRC property group in path:
> /proc/device-tree/ibm,dynamic-reconfiguration-memory.
> Could not find DRC property group in path:
> /proc/device-tree/interrupt-controller@800000025000017.
> Could not find DRC property group in path: /proc/device-tree/event-sources.
> Could not find DRC property group in path: /proc/device-tree/aliases.
> Could not find DRC property group in path: /proc/device-tree/packages.
> Could not find DRC property group in path: /proc/device-tree/chosen.
> Acquiring drc index 0x30000005
> get-sensor for 30000005: 0, 2
> Setting allocation state to 'alloc usable'
> Setting indicator state to 'unisolate'
> Configuring connector for drc index 30000005
> Adding device-tree node /proc/device-tree/vdevice/vty-server@30000005
> ofdt...

Read more...

Revision history for this message
bugproxy (bugproxy) wrote : 0001-drmgr-don-t-bother-with-hp-children-for-non-PCI-slot.patch

------- Comment (attachment only) From <email address hidden> 2023-09-07 15:23 EDT-------

Revision history for this message
bugproxy (bugproxy) wrote : 0001-powerpc-utils-devtree-Parse-ibm-drc-info-property.patch

------- Comment (attachment only) From <email address hidden> 2023-09-07 15:24 EDT-------

Revision history for this message
Patricia Domingues (patriciasd) wrote :

thanks for sending the patches.

both are upstream since v1.3.8

patricia@lh:~$ rmadison powerpc-utils
 powerpc-utils | 1.2.18+r1.1.3-24ubuntu1 | trusty | source, powerpc, ppc64el
 powerpc-utils | 1.3.1-2 | xenial | source, powerpc, ppc64el
 powerpc-utils | 1.3.1-2ubuntu0.3 | xenial-updates | source, powerpc, ppc64el
 powerpc-utils | 1.3.4-0ubuntu2 | bionic | source, ppc64el
 powerpc-utils | 1.3.4-0ubuntu2 | focal | source, ppc64el
 powerpc-utils | 1.3.9-1ubuntu1 | jammy | source, ppc64el
 powerpc-utils | 1.3.10-2 | lunar | source, ppc64el
 powerpc-utils | 1.3.11-1 | mantic | source, ppc64el

which means jammy and lunar already have them. So we can delete jammy and lunar as affected releases.

Frank Heimes (fheimes)
no longer affects: powerpc-utils (Ubuntu Jammy)
no longer affects: powerpc-utils (Ubuntu Lunar)
Revision history for this message
Patricia Domingues (patriciasd) wrote :

A test build of a patched package for Focal is available at this PPA:
https://launchpad.net/~patriciasd/+archive/ubuntu/focal.powerpc-utils.lp2023243

Revision history for this message
Patricia Domingues (patriciasd) wrote :

attaching the debdiff file for FOCAL

description: updated
Changed in powerpc-utils (Ubuntu Focal):
status: New → In Progress
assignee: nobody → Patricia Domingues (patriciasd)
Frank Heimes (fheimes)
description: updated
Revision history for this message
Simon Chopin (schopin) wrote :

I uploaded the powerpc-utils patch to Focal, thanks.

I'm assuming folks at IBM are willing to help with the verification once it's accepted?

Revision history for this message
Patricia Domingues (patriciasd) wrote :

Hello, thanks Simon. Yes, IBM is aware that we will need then for the verification.

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla
Download full text (8.6 KiB)

------- Comment From <email address hidden> 2023-09-29 14:05 EDT-------
Attaching the latest error message and stack trace

neo@p8-110-neo:~$ mkvterm --id 8
[PVME03000147-0404] Virtual adapter defined for virtual slot number 5 is in use and cannot be removed.

Error creating a vterm device:

neo@p8-110-neo:~$ mkvterm --id 8
[PVME03000147-0404] Virtual adapter defined for virtual slot number 5 is in use and cannot be removed.

Error creating a vterm device:

neo@p8-110-neo:~$

root@p8-110-neo:/home/neo# /usr/sbin/mkvtermutil --id 8
+ . gettext.sh
++ test 'X\t' = 'X\t'
++ echo=echo
++ test -z ''
++ case "$0" in
+ hvcsadmin=/usr/sbin/hvcsadmin
+ hvcsdevlimit=1024
+ pvmutil=/usr/sbin/pvmutil
+ socat=/usr/bin/socat
+ rmvterm=/usr/sbin/rmvtermutil
+ openvt=/bin/openvt
+ '[' -f /usr/bin/linuxvnc ']'
+ linuxvnc=/usr/bin/linuxvnc
+ flock=/usr/bin/flock
+ modprobe=/sbin/modprobe
+ slattach=/sbin/slattach
+ ifconfig=/sbin/ifconfig
+ tcpdump=/usr/sbin/tcpdump
+ Xvfb=/usr/bin/Xvfb
+ x11vnc=/usr/bin/x11vnc
+ java=/opt/pvm-rest/lib/wlp/java/bin/java
+ xinit=/usr/bin/xinit
+ bash=/bin/bash
+ xterm=/usr/bin/xterm
+ pgrep=/usr/bin/pgrep
+ giveUsage=0
+ lparId=0
+ logFileDir=/var/log/pvm/mkvtermLogs
+ logFilePath=
+ lparIsIBMi=false
+ vnc=0
+ localVNC=0
+ ttyNumber=-1
+ vncPort=
+ vncPasswd=
+ vncDesktop=
+ lockFile=/tmp/vterm.lck
+ lockTimeout=15
+ lockFD=3
+ logFile=
+ socatParms=STDIO,raw,echo=0,escape=0x1d
+ socatParmsVNC=STDIO,raw,echo=0
+ useXterm=false
+ xtermParms='-fa xft:DejaVuSansMono:size=12 +sb -rv -e '
+ xtermSuffix1=' -- /usr/bin/Xvfb'
+ xtermSuffix2=' -screen 0 804x484x8 -nolisten tcp'
+ vncPortFile=/var/run/vterm_rfbport_lp
+ ptsLink=/var/run/5250_lp
+ socatParms5250=pty,raw,echo=0,link=/var/run/5250_lp
+ prefixLocal5250=10.252
+ prefixRemote5250=10.253
+ xvfbParms='-screen 0 976x615x8'
+ emulatorLocation=/opt/pvm/5250/
+ emulatorSettingsLocation=/etc/pvm/data/
+ emulatorSettingsLocationForLpar=/etc/pvm/data/lpar/
+ emulatorParms='-Xmx40m -cp /opt/pvm/5250/acshmchod.jar com.ibm.eNetwork.hmchod.HmcHod '
+ emulatorParmsSuffix1=' -port 2300 -title emulator_settings X X '
+ emulatorParmsSuffix2=' -- /usr/bin/Xvfb'
+ emulatorParmsSuffix3=' -screen 0 1024x768x24 -nolisten tcp'
+ RET_FAIL=1
+ RET_ITEMS_NOT_INSTALLED=2
+ RET_VTERM_ALREADY_STARTED=3
+ RET_OUT_OF_VTERMS=4
+ RET_USAGE=99
+ socatPid=-1
+ slattachPid=-1
+ declare -A lang_code
+ lang_code=([930]=0 [e930]=1 [939]=2 [1399]=3 [e1399]=4)
+ codePage=(930 930 939 1399 1399)
+ codePageKey=(KEY_JAPAN_KATAKANA KEY_JAPAN_KATAKANA_EX KEY_JAPAN_ENGLISH_EX KEY_JAPAN_LATIN_EXTENDED KEY_JAPAN_LATIN_EXTENDED_JIS2004)
+ fontName=(Monospaced)
+ pdfFont=(KozMinPro-Regular-Acro)
++ getopt -o h --long id:,help,vnc,local,passwdfile:,log:,vncport:,vncdesktop:,codepage: -- --id 8
+ TEMP=' --id '\''8'\'' --'
+ '[' 0 -ne 0 ']'
+ eval set -- ' --id '\''8'\'' --'
++ set -- --id 8 --
+ true
+ case "$1" in
+ lparId=8
+ shift 2
+ true
+ case "$1" in
+ break
+ [[ 8 -eq 0 ]]
+ [[ 8 =~ ^[0-9]+$ ]]
+ [[ ! -d /var/log/pvm/mkvtermLogs ]]
+ logFilePath=/var/log/pvm/mkvtermLogs/vtermLog_8.log
+ cat /dev/null
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ /usr/sbin/pvmutil -o getrmcstatus
+ grep lpar_id=8,
+ grep os400
+ '[' 1 -eq 0...

Read more...

Revision history for this message
bugproxy (bugproxy) wrote :
Download full text (8.8 KiB)

------- Comment From <email address hidden> 2023-10-10 11:16 EDT-------
Updating this bug with the latest findings.

Please ignore the past error output. Something was off with that system. This is actually the current error that is being seen:

-----
root@novap9fleetw:/home/neo# /usr/sbin/mkvtermutil_temp --id 2
+ export TEXTDOMAINDIR
+ . gettext.sh
++ test 'X\t' = 'X\t'
++ echo=echo
++ test -z ''
++ case "$0" in
+ hvcsadmin=/usr/sbin/hvcsadmin
+ hvcsdevlimit=1024
+ pvmutil=/usr/sbin/pvmutil
+ socat=/usr/bin/socat
+ rmvterm=/usr/sbin/rmvtermutil
+ openvt=/bin/openvt
+ '[' -f /usr/bin/linuxvnc ']'
+ linuxvnc=/usr/bin/linuxvnc
+ flock=/usr/bin/flock
+ modprobe=/sbin/modprobe
+ slattach=/sbin/slattach
+ ifconfig=/sbin/ifconfig
+ tcpdump=/usr/sbin/tcpdump
+ Xvfb=/usr/bin/Xvfb
+ x11vnc=/usr/bin/x11vnc
+ java=/opt/pvm-rest/lib/wlp/java/bin/java
+ xinit=/usr/bin/xinit
+ bash=/bin/bash
+ xterm=/usr/bin/xterm
+ pgrep=/usr/bin/pgrep
+ giveUsage=0
+ lparId=0
+ logFileDir=/var/log/pvm/mkvtermLogs
+ logFilePath=
+ lparIsIBMi=false
+ vnc=0
+ localVNC=0
+ ttyNumber=-1
+ vncPort=
+ vncPasswd=
+ vncDesktop=
+ lockFile=/tmp/vterm.lck
+ lockTimeout=15
+ lockFD=3
+ logFile=
+ socatParms=STDIO,raw,echo=0,escape=0x1d
+ socatParmsVNC=STDIO,raw,echo=0
+ useXterm=false
+ xtermParms='-fa xft:DejaVuSansMono:size=12 +sb -rv -e '
+ xtermSuffix1=' -- /usr/bin/Xvfb'
+ xtermSuffix2=' -screen 0 804x484x8 -nolisten tcp'
+ vncPortFile=/var/run/vterm_rfbport_lp
+ ptsLink=/var/run/5250_lp
+ socatParms5250=pty,raw,echo=0,link=/var/run/5250_lp
+ prefixLocal5250=10.252
+ prefixRemote5250=10.253
+ xvfbParms='-screen 0 976x615x8'
+ emulatorLocation=/opt/pvm/5250/
+ emulatorSettingsLocation=/etc/pvm/data/
+ emulatorSettingsLocationForLpar=/etc/pvm/data/lpar/
+ emulatorParms='-Xmx40m -cp /opt/pvm/5250/acshmchod.jar com.ibm.eNetwork.hmchod.HmcHod '
+ emulatorParmsSuffix1=' -port 2300 -title emulator_settings X X '
+ emulatorParmsSuffix2=' -- /usr/bin/Xvfb'
+ emulatorParmsSuffix3=' -screen 0 1024x768x24 -nolisten tcp'
+ RET_FAIL=1
+ RET_ITEMS_NOT_INSTALLED=2
+ RET_VTERM_ALREADY_STARTED=3
+ RET_OUT_OF_VTERMS=4
+ RET_USAGE=99
+ socatPid=-1
+ slattachPid=-1
+ declare -A lang_code
+ lang_code=([930]=0 [e930]=1 [939]=2 [1399]=3 [e1399]=4)
+ codePage=(930 930 939 1399 1399)
+ codePageKey=(KEY_JAPAN_KATAKANA KEY_JAPAN_KATAKANA_EX KEY_JAPAN_ENGLISH_EX KEY_JAPAN_LATIN_EXTENDED KEY_JAPAN_LATIN_EXTENDED_JIS2004)
+ fontName=(Monospaced)
+ pdfFont=(KozMinPro-Regular-Acro)
++ getopt -o h --long id:,help,vnc,local,passwdfile:,log:,vncport:,vncdesktop:,codepage: -- --id 2
+ TEMP=' --id '\''2'\'' --'
+ '[' 0 -ne 0 ']'
+ eval set -- ' --id '\''2'\'' --'
++ set -- --id 2 --
+ true
+ case "$1" in
+ lparId=2
+ shift 2
+ true
+ case "$1" in
+ break
+ [[ 2 -eq 0 ]]
+ [[ 2 =~ ^[0-9]+$ ]]
+ [[ ! -d /var/log/pvm/mkvtermLogs ]]
+ logFilePath=/var/log/pvm/mkvtermLogs/vtermLog_2.log
+ cat /dev/null
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ /usr/sbin/pvmutil -o getrmcstatus
+ grep lpar_id=2,
+ grep os400
+ '[' 1 -eq 0 ']'
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ false = true ]]
+ [[ -n '' ]]
+ [[ false = false ]]
+ [[ -e /usr/bin/xinit ]]
+ [[ -e /usr/bin/Xvfb ]]
+ [[ -e /usr/bin/xterm ]]
+ [[ -e /usr/bin/x11vnc...

Read more...

Revision history for this message
Patricia Domingues (patriciasd) wrote :

Hello Jamie, many thanks for checking and updating this, specially `There is no longer an issue seen in drmgr with adding and removing a slot. Therefore, the patches did correct the drmgr issue.`

Please, if you could file a new/separate bug with the new issue you are seeing now. Thanks!

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hi, SRU team member here. I read the comments, and considering the problem statement from the bug description:
```
1. drmgr command fails as it doesn't find a slot
2. drmgr throws error while removing the slot
3. ctrl+c closes the terminal opened for any vm
4. ctrl+] doesn't close the terminal. But comes out with an extra 'Enter'
```

I didn't see confirmation in the comments that problems (3) and (4) are also fixed by the proposed two patches. comment #24 states that there are missing devices in /dev, and it's not clear to me if that has relation to the bugs being fixed here, or if they are new bugs. Or even if the powerpc-utils package would be responsible for that (sounds like an issue with some udev rule?).

We can accept the package as is, and the testing with the proposed packages will tell, as the testing must verify that all 4 issues are fixed, but I would like to give a chance to the people involved to clarify this issue first.

It might also well be that the patched package is already better than what we have in focal currently, and the missing devices are indeed a new separate bug, in which case I would echo what Patricia said in comment #25 and ask for a new bug to be filed.

In short, can someone please clarify on whether the two patches are enough and that we can proceed with accepting the package into focal-proposed, or if more investigation is needed?

Changed in powerpc-utils (Ubuntu Focal):
status: In Progress → Incomplete
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2023-11-10 13:38 EDT-------
I am currently unsure with the test systems provided that have Focal installed - why the /dev/hvcs* device nodes are present sometimes and not present other times. Could the Novalink team please comment if they found a workaround for this? Or is this an intermittent issue?

However - on a system without this absent device node issue, I installed the updated powerpc-utils, and I can confirm that the drmgr issues are resolved.

Unfortunately, issues #3 and #4 are still present. ctrl+c does close the terminal, and ctrl+] does not close the terminal (but does eventually with an extra 'Enter'). I believe #3 and #4 are related to socat. Seems to be the same issues mentioned in bug 192082. Comment #16 mentions the patch.

In bug 192082 it also mentioned that socat version 1.7.3.3 introduced this issue. This is the same version of socat Focal has.

Do we want to open another bug for issues #3 and #4 since it seems to be related to socat and not drmgr?

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

Thanks Jamie for re-confirming that #1 and #2 are fixed.

And yes, I would also prefer to handle any other issue (#3 and #4) separately - means in a dedicated bug (we are happy to do the split up).
At the end this would allow us to make progress here.

@SRU team (ahasenack), with that, would it be okay to proceed with this SRU only covering issues #1 and #2? (The SRU justification in the bug description was adjusted, #3 and #4 were removed here).

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello bugproxy, or anyone else affected,

Accepted powerpc-utils into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/powerpc-utils/1.3.4-0ubuntu2.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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 powerpc-utils (Ubuntu Jammy):
status: New → Fix Released
Changed in powerpc-utils (Ubuntu Lunar):
status: New → Fix Released
Changed in powerpc-utils (Ubuntu Focal):
status: Incomplete → In Progress
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> @SRU team (ahasenack), with that, would it be okay to proceed with this SRU only covering issues #1 and
> #2? (The SRU justification in the bug description was adjusted, #3 and #4 were removed here).

Yes :)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote : [powerpc-utils/focal] verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for focal for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla
Download full text (3.3 KiB)

------- Comment From <email address hidden> 2024-03-06 15:22 EDT-------
The version of powerpc-utils tested was 1.3.4-0ubuntu2.1 from the -proposed repository.

Much testing was done with adding and removing slots. See logs below:

########## Mar 06 16:58:32 2024 ##########
drmgr: -c slot -s U9080.M9S.13072B8-V1-C7 -a -w 3
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
Could not find DRC property group in path: /proc/device-tree/ibm,platform-keystore.
Could not find DRC property group in path: /proc/device-tree/memory@0.
Could not find DRC property group in path: /proc/device-tree/ibm,platform-facilities.
Could not find DRC property group in path: /proc/device-tree/interrupt-controller@0.
Could not find DRC property group in path: /proc/device-tree/rtas.
Could not find DRC property group in path: /proc/device-tree/ibm,serial.
Could not find DRC property group in path: /proc/device-tree/options.
Could not find DRC property group in path: /proc/device-tree/openprom.
Could not find DRC property group in path: /proc/device-tree/ibm,dynamic-reconfiguration-memory.
Could not find DRC property group in path: /proc/device-tree/event-sources.
Could not find DRC property group in path: /proc/device-tree/aliases.
Could not find DRC property group in path: /proc/device-tree/packages.
Could not find DRC property group in path: /proc/device-tree/chosen.
Acquiring drc index 0x30000007
get-sensor for 30000007: 0, 2
Setting allocation state to 'alloc usable'
Setting indicator state to 'unisolate'
Configuring connector for drc index 30000007
Adding device-tree node /proc/device-tree/vdevice/vty-server@30000007
ofdt update: add_node /vdevice/vty-server@30000007 name 11 vty-server
Getting node types 0x00000003
performing kernel op for U9080.M9S.13072B8-V1-C7, file is /sys/bus/pci/slots/control/add_slot
########## Mar 06 16:58:33 2024 ##########

########## Mar 06 16:59:07 2024 ##########
drmgr: -c slot -s U9080.M9S.13072B8-V1-C7 -r -w 3
Validating I/O DLPAR capability...yes.
Getting node types 0x00000003
get-sensor for 30000007: 0, 1
The sensor-state of drc_index 0x30000007 is 1
performing kernel op for U9080.M9S.13072B8-V1-C7, file is /sys/bus/pci/slots/control/remove_slot
Releasing drc index 0x30000007
get-sensor for 30000007: 0, 1
Setting isolation state to 'isolate'
Setting allocation state to 'alloc unusable'
get-sensor for 30000007: 0, 2
drc_index 30000007 sensor-state: 2
Resource is not available to the partition.
Removing device-tree node /proc/device-tree/vdevice/vty-server@30000007
########## Mar 06 16:59:07 2024 ##########

Testing was periodically stalled when I did an strace on pvmutil creating a vterm device (e.g. 'pvmutil -o create_vterm_dev --id 3'). mkvterm calls pvmutil. pvmutil is what uses drmgr. There was confusion when the drmgr logs showed drmgr working properly, however an strace showed writing the slot information to .../add_slot was returning -ENODEV. It was determined that this was not an issue with drmgr, as drmgr was writing the correct slot information.

Therefore, the conclusion is the version of powerpc-utils in -proposed is working as expected.

I am going to open two additional bugs. One for socat, and one for ...

Read more...

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

Many thanks for your testing and feedback on focal @jldolan.
With that I'm updating the tags to verification done.

(The two additional bugs about kernel and socat will then be addressed in their own LP bug, I already noticed one of them.)

tags: added: verification-done verification-done-focal
removed: removal-candidate verification-needed verification-needed-focal
Changed in ubuntu-power-systems:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerpc-utils - 1.3.4-0ubuntu2.1

---------------
powerpc-utils (1.3.4-0ubuntu2.1) focal; urgency=medium

  * Cherrypick patches to solve issues with drmgr (LP: #2023243)

 -- Patricia Domingues <email address hidden> Thu, 14 Sep 2023 12:40:06 -0300

Changed in powerpc-utils (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for powerpc-utils 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-power-systems:
status: Fix Committed → Fix Released
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.