[node-patches] Change in ovirt-node[node-3.0]: patch udev rules to wait for triggering

fabiand at redhat.com fabiand at redhat.com
Tue Nov 4 19:24:13 UTC 2014


Hello Ryan Barry,

I'd like you to do a code review.  Please visit

    http://gerrit.ovirt.org/34801

to review the following change.

Change subject: patch udev rules to wait for triggering
......................................................................

patch udev rules to wait for triggering

To work around a potential udev race, update the rules to only
trigger kpartx on new paths, so it doesn't come up in the middle
of partitioning a disk.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1158044
Change-Id: If838ea6fad66f873d6f7914eeb8447c204501505
Signed-off-by: Ryan Barry <rbarry at redhat.com>
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M recipe/common-post.ks
1 file changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/01/34801/1

diff --git a/recipe/common-post.ks b/recipe/common-post.ks
index 6c5e7eb..da487e0 100644
--- a/recipe/common-post.ks
+++ b/recipe/common-post.ks
@@ -247,3 +247,19 @@
 
 # enable strong random number generation
 sed -i '/SSH_USE_STRONG_RNG/d' /etc/sysconfig/sshd
+
+
+patch --ignore-whitespace -d /lib/udev/rules.d -p0 << \EOF_udev_patch
+--- 40-multipath.rules.orig     2014-11-04 14:57:12.385999154 +0000
++++ 40-multipath.rules  2014-11-04 14:58:19.081002175 +0000
+@@ -20,5 +20,5 @@
+ ENV{DM_UUID}!="mpath-?*", GOTO="end_mpath"
+ ENV{DM_SUSPENDED}=="1", GOTO="end_mpath"
+ ENV{DM_ACTION}=="PATH_FAILED", GOTO="end_mpath"
+-RUN+="$env{MPATH_SBIN_PATH}/kpartx -a -p p $tempnode"
++ENV{DM_ACTIVATION}==1, RUN+="$env{MPATH_SBIN_PATH}/kpartx -a -p p $tempnode"
+ LABEL="end_mpath"
+EOF_udev_patch
+
+echo "Regenerating initramfs"
+dracut -f || :


-- 
To view, visit http://gerrit.ovirt.org/34801
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If838ea6fad66f873d6f7914eeb8447c204501505
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list