Debian Bug report logs -
#666399
s390-dasd fails to work with >20 devices visible (mostly in LPAR mode)
Reported by: Philipp Kern <pkern@debian.org>
Date: Fri, 30 Mar 2012 13:06:02 UTC
Severity: important
Tags: patch
Found in version s390-dasd/0.0.27
Fixed in version s390-dasd/0.0.34
Done: Philipp Kern <pkern@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, LDMartin@co.pg.md.us, debian-s390@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Fri, 30 Mar 2012 13:06:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Philipp Kern <pkern@debian.org>:
New Bug report received and forwarded. Copy sent to LDMartin@co.pg.md.us, debian-s390@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>.
(Fri, 30 Mar 2012 13:06:08 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: s390-dasd
Version: 0.0.27
Severity: important
s390-dasd has the following code snippet in dasd-config.c:
| static enum state_wanted get_channel (void)
| {
| if (di_tree_size (channels) > 20)
| return get_channel_input ();
| else if (di_tree_size (channels) > 0)
| return get_channel_select ();
| return WANT_ERROR;
| }
I'm not sure about the rationale for this. When removing the check, the
program segfaults upon hitting "Finish", despite listing the devices
correctly and allowing to configure them. Sadly strace didn't help at all
and gdb was unable to generate traces.
If you've got a lot of devices visible, because you're in LPAR mode, you
cannot configure the disks because the state machine goes GET_CHANNEL ->
ENABLE -> FORMAT -> WRITE -> GET_CHANNEL and there's no way to exit the
GET_CHANNEL input field with a finished state. So you're caught in an
endless loop instead. An alternative to just showing the select widget all
the time would be to fix the state machine so that it's possible to exit with
sucess from the channel input when at least one device was brought online (or
is in configured).
Kind regards
Philipp Kern
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Wed, 04 Apr 2012 07:42:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Wed, 04 Apr 2012 07:42:06 GMT) (full text, mbox, link).
Message #10 received at 666399@bugs.debian.org (full text, mbox, reply):
On Fri, Mar 30, 2012 at 02:52:58PM +0200, Philipp Kern wrote:
> I'm not sure about the rationale for this.
s390 system can have hundreds or thousands of DASD devices. With the
text frontend it is simply impossible to display such a long list, with
slang it is just not pretty. So this code should ask for the device id
instead of showing a list.
Bastian
--
It would seem that evil retreats when forcibly confronted.
-- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Wed, 04 Apr 2012 08:36:23 GMT) (full text, mbox, link).
Message #13 received at 666399@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Wed, Apr 04, 2012 at 09:32:50AM +0200, Bastian Blank wrote:
> On Fri, Mar 30, 2012 at 02:52:58PM +0200, Philipp Kern wrote:
> > I'm not sure about the rationale for this.
> s390 system can have hundreds or thousands of DASD devices. With the
> text frontend it is simply impossible to display such a long list, with
> slang it is just not pretty. So this code should ask for the device id
> instead of showing a list.
Aye. Text is indeed a good reason. As for the dialog interface you get via
the SSH installer I found it to be acceptable with two hundred devices.
So the device ID picker should get an option to Finish. Can such a text input
field get an additional way out than Go Back and Ok?
Kind regards
Philipp Kern
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, alkl@linux.vnet.ibm.com, mihajlov@linux.vnet.ibm.com, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Wed, 16 Dec 2015 13:18:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to alkl@linux.vnet.ibm.com, mihajlov@linux.vnet.ibm.com, Debian Install System Team <debian-boot@lists.debian.org>.
(Wed, 16 Dec 2015 13:18:10 GMT) (full text, mbox, link).
Message #18 received at 666399@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Philipp,
Alexander (on CC) just reported ran into the same issue. His system has more
than 20 DASDs and the dialog continues to show up. The <Go Back> triggers the
special debconf return code and the "hardware-detection" dependency for this
module is not satisfied. This reported when starting the partitioner.
On Wed, Apr 04, 2012 at 10:16:24AM +0200, Philipp Kern wrote:
> On Wed, Apr 04, 2012 at 09:32:50AM +0200, Bastian Blank wrote:
> > On Fri, Mar 30, 2012 at 02:52:58PM +0200, Philipp Kern wrote:
> > > I'm not sure about the rationale for this.
> > s390 system can have hundreds or thousands of DASD devices. With the
> > text frontend it is simply impossible to display such a long list, with
I agree that the list of DASDs can be large.
> > slang it is just not pretty. So this code should ask for the device id
> > instead of showing a list.
The dialog to enter the DASD makes sense... in the current implementation you
will not get out of it with having the "hardware-detection" dependency
fulfilled. The other side effect is that you will never see a list of DASDs
which are currently online and configured. Of course, you would see them
later in the partitioner.
>
> Aye. Text is indeed a good reason. As for the dialog interface you get via
> the SSH installer I found it to be acceptable with two hundred devices.
>
> So the device ID picker should get an option to Finish. Can such a text input
> field get an additional way out than Go Back and Ok?
I do not think that another button is possible. One solution would be to
literally enter "Finish" or something similar to complete the DASD module.
Honestly, I would propose a different approach to limit the DASD device
available to the Debian installer. I believe that typical customer
environments have set up their LPARs (and z/VM guest virtual machines)
to limit the number of devices to those required/designated for the LPAR.
Of course, there can be the case where LPARs almost have access to (almost)
every device. For this case, the solution is to use "cio_ignore" kernel
parameter. With this kernel parameter you can control the devices that
are visible to the Linux instance.
For example,
cio_ignore=all,!ipldev,!condev,!0.0.da00-0.0.da10
ignores all devices except the console device, the IPL device, and the
range of devices from 0.0.da00 to 0.0.da10 that might be DASDs or any
other devices. Note that you can change the cio_ignore settings at runtime,
so you can later make additional devices visible.
With this solution, there is no hardcoded limit necessary and the user
can still see the list of DASDs to be configured.
What do you think?
P.S. For the FCP configuration module, I documented this approach already
in the README file.
Thanks and kind regards,
Hendrik
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Sun, 14 Feb 2016 16:51:08 GMT) (full text, mbox, link).
Message #21 received at 666399@bugs.debian.org (full text, mbox, reply):
Hi,
On Wed, Dec 16, 2015 at 02:15:10PM +0100, Hendrik Brueckner wrote:
> Honestly, I would propose a different approach to limit the DASD device
> available to the Debian installer. I believe that typical customer
> environments have set up their LPARs (and z/VM guest virtual machines)
> to limit the number of devices to those required/designated for the LPAR.
>
> Of course, there can be the case where LPARs almost have access to (almost)
> every device. For this case, the solution is to use "cio_ignore" kernel
> parameter. With this kernel parameter you can control the devices that
> are visible to the Linux instance.
>
> For example,
>
> cio_ignore=all,!ipldev,!condev,!0.0.da00-0.0.da10
>
> ignores all devices except the console device, the IPL device, and the
> range of devices from 0.0.da00 to 0.0.da10 that might be DASDs or any
> other devices. Note that you can change the cio_ignore settings at runtime,
> so you can later make additional devices visible.
>
> With this solution, there is no hardcoded limit necessary and the user
> can still see the list of DASDs to be configured.
>
> What do you think?
it'd be nice to see that in the installation manual, I think, so that
it's at least documented.
Kind regards and thanks
Philipp Kern
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Mon, 15 Feb 2016 07:51:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Mon, 15 Feb 2016 07:51:06 GMT) (full text, mbox, link).
Message #26 received at 666399@bugs.debian.org (full text, mbox, reply):
On Sun, Feb 14, 2016 at 05:46:39PM +0100, Philipp Kern wrote:
> On Wed, Dec 16, 2015 at 02:15:10PM +0100, Hendrik Brueckner wrote:
> > Honestly, I would propose a different approach to limit the DASD device
> > available to the Debian installer. I believe that typical customer
> > environments have set up their LPARs (and z/VM guest virtual machines)
> > to limit the number of devices to those required/designated for the LPAR.
> >
> > Of course, there can be the case where LPARs almost have access to (almost)
> > every device. For this case, the solution is to use "cio_ignore" kernel
> > parameter. With this kernel parameter you can control the devices that
> > are visible to the Linux instance.
> >
> > For example,
> >
> > cio_ignore=all,!ipldev,!condev,!0.0.da00-0.0.da10
> >
> > ignores all devices except the console device, the IPL device, and the
> > range of devices from 0.0.da00 to 0.0.da10 that might be DASDs or any
> > other devices. Note that you can change the cio_ignore settings at runtime,
> > so you can later make additional devices visible.
> >
> > With this solution, there is no hardcoded limit necessary and the user
> > can still see the list of DASDs to be configured.
> >
> > What do you think?
>
> it'd be nice to see that in the installation manual, I think, so that
> it's at least documented.
How are installation manual changes are handled?
Thanks and kind regards,
Hendrik
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Tue, 16 Feb 2016 16:39:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Holger Wansing <linux@wansing-online.de>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 16 Feb 2016 16:39:08 GMT) (full text, mbox, link).
Message #31 received at 666399@bugs.debian.org (full text, mbox, reply):
Hi,
Hendrik Brueckner <brueckner@linux.vnet.ibm.com> wrote:
> On Sun, Feb 14, 2016 at 05:46:39PM +0100, Philipp Kern wrote:
> > > For example,
> > >
> > > cio_ignore=all,!ipldev,!condev,!0.0.da00-0.0.da10
> > >
> > > ignores all devices except the console device, the IPL device, and the
> > > range of devices from 0.0.da00 to 0.0.da10 that might be DASDs or any
> > > other devices. Note that you can change the cio_ignore settings at runtime,
> > > so you can later make additional devices visible.
> > >
> > > With this solution, there is no hardcoded limit necessary and the user
> > > can still see the list of DASDs to be configured.
> > >
> > > What do you think?
> >
> > it'd be nice to see that in the installation manual, I think, so that
> > it's at least documented.
>
> How are installation manual changes are handled?
You can find the various manual formats in
https://d-i.debian.org/manual/
The source code is under
http://anonscm.debian.org/viewvc/d-i/trunk/manual/
or via
svn co svn://anonscm.debian.org/svn/d-i/trunk/manual
Patches could be provided at debian-boot or as a wishlist bug
against installation-guide.
Holger
--
============================================================
Created with Sylpheed 3.5.0 under
D E B I A N L I N U X 8 . 0 " J E S S I E " .
Registered Linux User #311290 - https://linuxcounter.net/
============================================================
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Tue, 16 Feb 2016 17:24:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Tue, 16 Feb 2016 17:24:06 GMT) (full text, mbox, link).
Message #36 received at 666399@bugs.debian.org (full text, mbox, reply):
On Tue, Feb 16, 2016 at 05:34:02PM +0100, Holger Wansing wrote:
> Hendrik Brueckner <brueckner@linux.vnet.ibm.com> wrote:
> > On Sun, Feb 14, 2016 at 05:46:39PM +0100, Philipp Kern wrote:
> > > > For example,
> > > >
> > > > cio_ignore=all,!ipldev,!condev,!0.0.da00-0.0.da10
> > > >
> > > > ignores all devices except the console device, the IPL device, and the
> > > > range of devices from 0.0.da00 to 0.0.da10 that might be DASDs or any
> > > > other devices. Note that you can change the cio_ignore settings at runtime,
> > > > so you can later make additional devices visible.
> > > >
> > > > With this solution, there is no hardcoded limit necessary and the user
> > > > can still see the list of DASDs to be configured.
> > > >
> > > > What do you think?
> > >
> > > it'd be nice to see that in the installation manual, I think, so that
> > > it's at least documented.
Actually, this is already documented in the installation manual:
https://d-i.debian.org/manual/en.s390x/ch05s01.html
> >
> > How are installation manual changes are handled?
>
> You can find the various manual formats in
> https://d-i.debian.org/manual/
>
> The source code is under
> http://anonscm.debian.org/viewvc/d-i/trunk/manual/
> or via
> svn co svn://anonscm.debian.org/svn/d-i/trunk/manual
Thanks for pointing to the manual locations.
>
> Patches could be provided at debian-boot or as a wishlist bug
> against installation-guide.
Ok... good to know.
Thanks and kind regards,
Hendrik
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#666399; Package s390-dasd.
(Fri, 26 Feb 2016 12:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Fri, 26 Feb 2016 12:45:03 GMT) (full text, mbox, link).
Message #41 received at 666399@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tags -1 + patch
On Tue, Feb 16, 2016 at 06:22:30PM +0100, Hendrik Brueckner wrote:
> On Tue, Feb 16, 2016 at 05:34:02PM +0100, Holger Wansing wrote:
> > Hendrik Brueckner <brueckner@linux.vnet.ibm.com> wrote:
> > > On Sun, Feb 14, 2016 at 05:46:39PM +0100, Philipp Kern wrote:
> > > > > For example,
> > > > >
> > > > > cio_ignore=all,!ipldev,!condev,!0.0.da00-0.0.da10
> > > > >
> > > > > ignores all devices except the console device, the IPL device, and the
> > > > > range of devices from 0.0.da00 to 0.0.da10 that might be DASDs or any
> > > > > other devices. Note that you can change the cio_ignore settings at runtime,
> > > > > so you can later make additional devices visible.
> > > > >
> > > > > With this solution, there is no hardcoded limit necessary and the user
> > > > > can still see the list of DASDs to be configured.
> > > > >
> > > > > What do you think?
> > > >
> > > > it'd be nice to see that in the installation manual, I think, so that
> > > > it's at least documented.
>
> Actually, this is already documented in the installation manual:
>
> https://d-i.debian.org/manual/en.s390x/ch05s01.html
Because this is already documented, below a patch that removes the
get_channel() function to handle more than 20 DASDs. If there are
numerous DASDs, the cio_ignore could be used to limit the list to
those that are required for the Linux instance / installer.
The patch also corrects a stack overflow for displaying DASDs which
similar to the one in s390-netdevice which was corrected few weeks
ago.
Thanks and kind regards,
Hendrik
[0001-dasd-config-always-list-available-DASDs-for-selectio.patch (text/plain, attachment)]
Added tag(s) patch.
Request was from Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
to 666399-submit@bugs.debian.org.
(Fri, 26 Feb 2016 12:45:03 GMT) (full text, mbox, link).
Reply sent
to Philipp Kern <pkern@debian.org>:
You have taken responsibility.
(Sat, 27 Feb 2016 16:00:08 GMT) (full text, mbox, link).
Notification sent
to Philipp Kern <pkern@debian.org>:
Bug acknowledged by developer.
(Sat, 27 Feb 2016 16:00:08 GMT) (full text, mbox, link).
Message #48 received at 666399-close@bugs.debian.org (full text, mbox, reply):
Source: s390-dasd
Source-Version: 0.0.34
We believe that the bug you reported is fixed in the latest version of
s390-dasd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 666399@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Philipp Kern <pkern@debian.org> (supplier of updated s390-dasd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 27 Feb 2016 15:48:56 +0100
Source: s390-dasd
Binary: s390-dasd
Architecture: source s390x
Version: 0.0.34
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
Description:
s390-dasd - Configure DASD (udeb)
Closes: 666399
Changes:
s390-dasd (0.0.34) unstable; urgency=medium
.
[ Colin Watson ]
* Use HTTPS for Vcs-* URLs, and link to cgit rather than gitweb.
.
[ Hendrik Brueckner ]
* dasd-config: always list available DASDs for selection and configuration
(Closes: #666399)
Checksums-Sha1:
db8234ae36948ebd481c89d195fedc12a603351d 1361 s390-dasd_0.0.34.dsc
e3d77e56d348f88a87cc037a495dc02d92ac996c 55624 s390-dasd_0.0.34.tar.xz
0c097088cce1fc28008383d998ed5c559fbe758c 37654 s390-dasd_0.0.34_s390x.udeb
Checksums-Sha256:
a34820e87babaddedf47de6249f3fe70e829524007be197bd0af29fcdbd1aa37 1361 s390-dasd_0.0.34.dsc
a0b6f28bf47f2ed237c6bfff88d0ce301bd97c823bb0b9e4ae3822fc4d066efd 55624 s390-dasd_0.0.34.tar.xz
e193bcdbf153c523371b37d32cb3036f7c2f1540d1bce278aacff5969bebe90a 37654 s390-dasd_0.0.34_s390x.udeb
Files:
7010f0cfb3c7650a752e52131960c9a1 1361 debian-installer standard s390-dasd_0.0.34.dsc
a5deeed257c0ea2e5275fffa3d17193a 55624 debian-installer standard s390-dasd_0.0.34.tar.xz
803636c2244145fca7deb9ea9f3c7008 37654 debian-installer standard s390-dasd_0.0.34_s390x.udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBCAAGBQJW0biHAAoJEERuJUU10Fbsb1wH/0vUzCwe1DvqAh3J3Ug0vxMh
Q6YevIKWTgRqyDytFk8QkVNRVEZltCQYqpoj75IltJc5ociVc53fHrgHUX61k79R
BYN+MFqQbJGOObCOxfVOXv7W+x8M8IPPjU02OBOxeG6i5YKe0QhukoGt1C4xfrJz
q47y+DF7BiRTJih8/6/M/H+7Q/GblGV5D293Xk5kNSsgAJJIcTp72NkdUQ5AtIwx
evVKPjLjZ9y2a85Frqcr8HTi6ew76zgBSxIhxoCrX2ROZeu3P5EqquDuKt3d2cle
Q4+SntPH8LKwlWR1nZPTpeAkoGCgPkLg8ey0yzmpefrq1Qdy9R5jpXgepkr2pPU=
=Lzhp
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 07 May 2016 07:37:30 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Aug 8 02:52:13 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.