Ask Your Question
0

python apis to allocate/associate/release/disassociate

asked 2015-01-29 07:29:13 -0600

shankar gravatar image

Hi ,

i have created two tenants and each tenant i have launched one instances . now i have to assign the floating IP say for instance of tenant1 and later i want to disassociate with that tenant1 and release it . same floating ip i have to assign to the tenant2 instance .

i am doing this through the dashboard , but i cont assign the same floating ip using dash board .

so i want to use the python apis such a way that

first i will allocate floating ip , then i will associate that ip to vm tenant1 and iwill disassociate it from tenant1 port and release it from tenant1 . then i have to assign the same floating ip to tenant2 of vm .

could anybody guide me for the python apis for the above things to be done.

Thanks in advance

Shankar

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2015-01-30 02:44:19 -0600

shankar gravatar image

The problem with the DASH board is , for example for tenant1 VM i have created and associate the floating IP say(10.0.0.3) then i dissociateed with the port and released from the tenant1

my concern here is i want have the same floating ip address to be assigned to the tenant2 vm which is not possible from dash board why because

so from the dashboard for the tenant2 if i click on assosicate floatingip its giving some other IP from the free pool .

thats the reason i want to use the nova apis to this .

Thanks Shankar

edit flag offensive delete link more
0

answered 2015-01-30 01:35:44 -0600

Ranjit gravatar image
  1. what are the problems/error using dashboard. if you can't do from dashboard then there will be some network topology problem and in that case you can not do with python api's too.

  2. PYTHON API: http://developer.openstack.org/api-re...

/v2.0/floatingips --> create and associate

/v2.0/floatingips/​{floatingip_id}​ --> dissociate and associate again

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

1 follower

Stats

Asked: 2015-01-29 07:29:13 -0600

Seen: 423 times

Last updated: Jan 30 '15