← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1166112] Re: baremetal-deploy-helper fails to create partitions

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1166112

Title:
  baremetal-deploy-helper fails to create partitions

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  sfdisk says 'bad input'. The input is, for example, "1 10240 83;\n-
  1024 82;\n0 0;\n0 0;\n". If "--force" option is passed to sfdisk, it
  results in:

     Device Boot Start   End    MiB    #blocks   Id  System
  /dev/sdb1         0+ 10244- 10245-  10490444+  83  Linux
  /dev/sdb2     10236+ 11264-  1028-   1052257+  82  Linux swap / Solaris
  /dev/sdb3         0      -      0          0    0  Empty
  /dev/sdb4         0      -      0          0    0  Empty

  The start of the second partition is set in the first partition. It seems
  sfdisk's bug (I tried this in Ubuntu x86_64 12.04 and 12.10).

  
  The following is the log:

  2013-04-08 18:37:59    ERROR [nova.virt.baremetal.deploy_helper] Cmd     : sudo nova-rootwrap /etc/nova/rootwrap.conf sfdisk -uM /dev/disk/by-path/ip-192.168.175.13:3260-iscsi-iqn-aa5d940b-dbdd-43b4-b8e7-812dafeb6882-lun-1
  2013-04-08 18:37:59    ERROR [nova.virt.baremetal.deploy_helper] StdOut  :
  Disk /dev/disk/by-path/ip-192.168.175.13:3260-iscsi-iqn-aa5d940b-dbdd-43b4-b8e7-812dafeb6882-lun-1: 36481 cylinders, 255 heads, 63 sectors/track
  Old situation:
  Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

     Device Boot Start   End    MiB    #blocks   Id  System
  /dev/disk/by-path/ip-192.168.175.13:3260-iscsi-iqn-aa5d940b-dbdd-43b4-b8e7-812dafeb6882-lun-1-part1         0      -      0          0    0  Empty
  /dev/disk/by-path/ip-192.168.175.13:3260-iscsi-iqn-aa5d940b-dbdd-43b4-b8e7-812dafeb6882-lun-1-part2         0      -      0          0    0  Empty
  /dev/disk/by-path/ip-192.168.175.13:3260-iscsi-iqn-aa5d940b-dbdd-43b4-b8e7-812dafeb6882-lun-1-part3         0      -      0          0    0  Empty
  /dev/disk/by-path/ip-192.168.175.13:3260-iscsi-iqn-aa5d940b-dbdd-43b4-b8e7-812dafeb6882-lun-1-part4         0      -      0          0    0  Empty

  2013-04-08 18:37:59    ERROR [nova.virt.baremetal.deploy_helper] StdErr  : Checking that no-one is using this disk right now ...
  OK
  Warning: bad partition start (earliest 10245)

  sfdisk: bad input

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1166112/+subscriptions