Your message dated Wed, 15 Oct 2008 09:32:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#500823: fixed in fai 3.2.12
has caused the Debian Bug report #500823,
regarding [setup-storage] Fails to interpret parted error messages
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.)


-- 
500823: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500823
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: fai-client
Version: 3.2.11
Severity: important
Tags: patch

As the parted version currently in lenny and sid switched over to reporting
errors on stdout instead of stderr, setup-storage fails to interpret these
appropriately and thus fails in certain situations (actually in all cases where
the disk lacks any disk label).

The attached patch fixes this issue.

Best,
Michael

2008-09-30  Michael Tautschnig  <[EMAIL PROTECTED]>

        * lib/setup-storage/Exec.pm: recent versions of parted log errors to 
stdout
                instead of stderr + adaption of error messages to current ones
        * lib/setup-storage/Volumes.pm: Handle new error message in case of 
missing
                disk label
Index: trunk/lib/setup-storage/Exec.pm
===================================================================
--- trunk.orig/lib/setup-storage/Exec.pm
+++ trunk/lib/setup-storage/Exec.pm     
@@ -52,13 +52,21 @@
 $FAI::error_codes = [
   {
     error   => "parted_1",
-    message => "Parted failed to remove the partition\n",
-    stderr_regex => "Error: Could not stat device rm - No such file or 
directory",
+    message => "Parted failed to open the device\n",
+    stderr_regex => "Error: Could not stat device .* - No such file or 
directory",
     stdout_regex => "",
     program      => "parted",
     response     => "die",
   },
   {
+    error   => "parted_1_new",
+    message => "Parted failed to open the device\n",
+    stderr_regex => "",
+    stdout_regex => "Error: Could not stat device .* - No such file or 
directory",
+    program      => "parted",
+    response     => "die",
+  },
+  {
     error        => "parted_2",
     message      => "Parted could not read a disk label\n",
     stderr_regex => "Error: Unable to open .* - unrecognised disk label",
@@ -67,67 +75,83 @@
     response     => "warn",
   },
   {
-    error   => "parted_3",
-    message => "Parted failed to open the device\n",
-    stderr_regex => "Error: Could not stat device .* - No such file or 
directory",
-    stdout_regex => "",
+    error        => "parted_2_new",
+    message      => "Parted could not read a disk label\n",
+    stderr_regex => "",
+    stdout_regex => "Error: .* unrecognised disk label",
     program      => "parted",
-    response     => "die"
+    response     => "warn",
   },
+  ## {
+  ##   error        => "parted_3",
+  ##   message      => "Parted was unable to create the partition\n",
+  ##   stderr_regex => "Warning: You requested a partition from .* to .*\\.\$",
+  ##   stdout_regex => "",
+  ##   program      => "parted",
+  ##   response     => \&FAI::restore_partition_table,
+  ## },
   {
-    error   => "parted_4",
-    message => "parted not found\n",
-    stderr_regex => "(parted: command not found|/sbin/parted: No such file or 
directory)",
+    error        => "parted_4",
+    message      => "Parted was unable to read the partition table\n",
+    stderr_regex => "No Implementation: Partition \\d+ isn't aligned to 
cylinder boundaries",
     stdout_regex => "",
     program      => "parted",
-    response     => "die"
+    response     => "die",
+  },
+  {
+    error        => "parted_4_new",
+    message      => "Parted was unable to read the partition table\n",
+    stderr_regex => "",
+    stdout_regex => "No Implementation: Partition \\d+ isn't aligned to 
cylinder boundaries",
+    program      => "parted",
+    response     => "die",
   },
   {
     error        => "parted_5",
-    message      => "Parted was unable to create the partition\n",
-    stderr_regex => "Warning: You requested a partition from .* to .*\\.\$",
+    message      => "Parted failed to resize due to a setup-storage internal 
error\n",
+    stderr_regex => "Error: Can't have overlapping partitions",
     stdout_regex => "",
     program      => "parted",
-    response     => \&FAI::restore_partition_table,
+    response     => "die",
   },
   {
-    error => "mkfs.xfs_1",
-    message => "mkfs.xfs refused to create a filesystem. Probably you should 
add -f to the mkfs options in your disk_config file.\n",
-    stderr_regex => "mkfs.xfs: /dev/.* appears to contain an existing 
filesystem",
-    stdout_regex => "",
-    program      => "mkfs.xfs",
+    error        => "parted_5_new",
+    message      => "Parted failed to resize due to a setup-storage internal 
error\n",
+    stderr_regex => "",
+    stdout_regex => "Error: Can't have overlapping partitions",
+    program      => "parted",
     response     => "die",
   },
   {
     error        => "parted_6",
-    message      => "Parted was unable to read the partition table\n",
-    stderr_regex => "No Implementation: Partition \\d+ isn't aligned to 
cylinder boundaries",
+    message      => "Parted failed to resize the partition (is it too 
small?)\n",
+    stderr_regex => "Error: Unable to satisfy all constraints on the 
partition",
     stdout_regex => "",
     program      => "parted",
     response     => "die",
   },
   {
-    error        => "parted_7",
-    message      => "Parted doesn't support ntfs resizing\n",
-    stderr_regex => "No Implementation: Support for opening ntfs file systems 
is not implemented yet",
-    stdout_regex => "",
+    error        => "parted_6_new",
+    message      => "Parted failed to resize the partition (is it too 
small?)\n",
+    stderr_regex => "",
+    stdout_regex => "Error: Unable to satisfy all constraints on the 
partition",
     program      => "parted",
     response     => "die",
   },
   {
-    error        => "parted_8",
-    message      => "Parted failed to resize due to a setup-storage internal 
error\n",
-    stderr_regex => "Error: Can't have overlapping partitions",
+    error   => "cmd_parted_1",
+    message => "parted not found\n",
+    stderr_regex => "(parted: command not found|/sbin/parted: No such file or 
directory)",
     stdout_regex => "",
     program      => "parted",
