← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1092560] Re: VFAT config drive

 

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

** Changed in: nova
    Milestone: None => grizzly-3

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

Title:
  VFAT config drive

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Trying to spawn an instace with config drive formatted as a VFAT disk
  fails with error "/bin/chown: changing ownership of
  `/tmp/cd_mnt_XXXXXX': Operation not permitted\n". A snippet of nova-
  compute.log: http://paste.openstack.org/show/28444/

  The error happens in the /usr/lib/python2.7/dist-
  packages/nova/virt/configdrive.py file, method _make_vfat, line 116.
  The issue is caused by the attempt to chown a mounted vfat partition.
  As far as I have tested, this cannot be done even by root, even though
  it can be done with other filesystems such as ext3.

  To fix the issue all that it takes is to remove the problematic chown
  call altogether and to include two additional options to the mount
  command: uid=<nova_uid>,gid=<nova_gid>. My own fix:

              _out, err = utils.trycmd('mount', '-o', 'loop,uid=%s,gid=%s' % (os.getuid(), os.getgid()), path, mountdir,
                                       run_as_root=True)

  I'm using Ubuntu 12.04 with Folsom and python-nova package version
  2012.2+git201210091907~precise-0ubuntu1.

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