setup-storage fails

Bug #941959 reported by Hiro Protagonist on 2012-02-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fai (Ubuntu)
Undecided
Unassigned

Bug Description

1) The release of Ubuntu:
  Description: Ubuntu precise (development branch)
  Release: 12.04
  Codename: precise
2) The version of the package:
  fai 3.4.8ubuntu1
3) What you expected to happen:
  fai should format my disk according to the configuration i supply.
4) What happened instead:
  setup-storage crashes with the error message:

Starting setup-storage 1.3
Using config file: /var/lib/fai/config/disk_config/Z800_DISK
Can't exec "mdadm-startall": No such file or directory at /usr/sbin/setup-storage line 138, <$config_file> line 1.
    Creating directory "/var/lock/lvm"
    Finding all volume groups
  No volume groups found
Executing: mdadm --examine --scan --verbose -c partitions
Use of uninitialized value in modulus (%) at /usr/share/fai/setup-storage//Sizes.pm line 599.
Use of uninitialized value $block_size in modulus (%) at /usr/share/fai/setup-storage//Sizes.pm line 599.
Illegal modulus zero at /usr/share/fai/setup-storage//Sizes.pm line 599.

this is the config file i used for the disk (nothing fancy):

disk_config sda disklabel:msdos bootable:1 fstabkey:uuid

primary /boot 256M ext2 rw,defaults,errors=remount-ro createopts="-L boot"
primary swap 16G swap rw
primary /tmp 32G ext2 rw,defaults,errors=remount-ro createopts="-L tmp"
logical / 150G ext4 rw,defaults,errors=remount-ro,barrier=0 createopts="-L root"
logical /home 0- ext4 rw,defaults,barrier=0 createopts="-L home"

Related branches

Hiro Protagonist (surfer) wrote :

changed package from fai to fai-setup-storage which is more accurate.

Hiro Protagonist (surfer) wrote :

update:

i looked into the bug, traced it down through perl and bash scripts. here's the bottom line:

the script /usr/lib/fai/disk-info is used to set the environment variable $disklist (it is called in a bash routine called 'set_disk_info' that can be seen in the environment of the shell). without this environment variable, everything related to paritioning will fail.

/usr/lib/fai/disk-info treats everyting in /dev/ as disk (except for cdrom, mounted usb drive) that belongs to the group "disk". as i use the grml kernel (3.1.0-grml64) my disks are not recognized because they belong to root:root and not to root:disk as on a regular ubuntu.

should this be directly reported on the fai list? and where whould that be?

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fai - 3.4.8ubuntu2

---------------
fai (3.4.8ubuntu2) precise; urgency=low

  * In the case FAI is started in an Upstart environment, check if an
    upstart job udevtrigger exists. If it does, we really need to start
    this job so that "missed" kernel events are replayed. Otherwise may
    miss block events. This results in block devices having "wrong" owners
    and confuses the FAI "disk-info" utility, which in turn breaks the
    disk detection completely. LP: #941959
 -- Reinhard Tartler <email address hidden> Tue, 20 Mar 2012 10:46:12 +0100

Changed in fai (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers