[node-patches] Change in ovirt-node[master]: recipe: Add sane multipath conf

fabiand at redhat.com fabiand at redhat.com
Wed Dec 3 12:15:36 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: recipe: Add sane multipath conf
......................................................................

recipe: Add sane multipath conf

Previously we used an empyt multipath.conf.
This lead to a situation where devices were claimed by multipath, even
if they weren't multipath devices.
To fix this, we now provide a configuration file which set's the
relevant directive, to only mark verified multipath devices as such.
This basically means that mpath devices will only be created for devices
with multiple paths.

Change-Id: I7bf827830450acd0aba60cedba259a2a44ac23d6
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1152948
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M recipe/rhevh6-post.ks
M recipe/rhevh7-post.ks
2 files changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/28/35828/1

diff --git a/recipe/rhevh6-post.ks b/recipe/rhevh6-post.ks
index 561fa8e..2776ad6 100644
--- a/recipe/rhevh6-post.ks
+++ b/recipe/rhevh6-post.ks
@@ -240,3 +240,11 @@
  LABEL="end_mpath"
 EOF_udev_patch
 
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=1167620
+cat <<EOF_mpath >> /etc/multipath.conf
+
+defaults {
+        find_multipaths yes
+}
+EOF_mpath
diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks
index 477a904..7515430 100644
--- a/recipe/rhevh7-post.ks
+++ b/recipe/rhevh7-post.ks
@@ -213,3 +213,11 @@
 +ENV{DM_ACTIVATION}=="1", RUN+="$env{MPATH_SBIN_PATH}/kpartx -a $tempnode"
  LABEL="end_mpath"
 EOF_udev_patch
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=1167620
+cat <<EOF_mpath >> /etc/multipath.conf
+
+defaults {
+        find_multipaths yes
+}
+EOF_mpath


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7bf827830450acd0aba60cedba259a2a44ac23d6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list