This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] Exception in xen/util/vscsi_util.py while

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Exception in xen/util/vscsi_util.py while starting xend
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Aug 2010 02:15:38 -0700
Delivery-date: Fri, 13 Aug 2010 02:20:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User "Dube, Lutz" <lutz.dube@xxxxxxxxxxxxxx>
# Date 1281529085 -3600
# Node ID fffedd3d70e14abf2e487c109937d0090adcfebc
# Parent  3bbca5d4784055a470e110f6dcb632bdc5a40f17
Exception in xen/util/vscsi_util.py while starting xend
We have pscsi device with long scsi ids like 15:0:11:101.
In this case lsscsi prints no "blank" between id and type,
so the following split of the string returns wrong output.
The field physical_HCTL is set to 15:0:11:101]dis.
The patch replaces char "]" by "] ", so split() will return the right

Signed-off-by: Lutz Dube Lutz.Dube@xxxxxxxxxxxxxx
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 tools/python/xen/util/vscsi_util.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 3bbca5d47840 -r fffedd3d70e1 tools/python/xen/util/vscsi_util.py
--- a/tools/python/xen/util/vscsi_util.py       Wed Aug 11 13:09:22 2010 +0100
+++ b/tools/python/xen/util/vscsi_util.py       Wed Aug 11 13:18:05 2010 +0100
@@ -97,7 +97,7 @@ def _vscsi_get_scsidevices_by_lsscsi(opt
     devices = []
     for scsiinfo in os.popen('{ lsscsi -g %s; } 2>/dev/null' % 
-        s = scsiinfo.split()
+        s = scsiinfo.replace(']', '] ').split()
         hctl = s[0][1:-1]
             devname = s[-2].split('/dev/')[1]

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Exception in xen/util/vscsi_util.py while starting xend, Xen patchbot-unstable <=