← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1157923] Re: localfs file-injection does not `mkdir -p`

 

*** This bug is a duplicate of bug 1272829 ***
    https://bugs.launchpad.net/bugs/1272829

** This bug has been marked a duplicate of bug 1272829
   intance boots failed because of injecting a file to a not exist path in image

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

Title:
  localfs file-injection does not `mkdir -p`

Status in OpenStack Compute (Nova):
  New

Bug description:
  
  The VFS documentation for file-injection states that:
    "Append @content to the end of the file identified
      by @path, creating the file if it does not already
      exist"

  https://github.com/openstack/nova/blob/master/nova/virt/disk/vfs/api.py#L85

  This wording is ambiguous as to whether non-existent parent
  directories will be created by file-injection.

  
  Say that one tries to inject a file to "/nonexistent/foo"

  - guestfs creates the directory "/nonexistent", and injects.
  - localfs fails with a "no such file" error.

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