[UBUNTU 20.04] Cannot run zcryptstats in the Hosting Appliance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Medium
|
Skipper Bug Screeners | ||
s390-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Frank Heimes | ||
Groovy |
Fix Released
|
Medium
|
Frank Heimes | ||
Hirsute |
Fix Released
|
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
-
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
-
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
-
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 |
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 |
Changed in s390-tools (Ubuntu Focal): | |
assignee: | nobody → Frank Heimes (fheimes) |
Changed in s390-tools (Ubuntu Groovy): | |
assignee: | nobody → Frank Heimes (fheimes) |
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 |
Changed in s390-tools (Ubuntu Groovy): | |
status: | Triaged → In Progress |
Changed in ubuntu-z-systems: | |
status: | Triaged → In Progress |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
------- Comment From <email address hidden> 2021-01-18 05:57 EDT-------
@Canonical, please provide an update for this update request. Many thx in advance