Bug 1985745

Summary: On fresh install, /lib/s390-tools/cpictl: line 112: echo: write error: Operation not supported in journal
Product: Red Hat Enterprise Linux 9 Reporter: Jan Pazdziora <jpazdziora>
Component: s390utilsAssignee: Dan Horák <dhorak>
Status: CLOSED ERRATA QA Contact: Vilém Maršík <vmarsik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: jjaburek, rvr
Target Milestone: betaKeywords: Triaged
Target Release: 9.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: s390utils-2.21.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:22:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Pazdziora 2021-07-25 13:11:31 UTC
Description of problem:

On fresh RHEL 9 installation on s390x (KVM), the following message is logged in journal:

cpictl[761]: /lib/s390-tools/cpictl: line 112: echo: write error: Operation not supported

Version-Release number of selected component (if applicable):

s390utils-core-2.17.0-2.el9.s390x

How reproducible:

Deterministic.

Steps to Reproduce:
1. journalctl --no-hostname -l | grep '/lib/s390-tools/cpictl: line 112: echo: write error: Operation not supported'

Actual results:

Jul 25 08:47:26 cpictl[761]: /lib/s390-tools/cpictl: line 112: echo: write error: Operation not supported

Expected results:

No output.

Additional info:

That line does

cpi_commit()
{
        echo 1 > "$CPI_SET"
}

and CPI_SET is set to

readonly CPI_SET="/sys/firmware/cpi/set"

and permissions on that entry is

# ls -la /sys/firmware/cpi/set
--w-------. 1 root root 4096 Jul 25 08:47 /sys/firmware/cpi/set
# ls -lZ /sys/firmware/cpi/set
--w-------. 1 root root system_u:object_r:sysfs_t:s0 4096 Jul 25 08:47 /sys/firmware/cpi/set

Comment 2 Dan Horák 2021-07-26 06:56:14 UTC
Hmm, I don't think the CPI interface is supported for KVM guests. It means the start-up condition from https://github.com/ibm-s390-linux/s390-tools/blob/master/systemd/cpi.service.in#L14 is not valid any more, because the CPI sysfs interface always exists.

Comment 4 Vilém Maršík 2022-07-26 20:05:33 UTC
reproduced on RHEL-9.1.0-20220721.1 with s390utils-core-2.19.0-2.el9.s390x
#  journalctl --no-hostname -l | grep '/lib/s390-tools/cpict'
Jul 26 15:34:02 cpictl[757]: /lib/s390-tools/cpictl: line 112: echo: write error: Operation not supported
This does not require a fresh installation, but can be triggered by reboot.
After upgrading to s390utils-core-2.21.0-1.el9.s390x, the problem disappeared.

Comment 7 Vilém Maršík 2022-07-27 18:09:56 UTC
No error on RHEL-9.1.0-20220721.1 with s390utils-core-2.21.0-1.el9.s390x : 
# journalctl --no-hostname -l | grep '/lib/s390-tools/cpict'

Comment 9 errata-xmlrpc 2022-11-15 11:22:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (s390utils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:8387