Inject user data via API

Asked by Thomas Monninger

Hi,

I use the current trunk of open stack nova. Until now I started VMs using ec2tools:
euca-run-instances --kernel aki-00000001 --ramdisk ari-00000002 -t m1.tiny -f /home/myname/cloud.txt ami-00000003

As you see I injected user data with the -f option and a file that is read and parsed by the guest using "cloud-init".
Now I want to start instances using the API and a REST interface. I managed to start instances.
But how do I inject user data? I know how to inject meta-data and a file(personality) but I can't find any option to inject user data, that's sent to "cloud-init".

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Brian Waldon
Solved:
Last query:
Last reply:
Revision history for this message
Best Brian Waldon (bcwaldon) said :
#1

I'm not quite sure what you mean by 'user data', I'm not very familiar with the EC2 API. Ido have quite a bit of experience with the OS API., and I think it really only supports file injection and user metadata.

Revision history for this message
Thomas Monninger (bomisoft) said :
#2

Thanks Brian Waldon, that solved my question.