Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 475721 - [RHEL5.3] Alias ctc and iucv interfaces doesn't work , devices not able to group on-boot
Summary: [RHEL5.3] Alias ctc and iucv interfaces doesn't work , devices not able to gr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.3
Hardware: s390x
OS: All
low
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-10 04:40 UTC by IBM Bug Proxy
Modified: 2010-04-24 11:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
This allows for the grouping of CTC and netiucv devices
Clone Of:
Environment:
Last Closed: 2009-09-02 11:14:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Break deadlock by explicitly handling alias for CTC and IUCV in /etc/modprobe.conf as is done in ifup-eth. (1.18 KB, text/plain)
2009-01-20 11:50 UTC, IBM Bug Proxy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1344 0 normal SHIPPED_LIVE initscripts bug fix update 2009-09-01 10:44:36 UTC

Description IBM Bug Proxy 2008-12-10 04:40:44 UTC
=Comment: #0=================================================
Anupama B. Nagaraj <anupama.reddy.com> - 
ctc and iucv interfaces cannot be available up and running on boot because "alias ctc0 ctc ","alias
iucv0 netiucv" in /etc/modprobe.conf doesn't work .

the ctc and netiucv devices are not grouped and not available ONBOOT , so the interface fails to
come up , Here is the console messages seen after re-boot

Bringing up interface ctc0:  SIOCSIFADDR: No such device

ctc0: unknown interface: No such device

SIOCSIFDSTADDR: No such device

ctc0: unknown interface: No such device

SIOCSIFNETMASK: No such device

SIOCGIFADDR: No such device

SIOCSIFBROADCAST: No such device

ERROR: ctc0 did not come up!

SIOCADDRT: No such device

SIOCADDRT: Network is unreachable

�  OK  �

 Bringing up interface iucv0:  /etc/sysconfig/network-scripts/ifup-iucv: line 28:

 /sys/bus/iucv/drivers/netiucv/connection: No such file or directory

SIOCSIFADDR: No such device

iucv0: unknown interface: No such device

SIOCSIFDSTADDR: No such device

iucv0: unknown interface: No such device

SIOCSIFNETMASK: No such device

SIOCGIFADDR: No such device

SIOCSIFBROADCAST: No such device

SIOCADDRT: Network is unreachable

�  OK  �
=Comment: #1=================================================
Anupama B. Nagaraj <anupama.reddy.com> - 
Additional Information :

The ctc module is also not loaded  , but netiucv module is loaded after re-boot

Comment 1 IBM Bug Proxy 2008-12-10 08:10:26 UTC
Redhat Team,
This bug report should have gone to Issue tracker instead of Redhat Bugzilla. Sorry for the mistake.  Please let us know if  this can be linked to an Issue tracker  (RIT) record  and any additional action required from our side for the same.
Thanks, Supriya

Comment 2 Dan Williams 2008-12-10 18:00:31 UTC
-> initscripts, not NetworkManager.

Comment 3 Bill Nottingham 2008-12-10 18:21:59 UTC
What happens if you load them by hand with rc.modules?

Comment 4 IBM Bug Proxy 2008-12-10 19:00:43 UTC
checked iucv-interfaces on my RHEL5-system.
iucv-interfaces do not come up when booting, but they come up smoothly with "ifup iucv0" with this ifcfg-iucv0:
[root@xxx ~]# cat /etc/sysconfig/network-scripts/ifcfg-iucv0
DEVICE=iucv0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=
NETWORK=
NETMASK=255.255.255.255
IPADDR=10.90.90.16
GATEWAY=10.90.90.17
PEERID=h0545017
NETTYPE=iucv
TYPE=IUCV
GATEWAYDEV=eth0

Key GATEWAY is somehow misleading for a point-to-point iucv connection.

Comment 6 Bill Nottingham 2008-12-16 15:09:55 UTC
Putting back in NEEDINFO.

Comment 7 IBM Bug Proxy 2009-01-20 11:50:53 UTC
ifup-ctc and ifup-iucv instruct the user to append alias definitions

to /etc/modprobe.conf. However, they are ineffective and CTC or IUCV

network devices won't come up.

head initscripts-8.45.19.EL/sysconfig/network-scripts/ifup-ctc initscripts-8.45.19.EL/sysconfig/network-scripts/ifup-iucv

==> initscripts-8.45.19.EL/sysconfig/network-scripts/ifup-ctc <==

#!/bin/bash

#

