Your message dated Mon, 05 Nov 2012 07:17:33 +0000
with message-id <[email protected]>
and subject line Bug#687319: fixed in xcp-storage-managers 0.1.1-3
has caused the Debian Bug report #687319,
regarding xcp-storage-managers: CDROM VDIs don't hotplug in guests because ISO
SRs are misconfigured
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
687319: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687319
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xcp-storage-managers
Version: 0.1.1-2ubuntu1
Severity: normal
This bug prevents CDROM VDIs from being hotplugged into guest
VMs. The issue is that the NFS ISO SR configures the ISO VDIs to
be 'file' types, which it should configure them to by 'phy'
types. This breaks on Debian's Xen because the Debian hotplug
scripts are more robuse than the ones on XenServer, and fail
because the VDI type is set improperly.
A debdiff is attached.
-- System Information:
Debian Release: wheezy/sid
APT prefers precise-updates
APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500,
'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-30-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xcp-storage-managers depends on:
ii blktap-utils 2.0.90-1
ii libc6 2.15-0ubuntu10
ii libxenstore3.0 4.1.2-2ubuntu2.2
ii python 2.7.3-0ubuntu2
ii python2.7 2.7.3-0ubuntu3.1
ii uuid-runtime 2.20.1-1ubuntu3
Versions of packages xcp-storage-managers recommends:
ii lvm2 2.02.66-4ubuntu7.1
ii nfs-common 1:1.2.5-3ubuntu3
xcp-storage-managers suggests no packages.
-- no debconf information
diff -Nru xcp-storage-managers-0.1.1/debian/changelog
xcp-storage-managers-0.1.1/debian/changelog
--- xcp-storage-managers-0.1.1/debian/changelog 2011-12-17 16:47:38.000000000
+0000
+++ xcp-storage-managers-0.1.1/debian/changelog 2012-09-04 11:15:29.000000000
+0100
@@ -1,3 +1,9 @@
+xcp-storage-managers (0.1.1-3) unstable; urgency=low
+
+ * Fix CDROM guest hotplug bug (LP: #1045739)
+
+ -- Mike McClurg <[email protected]> Tue, 04 Sep 2012 11:03:11 +0100
+
xcp-storage-managers (0.1.1-2) unstable; urgency=low
* New FHS compliant layout
diff -Nru xcp-storage-managers-0.1.1/debian/patches/0002-lvm2-path.patch
xcp-storage-managers-0.1.1/debian/patches/0002-lvm2-path.patch
--- xcp-storage-managers-0.1.1/debian/patches/0002-lvm2-path.patch
2011-12-17 16:47:38.000000000 +0000
+++ xcp-storage-managers-0.1.1/debian/patches/0002-lvm2-path.patch
2012-09-04 11:15:29.000000000 +0100
@@ -4,7 +4,7 @@
---
drivers/lvutil.py | 4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
+ 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/lvutil.py b/drivers/lvutil.py
index e9bf30a..a6c9914 100755
diff -Nru xcp-storage-managers-0.1.1/debian/patches/0003-fpic-on-xslib.patch
xcp-storage-managers-0.1.1/debian/patches/0003-fpic-on-xslib.patch
--- xcp-storage-managers-0.1.1/debian/patches/0003-fpic-on-xslib.patch
2011-12-17 16:47:38.000000000 +0000
+++ xcp-storage-managers-0.1.1/debian/patches/0003-fpic-on-xslib.patch
2012-09-04 11:15:29.000000000 +0100
@@ -4,7 +4,7 @@
---
snapwatchd/Makefile | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
+ 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snapwatchd/Makefile b/snapwatchd/Makefile
index 98cb1a9..addcbfb 100644
diff -Nru xcp-storage-managers-0.1.1/debian/patches/0004-remove-xencert.patch
xcp-storage-managers-0.1.1/debian/patches/0004-remove-xencert.patch
--- xcp-storage-managers-0.1.1/debian/patches/0004-remove-xencert.patch
2011-12-17 16:47:38.000000000 +0000
+++ xcp-storage-managers-0.1.1/debian/patches/0004-remove-xencert.patch
2012-09-04 11:15:29.000000000 +0100
@@ -4,7 +4,7 @@
---
Makefile | 1 -
- 1 files changed, 0 insertions(+), 1 deletions(-)
+ 1 file changed, 1 deletion(-)
diff --git a/Makefile b/Makefile
index a42b056..a1ff8c5 100644
diff -Nru xcp-storage-managers-0.1.1/debian/patches/0005-vhd-util-path.patch
xcp-storage-managers-0.1.1/debian/patches/0005-vhd-util-path.patch
--- xcp-storage-managers-0.1.1/debian/patches/0005-vhd-util-path.patch
2011-12-17 16:47:38.000000000 +0000
+++ xcp-storage-managers-0.1.1/debian/patches/0005-vhd-util-path.patch
2012-09-04 11:15:29.000000000 +0100
@@ -4,7 +4,7 @@
---
drivers/vhdutil.py | 4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
+ 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/vhdutil.py b/drivers/vhdutil.py
index 10b6994..6ddcd32 100644
diff -Nru
xcp-storage-managers-0.1.1/debian/patches/0006-fix-local-device-change.patch
xcp-storage-managers-0.1.1/debian/patches/0006-fix-local-device-change.patch
---
xcp-storage-managers-0.1.1/debian/patches/0006-fix-local-device-change.patch
2011-12-17 16:47:38.000000000 +0000
+++
xcp-storage-managers-0.1.1/debian/patches/0006-fix-local-device-change.patch
2012-09-04 11:15:29.000000000 +0100
@@ -6,7 +6,7 @@
# Parent 48aa86a502ee5df1519d3ea42528c77d8fcf9ff6
---
scripts/local-device-change | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
+ 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/local-device-change b/scripts/local-device-change
index 57fec20..2929bf1 100755
diff -Nru
xcp-storage-managers-0.1.1/debian/patches/0008-remove-primary-disk-dependency.patch
xcp-storage-managers-0.1.1/debian/patches/0008-remove-primary-disk-dependency.patch
---
xcp-storage-managers-0.1.1/debian/patches/0008-remove-primary-disk-dependency.patch
2011-12-17 16:47:38.000000000 +0000
+++
xcp-storage-managers-0.1.1/debian/patches/0008-remove-primary-disk-dependency.patch
2012-09-04 11:15:29.000000000 +0100
@@ -4,7 +4,7 @@
---
drivers/util.py | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
+ 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/util.py b/drivers/util.py
index 54b99ac..bf1f8ab 100644
diff -Nru
xcp-storage-managers-0.1.1/debian/patches/0009-disable-block-SRs.patch
xcp-storage-managers-0.1.1/debian/patches/0009-disable-block-SRs.patch
--- xcp-storage-managers-0.1.1/debian/patches/0009-disable-block-SRs.patch
2011-12-17 16:47:38.000000000 +0000
+++ xcp-storage-managers-0.1.1/debian/patches/0009-disable-block-SRs.patch
2012-09-04 11:15:29.000000000 +0100
@@ -8,12 +8,14 @@
Signed-off-by: Mike McClurg <[email protected]>
---
- Makefile | 4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
+ Makefile | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+diff --git a/Makefile b/Makefile
+index fbfbbf5..4255016 100644
--- a/Makefile
+++ b/Makefile
-@@ -12,6 +12,8 @@
+@@ -12,6 +12,8 @@ SM_DRIVERS += LVHDoISCSI
SM_DRIVERS += LVHDoHBA
SM_DRIVERS += SHM
@@ -22,7 +24,7 @@
SM_LIBS := SR
SM_LIBS += SRCommand
SM_LIBS += VDI
-@@ -93,13 +95,13 @@
+@@ -93,13 +95,13 @@ install:
for i in $(SM_XML); do \
install -m 755 drivers/$$i.xml \
$(SM_STAGING)$(SM_DEST); done
@@ -41,3 +43,4 @@
#ln -sf $(SM_DEST)mpathutil.py $(SM_STAGING)/sbin/mpathutil
install -m 755 drivers/02-vhdcleanup $(SM_STAGING)$(MASTER_SCRIPT_DEST)
install -m 755 drivers/lvhd-thin $(SM_STAGING)$(PLUGIN_SCRIPT_DEST)
+--
diff -Nru
xcp-storage-managers-0.1.1/debian/patches/0010-Fix-guest-CDROM-hotplug.patch
xcp-storage-managers-0.1.1/debian/patches/0010-Fix-guest-CDROM-hotplug.patch
---
xcp-storage-managers-0.1.1/debian/patches/0010-Fix-guest-CDROM-hotplug.patch
1970-01-01 01:00:00.000000000 +0100
+++
xcp-storage-managers-0.1.1/debian/patches/0010-Fix-guest-CDROM-hotplug.patch
2012-09-04 11:15:29.000000000 +0100
@@ -0,0 +1,30 @@
+From: Mike McClurg <[email protected]>
+Date: Tue, 4 Sep 2012 10:57:09 +0100
+Subject: Fix guest CDROM hotplug
+
+The ISOSR driver erroneously tagged all ISO VDIs as 'file' types when it should
+have tagged them as 'phy' types. The XenServer hotplug scripts are quite
+simple, and don't distinguish between these two types. The upstream Xen 4.1
+hotplug scripts, however, are quite robust, and would refuse to plug the CDROM
+devices into the guest because the backend paths that contained the CDROM
+images were block devices and not files.
+
+Signed-off-by: Mike McClurg <[email protected]>
+---
+ drivers/ISOSR.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/ISOSR.py b/drivers/ISOSR.py
+index 35601ed..c1e3004 100755
+--- a/drivers/ISOSR.py
++++ b/drivers/ISOSR.py
+@@ -191,7 +191,7 @@ class ISOSR(SR.SR):
+ self.path = self.mountpoint
+
+ # Some info we need:
+- self.sr_vditype = 'file'
++ self.sr_vditype = 'phy'
+ self.credentials = None
+
+ def attach(self, sr_uuid):
+--
diff -Nru xcp-storage-managers-0.1.1/debian/patches/series
xcp-storage-managers-0.1.1/debian/patches/series
--- xcp-storage-managers-0.1.1/debian/patches/series 2011-12-17
16:47:38.000000000 +0000
+++ xcp-storage-managers-0.1.1/debian/patches/series 2012-09-04
11:15:29.000000000 +0100
@@ -7,3 +7,4 @@
0007-fix-makefile.patch
0008-remove-primary-disk-dependency.patch
0009-disable-block-SRs.patch
+0010-Fix-guest-CDROM-hotplug.patch
Binary files /tmp/TeCi_EcImJ/xcp-storage-managers-0.1.1/XenCert/diskdatatest
and /tmp/rnkmYxDgKR/xcp-storage-managers-0.1.1/XenCert/diskdatatest differ
--- End Message ---
--- Begin Message ---
Source: xcp-storage-managers
Source-Version: 0.1.1-3
We believe that the bug you reported is fixed in the latest version of
xcp-storage-managers, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Thomas Goirand <[email protected]> (supplier of updated xcp-storage-managers
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 04 Nov 2012 18:54:52 +0000
Source: xcp-storage-managers
Binary: xcp-storage-managers
Architecture: source amd64
Version: 0.1.1-3
Distribution: unstable
Urgency: low
Maintainer: PKG-Xen Devel <[email protected]>
Changed-By: Thomas Goirand <[email protected]>
Description:
xcp-storage-managers - storage backends for XCP
Closes: 687319 691805 691806 691808
Changes:
xcp-storage-managers (0.1.1-3) unstable; urgency=low
.
* Added missing dependency on sg3-utils and open-iscsi (Closes: #691806).
* Fixes path to iscsid in iscsilib.py (Closes: #691805).
* Fixes path to scsi_id in scsiutil.py, removes unknown --master parameter in
lvutil.py (Closes: #691808).
* Fix CDROM guest hotplug bug (LP: #1045739) (Closes: #687319).
* Added a watch file.
* Build-Conflicts: xcp-storage-managers, since that's just what happened to
me at the dh_python2 stage.
Checksums-Sha1:
8b0519f8e3914ec6269b39341b4f7ddec15c392a 1579 xcp-storage-managers_0.1.1-3.dsc
b5ecbfc87e1d2485d635d857e9675b134012f5cb 17766
xcp-storage-managers_0.1.1-3.debian.tar.gz
dfb50ae4185d5f5dabf1f0c36abe59ae2cac39bb 212800
xcp-storage-managers_0.1.1-3_amd64.deb
Checksums-Sha256:
c7b6bf00922641fff48b93e9e49f5930e1dbd3f2eb67f65d290184f004c82e44 1579
xcp-storage-managers_0.1.1-3.dsc
23e09669334344f9ea6f372ac766c699606ac877ee9212bda7b27b7945d73652 17766
xcp-storage-managers_0.1.1-3.debian.tar.gz
e1c4c78a59d74ead19711997dc4d494846c028f68132d07f20ebbebbca803c87 212800
xcp-storage-managers_0.1.1-3_amd64.deb
Files:
ca1f65d6552adb0c874fdb5451e829d7 1579 libs extra
xcp-storage-managers_0.1.1-3.dsc
6887febef7949845370de9bc32bb22fd 17766 libs extra
xcp-storage-managers_0.1.1-3.debian.tar.gz
f64d4232ccba0f3a8f8677ed6355406f 212800 libs extra
xcp-storage-managers_0.1.1-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlCXcmUACgkQl4M9yZjvmkkklQCg1PMUiBRfI71rc68SEjx/XcAz
t+AAoLRbIXApC7bvyrv2ELQYFETXJ4Hp
=FSJC
-----END PGP SIGNATURE-----
--- End Message ---