← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1263294] Re: ephemeral0 of /dev/sda1 triggers 'did not find entry for sda1 in /sys/block'

 

Reviewed:  https://review.openstack.org/63584
Committed: https://git.openstack.org/cgit/openstack/tripleo-image-elements/commit/?id=7d0f9758772c00267581b87018f6081ac806e690
Submitter: Jenkins
Branch:    master

commit 7d0f9758772c00267581b87018f6081ac806e690
Author: Clint Byrum <clint@xxxxxxxxxx>
Date:   Sat Dec 21 08:09:46 2013 -0800

    Work around broken cloud-init ephemeral disk code
    
    Cloud-init cannot handle ephemeral disks like '/dev/sda1'. This prevents
    the nova baremetal default from working properly. So if the ephemeral
    disk isn't already mounted, we mount it just before we need it.
    
    Change-Id: Ide0e5ed3eff91755aac7d8f1e9c43f723f7bf3d5
    Closes-Bug: #1263294


** Changed in: tripleo
       Status: In Progress => 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/1263294

Title:
  ephemeral0 of /dev/sda1 triggers 'did not find entry for sda1 in
  /sys/block'

Status in Init scripts for use on cloud images:
  New
Status in tripleo - openstack on openstack:
  Fix Released

Bug description:
  This is due to line 227 of ./cloudinit/config/cc_mounts.py::

      short_name = os.path.basename(device)
      sys_path = "/sys/block/%s" % short_name

      if not os.path.exists(sys_path):
          LOG.debug("did not find entry for %s in /sys/block", short_name)
          return None

  The sys path for /dev/sda1 is /sys/block/sda/sda1.

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


References