Re: Error: at /usr/share/fai/setup-storage//Parser.pm line 382

2013-09-04 Thread Karl Koch

Am 03.09.2013 14:46, schrieb Thomas Neumann:

Which locale are you using? 42,75TiB looks very much like a german locale
has crept in there somewhere. The setup-storage parser complains it can not
parse the value. (The parser expects '42.75TiB'.)

possible QuickFix: add 'LC_ALL=C' to class/LAST.var (in your config space)

This overwrite all locale specific variables to use the english locale. FAI
automatically adds the class LAST to all clients, defining the variable
there makes sure it is not overwritten by some other class.


Strictly speaking this is a bug (or at least a serious coding flaw) in
setup-storage. One should never parse command output without setting the
desired locale beforehand.

Good Morning, is the same Problem with 'C':

# setup-storage  store.txt
setup-storage is running in test-only mode
Starting setup-storage 1.4
Finding all volume groups
Finding volume group vg_01
Finding all volume groups
Finding volume group vg_01
Finding all volume groups
Finding volume group vg_01
Finding all volume groups
Finding volume group vg_01
Use of uninitialized value in string eq at 
/usr/share/fai/setup-storage//Commands.pm line 1142.
Cannot satisfy pre-depends for true: 
cleared2_/dev/sdb,exist_/dev/sdb1,flag_lvm_/dev/sdb1 -- system left 
untouched.


# locale -a
C
C.UTF-8
POSIX

/# locale
LANG=
LANGUAGE=
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=C
LC_IDENTIFICATION=C
LC_ALL=C


Now exists on the server a Volume Group.

A log file is appended in


disklist: sda
sdb
Using config file: /var/lib/fai/config/disk_config/ori-fra4
Input was:

## disk_config disk1
disk_config /dev/sda disklabel:msdos
primary /   16GiB  ext4 rw
primary swap24GiB  swap defaults
logical /var/log50GiB- ext4 rw


## disk_config disk2
disk_config sdb disklabel:gpt
primary -   4096-   -   -

disk_config lvm
vg vg_01sdb1
vg_01-lv_01 /web  1GiB-xfsrw
(CMD) parted -s /dev/sda unit TiB print 1 /tmp/0MMJ46TdOt 2 /tmp/ig5grBuJds
Executing: parted -s /dev/sda unit TiB print
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sda: 0.27TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  StartEnd  Size Type  File system Flags
(STDOUT)  1  0.00TiB  0.02TiB  0.02TiB  primary   ext4
(STDOUT)  2  0.02TiB  0.04TiB  0.02TiB  primary   linux-swap(v1)
(STDOUT)  3  0.04TiB  0.27TiB  0.23TiB  extended  lba
(STDOUT)  5  0.04TiB  0.27TiB  0.23TiB  logical   ext4
(STDOUT) 
(CMD) parted -s /dev/sda unit B print free 1 /tmp/5I89S4A2FO 2 /tmp/LhcOJJOnl_
Executing: parted -s /dev/sda unit B print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sda: 299966445568B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start EndSize   Type  File 
system Flags
(STDOUT) 32256B1048575B   1016320B Free 
Space
(STDOUT)  1  1048576B  17180917759B   17179869184B   primary   ext4
(STDOUT)  2  17180917760B  42950721535B   25769803776B   primary   
linux-swap(v1)
(STDOUT)  3  42950721536B  299966445567B  257015724032B  extended   
   lba
(STDOUT)  5  42950722560B  299966445567B  257015723008B  logical   ext4
(STDOUT) 
(CMD) parted -s /dev/sda unit chs print free 1 /tmp/5I_1TIzOP4 2 
/tmp/YVX1kEgDgH
Executing: parted -s /dev/sda unit chs print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sda: 36468,214,61
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 36468,255,63.  Each cylinder is 
8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  StartEnd   Type  File system Flags
(STDOUT) 0,1,00,32,31 Free Space
(STDOUT)  1  0,32,32  2088,202,33   primary   ext4
(STDOUT)  2  2088,202,34  5221,202,36   primary   linux-swap(v1)
(STDOUT)  3  5221,202,37  36468,214,61  extended  lba
(STDOUT)  5  5221,202,39  36468,214,61  logical   ext4
(STDOUT) 
(CMD) parted -s /dev/sdb unit TiB print 1 /tmp/AiR4rO5VjZ 2 /tmp/_FPwax5ugK
Executing: parted -s /dev/sdb unit TiB print
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sdb: 42.8TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: gpt
(STDOUT) 
(STDOUT) Number  StartEnd  Size File system  Name Flags
(STDOUT)  1  0.00TiB  42.8TiB  42.8TiB   primary  lvm
(STDOUT) 
(CMD) parted -s /dev/sdb unit B print free 1 /tmp/5UYTA9b9o1 2 /tmp/Y0_2daIp8a
Executing: parted -s /dev/sdb unit B print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sdb: 47008018292736B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) 

Re: Error: at /usr/share/fai/setup-storage//Parser.pm line 382

2013-09-04 Thread Thomas Lange
 On Wed, 04 Sep 2013 09:29:16 +0200, Karl Koch cypher_h...@gmx.net said:

 Good Morning, is the same Problem with 'C':
No, it not the same problem.

 (CMD) parted -s /dev/sda unit TiB print 1 /tmp/0MMJ46TdOt 2 
/tmp/ig5grBuJds
 Executing: parted -s /dev/sda unit TiB print
 (STDOUT) Model: HP LOGICAL VOLUME (scsi)
 (STDOUT) Disk /dev/sda: 0.27TiB
 (STDOUT) Sector size (logical/physical): 512B/512B
 (STDOUT) Partition Table: msdos
 (STDOUT) 
 (STDOUT) Number  StartEnd  Size Type  File system 
Flags
 (STDOUT)  1  0.00TiB  0.02TiB  0.02TiB  primary   ext4
 (STDOUT)  2  0.02TiB  0.04TiB  0.02TiB  primary   linux-swap(v1)
 (STDOUT)  3  0.04TiB  0.27TiB  0.23TiB  extended  lba
 (STDOUT)  5  0.04TiB  0.27TiB  0.23TiB  logical   ext4
Fine, the comma disappeared and now you have the dot in the output.

There's another problem with setup-storage, but the error message
 FAI::convert_unit('42,75TiB') called at  is now gone.
-- 
regards Thomas


Re: Error: at /usr/share/fai/setup-storage//Parser.pm line 382

2013-09-03 Thread Thomas Neumann
Hello

 convert_unit 42,75TiB
 Please report this error to the Debian Bug Tracking System.
   at /usr/share/fai/setup-storage//Parser.pm line 382

Which locale are you using? 42,75TiB looks very much like a german locale 
has crept in there somewhere. The setup-storage parser complains it can not 
parse the value. (The parser expects '42.75TiB'.)

possible QuickFix: add 'LC_ALL=C' to class/LAST.var (in your config space)

This overwrite all locale specific variables to use the english locale. FAI 
automatically adds the class LAST to all clients, defining the variable 
there makes sure it is not overwritten by some other class.


Strictly speaking this is a bug (or at least a serious coding flaw) in 
setup-storage. One should never parse command output without setting the 
desired locale beforehand.


bye
thomas