Your message dated Wed, 30 Apr 2008 18:17:11 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#477334: fixed in xen-tools 3.9-3
has caused the Debian Bug report #477334,
regarding xen-tools : xen-create-image fails with --partitions with /usr and 
/usr/local involved
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.)


-- 
477334: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477334
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: xen-tools
Version: 3.9-2
Tag: patch

I tried the --partitions option with xen-create-image. It works ok with the
sample-server file provided with the package, but not with my settings.

Here is my partition file :
[root]
size=500M
type=ext3
mountpoint=/
options=sync,errors=remount-ro

[swap]
size=2G
type=swap

[home]
size=1G
type=xfs
mountpoint=/home
options=nodev,nosuid

[tmp]
size=2G
type=xfs
mountpoint=/tmp
options=nodev,nosuid

[usr]
size=10G
type=xfs
mountpoint=/usr
options=nodev

[var]
size=2G
type=xfs
mountpoint=/var
options=nodev,nosuid

[usr-local]
size=5G
type=xfs
mountpoint=/usr/local
options=nodev

Here are some excerpts from a session :
zeus:~# xen-create-image --ip='129.104.3.229' --hostname="ubuntu-i386" 
--arch="i386" --dist=gutsy --mirror='http://fr.archive.ubuntu.com/ubuntu/' 
--partitions daphne --memory 1024 --verbose

General Information
--------------------
Hostname       :  ubuntu-i386
Distribution   :  gutsy
Partitions     :  swap            2G    (swap)
                  /               500M  (ext3)
                  /usr/local      5G    (xfs)
                  /var            2G    (xfs)
                  /usr            10G   (xfs)
                  /tmp            2G    (xfs)
                  /home           1G    (xfs)
Image type     :  full
Memory size    :  1024
Kernel path    :  /boot/vmlinuz-2.6.18-5-xen-amd64
Initrd path    :  /boot/initrd.img-2.6.18-5-xen-amd64

Networking Information
----------------------
IP Address 1   : 129.104.3.229 [MAC: 00:16:3E:F6:3E:1E]
Netmask        : 255.255.255.0
Gateway        : 129.104.3.100

Executing : lvcreate system -L 2G -n ubuntu-i386-swap
[...]
Executing : mount -t ext3 /dev/system/ubuntu-i386-root /tmp/0nNOTFZXmU/
Finished : mount -t ext3 /dev/system/ubuntu-i386-root /tmp/0nNOTFZXmU/ 2>&1 | 
tee --append /var/log/xen-tools/ubuntu-i386.log
Executing : mount -t xfs /dev/system/ubuntu-i386-usr-local 
/tmp/0nNOTFZXmU/usr/local
Finished : mount -t xfs /dev/system/ubuntu-i386-usr-local 
/tmp/0nNOTFZXmU/usr/local 2>&1 | tee --append /var/log/xen-tools/ubuntu-i386.log
Executing : mount -t xfs /dev/system/ubuntu-i386-var /tmp/0nNOTFZXmU/var
Finished : mount -t xfs /dev/system/ubuntu-i386-var /tmp/0nNOTFZXmU/var 2>&1 | 
tee --append /var/log/xen-tools/ubuntu-i386.log
Executing : mount -t xfs /dev/system/ubuntu-i386-usr /tmp/0nNOTFZXmU/usr
Finished : mount -t xfs /dev/system/ubuntu-i386-usr /tmp/0nNOTFZXmU/usr 2>&1 | 
tee --append /var/log/xen-tools/ubuntu-i386.log
Executing : mount -t xfs /dev/system/ubuntu-i386-tmp /tmp/0nNOTFZXmU/tmp
Finished : mount -t xfs /dev/system/ubuntu-i386-tmp /tmp/0nNOTFZXmU/tmp 2>&1 | 
tee --append /var/log/xen-tools/ubuntu-i386.log
Executing : mount -t xfs /dev/system/ubuntu-i386-home /tmp/0nNOTFZXmU/home
Finished : mount -t xfs /dev/system/ubuntu-i386-home /tmp/0nNOTFZXmU/home 2>&1 
| tee --append /var/log/xen-tools/ubuntu-i386.log
[...]
Customization Script Environment:
---------------------------------
        'HOME' = '/root'
        'LANG' = 'en_US.UTF-8'
        'LC_ALL' = 'C'
        'LOGNAME' = 'root'
        'MAIL' = '/var/mail/root'
        'NUMPARTITIONS' = '7'
        'PARTITION1' = 'swap:2G:swap:::phy::/dev/system/ubuntu-i386-swap'
        'PARTITION2' = 
