2023-06-08 04:49:19 |
bugproxy |
bug |
|
|
added bug |
2023-06-08 04:49:22 |
bugproxy |
tags |
|
architecture-ppc64le bugnameltc-202546 severity-high targetmilestone-inin2004 |
|
2023-06-08 04:49:31 |
bugproxy |
attachment added |
|
sosreport https://bugs.launchpad.net/bugs/2023243/+attachment/5678516/+files/sosreport-novap9zz-2023-05-10-dyxjiyg.tar.xz |
|
2023-06-08 04:49:32 |
bugproxy |
ubuntu: assignee |
|
Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
|
2023-06-08 04:49:38 |
bugproxy |
affects |
ubuntu |
powerpc-utils (Ubuntu) |
|
2023-06-12 11:47:50 |
Frank Heimes |
bug task added |
|
ubuntu-power-systems |
|
2023-06-12 11:48:11 |
Frank Heimes |
ubuntu-power-systems: assignee |
|
Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
|
2023-06-12 11:49:02 |
Frank Heimes |
powerpc-utils (Ubuntu): importance |
Undecided |
Medium |
|
2023-06-12 11:49:05 |
Frank Heimes |
powerpc-utils (Ubuntu): importance |
Medium |
High |
|
2023-06-12 11:49:07 |
Frank Heimes |
ubuntu-power-systems: importance |
Undecided |
High |
|
2023-07-26 21:15:26 |
Patricia Domingues |
attachment added |
|
debdiff file https://bugs.launchpad.net/ubuntu/+source/powerpc-utils/+bug/2023243/+attachment/5688658/+files/debdiff_powerpc-utils_1.3.10-2_to_powerpc-utils_1.3.11-0ubuntu1.diff |
|
2023-07-27 12:33:46 |
Patricia Domingues |
powerpc-utils (Ubuntu): status |
New |
In Progress |
|
2023-07-27 12:33:50 |
Patricia Domingues |
powerpc-utils (Ubuntu): assignee |
Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
Patricia Domingues (patriciasd) |
|
2023-07-27 13:05:13 |
Frank Heimes |
ubuntu-power-systems: status |
New |
In Progress |
|
2023-08-04 14:10:26 |
Launchpad Janitor |
powerpc-utils (Ubuntu): status |
In Progress |
Fix Released |
|
2023-08-10 17:17:31 |
Frank Heimes |
nominated for series |
|
Ubuntu Mantic |
|
2023-08-10 17:17:31 |
Frank Heimes |
bug task added |
|
powerpc-utils (Ubuntu Mantic) |
|
2023-08-10 17:17:31 |
Frank Heimes |
nominated for series |
|
Ubuntu Lunar |
|
2023-08-10 17:17:31 |
Frank Heimes |
bug task added |
|
powerpc-utils (Ubuntu Lunar) |
|
2023-08-10 17:17:31 |
Frank Heimes |
nominated for series |
|
Ubuntu Focal |
|
2023-08-10 17:17:31 |
Frank Heimes |
bug task added |
|
powerpc-utils (Ubuntu Focal) |
|
2023-08-10 17:17:31 |
Frank Heimes |
nominated for series |
|
Ubuntu Jammy |
|
2023-08-10 17:17:31 |
Frank Heimes |
bug task added |
|
powerpc-utils (Ubuntu Jammy) |
|
2023-09-07 19:29:53 |
bugproxy |
attachment added |
|
0001-drmgr-don-t-bother-with-hp-children-for-non-PCI-slot.patch https://bugs.launchpad.net/bugs/2023243/+attachment/5698401/+files/0001-drmgr-don-t-bother-with-hp-children-for-non-PCI-slot.patch |
|
2023-09-07 19:29:55 |
bugproxy |
attachment added |
|
0001-powerpc-utils-devtree-Parse-ibm-drc-info-property.patch https://bugs.launchpad.net/bugs/2023243/+attachment/5698402/+files/0001-powerpc-utils-devtree-Parse-ibm-drc-info-property.patch |
|
2023-09-14 13:49:46 |
Simon Chopin |
bug |
|
|
added subscriber Simon Chopin |
2023-09-14 16:58:25 |
Frank Heimes |
bug task deleted |
powerpc-utils (Ubuntu Jammy) |
|
|
2023-09-14 16:58:31 |
Frank Heimes |
bug task deleted |
powerpc-utils (Ubuntu Lunar) |
|
|
2023-09-15 16:36:13 |
Patricia Domingues |
attachment added |
|
debdiff_powerpc-utils_1.3.4-0ubuntu2_to_powerpc-utils_1.3.4-0ubuntu2.1 https://bugs.launchpad.net/ubuntu/+source/powerpc-utils/+bug/2023243/+attachment/5701351/+files/debdiff_powerpc-utils_1.3.4-0ubuntu2_to_powerpc-utils_1.3.4-0ubuntu2.1 |
|
2023-09-15 16:44:06 |
Patricia Domingues |
description |
== Comment: #0 - SANUJIT HOTA <sanujit.hota@in.ibm.com> - 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 = Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com
---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 Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com:
-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 <cdeadmin@us.ibm.com> - 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 <chavez@us.ibm.com> - 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 <chavez@us.ibm.com> - 2023-05-10 09:55:44 ==
== Comment: #4 - Nathan Lynch <Nathan.Lynch@ibm.com> - 2023-05-10 15:21:34 ==
Assigning to Scott.
== Comment: #5 - Scott Cheloha <scheloh@us.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 2023-05-18 00:21:22 ==
Any update ?
== Comment: #8 - RITU AGARWAL <rituagar@in.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > > 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 2023-06-07 13:39:33 ==
Mirroring to Launchpad to bring the package maintainers into the loop. |
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 moficifations in drmgr's hotplugging,
hence in case of issues with these modifications, hotpluging 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 unforseen 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 <sanujit.hota@in.ibm.com> - 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 = Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com
---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 Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com:
-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 <cdeadmin@us.ibm.com> - 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 <chavez@us.ibm.com> - 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 <chavez@us.ibm.com> - 2023-05-10 09:55:44 ==
== Comment: #4 - Nathan Lynch <Nathan.Lynch@ibm.com> - 2023-05-10 15:21:34 ==
Assigning to Scott.
== Comment: #5 - Scott Cheloha <scheloh@us.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 2023-05-18 00:21:22 ==
Any update ?
== Comment: #8 - RITU AGARWAL <rituagar@in.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > > 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 2023-06-07 13:39:33 ==
Mirroring to Launchpad to bring the package maintainers into the loop. |
|
2023-09-15 17:26:54 |
Patricia Domingues |
powerpc-utils (Ubuntu Focal): status |
New |
In Progress |
|
2023-09-15 17:26:56 |
Patricia Domingues |
powerpc-utils (Ubuntu Focal): assignee |
|
Patricia Domingues (patriciasd) |
|
2023-09-18 16:19:20 |
Frank Heimes |
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 moficifations in drmgr's hotplugging,
hence in case of issues with these modifications, hotpluging 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 unforseen 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 <sanujit.hota@in.ibm.com> - 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 = Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com
---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 Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com:
-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 <cdeadmin@us.ibm.com> - 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 <chavez@us.ibm.com> - 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 <chavez@us.ibm.com> - 2023-05-10 09:55:44 ==
== Comment: #4 - Nathan Lynch <Nathan.Lynch@ibm.com> - 2023-05-10 15:21:34 ==
Assigning to Scott.
== Comment: #5 - Scott Cheloha <scheloh@us.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 2023-05-18 00:21:22 ==
Any update ?
== Comment: #8 - RITU AGARWAL <rituagar@in.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > > 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 2023-06-07 13:39:33 ==
Mirroring to Launchpad to bring the package maintainers into the loop. |
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 <sanujit.hota@in.ibm.com> - 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 = Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com
---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 Ramki/rramas1@in.ibm.com, Sanujit/sanujit.hota@in.ibm.com:
-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 <cdeadmin@us.ibm.com> - 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 <chavez@us.ibm.com> - 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 <chavez@us.ibm.com> - 2023-05-10 09:55:44 ==
== Comment: #4 - Nathan Lynch <Nathan.Lynch@ibm.com> - 2023-05-10 15:21:34 ==
Assigning to Scott.
== Comment: #5 - Scott Cheloha <scheloh@us.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 2023-05-18 00:21:22 ==
Any update ?
== Comment: #8 - RITU AGARWAL <rituagar@in.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> 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 <rituagar@in.ibm.com> - 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 <rituagar@in.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > 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 <scheloh@us.ibm.com> - 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 <ubuntu-devel-discuss@lists.ubuntu.com>
> > > > 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 <scheloh@us.ibm.com> - 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 <scheloh@us.ibm.com> - 2023-06-07 13:39:33 ==
Mirroring to Launchpad to bring the package maintainers into the loop. |
|
2023-10-19 21:37:36 |
Andreas Hasenack |
powerpc-utils (Ubuntu Focal): status |
In Progress |
Incomplete |
|
2023-10-19 21:37:38 |
Andreas Hasenack |
bug |
|
|
added subscriber Andreas Hasenack |
2023-11-30 18:25:24 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Jammy |
|
2023-11-30 18:25:24 |
Andreas Hasenack |
bug task added |
|
powerpc-utils (Ubuntu Jammy) |
|
2023-11-30 18:25:30 |
Andreas Hasenack |
powerpc-utils (Ubuntu Jammy): status |
New |
Fix Released |
|
2023-11-30 18:25:48 |
Andreas Hasenack |
nominated for series |
|
Ubuntu Lunar |
|
2023-11-30 18:25:48 |
Andreas Hasenack |
bug task added |
|
powerpc-utils (Ubuntu Lunar) |
|
2023-11-30 18:25:56 |
Andreas Hasenack |
powerpc-utils (Ubuntu Lunar): status |
New |
Fix Released |
|
2023-11-30 18:26:21 |
Andreas Hasenack |
powerpc-utils (Ubuntu Focal): status |
Incomplete |
In Progress |
|
2023-11-30 18:27:17 |
Andreas Hasenack |
powerpc-utils (Ubuntu Focal): status |
In Progress |
Fix Committed |
|
2023-11-30 18:27:19 |
Andreas Hasenack |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-11-30 18:27:24 |
Andreas Hasenack |
bug |
|
|
added subscriber SRU Verification |
2023-11-30 18:27:37 |
Andreas Hasenack |
tags |
architecture-ppc64le bugnameltc-202546 severity-high targetmilestone-inin2004 |
architecture-ppc64le bugnameltc-202546 severity-high targetmilestone-inin2004 verification-needed verification-needed-focal |
|
2024-03-01 00:17:46 |
Ubuntu Foundations Team Bug Bot |
tags |
architecture-ppc64le bugnameltc-202546 severity-high targetmilestone-inin2004 verification-needed verification-needed-focal |
architecture-ppc64le bugnameltc-202546 removal-candidate severity-high targetmilestone-inin2004 verification-needed verification-needed-focal |
|
2024-03-07 06:56:46 |
Frank Heimes |
tags |
architecture-ppc64le bugnameltc-202546 removal-candidate severity-high targetmilestone-inin2004 verification-needed verification-needed-focal |
architecture-ppc64le bugnameltc-202546 severity-high targetmilestone-inin2004 verification-done verification-done-focal |
|
2024-03-07 06:56:57 |
Frank Heimes |
ubuntu-power-systems: status |
In Progress |
Fix Committed |
|
2024-03-14 20:17:55 |
Launchpad Janitor |
powerpc-utils (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2024-03-14 20:17:59 |
Andreas Hasenack |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2024-03-14 20:45:02 |
Frank Heimes |
ubuntu-power-systems: status |
Fix Committed |
Fix Released |
|