[UBUNTU 20.04] Cannot run zcryptstats in the Hosting Appliance
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
| Ubuntu on IBM z Systems |
Medium
|
Skipper Bug Screeners | |||
s390-tools (Ubuntu) | Status tracked in Hirsute | |||||
| Focal |
Medium
|
Frank Heimes | |||
| Groovy |
Medium
|
Frank Heimes | |||
| Hirsute |
Medium
|
Unassigned |
Bug Description
SRU Justification:
==================
[Impact]
* If multiple s390x crypto domains are available,
the output of all domains does no longer fit into the output buffer of one CHSC call.
* Thus, the response contains a partial-
* The remaining data is then retrieved in a subsequent CHSC call,
but there is an error in zcryptstats in populating the request with the next domain number to obtain data for.
* This results in the fact that it retrieves the data for domains 1 to n over and over again,
and always gets the partial-response snippet, hence this loops indefinitely.
[Test Case]
* An Ubuntu Server 20.04 system (or newer) is needed on z/VM or LPAR with two or more crypto domains accessible.
* Now call 'zcryptstats --all -V' and verify if the command completes successfully (within seconds) or hangs (loops).
[Where problems could occur]
* The patch fixes the code that passes the correct next-domain to the subsequent CHSC call of a partial response.
* In case done wrong even no data at all from any of the domains is retrieved,
* or the tool may even try to retrieve data from a domain that has an invalid index, which will lead to an error (the rc is captured).
* But the code changes are marginal and pretty straight forward, and the cases where scdmd_area.
* This patch was already upstream accepted and a patched s390-tools package was build and shared in a PPA for further testing.
__________
---Problem Description---
I have had trouble collecting data via the zcryptstats (https:/
strace attached, ltrace not available and can't be installed due to no Internet access.
===================
Addl. Information:
This seems to be a problem with the handling of partial responses of the SCDMD CHSC command.
When many domains are available, then the output of all domains does not fit into the output buffer of one CHSC call. Thus, the response contains a partial-
===================
The fix for this in now upstream:
https:/
This need to be integrated in all Ubuntu distros, from 20.04 on. F/G/H
Related branches
- Lukas Märdian (community): Approve on 2021-01-26
-
Diff: 1194 lines (+1160/-0)5 files modifieddebian/changelog (+17/-0)
debian/patches/s390-tools-sru-lp1902179-focal.patch (+689/-0)
debian/patches/s390-tools-sru-lp1903984-focal.patch (+49/-0)
debian/patches/s390-tools-sru-lp1908371-focal.patch (+402/-0)
debian/patches/series (+3/-0)
- Lukas Märdian (community): Approve on 2021-01-25
-
Diff: 578 lines (+544/-0)5 files modifieddebian/changelog (+18/-0)
debian/patches/s390-tools-sru-lp1898935-groovy.patch (+72/-0)
debian/patches/s390-tools-sru-lp1903984-groovy.patch (+49/-0)
debian/patches/s390-tools-sru-lp1908371-groovy.patch (+402/-0)
debian/patches/series (+3/-0)
- Lukas Märdian (community): Approve on 2021-01-21
-
Diff: 80 lines (+58/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/s390-tools-lp1903984-hirsute.patch (+49/-0)
debian/patches/series (+1/-0)
tags: | added: architecture-s39064 bugnameltc-189183 severity-medium targetmilestone-inin2004 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
affects: | linux (Ubuntu) → s390-tools |
Changed in ubuntu-z-systems: | |
importance: | Undecided → Medium |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
Changed in s390-tools: | |
status: | New → Invalid |
summary: |
- Cannot run zcryptstats in the Hosting Appliance + [UBUNTU 20.04] Cannot run zcryptstats in the Hosting Appliance |
Changed in s390-tools (Ubuntu Hirsute): | |
status: | New → Confirmed |
Frank Heimes (fheimes) wrote : | #2 |
A patched s390-tools package was build for hirsute and shared in the following PPA for further tesing: https:/
description: | updated |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
Changed in s390-tools (Ubuntu Focal): | |
status: | New → Triaged |
Changed in s390-tools (Ubuntu Groovy): | |
status: | New → Triaged |
bugproxy (bugproxy) wrote : | #3 |
------- Comment From <email address hidden> 2021-01-19 04:55 EDT-------
The git commit should apply to all requested levels. If tested is also required for non-hirsuite levels, please provide a PPA, at least for focal.. thx
Frank Heimes (fheimes) wrote : | #4 |
I can confirm that the patch applies fine to H, G and F.
The PPA contains packages for all 3 Ubuntu releases.
The attachment "debdiff_
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
tags: | added: patch |
Changed in s390-tools (Ubuntu Focal): | |
assignee: | nobody → Frank Heimes (fheimes) |
Changed in s390-tools (Ubuntu Groovy): | |
assignee: | nobody → Frank Heimes (fheimes) |
Frank Heimes (fheimes) wrote : | #11 |
Default Comment by Bridge
Frank Heimes (fheimes) wrote : | #13 |
Default Comment by Bridge
Frank Heimes (fheimes) wrote : | #15 |
bugproxy (bugproxy) wrote : debdiff_focal.diff | #16 |
Default Comment by Bridge
Changed in s390-tools (Ubuntu Hirsute): | |
status: | Confirmed → Fix Committed |
Changed in s390-tools (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in s390-tools (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Changed in s390-tools (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
affects: | s390-tools → ubuntu-translations |
no longer affects: | ubuntu-translations |
Frank Heimes (fheimes) wrote : | #17 |
Changed in s390-tools (Ubuntu Groovy): | |
status: | Triaged → In Progress |
Lukas Märdian (slyon) wrote : | #18 |
I reviewed and uploaded Frank's MP, which contains 3 Focal SRUs, now it needs to be accepted from the queues.
https:/
https:/
https:/
LP: #1903984 still needs to migrate from -proposed in hirsute, before we can mark it "Fix Released", which is currently blocked because of "net-snmp"
Changed in s390-tools (Ubuntu Focal): | |
status: | Triaged → In Progress |
Changed in ubuntu-z-systems: | |
status: | Triaged → In Progress |
Hello bugproxy, or anyone else affected,
Accepted s390-tools into groovy-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in s390-tools (Ubuntu Groovy): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed verification-needed-groovy |
Brian Murray (brian-murray) wrote : | #20 |
Hello bugproxy, or anyone else affected,
Accepted s390-tools into focal-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in s390-tools (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed-focal |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
------- Comment From <email address hidden> 2021-01-27 06:45 EDT-------
Feature validated by IBM
Frank Heimes (fheimes) wrote : | #22 |
Thx for the verification on focal and on groovy. I'm adjusting the tags accordingly ...
tags: |
added: verification-done verification-done-focal verification-done-groovy removed: verification-needed verification-needed-focal verification-needed-groovy |
Launchpad Janitor (janitor) wrote : | #23 |
This bug was fixed in the package s390-tools - 2.15.1-0ubuntu6
---------------
s390-tools (2.15.1-0ubuntu6) hirsute; urgency=medium
* debian/
zcryptstats: Fix handling of partial results with many domains
Thanks to Ingo Franzki (LP: #1903984)
-- Frank Heimes <email address hidden> Tue, 19 Jan 2021 18:58:26 +0100
Changed in s390-tools (Ubuntu Hirsute): | |
status: | Fix Committed → Fix Released |
Launchpad Janitor (janitor) wrote : | #24 |
This bug was fixed in the package s390-tools - 2.14.0-1ubuntu1.1
---------------
s390-tools (2.14.0-1ubuntu1.1) groovy; urgency=medium
* debian/
zcryptstats: Fix handling of partial results with many domains
Thanks to Ingo Franzki (LP: #1903984)
* debian/
chcpumf installed with s390-tools version 2.14.0
no longer provides version or help information
backport, actually cherry-pick, from s390-tools v2.15.1 to v2.14
Thanks to Thomas Richter (LP: #1898935)
* debian/
zipl command isn't working correctly in combination with the -M
(respectively --mvdump) option.
cherry-picking 4 commits from s390-tools v2.15.1 to v2.14
Thanks to Stefan Haberland and Sven Schnelle (LP: #1908371)
-- Frank Heimes <email address hidden> Tue, 19 Jan 2021 19:23:32 +0100
Changed in s390-tools (Ubuntu Groovy): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for s390-tools has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Launchpad Janitor (janitor) wrote : | #26 |
This bug was fixed in the package s390-tools - 2.12.0-0ubuntu3.2
---------------
s390-tools (2.12.0-0ubuntu3.2) focal; urgency=medium
* debian/
zcryptstats: Fix handling of partial results with many domains
Thanks to Ingo Franzki (LP: #1903984)
* debian/
zipl command isn't working correctly in combination with the -M
(respectively --mvdump) option.
cherry-picking 4 commits from s390-tools v2.15.1 to v2.14
Thanks to Stefan Haberland and Sven Schnelle (LP: #1908371)
* debian/
Enabling IPL (boot) from NVMe devices by adding 2 upstream commits
from s390-tools v2.13/2.14 as backports to this v2.12 base.
Thanks to Jason J. Herne (LP: #1902179)
-- Frank Heimes <email address hidden> Fri, 22 Jan 2021 15:52:19 +0100
Changed in s390-tools (Ubuntu Focal): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
------- Comment From <email address hidden> 2021-02-11 03:35 EDT-------
IBM Bugzilla status->closed, Fix Released with all requested distros
------- Comment From <email address hidden> 2021-01-18 05:57 EDT-------
@Canonical, please provide an update for this update request. Many thx in advance