nova add-floating-ip not working

Bug #942620 reported by Darragh O'Reilly
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Unassigned

Bug Description

u1@u1110srv:~/devstack$ cat localrc
LOGFILE=stacklog
MYSQL_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_TOKEN=nova
ADMIN_PASSWORD=nova
SWIFT_HASH=nova
ENABLED_SERVICES="g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,horizon,mysql,rabbit,openstackx,n-vol,q-svc,q-agt,swift,quantum"
Q_PLUGIN=openvswitch

After running stack.sh have:

u1@u1110srv:~/devstack$ nova-manage network list
id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid
1 10.0.0.0/24 None 10.0.0.2 8.8.4.4 None None None 20cda3a7-f4a8-4b3c-b399-4dd624cb7a40

u1@u1110srv:~/devstack$ TENANT=
u1@u1110srv:~/devstack$ USERNAME=
u1@u1110srv:~/devstack$ . openrc

u1@u1110srv:~/devstack$ nova boot --flavor 6 --image 21b0573e-8dd6-4b42-9c01-4c8684b0b080 guest1

u1@u1110srv:~/devstack$ nova-manage floating create --ip_range=172.241.1.0/24 --interface=eth2

u1@u1110srv:~/devstack$ nova-manage floating list 2>/dev/null | head -3
None 172.241.1.1 None nova eth2
None 172.241.1.2 None nova eth2
None 172.241.1.3 None nova eth2

u1@u1110srv:~/devstack$ nova floating-ip-create
+-------------+-------------+----------+------+
| Ip | Instance Id | Fixed Ip | Pool |
+-------------+-------------+----------+------+
| 172.241.1.1 | None | None | nova |
+-------------+-------------+----------+------+

u1@u1110srv:~/devstack$ nova add-floating-ip guest1 172.241.1.1
u1@u1110srv:~/devstack$ echo $?
0
u1@u1110srv:~/devstack$ nova floating-ip-list
+-------------+-------------+----------+------+
| Ip | Instance Id | Fixed Ip | Pool |
+-------------+-------------+----------+------+
| 172.241.1.1 | None | None | nova |
+-------------+-------------+----------+------+

No errors or exceptions on screens. Last line has

2012-02-27 15:41:13 DEBUG nova.rpc.common [-] Making asynchronous cast on network.None... from (pid=4515) cast /opt/stack/nova/nova/rpc/amqp.py:344

=================================================================================================

From: Brad Hall <brad@xxxxxxxxxx>

I was able to get it working by setting the network host to my hostname:

Revision history for this message
Darragh O'Reilly (darragh-oreilly) wrote :
Gary Kotton (garyk)
Changed in quantum:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-2 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.