Ask Your Question
0

juno could not associate floating-ip, No ports available [closed]

asked 2014-11-18 02:37:07 -0500

learma gravatar image

Hi, Today, I reinstalled openstack juno in a single node followed by Quickstart with existing network. I launched an instance successfully. But when I try to associate a floating-ip to this instance, it says no ports available! image description And I found that the interface of the external network of router 's status is "DOWN". I don't know does this matter. I try to associate floating-ip in command line. Here is the process:

[root@juno1 ~(keystone_demo)]# neutron floatingip-list 
+--------------------------------------+------------------+---------------------+---------+
| id                                   | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+---------+
| 6c900b76-52bd-49fc-88ca-009dccfaeeac |                  | 10.200.45.231       |         |
| 9193a65b-5bd7-490d-9813-e6e613b0973e |                  | 10.200.45.225       |         |
| e0350ad6-3400-4a1b-8f0f-03f2bb8e3e5a |                  | 10.200.45.230       |         |
+--------------------------------------+------------------+---------------------+---------+
[root@juno1 ~(keystone_demo)]# neutron port-list
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                              |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+
| 2ced10e9-c49b-40fe-8f9b-85103c9c395c |      | fa:16:3e:94:e8:e0 | {"subnet_id": "6c379b2e-2ced-4117-a82d-159c761f1b53", "ip_address": "192.168.100.228"} |
| 87a8974c-70a0-4b68-bc8d-8851cc533553 |      | fa:16:3e:0e:cf:46 | {"subnet_id": "6c379b2e-2ced-4117-a82d-159c761f1b53", "ip_address": "192.168.100.227"} |
| f665b2b1-8920-43a2-be13-f49b7969de6d |      | fa:16:3e:73:f8:ba | {"subnet_id": "6c379b2e-2ced-4117-a82d-159c761f1b53", "ip_address": "192.168.100.229"} |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+
[root@juno1 ~(keystone_demo)]# neutron floatingip-associate --fixed-ip-address 192.168.100.228 e0350ad6-3400-4a1b-8f0f-03f2bb8e3e5a  2ced10e9-c49b-40fe-8f9b-85103c9c395c
Associated floating IP e0350ad6-3400-4a1b-8f0f-03f2bb8e3e5a

This make the fixed ip and floating ip mapped. However, I can not ping to the actual floating ip. That results in the host is unreachable. I don't know what's wrong with my installation. Bellow is the steps I do to create the public and private network. (my ip is 10.200.45.135, gateway is 10.200.45.254)

neutron router-gateway-clear router1
neutron subnet-delete public_subnet
neutron net-delete public
neutron router-interface-delete router1 private_subnet
neutron subnet-delete private_subnet
neutron net-delete private
neutron router-delete router1

neutron router-create router1
neutron net-create private
neutron subnet-create --name private_subnet private 192.168.100.0/24 --allocation-pool start=192.168.100.224,end=192.168.100.254
neutron router-interface-add router1 private_subnet

neutron net-create public --router:external=True
neutron subnet-create public 10.200.45.135/24 --name public_subnet --enable_dhcp=False --allocation-pool start=10.200.45.224,end=10.200.45.244 --gateway=10.200.45.254
neutron router-gateway-set router1 public

Is there something wrong under my network creation?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by learma
close date 2014-11-18 03:21:50.188647

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-18 03:21:19 -0500

learma gravatar image

Sorry, I have solved this problem.I should recreate the private net in the demo user. But a new problem happens, I can not connected to the floating ips. When i ping it, shows host unreachable.

edit flag offensive delete link more

Comments

check if your security groups are allowing icmp and ssh traffic. I have troubleshooted and reinstalled openstack multiple times without checking this.

lp gravatar imagelp ( 2015-07-12 08:08:04 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-11-18 02:37:07 -0500

Seen: 3,125 times

Last updated: Nov 18 '14