← Back to team overview

openstack team mailing list archive

Re: Metadata and File Injection

 

On Wed, Dec 14, 2011 at 9:04 AM, McNally, Dave <dave.mcnally@xxxxxx> wrote:
> Hi,
>
> I've recently been looking at file and metadata injection in Nova and I have
> a question relating to it.
>
> (BTW this is based off what I have seen in nova/virt/disk.py)
>
> I notice that for key/value pairs specified as metadata during boot of an
> instance these values are injected into a file /meta.js in the instance.
> However if a file (and corresponding injection location) are specified when
> booting the instance the file does not get injected.

Not on libvirt/KVM. It works on Xen, though:

https://bugs.launchpad.net/nova/+bug/755168

> I was wondering if there was an intentional decision not to use a similar
> method to that used when injecting meta.js to inject other files? Because it
> seems to me the addition of such functionality would be fairly
> straightforward.

I'm interested in the answer to this question as well...

> Also on a vaguely related note why is the metadata injected into a file
> rather than stored in a location where it can be retrieved from the metadata
> service?

No idea. :(

Cheers,
-jay


Follow ups

References