[Bug 1401190] Re: curtin makes assumptions about partition names on all devices

Scott Moser smoser at ubuntu.com
Thu Jun 4 02:24:12 UTC 2015


** Also affects: curtin (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: curtin (Ubuntu)
       Status: New => Fix Released

** Changed in: curtin
       Status: New => Fix Committed

** Also affects: curtin (Ubuntu Vivid)
   Importance: Undecided
       Status: New

** Also affects: curtin (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: curtin (Ubuntu Trusty)
   Importance: Undecided => Medium

** Changed in: curtin (Ubuntu Trusty)
       Status: New => Confirmed

** Changed in: curtin (Ubuntu Vivid)
       Status: New => Confirmed

** Changed in: curtin (Ubuntu Vivid)
   Importance: Undecided => Medium

** Description changed:

  When I do a curtin install via maas to some fancy flash hardware, i get:
  
  no partition found /dev/nvme0n11
  Could not stat /dev/nvme0n11 --- No such file or directory
  
  The device apparently does not exist; did you specify it correctly?
  Unexpected error while running command.
  Command: ['mkfs.ext4', '-q', '-L', 'cloudimg-rootfs', '/dev/nvme0n11']
  Exit code: 1
  Reason: -
  Stdout: ''
  Stderr: ''
  Installation failed with exception: Unexpected error while running command.
  Command: ['curtin', 'block-meta', 'simple']
  Exit code: 3
  Reason: -
  Stdout: "no partition found /dev/nvme0n11\nCould not stat /dev/nvme0n11 --- No such file or directory\n\nThe device apparently does not exist; did you specify it correctly?\nUnexpected error while running command.\nCommand: ['mkfs.ext4', '-q', '-L', 'cloudimg-rootfs', '/dev/nvme0n11']\nExit code: 1\nReason: -\nStdout: ''\nStderr: ''\n"
  Stderr: ''
  
  smoser: what i think is happening is this
  a.) curtin chooses nvme0n1 as the device to install on
  b.) curtin partitions nvme0n1
  c.) curtin tries to mkfs on nvme0n11 (appending a '1' to the device name)
  when actually the name is 'nvme0n1p1' probably.  device names are stupidly inconsistently named.
  and curtin is admittedly very stupid in its assumptions too
  
  This patch fixes it (for me, for this device):
  
  http://paste.ubuntu.com/9355100/
+ 
+ Related bugs:
+   * bug 1263181 :  curtin discovers HP /dev/cciss/c0d0 incorrectly

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to curtin in Ubuntu.
https://bugs.launchpad.net/bugs/1401190

Title:
  curtin makes assumptions about partition names on all devices

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



More information about the Ubuntu-server-bugs mailing list