# /etc/sysconfig/network-scripts/ifup-ctc

#

# the ctc network driver is a point-to-point driver on S/390 machines

#

# To get the ctc module to load automatically at boot, you will need to

# add the following line to /etc/modprobe.conf:

#

# alias ctc0 ctc

==> initscripts-8.45.19.EL/sysconfig/network-scripts/ifup-iucv <==

#!/bin/sh

#

# /etc/sysconfig/network-scripts/ifup-iucv

#

# the iucv network driver is a point-to-point driver on S/390 machines

#

# To get the iucv module to load automatically at boot, you will need to

# add the following line to /etc/modprobe.conf:

#

# alias iucv0 netiucv

Trying to access ${DEVICE} with ifconfig won't work unless the

necessary CCW channels have been grouped and set online in order to

allocate a network device to operate on. However, this will only

happen on loading the CTC driver module which will in turn generate

udev events triggering /lib/udev/ccw_init doing the grouping and

setting online. There is nothing in ifup-ctc which would automatically

load the driver (even indirectly by means of kerneld). => Break the

deadlock by explicitly handling alias in /etc/modprobe.conf as is done

in ifup-eth.

[ Theoretically this is also true for LCS network devices. However, this

is taken care of by loading the lcs driver along with the underlying

base driver cu3088, which gets loaded automatically by means of

udev and modaliases for any LCS or CTC device.

https://bugzilla.linux.ibm.com/show_bug.cgi?id=28504#c22

https://bugzilla.redhat.com/show_bug.cgi?id=236097 ]

Comment 8 IBM Bug Proxy 2009-01-20 11:50:59 UTC
Created attachment 329450 [details]
Break deadlock by explicitly handling alias for CTC and IUCV in /etc/modprobe.conf as is done in ifup-eth.



(text from previous comment continued here...)

There is nothing in ifup-iucv which would automatically load the
driver (even indirectly by means of kerneld) before trying to access a
sysfs attribute, which is only there if the driver has already been
loaded. => Break the deadlock by explicitly handling alias in
/etc/modprobe.conf as is done in ifup-eth.

The two fixes have been successfully tested on RHEL 5.2.

Comment 9 Bill Nottingham 2009-01-20 18:05:30 UTC
ACK for 5.4. For future releases, these devices need to load automatically.

Comment 11 Harald Hoyer 2009-05-05 12:52:10 UTC
Please test the erratum candidate:
http://people.redhat.com/harald/downloads/initscripts/initscripts-8.45.26.1.el5/

Comment 13 IBM Bug Proxy 2009-05-05 17:21:07 UTC
------- Comment From sglass.com 2009-05-05 13:19 EDT-------
Since this is in RH cvs tree, moving to Accepted state

Comment 14 IBM Bug Proxy 2009-06-21 16:30:40 UTC
------- Comment From MAIER.com 2009-06-21 12:23 EDT-------
Red Hat,

thanks a lot for integrating the fixes. With RHEL 5.4 alpha from RHEL5.4-Server-20090611.0-s390x-DVD.iso, I could verify the correct behavior for s390 network devices of type NETIUCV. However, I was wrong about the fix for CTC and am very sorry about that. Using the is_available function in ifup-ctc does not help, since it is too late at this point for loading the driver. /etc/udev/rules.d/55-ccw.rules triggers on an ADD udev event of a set of CCW devices (including CTC network devices) and calls /lib/udev/ccw_init which in turn uses the parameters SUBCHANNELS and OPTIONS of /etc/sysconfig/network-scripts/ifcfg-* to establish the necessary virtual ccwgroup devices in sysfs in order to produce in-kernel network devices, e.g. eth0, hsi0, or ctc0. Grouping only works, if the corresponding network device driver has already been loaded.

Therefore, I suggest the following udev rule, which makes the loading of network device drivers for LCS and CTC automatically before(!) 55-ccw.rules kicks in.

/etc/udev/rules.d/54-cu3088-fix.rules

# LCS
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/01", RUN+="/sbin/modprobe --quiet lcs"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/60", RUN+="/sbin/modprobe --quiet lcs"
# could be either CTC or LCS
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/08", RUN+="/sbin/modprobe --quiet ctc"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/08", RUN+="/sbin/modprobe --quiet lcs"
# CTC
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1e", RUN+="/sbin/modprobe --quiet ctc"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1f", RUN+="/sbin/modprobe --quiet ctc"

Verified to work with RHEL 5.4 alpha.

[This has already been discussed for upstream: https://www.redhat.com/archives/anaconda-devel-list/2009-March/msg00125.html]

(For LCS, this even makes the hack of the following bug obsolete: LTC Bug 28504 - RIT 116546- LCS Device will not grouped and interface bring up with ifup scripts. I.e. the following lines from /etc/modprobe.d/modprobe.conf.dist, which load the LCS driver module unconditionally together with the underlying cu3088 base driver even if the device is a CTC and not an LCS device, can be removed (I verified this by removing them):
# Module dependencies are actually reversed in the case of cu3088/lcs.
# Force load lcs on load of cu3088.
install cu3088 /sbin/modprobe --ignore-install cu3088; /sbin/modprobe lcs
).

Comment 15 IBM Bug Proxy 2009-06-24 05:50:58 UTC
------- Comment From sskumar1.com 2009-06-24 01:45 EDT-------
Verified in RHEL5.4 alpha IUCV is working fine. But i am still seeing same problem with ctc device onboot.

Bringing up loopback interface:  ??  OK
Bringing up interface ctc0:  SIOCSIFAD
ctc0: unknown interface: No such devic
SIOCSIFDSTADDR: No such device
ctc0: unknown interface: No such devic
SIOCSIFNETMASK: No such device
SIOCGIFADDR: No such device
SIOCSIFBROADCAST: No such device
ERROR: ctc0 did not come up!
SIOCADDRT: No such device

Comment 16 IBM Bug Proxy 2009-06-30 14:50:50 UTC
------- Comment From MAIER.com 2009-06-30 10:47 EDT-------
(In reply to comment #24)
> Therefore, I suggest the following udev rule, which makes the loading of
> network device drivers for LCS and CTC automatically before(!) 55-ccw.rules
> kicks in.
>
> /etc/udev/rules.d/54-cu3088-fix.rules

Sorry, I just learned that not only 3088/08 but also 3088/1f can be lcs or ctc, so the rules should look like the following:

# LCS
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/01", RUN+="/sbin/modprobe --quiet lcs"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/60", RUN+="/sbin/modprobe --quiet lcs"
# could be either CTC or LCS
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/08", RUN+="/sbin/modprobe --quiet ctc"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/08", RUN+="/sbin/modprobe --quiet lcs"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1f", RUN+="/sbin/modprobe --quiet ctc"
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1f", RUN+="/sbin/modprobe --quiet lcs"
# CTC
ACTION=="add", SUBSYSTEM=="ccw", SYSFS{cutype}=="3088/1e", RUN+="/sbin/modprobe --quiet ctc"

Comment 17 Chris Ward 2009-07-03 18:17:30 UTC
~~ Attention - RHEL 5.4 Beta Released! ~~

RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner!

If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity.

Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value.

Questions can be posted to this bug or your customer or partner representative.

Comment 18 IBM Bug Proxy 2009-07-03 19:23:44 UTC
------- Comment From MAIER.com 2009-07-03 15:11 EDT-------
My last analysis comment from RHEL 5.4 alpha is still valid for RHEL 5.4 beta1.
Netiucv works fine now, ctc won't come up on boot.

Red Hat, please add 54-cu3088-fix.rules to initscripts to fix this for ctc.

Comment 23 Shawn Wells 2009-07-08 22:01:53 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
This allows for the grouping of CTC and netiucv devices

Comment 24 IBM Bug Proxy 2009-07-14 13:41:55 UTC
------- Comment From mgrf.com 2009-07-14 09:32 EDT-------
(In reply to comment #29)
> My last analysis comment from RHEL 5.4 alpha is still valid for RHEL 5.4 beta1.
> Netiucv works fine now, ctc won't come up on boot.
> Red Hat, please add 54-cu3088-fix.rules to initscripts to fix this for ctc.

Hello Red Hat:
as per previous comment re-open this BZ
Still require fix for  " ctc "

Comment 25 Chris Ward 2009-07-14 13:47:42 UTC
The fix for this issue should be included in Snapshot 2.

Comment 27 IBM Bug Proxy 2009-07-18 17:11:36 UTC
------- Comment From MAIER.com 2009-07-18 13:05 EDT-------
Verified successfully with RHEL 5.4 snap2.
Thank you very much, Red Hat.
Closing.

Comment 30 errata-xmlrpc 2009-09-02 11:14:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1344.html


Note You need to log in before you can comment on or make changes to this bug.