← Back to team overview

openstack team mailing list archive

Re: Injecting user data into instances

 

Hm, inject_file is supposed to be tied into instance creation in the API.  If it's not, we have some code missing from API.  Ed Leafe did this work IIRC, as we use this here at Rackspace.  Wonder if some code got dropped at some point or if it was just never completely finished.

- Chris


On Jun 8, 2011, at 8:27 PM, Mark Washenberger wrote:

> 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
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References