← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1311463] Re: disk-setup unable to partition disks

 

This bug was fixed in the package cloud-init - 0.7.7~bzr1106-0ubuntu1

---------------
cloud-init (0.7.7~bzr1106-0ubuntu1) wily; urgency=medium

  * New upstream snapshot.
    * Azure: remove strict dependency on walinux-agent, but still utilize
      it for the time being.
    * fix read_seeded that is used in seeding user-data and meta-data
      from additional locations (LP: #1455233)
    * fix bug preventing partitioning of disks in many cases. (LP: #1311463)
    * Azure: do not override hostname if user has set it (LP: #1375252)
    * Fix GCE datasource not handling per-instance SSH keys (LP: #1403617)
    * Allow specifying of uid in user/group config.

 -- Scott Moser <smoser@xxxxxxxxxx>  Fri, 15 May 2015 17:04:19 -0400

** Changed in: cloud-init (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1311463

Title:
  disk-setup unable to partition disks

Status in Init scripts for use on cloud images:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Precise:
  Confirmed
Status in cloud-init source package in Trusty:
  Confirmed
Status in cloud-init source package in Utopic:
  Confirmed

Bug description:
  The problem is with is_disk_used in cc_disk_setup.py

  use_count is an array, which doesn't have a splitlines attribute.
  This is broken on ubuntu precise 12.04 with the latest updates.

  def is_disk_used(device):
      """
      Check if the device is currently used. Returns true if the device
      has either a file system or a partition entry
      is no filesystem found on the disk.
      """

      # If the child count is higher 1, then there are child nodes
      # such as partition or device mapper nodes
      use_count = [x for x in enumerate_disk(device)]
      if len(use_count.splitlines()) > 1:
          return True

      # If we see a file system, then its used
      _, check_fstype, _ = check_fs(device)
      if check_fstype:
          return True

      return False

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1311463/+subscriptions


References