'root:500M:ext3:/:sync,errors=remount-ro:phy::/dev/system/ubuntu-i386-root'
        'PARTITION3' = 
'usr-local:5G:xfs:/usr/local:nodev:phy::/dev/system/ubuntu-i386-usr-local'
        'PARTITION4' = 
'var:2G:xfs:/var:nodev,nosuid:phy::/dev/system/ubuntu-i386-var'
        'PARTITION5' = 'usr:10G:xfs:/usr:nodev:phy::/dev/system/ubuntu-i386-usr'
        'PARTITION6' = 
'tmp:2G:xfs:/tmp:nodev,nosuid:phy::/dev/system/ubuntu-i386-tmp'
        'PARTITION7' = 
'home:1G:xfs:/home:nodev,nosuid:phy::/dev/system/ubuntu-i386-home'
[...]
Unmounting : /tmp/0nNOTFZXmU/var
Executing : umount /tmp/0nNOTFZXmU/var
Finished : umount /tmp/0nNOTFZXmU/var 2>&1 | tee --append 
/var/log/xen-tools/ubuntu-i386.log
Unmounting : /tmp/0nNOTFZXmU/usr/local
Executing : umount /tmp/0nNOTFZXmU/usr/local
Finished : umount /tmp/0nNOTFZXmU/usr/local 2>&1 | tee --append 
/var/log/xen-tools/ubuntu-i386.log
Unmounting : /tmp/0nNOTFZXmU/usr
Executing : umount /tmp/0nNOTFZXmU/usr
Finished : umount /tmp/0nNOTFZXmU/usr 2>&1 | tee --append 
/var/log/xen-tools/ubuntu-i386.log
Unmounting : /tmp/0nNOTFZXmU/tmp
Executing : umount /tmp/0nNOTFZXmU/tmp
Finished : umount /tmp/0nNOTFZXmU/tmp 2>&1 | tee --append 
/var/log/xen-tools/ubuntu-i386.log
Unmounting : /tmp/0nNOTFZXmU/home
Executing : umount /tmp/0nNOTFZXmU/home
Finished : umount /tmp/0nNOTFZXmU/home 2>&1 | tee --append 
/var/log/xen-tools/ubuntu-i386.log
Unmounting : /tmp/0nNOTFZXmU
Executing : umount /tmp/0nNOTFZXmU
Finished : umount /tmp/0nNOTFZXmU 2>&1 | tee --append 
/var/log/xen-tools/ubuntu-i386.log
Can't remove directory /tmp/0nNOTFZXmU/usr/local: Device or resource busy at 
/usr/share/perl/5.8/File/Temp.pm line 898
Can't remove directory /tmp/0nNOTFZXmU/usr: Directory not empty at 
/usr/share/perl/5.8/File/Temp.pm line 898
Can't remove directory /tmp/0nNOTFZXmU: Device or resource busy at 
/usr/share/perl/5.8/File/Temp.pm line 898

The /usr/local partition was mounted before /usr, hence the problem. 


The trouble is at the ordering of the partitions before mounting them, at line
2075 of /usr/bin/xen-create-image. The array @PARTITIONS is sorted by comparing
alphabetically instead of numerically the length of the mountpoint. In my case,
/usr/local is 10 characters long and sorted before /usr which is 4 characters
long.

I attached a simple patch to correct this behavior.


Thank you for providing this option with xen-tools, it is really helpful to
create virtual servers. 

Sincerely yours,

