[Bug 1805841] Comment bridged from LTC Bugzilla

bugproxy bugproxy at us.ibm.com
Fri Nov 30 12:59:54 UTC 2018


------- Comment From cborntra at de.ibm.com 2018-11-30 07:54 EDT-------
The problem is now, that /lib/systemd/system-generators/s390-cpi-vars  overwrites some values that are set by cpictl. (for example the KVM token).

Would a quick fix be, that s390-cpi-vars does everything as of today, but leaves the version code unchanged?
So something like
--- /lib/systemd/system-generators/s390-cpi-vars.old	2018-11-30 13:53:45.525120681 +0100
+++ /lib/systemd/system-generators/s390-cpi-vars	2018-11-30 13:54:26.875220713 +0100
@@ -3,6 +3,5 @@
. /etc/os-release
echo "$NAME" >/sys/firmware/cpi/system_name
echo "LINUX" >/sys/firmware/cpi/system_type
-printf "0x%02x%02x%02x" $(uname -r | sed 's/-.*//;s/\./ /g') >/sys/firmware/cpi/system_level
echo "$VERSION" | sed 's/ .*//;s/\./ /g' >/sys/firmware/cpi/sysplex_name
echo 1 >/sys/firmware/cpi/set

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1805841

Title:
  CPI information about kvm usage is lost during apt upgrade

Status in Ubuntu on IBM z Systems:
  Triaged
Status in s390-tools package in Ubuntu:
  New

Bug description:
  ---Problem Description---
  CPI information about kvm usage is lost during apt upgrade
   
  ---uname output---
  4.15.0-42-generic
   
  Machine Type = s390x lpar  
   
  ---Steps to Reproduce---

  # cat /sys/firmware/cpi/*
  cat: /sys/firmware/cpi/set: Permission denied
          
  0x0000000000040f00
          
  LINUX   
  root at m83lp52:~# virsh start guest   # starting a guest does set the highest bit in
  /sys/firmware/cpi/system_leveln  

  root at m83lp52:~# cat /sys/firmware/cpi/*
  cat: /sys/firmware/cpi/set: Permission denied
          
  0x8000000000040f00   <---- see the 8
          
  LINUX  

  root at m83lp52:~# apt upgrade
  [....]
  has to upgrade at least one package, that will trigger some other code.
  [....]

  Now. some other code seems to have set values in /sys/firmware/cpi as
  well dropping the kvm information.

  root at m83lp52:~# cat /sys/firmware/cpi/*
  cat: /sys/firmware/cpi/set: Permission denied
  18 04 1  
  0x0000000000040f00
  UBUNTU  
  LINUX  

  
  The canonical place to handle /sys/firmware/cpi should be /lib/s390-tools/cpictl and /lib/systemd/system/cpi.service. So can we put the additional features (setting 18 04 1 and UBUNTU things also into
  /etc/sysconfig/cpi
  or
  /lib/s390-tools/cpictl
  )
  and can we disable the other code that also sets /sys/firmware/cpi (I have not found out which code sets these values). This seems to be /lib/systemd/system-generators/s390-cpi-vars

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1805841/+subscriptions



More information about the foundations-bugs mailing list