assigning IP address to a VM interface

Asked by Prashanth Prahalad

Hi Folks,

Probably a deep-dive question into quantum internals - I'm trying to understand how the IP address'es are assigned to VM network interfaces and trying to figure out which part of the openstack/quantum code base handles this. This is my understanding :

* During nova boot, nova provides the network-id to the quantum plugin and creates a new port (CreatePort API)
* Configured quantum plugin creates the ports and assigns the IP address/MAC address.
* This port information is then configured in the XML config files as required by the hypervisor, before the instance boots up.

Is this a correct ?

Thanks !

Question information

Language:
English Edit question
Status:
Answered
For:
neutron Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
yong sheng gong (gongysh) said :
#1

https://wiki.openstack.org/wiki/Quantum, click the 'Slides on Technical Architecture of Quantum'
slide 28: step 2 creates the quantum port and allocates the IP, step 5 creates the ovs port by vif driver in nova. step 9 gets the IP in VM.

'

Can you help with this problem?

Provide an answer of your own, or ask Prashanth Prahalad for more information if necessary.

To post a message you must log in.