-- 
Stéphane AICARDI
CMLS-CPHT
Ecole Polytechnique
91128 PALAISEAU CEDEX
FRANCE
Tel : 01 69 33 49 56
--- /usr/bin/xen-create-image   2008-02-20 22:27:15.000000000 +0100
+++ /usr/bin/xen-create-image.fix       2008-04-22 15:44:07.000000000 +0200
@@ -2072,7 +2072,7 @@
     #  This makes it easy to mount parent folders first
     # (e.g. /var before /var/tmp)
     #
-    @PARTITIONS = sort { length $a->{'mountpoint'} cmp length 
$b->{'mountpoint'} } @PARTITIONS;
+    @PARTITIONS = sort { length $a->{'mountpoint'} <=> length 
$b->{'mountpoint'} } @PARTITIONS;
 }
 
 

--- End Message ---
--- Begin Message ---
Source: xen-tools
Source-Version: 3.9-3

We believe that the bug you reported is fixed in the latest version of
xen-tools, which is due to be installed in the Debian FTP archive:

xen-tools_3.9-3.diff.gz
  to pool/main/x/xen-tools/xen-tools_3.9-3.diff.gz
xen-tools_3.9-3.dsc
  to pool/main/x/xen-tools/xen-tools_3.9-3.dsc
xen-tools_3.9-3_all.deb
  to pool/main/x/xen-tools/xen-tools_3.9-3_all.deb



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.
Steve Kemp <[EMAIL PROTECTED]> (supplier of updated xen-tools 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: Wed, 20 Feb 2007 21:22:23 +0000
Source: xen-tools
Binary: xen-tools
Architecture: source all
Version: 3.9-3
Distribution: unstable
Urgency: medium
Maintainer: Roland Stigge <[EMAIL PROTECTED]>
Changed-By: Steve Kemp <[EMAIL PROTECTED]>
Description: 
 xen-tools  - Tools to manage Debian XEN virtual servers
Closes: 474919 477334 477629 477775
Changes: 
 xen-tools (3.9-3) unstable; urgency=medium
 .
   - Ensure that Fedora guests get /dev/pts mounted.
     Thanks to  Giovanni Biscuolo (Closes: #474919)
   - Add the new hostnames to /etc/hosts on the dom0 in the correct order.
     Thanks to Wolfgang Karall (Closes: #477775)
   - Ensure that packages are remoed non-interactively for scripted stuff.
     Thanks to Wolfgang Karall (Closes: #477629)
   - Correctly handle custom partitioning systems.
     Thanks to Stéphane AICARDI (Closes: #477334)
Checksums-Sha1: 
 8803c66e30e2caa93d26fbb1fede4c3d17150d13 1104 xen-tools_3.9-3.dsc
 067016a7fee8051d41ea5d6898081bed6c9d3591 11112 xen-tools_3.9-3.diff.gz
 aaa208b9757a2d60f8e4757e4cc1a08b959a0163 184790 xen-tools_3.9-3_all.deb
Checksums-Sha256: 
 f7dca6a7d34c9fa7cc3cb056273b8a703438d8ec62b53cac8d25540580273113 1104 
xen-tools_3.9-3.dsc
 33754eee96f43091ccf3834dd73462f2154338516f282e1526ae79e9bbd36d05 11112 
xen-tools_3.9-3.diff.gz
 7233f143ab7407964b4fb9c620046f2b2cb071beb4dd0269891bec441dd1d4e5 184790 
xen-tools_3.9-3_all.deb
Files: 
 022bdc09a5e4850b0a7fb38faab002ba 1104 utils extra xen-tools_3.9-3.dsc
 f1b22910e346a623d6d6d222e934efcc 11112 utils extra xen-tools_3.9-3.diff.gz
 95520da7c07b53ed500b682a8e88f13b 184790 utils extra xen-tools_3.9-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIGLQRwM/Gs81MDZ0RAh35AKDFCg+TiJkm27vkGpLxHu27W7Av3QCfWtYO
mNRYapBT1qlhAGzmVlZ3y0o=
=p6SG
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to