[Openstack] Auto assign Floating IP

郭龙仓 guolongcang.work at gmail.com
Tue Dec 10 11:55:45 UTC 2013


well ,  part of the vm's boot process looks like this , maybe this can help
you find some clue:

   1. nova boot will get into compute driver, which will call quantum api
   to create port
   2. quantum-server creates the port object and allocates it with ip
   address from subnets
   3. quantum-server notifies quantum-dhcp agent with the created port
   object
   4. quantum-dhcp agent configs the dhcp server with the port object, such
   as IP, Mac, gateway and routes
   5. compute-driver gets the network information, and then create port on
   br-int ovswitch, and then starts the VM with a tap device attached on the
   ovs port.
   6. ovs-quantum-agent detects and gets to know there is a new ovs port
   created
   7. ova-quantum-agent asks information from quantum-server
   8. ova-quantum-agent set up the port, such as the flows and vlan id of
   the ovs port. After this step, the VM's network is connected.
   9. VM gets the IP address with the dhcp client.



2013/12/10 Jitendra Kumar Bhaskar <jitendra.b at pramati.com>

> I am doing d same but I am looking to attach floating IP at boot time. And
> not getting where I need to change ?
>
> Regards
> * Jitendra Bhaskar*
>
>
>
>
>
>
> On Tue, Dec 10, 2013 at 12:45 PM, 郭龙仓 <guolongcang.work at gmail.com> wrote:
>
>> floating ip is implemented through NAT , so , once your instance was
>> assigned an internal ip successfully , then you can assign floating ip to
>> it . but , in order to assign floating IP to instance at boot time,
>> maybe you need to modify some code.
>>
>>
>> 2013/12/9 Jitendra Kumar Bhaskar <jitendra.b at pramati.com>
>>
>>> Hi Stackers
>>>
>>> Is it possible to assign floating IP to instance at boot time in Hanana ?
>>>
>>> Regards
>>> * Jitendra Bhaskar*
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list:
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>> Post to     : openstack at lists.openstack.org
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131210/42c9e7de/attachment.html>


More information about the Openstack mailing list