Public bug reported:

For Canonical Openstack we are currently preseeding LPARs with
bridge_role=primary setting.

This is achieved by setting the property with chzdeve e.g.:

$ chzdev --no-root-update -pVe c003 bridge_role=primary

On boot this sometimes results in generated udev rules failing to apply the 
bridge_role property:
systemd-udevd[2634]: error opening ATTR{/sys/devices/qeth/0.0.c003/bridge_role} 
for writing: Permission denied

The reason being, is that bridge_role attribute is attempted to written,
before it exists, as the devices have not been onlined yet into a
ccwgroup.

Updating zdev/src/qeth.c to use ordering after online and check for online only 
appears to resolve above race condition, for the property in question
        .order_cmp = ccw_online_only_order_cmp,
        .check = ccw_online_only_check,

However looking at that file, it would appear to me that most qeth
properties should be ordered after online, as during boot they do not
exist until after the qeth is onlined.

Please reverse proxy this bug report to IBM s390-tools engineering.

Regards,

Dimitri.

** Affects: ubuntu-z-systems
     Importance: Undecided
     Assignee: bugproxy (bugproxy)
         Status: New

** Affects: s390-tools (Ubuntu)
     Importance: Undecided
     Assignee: bugproxy (bugproxy)
         Status: New

** Affects: s390-tools (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: s390-tools (Ubuntu Yakkety)
     Importance: Undecided
         Status: New


** Tags: s390x

** Also affects: s390-tools (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

** Also affects: s390-tools (Ubuntu Xenial)
   Importance: Undecided
       Status: New

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

Title:
  chzdev ccwgroup qeth properties incorrect ordering with respect to
  online

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to