How quantum server know which host the VM Is deployed

Asked by alan lv

Hi, guys

I have a question about Quantum (I using Quantum Grizzly with OVS plugin), when deploying a vm , the nova_compute may send a 'port_update' msg to quantum server, then quantum_server will forward the msg to the quantum agent, but how quantum_server knows to which quantum_agent should send (how quantum_server knows the relationship between the nova_compute node and OVS agent), by hostname ? thanks

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
lee jian
Solved:
Last query:
Last reply:
Revision history for this message
Best lee jian (leejian0612) said :
#1

in my comprehension,quantum_server will fanout the 'port_update' message, and every agent can receive the 'port_update' message,then according port's id included in the message to determine whether the port is local or not,if local,update the port,or do nothing.
you may look up the port_update function in ovs_quantum_agent.py for details.

Revision history for this message
alan lv (lvec-lv) said :
#2

thanks you for your replying

I have read the code before, but I'm not sure that is whether is exact right ^&^

Revision history for this message
Aaron Rosen (arosen) said :
#3

Lee jian is correct. That is how it works.

Revision history for this message
alan lv (lvec-lv) said :
#4

thanks Lee jian and Aaron Rosen !

Revision history for this message
alan lv (lvec-lv) said :
#5

Thanks lee jian, that solved my question.