Home > openstack > Code Flow with nova-api for ‘nova delete’ command in Openstack nova

Code Flow with nova-api for ‘nova delete’ command in Openstack nova

Today, I was investigating the codeflow with openstack nova for the command ‘nova delete ‘ which i like to note down. For the sake of brevity, I would only mention files that seems interesting to me. I am deliberately, skipping files associated with WSGI Routing which are more or less same for most of the nova api commands.

File:methods().

1. nova/nova/api/openstack/compute/servers.py: first calls delete(), then _delete()
2. nova/nova/compute/api.py: calls _delete(),
3. nova/nova/db/api.py: calls instance_destroy() which eventually calls
4. nova/nova/db/sqlalchemy/api.py: instance_destroy().

I think, @4, it updates the database. you can even trace more and i kinda satisfied here.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: