Ask Your Question
2

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

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

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
1

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

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

Here is the description of an older implementation: https://ask.openstack.org/en/question.... 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: https://git.openstack.org/cgit/openst.... Userdata seems to be right in the Instance table: https://git.openstack.org/cgit/openst....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 58 times

Last updated: Feb 15 '18