-    response     => "die",
+    response     => "die"
   },
   {
-    error        => "parted_9",
-    message      => "Parted failed to resize the partition (is it too 
small?)\n",
-    stderr_regex => "Error: Unable to satisfy all constraints on the 
partition",
+    error => "mkfs.xfs_1",
+    message => "mkfs.xfs refused to create a filesystem. Probably you should 
add -f to the mkfs options in your disk_config file.\n",
+    stderr_regex => "mkfs.xfs: /dev/.* appears to contain an existing 
filesystem",
     stdout_regex => "",
-    program      => "parted",
+    program      => "mkfs.xfs",
     response     => "die",
   },
   {
Index: trunk/lib/setup-storage/Volumes.pm
===================================================================
--- trunk.orig/lib/setup-storage/Volumes.pm
+++ trunk/lib/setup-storage/Volumes.pm  
@@ -66,7 +66,7 @@
 
     # parted_2 happens when the disk has no disk label, because parted then
     # provides no information about the disk
-    if ($error eq "parted_2") {
+    if ($error eq "parted_2" || $error eq "parted_2_new") {
       $FAI::no_dry_run or die 
         "Can't run on test-only mode on this system because there is no 
disklabel on $disk\n";
 

Attachment: pgpIohc8hBkxs.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: fai
Source-Version: 3.2.12

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

fai-client_3.2.12_all.deb
  to pool/main/f/fai/fai-client_3.2.12_all.deb
fai-doc_3.2.12_all.deb
  to pool/main/f/fai/fai-doc_3.2.12_all.deb
fai-nfsroot_3.2.12_all.deb
  to pool/main/f/fai/fai-nfsroot_3.2.12_all.deb
fai-quickstart_3.2.12_all.deb
  to pool/main/f/fai/fai-quickstart_3.2.12_all.deb
fai-server_3.2.12_all.deb
  to pool/main/f/fai/fai-server_3.2.12_all.deb
fai_3.2.12.dsc
  to pool/main/f/fai/fai_3.2.12.dsc
fai_3.2.12.tar.gz
  to pool/main/f/fai/fai_3.2.12.tar.gz



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 Lange <[EMAIL PROTECTED]> (supplier of updated fai 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, 15 Oct 2008 11:25:39 +0200
Source: fai
Binary: fai-client fai-doc fai-server fai-quickstart fai-nfsroot
Architecture: source all
Version: 3.2.12
Distribution: unstable
Urgency: low
Maintainer: Thomas Lange <[EMAIL PROTECTED]>
Changed-By: Thomas Lange <[EMAIL PROTECTED]>
Description: 
 fai-client - Fully Automatic Installation client package
 fai-doc    - Documentation for FAI
 fai-nfsroot - Fully Automatic Installation nfsroot package
 fai-quickstart - Fully Automatic Installation quickstart package
 fai-server - Fully Automatic Installation server package
Closes: 500046 500822 500822 500823 500823 501772
Changes: 
 fai (3.2.12) unstable; urgency=low
 .
   * setup-storage/Parser.pm, setup-storage/Sizes.pm: Warn, if a
     preserved partition does not match the size specified in the
     disk_config; fail, if an extended partition is to be created in place
     of a to-be-preserved partition (closes: #501772)
   * setup-storage/Exec.pm: recent versions of parted log errors to
     stdout instead of stderr + adaption of error messages to current ones
     (closes: #500823)
   * setup-storage/Volumes.pm: Handle new error message in case of
     missing disk label (closes: #500823)
   * setup-storage: extended debug output of sorted commands
     (closes: #500822)
   * setup-storage/Commands.pm: Properly sort commands, fixed dependency
     errors, use start_byte for new config instead of begin_byte
     (closes: #500822)
   * setup-storage: increase version number
   * make-fai-nfsroot: print version of debootstrap (closes: #500046)
   * fai-guide.sgml: minor update in example
   * fai-chboot.8: fix warning from man
Checksums-Sha1: 
 60463341bbc57013f7c557da2cd423f16b247253 997 fai_3.2.12.dsc
 bbea90a038ca38dbf172cf6be5505952b7391249 264679 fai_3.2.12.tar.gz
 d93a6886fa7fc260e6f4227fe522624a633eb18d 145374 fai-client_3.2.12_all.deb
 d623eb9fd1b566141908511d04edb62c6e519b08 562746 fai-doc_3.2.12_all.deb
 70dcc0865a705dcd5d9214e6c3d138ebf21d5b1d 51626 fai-server_3.2.12_all.deb
 c32415e8a6ffc941cfd1896e19da9588ec9b0d5d 1900 fai-quickstart_3.2.12_all.deb
 6b3d7e194e95a5c719eb732d86335d42c59a4cdd 53036 fai-nfsroot_3.2.12_all.deb
Checksums-Sha256: 
 6d91a4cff8b68de422501c053d9bfdc61413119997d56b8db29cc00782e741ba 997 
fai_3.2.12.dsc
 0bddae453d97371527a4a259e8dd92169bc44f050b247a25ab82d77a7bbfe091 264679 
fai_3.2.12.tar.gz
 1f09d08faf1b137b5bf02ee2fb370b2cbf3b001febab6e6f719f42c8926a8043 145374 
fai-client_3.2.12_all.deb
 5d2a6ffa210eb56d26c902d158ed864f3ce510a3be19485ebbad824707bedc84 562746 
fai-doc_3.2.12_all.deb
 95488b2d163e6066d6b17619e5408498837b97c15dbc4ca2d90aad6fd755ce3a 51626 
fai-server_3.2.12_all.deb
 6c2700933f54fab21c22b36e4fc629e2d3641d29ac9126ffeb312896f879049b 1900 
fai-quickstart_3.2.12_all.deb
 1a6680d7fb5d5eb44b0dab363b7b3fe54b2384ee481ea338ba811b9dd4211d1e 53036 
fai-nfsroot_3.2.12_all.deb
Files: 
 8e1692655e00ad95412cd690d337ff7f 997 admin extra fai_3.2.12.dsc
 d1f4a939d762aa7eb9eea3cd6b3a85de 264679 admin extra fai_3.2.12.tar.gz
 fc36a331266b132e88e08dad0aa464f1 145374 admin extra fai-client_3.2.12_all.deb
 d02174d21aea9f3a9e0f96714dce5c34 562746 doc extra fai-doc_3.2.12_all.deb
 15221cd2b5816d6d545f4f720172165b 51626 admin extra fai-server_3.2.12_all.deb
 962808f686a32da52dedb60b777357e2 1900 admin extra fai-quickstart_3.2.12_all.deb
 1512c1e63447d4a2af70bcbc7ba33042 53036 admin extra fai-nfsroot_3.2.12_all.deb

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

iD8DBQFI9bfC3BPlTqubZv0RAjOJAJsGk+JWzXhN1q3SS83ghbos8FaVJgCfb0TX
lAOK+1iIsRo/ARatcCGe8Rw=
=8x57
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to