Ask Your Question

Whare are the user-script files saved in the metadata server?

asked 2018-02-15 15:27:14 -0600

Peter Tselios gravatar image

For some reason, the metadata server looks like a mystery. I understand how it works, where it's saved etc.

But, I want to know more about it. So, let's suppose that I create bash script that install some packages, add some cronjobs etc for an instance.

Where is this script stored?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2018-02-15 19:14:38 -0600

updated 2018-02-15 19:25:26 -0600

Here is the description of an older implementation: This must be at the Grizzly timeframe.

I am fairly certain that metadata (and user data scripts are just a form of metadata) is still stored somewhere in the Nova darabase, probably the DB specific to the instance’s cell. nova-api provides access to the metadata, and the metadata server is the middle-man between the instance and nova-api.

I don’t have a cloud that I could check right now, but it looks like the code for creating the netadata table is here: Userdata seems to be right in the Instance table:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2018-02-15 15:27:14 -0600

Seen: 152 times

Last updated: Feb 15 '18