[Openstack] Injecting user data into instances

Mark Washenberger mark.washenberger at rackspace.com
Thu Jun 9 03:27:33 UTC 2011


I don't know much about Cloudpipe and VPN, so I hope I don't hijack the thread. However, regarding inject_file

> Another interesting situation is with inject_file compute APIs  …
> 
> 
> on API level there is no even file/contents fields, only
> def inject_file(self, context, instance_id):
> 
> but they exist on compute.manager level:
> def inject_file(self, context, instance_id, path, file_contents):

I believe that the nova.compute.api inject_file function is there erroneously. From my brief look, it does not appear to be called anywhere and it does not appear that it would work correctly. With the current feature set it seems like the only time that you can inject a file is during other api actions similar to instance creation.

I take it this is a feature you would like to be able to use when the instance has been running for some time?

Thanks





More information about the Openstack mailing list