Ask Your Question
1

how to allocate ext IP to an instance

asked 2015-01-27 20:58:26 -0500

Glen.GZ gravatar image

i am following juno doc setup serveral instances which were obtained an intranet ip by dhcp for each. but i 'd like to allocate ext ip to each instance, the problem is i can't do it via Horizon, always says "no ports avaiable", but i can do it via cli in controller by typing "nova floating-ip-associate".

image description image description

is there something i can do?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-27 23:29:46 -0500

Vasanth gravatar image

If yor are running, Neutron, try this command in CLI To create a Floating IP : neutron floating-ip-create <ext-network id="">

Associate to a VM instance: neutron floating-ip-associate <ext-ip-id> <neutron vm="" port="" id="">

edit flag offensive delete link more

Comments

yes this is what i am asking for. i can associate ext ip to instance via this command line, but not via horizon. my question is how can i associate ext-ip(2nd ip add) to instance

Glen.GZ gravatar imageGlen.GZ ( 2015-01-28 02:47:10 -0500 )edit

You can do it via command line.. after adding a Floating IP from the external network range, it will be listed in "neutron floating-ip-list". u need to use the UUID of 2nd IP address in <ext-ip-id> of neutron floating-ip-associate CLI command .

Vasanth gravatar imageVasanth ( 2015-01-28 03:45:14 -0500 )edit
1

answered 2015-01-27 22:38:19 -0500

No ports means that there are no VMs attached to any network for the tenant you are logged in to via horizon.

Are you sure you have instances running as the tenant you are logged in as ?

edit flag offensive delete link more

Comments

I have a similar issue. I have a default network 'default-net' with my default project 'admin'. Everything is fine. Then I create a new project 'production' an create instance with network 'default-net', then I can't find ports. So do you mean I have to create a network for 'production' project

tan-lin-good gravatar imagetan-lin-good ( 2015-01-27 23:37:23 -0500 )edit

when i created this instance, i tried to associate both ext-net and demo-net to it, but it will reponse "fil to lauch instance, error no vaild host was found." that is weird. but it launched smoothly when i only asigne one net to this instance. i have no idea why one instance can't be with 2 subnet

Glen.GZ gravatar imageGlen.GZ ( 2015-01-28 03:25:30 -0500 )edit

jsut created another subnet, and funny thing is that ext ip can be associated to this new subnet.

Glen.GZ gravatar imageGlen.GZ ( 2015-01-28 04:07:46 -0500 )edit

When you create networks as admin then those networks belong to admin only!!!!! Unless you create a "shared" network the networks are tenant only networks!

sfcloudman gravatar imagesfcloudman ( 2015-01-28 11:58:31 -0500 )edit

I share the 'default-net' with 'production' project, but it still doesn't work. But I see neutron support a new role 'advsvc' in policy, that's something I want I guess.

tan-lin-good gravatar imagetan-lin-good ( 2015-01-29 01:25:22 -0500 )edit

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

3 followers

Stats

Asked: 2015-01-27 20:58:26 -0500

Seen: 1,085 times

Last updated: Jan 27 '15