I was able to get it working by setting the network host to my hostname: bhall@devstack-standard:~/devstack$ nova floating-ip-create +--------------+-------------+----------+------+ | Ip | Instance Id | Fixed Ip | Pool | +--------------+-------------+----------+------+ | 172.24.4.226 | None | None | nova | +--------------+-------------+----------+------+ bhall@devstack-standard:~/devstack$ nova add-floating-ip 80a3b511-fd86-4f96-958a-1e52abce6bec 172.24.4.226 bhall@devstack-standard:~/devstack$ nova floating-ip-list +--------------+--------------------------------------+----------+------+ | Ip | Instance Id | Fixed Ip | Pool | +--------------+--------------------------------------+----------+------+ | 172.24.4.225 | be0ff6c0-7199-42c5-8d20-d83dab3b25f0 | 10.0.0.2 | nova | | 172.24.4.226 | None | None | nova | +--------------+--------------------------------------+----------+------+ bhall@devstack-standard:~/devstack$ mysql -u root -p nova Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 103 Server version: 5.1.58-1ubuntu1 (Ubuntu) Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> update networks set host='devstack-standard'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> Bye bhall@devstack-standard:~/devstack$ nova add-floating-ip 80a3b511-fd86-4f96-958a-1e52abce6bec 172.24.4.226 bhall@devstack-standard:~/devstack$ nova floating-ip-list +--------------+--------------------------------------+----------+------+ | Ip | Instance Id | Fixed Ip | Pool | +--------------+--------------------------------------+----------+------+ | 172.24.4.225 | be0ff6c0-7199-42c5-8d20-d83dab3b25f0 | 10.0.0.2 | nova | | 172.24.4.226 | 80a3b511-fd86-4f96-958a-1e52abce6bec | 10.0.0.3 | nova | +--------------+--------------------------------------+----------+------+ Thanks, Brad On Mon, Feb 27, 2012 at 11:06 AM, Darragh OReilly <[email protected]> wrote: > > Heres what shows: > > 2012-02-27 15:41:13 DEBUG nova.rpc.common [-] received {u'_context_roles': > [u'netadmin', u'sysadmin', u'Member', u'admin'], u'_msg_id': > u'01a4e061f7ab4db4a37e6a79c6584f99', u'_context_read_deleted': u'no', > u'_context_request_id': u'req-cc9f0f43-280c-49ce-a267-2d0efdad5eeb', > u'args': {u'instance_id': 1, u'instance_uuid': > u'3d931521-9ea2-4344-ad52-13faf4172e96', u'host': u'u1110srv', > u'project_id': u'5b5a2c42b5874058962c6f543ee91c72', u'rxtx_factor': 1.0}, > u'_context_auth_token': u'685a55a68baf4e1ea311a5b2ff3c5b89', > u'_context_strategy': u'keystone', u'_context_is_admin': True, > u'_context_project_id': u'5b5a2c42b5874058962c6f543ee91c72', > u'_context_timestamp': u'2012-02-27T15:41:12.858110', u'_context_user_id': > u'demo', u'method': u'get_instance_nw_info', u'_context_remote_address': > u'172.241.0.123'} from (pid=4515) _safe_log > /opt/stack/nova/nova/rpc/common.py:144 > 2012-02-27 15:41:13 DEBUG nova.rpc.common > [req-cc9f0f43-280c-49ce-a267-2d0efdad5eeb demo > 5b5a2c42b5874058962c6f543ee91c72] unpacked context: {'request_id': > u'req-cc9f0f43-280c-49ce-a267-2d0efdad5eeb', 'user_id': u'demo', 'roles': > [u'netadmin', u'sysadmin', u'Member', u'admin'], 'timestamp': > '2012-02-27T15:41:12.858110', 'is_admin': True, 'auth_token': > u'685a55a68baf4e1ea311a5b2ff3c5b89', 'project_id': > u'5b5a2c42b5874058962c6f543ee91c72', 'remote_address': u'172.241.0.123', > 'read_deleted': u'no', 'strategy': u'keystone'} from (pid=4515) > unpack_context /opt/stack/nova/nova/rpc/amqp.py:186 > 2012-02-27 15:41:13 DEBUG nova.utils [-] Attempting to grab semaphore > "get_dhcp" for method "_get_dhcp_ip"... from (pid=4515) inner > /opt/stack/nova/nova/utils.py:830 > 2012-02-27 15:41:13 DEBUG nova.utils [-] Got semaphore "get_dhcp" for method > "_get_dhcp_ip"... from (pid=4515) inner /opt/stack/nova/nova/utils.py:834 > 2012-02-27 15:41:13 DEBUG nova.utils [-] Attempting to grab semaphore > "get_dhcp" for method "_get_dhcp_ip"... from (pid=4515) inner > /opt/stack/nova/nova/utils.py:830 > 2012-02-27 15:41:13 DEBUG nova.utils [-] Got semaphore "get_dhcp" for method > "_get_dhcp_ip"... from (pid=4515) inner /opt/stack/nova/nova/utils.py:834 > 2012-02-27 15:41:13 DEBUG nova.rpc.common [-] received {u'_context_roles': > [u'netadmin', u'sysadmin', u'Member', u'admin'], u'_msg_id': > u'b88317b8a5434a40be70303c0c0a2ff8', u'_context_read_deleted': u'no', > u'_context_request_id': u'req-cc9f0f43-280c-49ce-a267-2d0efdad5eeb', > u'args': {u'fixed_address': u'10.0.0.2', u'floating_address': > u'172.241.1.1', u'affect_auto_assigned': False}, u'_context_auth_token': > u'685a55a68baf4e1ea311a5b2ff3c5b89', u'_context_strategy': u'keystone', > u'_context_is_admin': False, u'_context_project_id': > u'5b5a2c42b5874058962c6f543ee91c72', u'_context_timestamp': > u'2012-02-27T15:41:12.858110', u'_context_user_id': u'demo', u'method': > u'associate_floating_ip', u'_context_remote_address': u'172.241.0.123'} from > (pid=4515) _safe_log /opt/stack/nova/nova/rpc/common.py:144 > 2012-02-27 15:41:13 DEBUG nova.rpc.common > [req-cc9f0f43-280c-49ce-a267-2d0efdad5eeb demo > 5b5a2c42b5874058962c6f543ee91c72] unpacked context: {'request_id': > u'req-cc9f0f43-280c-49ce-a267-2d0efdad5eeb', 'user_id': u'demo', 'roles': > [u'netadmin', u'sysadmin', u'Member', u'admin'], 'timestamp': > '2012-02-27T15:41:12.858110', 'is_admin': False, 'auth_token': > u'685a55a68baf4e1ea311a5b2ff3c5b89', 'project_id': > u'5b5a2c42b5874058962c6f543ee91c72', 'remote_address': u'172.241.0.123', > 'read_deleted': u'no', 'strategy': u'keystone'} from (pid=4515) > unpack_context /opt/stack/nova/nova/rpc/amqp.py:186 > 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 <[email protected]> > To: Darragh OReilly <[email protected]> > Cc: "[email protected]" <[email protected]> > Sent: Monday, 27 February 2012, 18:39 > > Subject: Re: [Netstack] Can't associate floating IP > > Can you check your nova-network log for any warnings? Specifically, > something like this: > > LOG.warn(_('Address |%(address)s| is not allocated to your ' > 'project |%(project)s|'), > > Thanks, > Brad > > On Mon, Feb 27, 2012 at 10:30 AM, Darragh OReilly > <[email protected]> wrote: >> Hi Brad, >> >> using uuid gives the same. >> >> u1@u1110srv:~/devstack$ nova add-floating-ip >> 3d931521-9ea2-4344-ad52-13faf4172e96 172.241.1.1 >> u1@u1110srv:~/devstack$ >> u1@u1110srv:~/devstack$ nova floating-ip-list >> +-------------+-------------+----------+------+ >> | Ip | Instance Id | Fixed Ip | Pool | >> +-------------+-------------+----------+------+ >> | 172.241.1.1 | None | None | nova | >> +-------------+-------------+----------+------+ >> >> >> Using the instance ID gives this: >> >> u1@u1110srv:~/devstack$ nova add-floating-ip i-00000001 172.241.1.1 >> ERROR: No server with a name or ID of 'i-00000001' exists. >> >> >> Trying an IP that has not been given to the tenant gives this: >> >> u1@u1110srv:~/devstack$ nova add-floating-ip >> 3d931521-9ea2-4344-ad52-13faf4172e96 172.241.1.2 >> ERROR: Associate floating ip failed (HTTP 500) >> >> So validation is happening. >> >> Thanks, >> Darragh. >> >> ________________________________ >> From: Brad Hall <[email protected]> >> To: Darragh OReilly <[email protected]> >> Cc: "[email protected]" <[email protected]> >> Sent: Monday, 27 February 2012, 18:05 >> Subject: Re: [Netstack] Can't associate floating IP >> >> Hi Darragh, >> >> Try passing in the instance id of the vm (or the uuid).. it sounds >> like its failing to figure out what instance you mean to associate >> with. >> >> Thanks, >> Brad >> >> On Mon, Feb 27, 2012 at 6:38 AM, Darragh OReilly >> <[email protected]> wrote: >>> >>> >>> When I try to associate a floating IP from the dash I get: >>> Error: Error associating Floating IP: Associate floating ip failed (HTTP >>> 500) >>> >>> From the command line I don't get any errors or exceptions on any of the >>> screens after nova add-floating-ip, but the association does not happen. >>> Are >>> these steps right? >>> >>> thanks Darragh >>> >>> >>> 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 >>> 2012-02-27 13:38:04 DEBUG nova.utils >>> [req-7b6febc7-c8cd-49e5-ac48-5707c70d8bb5 None None] backend <module >>> 'nova.db.sqlalchemy.api' from >>> '/opt/stack/nova/nova/db/sqlalchemy/api.pyc'> >>> from (pid=4776) __get_backend /opt/stack/nova/nova/utils.py:603 >>> 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$ >>> >>> u1@u1110srv:~/devstack$ nova boot --flavor 6 --image >>> 21b0573e-8dd6-4b42-9c01-4c8684b0b080 guest1 >>> >>> >>> u1@u1110srv:~/devstack$ nova show guest1 >>> >>> >>> +-------------------+----------------------------------------------------------+ >>> | Property | >>> Value | >>> >>> >>> +-------------------+----------------------------------------------------------+ >>> | OS-DCF:diskConfig | >>> MANUAL | >>> | accessIPv4 >>> | | >>> | accessIPv6 >>> | | >>> | config_drive >>> | | >>> | created | >>> 2012-02-27T13:49:00Z | >>> | flavor | >>> micro | >>> | hostId | >>> 372f92b8889526d07feaa81ec5ab9bb80228350db4cfa563c15baf6f | >>> | id | >>> 3d931521-9ea2-4344-ad52-13faf4172e96 | >>> | image | >>> cirros-0.3.0-x86_64-blank | >>> | key_name >>> | | >>> | metadata | >>> {} | >>> | name | >>> guest1 | >>> | private network | >>> 10.0.0.2 | >>> | progress | >>> None | >>> | status | >>> ACTIVE | >>> | tenant_id | >>> 5b5a2c42b5874058962c6f543ee91c72 | >>> | updated | >>> 2012-02-27T13:49:30Z | >>> | user_id | >>> demo | >>> >>> >>> +-------------------+----------------------------------------------------------+ >>> >>> >>> u1@u1110srv:~/devstack$ ssh [email protected] >>> The authenticity of host '10.0.0.2 (10.0.0.2)' can't be established. >>> RSA key fingerprint is ed:b0:be:78:26:23:2a:8d:81:22:84:84:f0:6c:ec:3c. >>> Are you sure you want to continue connecting (yes/no)? yes >>> Warning: Permanently added '10.0.0.2' (RSA) to the list of known hosts. >>> [email protected]'s password: >>> $ ping www.openstack.org >>> PING www.openstack.org (98.129.229.144): 56 data bytes >>> 64 bytes from 98.129.229.144: seq=1 ttl=61 time=182.020 ms >>> 64 bytes from 98.129.229.144: seq=2 ttl=61 time=182.166 ms >>> ^C >>> --- www.openstack.org ping statistics --- >>> 3 packets transmitted, 2 packets received, 33% packet loss >>> round-trip min/avg/max = 182.020/182.093/182.166 ms >>> $ Connection to 10.0.0.2 closed. >>> u1@u1110srv:~/devstack$ >>> >>> >>> stack.sh is not creating any floating range with quantum enabled: >>> >>> if is_service_enabled q-svc; then >>> echo "Not creating floating IPs (not supported by >>> QuantumManager)" >>> else >>> # create some floating ips >>> $NOVA_DIR/bin/nova-manage floating create $FLOATING_RANGE >>> >>> # create a second pool >>> $NOVA_DIR/bin/nova-manage floating create >>> --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL >>> fi >>> >>> >>> 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 | >>> +-------------+-------------+----------+------+ >>> >>> u1@u1110srv:~/devstack$ ip link show dev eth2 >>> 2: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 >>> link/ether 08:00:27:1a:5c:69 brd ff:ff:ff:ff:ff:ff >>> >>> u1@u1110srv:~/devstack$ sudo iptables -t nat -vnL | grep -i float >>> Chain nova-api-float-snat (1 references) >>> 81 4863 nova-api-float-snat all -- * * >>> 0.0.0.0/0 0.0.0.0/0 >>> Chain nova-compute-float-snat (1 references) >>> 82 4947 nova-compute-float-snat all -- * * >>> 0.0.0.0/0 0.0.0.0/0 >>> Chain nova-manage-float-snat (1 references) >>> 81 4863 nova-manage-float-snat all -- * * >>> 0.0.0.0/0 0.0.0.0/0 >>> Chain nova-network-float-snat (1 references) >>> 82 4947 nova-network-float-snat all -- * * >>> 0.0.0.0/0 0.0.0.0/0 >>> >>> >>> -- >>> Mailing list: https://launchpad.net/~netstack >>> Post to : [email protected] >>> Unsubscribe : https://launchpad.net/~netstack >>> More help : https://help.launchpad.net/ListHelp >>> >> >> > > -- Mailing list: https://launchpad.net/~netstack Post to : [email protected] Unsubscribe : https://launchpad.net/~netstack More help : https://help.launchpad.net/ListHelp

