2020-08-20 13:20:04 |
bugproxy |
bug |
|
|
added bug |
2020-08-20 13:20:06 |
bugproxy |
tags |
|
architecture-s39064 bugnameltc-187578 severity-medium targetmilestone-inin2004 |
|
2020-08-20 13:20:07 |
bugproxy |
attachment added |
|
qeth-udev.rule file https://bugs.launchpad.net/bugs/1892367/+attachment/5403136/+files/41-qeth-0.0.bdf0.rules |
|
2020-08-20 13:20:08 |
bugproxy |
ubuntu: assignee |
|
Skipper Bug Screeners (skipper-screen-team) |
|
2020-08-20 13:20:11 |
bugproxy |
affects |
ubuntu |
linux (Ubuntu) |
|
2020-08-20 15:00:00 |
Andrew Cloke |
bug task added |
|
subiquity |
|
2020-08-20 15:00:28 |
Andrew Cloke |
bug task added |
|
ubuntu-z-systems |
|
2020-08-20 15:00:43 |
Andrew Cloke |
bug task deleted |
subiquity |
|
|
2020-08-20 15:00:51 |
Andrew Cloke |
affects |
linux (Ubuntu) |
subiquity |
|
2020-08-20 15:01:02 |
Andrew Cloke |
ubuntu-z-systems: importance |
Undecided |
Medium |
|
2020-08-20 15:01:13 |
Andrew Cloke |
ubuntu-z-systems: assignee |
|
Canonical Foundations Team (canonical-foundations) |
|
2020-08-26 11:00:01 |
Dimitri John Ledkov |
subiquity: status |
New |
Invalid |
|
2020-08-26 11:00:05 |
Dimitri John Ledkov |
ubuntu-z-systems: status |
New |
Invalid |
|
2020-09-02 12:34:58 |
Francis Ginther |
tags |
architecture-s39064 bugnameltc-187578 severity-medium targetmilestone-inin2004 |
architecture-s39064 bugnameltc-187578 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 |
|
2020-09-02 15:25:30 |
Frank Heimes |
ubuntu-z-systems: status |
Invalid |
New |
|
2020-10-06 10:22:31 |
Frank Heimes |
ubuntu-z-systems: status |
New |
Incomplete |
|
2020-10-14 15:46:28 |
Matthieu Clemenceau |
tags |
architecture-s39064 bugnameltc-187578 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 |
|
2020-11-12 13:05:37 |
Dimitri John Ledkov |
bug task added |
|
s390-tools (Ubuntu) |
|
2020-11-12 13:12:09 |
Frank Heimes |
ubuntu-z-systems: status |
Incomplete |
New |
|
2020-12-11 13:38:18 |
Frank Heimes |
ubuntu-z-systems: status |
New |
Incomplete |
|
2021-01-26 10:52:35 |
Frank Heimes |
ubuntu-z-systems: status |
Incomplete |
Triaged |
|
2021-01-26 10:52:58 |
Frank Heimes |
ubuntu-z-systems: assignee |
Canonical Foundations Team (canonical-foundations) |
Skipper Bug Screeners (skipper-screen-team) |
|
2021-01-26 10:53:18 |
Frank Heimes |
s390-tools (Ubuntu): assignee |
|
Canonical Foundations Team (canonical-foundations) |
|
2021-01-26 10:53:51 |
Frank Heimes |
nominated for series |
|
Ubuntu Groovy |
|
2021-01-26 10:53:51 |
Frank Heimes |
bug task added |
|
s390-tools (Ubuntu Groovy) |
|
2021-01-26 10:53:51 |
Frank Heimes |
nominated for series |
|
Ubuntu Focal |
|
2021-01-26 10:53:51 |
Frank Heimes |
bug task added |
|
s390-tools (Ubuntu Focal) |
|
2021-01-26 10:53:51 |
Frank Heimes |
nominated for series |
|
Ubuntu Hirsute |
|
2021-01-26 10:53:51 |
Frank Heimes |
bug task added |
|
s390-tools (Ubuntu Hirsute) |
|
2021-02-02 13:56:39 |
Dimitri John Ledkov |
s390-tools (Ubuntu Focal): milestone |
|
ubuntu-20.04.3 |
|
2021-02-02 14:21:56 |
Frank Heimes |
ubuntu-z-systems: status |
Triaged |
Confirmed |
|
2021-02-24 06:44:59 |
Dimitri John Ledkov |
s390-tools (Ubuntu Hirsute): status |
New |
Fix Committed |
|
2021-02-24 07:36:57 |
Frank Heimes |
ubuntu-z-systems: status |
Confirmed |
In Progress |
|
2021-02-27 00:35:39 |
Launchpad Janitor |
s390-tools (Ubuntu Hirsute): status |
Fix Committed |
Fix Released |
|
2021-03-10 07:28:48 |
Frank Heimes |
description |
During the ubuntu installation in tessia, we do chzdev for both dasd and qeth devices, as below.
2020-08-20 09:54:45 | INFO | START subiquity/Early/run/command_1 : chzdev -e dasd 385c
2020-08-20 09:54:45 | INFO | SUCCESS subiquity/Early/run/command_1 : chzdev -e dasd 385c
2020-08-20 09:54:45 | INFO | START subiquity/Early/run/command_2 : chzdev -e qeth 0.0.bdf0
2020-08-20 09:54:47 | INFO | SUCCESS subiquity/Early/run/command_2 : chzdev -e qeth 0.0.bdf0
and we can see the below files in the /etc/udev/rules.d/
oot@m8360024:~# ls -l /etc/udev/rules.d/
total 76
-rw-r--r-- 1 root root 154 Aug 20 09:08 41-cio-ignore.rules
-rw-r--r-- 1 root root 430 Aug 20 09:08 41-dasd-eckd-0.0.385c.rules
-rw-r--r-- 1 root root 357 Aug 20 09:08 41-generic-ccw-0.0.0009.rules
-rw-r--r-- 1 root root 1049 Aug 20 09:08 41-qeth-0.0.bdf0.rules
-rw-r--r-- 1 root root 58549 Aug 20 09:10 70-snap.snapd.rules
Now, lsinitramfs shows files as below,
root@m8360024:~# lsinitramfs /boot/initrd.img-5.4.0-42-generic | grep 41
etc/udev/rules.d/41-cio-ignore-root.rules
etc/udev/rules.d/41-dasd-eckd-0.0.385c.rules
usr/lib/udev/rules.d/41-cio-ignore.rules
usr/lib/udev/rules.d/41-dasd-eckd-0.0.385c.rules
usr/lib/udev/rules.d/41-generic-ccw-0.0.0009.rules
usr/lib/udev/rules.d/41-qeth-0.0.bdf0.rules
Even though lsinitramfs shows the below files, they are overruled by the filesystem files.
Next thing we did was to modify the 41-qeth-0.0.bdf0.rules and modified the buffer_count to 128 (As in the attached file). In ideal scenario, the value should we modified as mentioned in the bug. But, in our case, if we are not doing a zipl or update-initramfs -u, the value is not getting modified. |
SRU:
====
[Impact]
* In case a ccw (special s390x hardware) device is configured
in a special (non-default) way using chzdev
(like for example increasing the qeth buffer_count to 128),
the modifications are not persistent by default, since the
generated udev rules are not automatically incuded/added to the initramfs.
* One needs to either manually re-create the initramfs,
e.g. with 'sudo update-initramfs -k all -u' (maybe triggered by zipl)
* or pass the arguments '-p -r zdev:early' to chzdev.
* This is not really intuitive and what people expect
and partly leads to confusion.
* The solution is to compile with the ZDEV_ALWAYS_UPDATE_INITRD=1 option set.
This makes sure that executions of chzdev always trigger 'update-initramfs -u'.
[Test Plan]
* Prepare an Ubuntu Server 20.04 or 20.04 on IBM Z with at least
one ccw device, for example a qeth network device, here '0.0.1234'.
(better to do that with a second spare qeth device,
other than the one that is in use by your remote connection).
* Configure the device using:
sudo chzdev qeth -e 1234
* Check the (default) value of a certain attribute, like qeth buffer_count:
cat /sys/devices/qeth/0.0.1234/buffer_count
64
* Disable the ccw device again:
sudo chzdev qeth -d 1234
* And enable (re-)enable it with an increased buffer_count:
sudo chzdev -e 1234 buffer_count=128
* Check the (increased) value of the qeth buffer_count:
cat /sys/devices/qeth/0.0.1234/buffer_count
128
* Restart the system (without manually running update-initramfs or zipl):
sudo shutdown -r now
* Once the system is up again, re-check if the ccw device was enabled again
and if it still has the increased buffer_count value:
lszdev qeth 1234
TYPE ID ON PERS NAMES
qeth 0.0.1234:0.0.1235:0.0.1236 yes yes enc1234
cat /sys/devices/qeth/0.0.1234/buffer_count
128
(alternatively check with: lsqeth enc1234 | grep buffer_count)
[Where problems could occur]
* The logic of handling DZDEV_ALWAYS_UPDATE_INITRD could be wrong, e.g. inversed.
Then the initramfs is re-build even if not desired
and in case needed not done, hence similar result than before.
* The setting of 'ZDEV_ALWAYS_UPDATE_INITRD=1' could have been missed,
which would lead to the similar behaviour than w/o the patch.
* 'add_pers_removed' could handle wrong device types or not all devices,
in case of potential array index errors.
* 'is_zdev_early_0' could identify wrong persistent devices as some to be
included early in the boot process (means added to the initramfs).
* Problems in 'if (all_pers)' could lead to a wrong set of persistent devices
that are considered (or not all),
which could lead to unexpected (de-)configurations.
* Finally the handling of the confirmation
or the 'build of the command line' could be errornous,
since the encapsulated if condition(s) changed (sightly).
[Other Info]
* This patch became upstream accepted with s390-tools 2.16.0 and is
with that already included in hirsute, based on LP:1914574.
__________
During the ubuntu installation in tessia, we do chzdev for both dasd and qeth devices, as below.
2020-08-20 09:54:45 | INFO | START subiquity/Early/run/command_1 : chzdev -e dasd 385c
2020-08-20 09:54:45 | INFO | SUCCESS subiquity/Early/run/command_1 : chzdev -e dasd 385c
2020-08-20 09:54:45 | INFO | START subiquity/Early/run/command_2 : chzdev -e qeth 0.0.bdf0
2020-08-20 09:54:47 | INFO | SUCCESS subiquity/Early/run/command_2 : chzdev -e qeth 0.0.bdf0
and we can see the below files in the /etc/udev/rules.d/
oot@m8360024:~# ls -l /etc/udev/rules.d/
total 76
-rw-r--r-- 1 root root 154 Aug 20 09:08 41-cio-ignore.rules
-rw-r--r-- 1 root root 430 Aug 20 09:08 41-dasd-eckd-0.0.385c.rules
-rw-r--r-- 1 root root 357 Aug 20 09:08 41-generic-ccw-0.0.0009.rules
-rw-r--r-- 1 root root 1049 Aug 20 09:08 41-qeth-0.0.bdf0.rules
-rw-r--r-- 1 root root 58549 Aug 20 09:10 70-snap.snapd.rules
Now, lsinitramfs shows files as below,
root@m8360024:~# lsinitramfs /boot/initrd.img-5.4.0-42-generic | grep 41
etc/udev/rules.d/41-cio-ignore-root.rules
etc/udev/rules.d/41-dasd-eckd-0.0.385c.rules
usr/lib/udev/rules.d/41-cio-ignore.rules
usr/lib/udev/rules.d/41-dasd-eckd-0.0.385c.rules
usr/lib/udev/rules.d/41-generic-ccw-0.0.0009.rules
usr/lib/udev/rules.d/41-qeth-0.0.bdf0.rules
Even though lsinitramfs shows the below files, they are overruled by the filesystem files.
Next thing we did was to modify the 41-qeth-0.0.bdf0.rules and modified the buffer_count to 128 (As in the attached file). In ideal scenario, the value should we modified as mentioned in the bug. But, in our case, if we are not doing a zipl or update-initramfs -u, the value is not getting modified. |
|
2021-03-10 19:40:48 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~fheimes/ubuntu/+source/s390-tools/+git/s390-tools/+merge/399467 |
|
2021-03-10 19:48:01 |
Frank Heimes |
attachment added |
|
debdiff_groovy.diff https://bugs.launchpad.net/subiquity/+bug/1892367/+attachment/5475474/+files/debdiff_groovy.diff |
|
2021-03-11 19:22:29 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~fheimes/ubuntu/+source/s390-tools/+git/s390-tools/+merge/399532 |
|
2021-03-11 19:29:48 |
Frank Heimes |
attachment added |
|
debdiff_focal.diff https://bugs.launchpad.net/subiquity/+bug/1892367/+attachment/5475917/+files/debdiff_focal.diff |
|
2021-03-12 09:14:27 |
Launchpad Janitor |
merge proposal unlinked |
https://code.launchpad.net/~fheimes/ubuntu/+source/s390-tools/+git/s390-tools/+merge/399467 |
|
|
2021-03-12 09:27:39 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~fheimes/ubuntu/+source/s390-tools/+git/s390-tools/+merge/399467 |
|
2021-03-12 09:30:50 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~fheimes/ubuntu/+source/s390-tools/+git/s390-tools/+merge/399570 |
|
2021-03-12 09:33:18 |
Frank Heimes |
attachment added |
|
needed to update due to a broken link in dep3 and a more specific upstream version reference https://bugs.launchpad.net/subiquity/+bug/1892367/+attachment/5476076/+files/debdiff_groovy.diff |
|
2021-03-12 09:34:24 |
Frank Heimes |
attachment removed |
debdiff_groovy.diff https://bugs.launchpad.net/subiquity/+bug/1892367/+attachment/5475474/+files/debdiff_groovy.diff |
|
|
2021-03-12 09:38:52 |
bugproxy |
attachment added |
|
debdiff_groovy.diff https://bugs.launchpad.net/bugs/1892367/+attachment/5476077/+files/debdiff_groovy.diff |
|
2021-03-12 17:33:05 |
Brian Murray |
s390-tools (Ubuntu Focal): status |
New |
In Progress |
|
2021-03-12 17:33:07 |
Brian Murray |
s390-tools (Ubuntu Groovy): status |
New |
In Progress |
|
2021-03-12 17:33:10 |
Brian Murray |
s390-tools (Ubuntu Focal): assignee |
|
Brian Murray (brian-murray) |
|
2021-03-12 17:33:12 |
Brian Murray |
s390-tools (Ubuntu Groovy): assignee |
|
Brian Murray (brian-murray) |
|
2021-03-23 17:22:14 |
Łukasz Zemczak |
s390-tools (Ubuntu Groovy): status |
In Progress |
Fix Committed |
|
2021-03-23 17:22:17 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-03-23 17:22:20 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2021-03-23 17:22:23 |
Łukasz Zemczak |
tags |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-groovy |
|
2021-03-23 17:30:47 |
Łukasz Zemczak |
s390-tools (Ubuntu Focal): status |
In Progress |
Fix Committed |
|
2021-03-23 17:30:55 |
Łukasz Zemczak |
tags |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-groovy |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-focal verification-needed-groovy |
|
2021-03-23 17:30:57 |
bugproxy |
tags |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-focal verification-needed-groovy |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-groovy |
|
2021-03-23 18:15:03 |
Brian Murray |
tags |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-groovy |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-focal verification-needed-groovy |
|
2021-03-24 13:27:25 |
Frank Heimes |
ubuntu-z-systems: status |
In Progress |
Fix Committed |
|
2021-03-26 03:30:11 |
Mathew Hodson |
s390-tools (Ubuntu Focal): importance |
Undecided |
Medium |
|
2021-03-26 03:30:16 |
Mathew Hodson |
s390-tools (Ubuntu Hirsute): importance |
Undecided |
Medium |
|
2021-03-26 03:30:19 |
Mathew Hodson |
s390-tools (Ubuntu Groovy): importance |
Undecided |
Medium |
|
2021-03-26 03:31:15 |
Mathew Hodson |
affects |
subiquity |
ubuntu-translations |
|
2021-03-26 03:31:26 |
Mathew Hodson |
bug task deleted |
ubuntu-translations |
|
|
2021-03-29 14:49:20 |
Frank Heimes |
bug task added |
|
s390-tools-signed (Ubuntu) |
|
2021-03-30 14:46:13 |
Frank Heimes |
s390-tools-signed (Ubuntu Hirsute): status |
New |
Fix Released |
|
2021-03-30 14:46:21 |
Frank Heimes |
s390-tools-signed (Ubuntu Groovy): status |
New |
Fix Committed |
|
2021-03-30 14:46:25 |
Frank Heimes |
s390-tools-signed (Ubuntu Focal): status |
New |
Fix Committed |
|
2021-03-31 07:40:27 |
Frank Heimes |
tags |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-needed verification-needed-focal verification-needed-groovy |
architecture-s39064 bugnameltc-187578 fr-588 id-5f3edb43483dbd71389ae8c1 severity-medium targetmilestone-inin2004 verification-done verification-done-focal verification-done-groovy |
|
2021-04-06 17:50:20 |
Launchpad Janitor |
s390-tools (Ubuntu Groovy): status |
Fix Committed |
Fix Released |
|
2021-04-06 17:50:32 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2021-04-06 17:51:47 |
Launchpad Janitor |
s390-tools (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2021-04-06 23:15:38 |
Brian Murray |
s390-tools-signed (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2021-04-06 23:15:40 |
Brian Murray |
s390-tools-signed (Ubuntu Groovy): status |
Fix Committed |
Fix Released |
|
2021-04-07 05:00:57 |
Frank Heimes |
ubuntu-z-systems: status |
Fix Committed |
Fix Released |
|