← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1088652] Re: bare metal deploy uses non-scripting mode fdisk, breaks on quantal

 

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

-- 
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/1088652

Title:
  bare metal deploy uses non-scripting mode fdisk, breaks on quantal

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  On quantal, fdisk has changed its UI (which it is allowed to as its
  not a scripting tool).

  So we see:
  nova-deploy-helper generates: sudo fdisk /dev/disk/by-path/ip-192.168.2.52:3260-iscsi-iqn-a44d23cd-a890-400f-ac84-bbf693acca8e-lun-1

  Command (m for help): n Partition type: p primary (0 primary, 0
  extended, 4 free) e extended Select (default p): p Partition number
  (1-4, default 1): 1 First sector (2048-4194303, default 2048): Using
  default value 2048 Last sector, +sectors or +size{K,M,G}
  (2048-4194303, default 4194303): +1024M

  Command (m for help): t Selected partition 1 Hex code (type L to list
  codes): 1 Changed system type of partition 1 to 1 (FAT12)

  ^ generated from the keystrokes 'n,p,1,,+1024M,t,1,82,w' the 1 is
  meant to be partition selection, but newer fdisk doesn't ask when
  there is only one partition available!

  A better tool to use is /sbin/sfdisk which has a scripting interface - for instance,
  sudo sfdisk $IMAGE_BLOCK_DEVICE << EOF
  1 - - *
  0 0;
  0 0;
  0 0;
  EOF

  Will make a new partition table, allocate everything to the first
  partition.

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