Creating a New Host fails in a flat network structure

i've set up my Neutron network as a Flat Network (provider network):

  1. instances are not isolated, and have direct access to the local network
  2. there is no need for floating IP's, as the DHCP supplied IP's are
    directly accessible
  3. there is no need for a router, as the DHCP agent provides a 'next-hop'
    route to the switch
  4. the 'instance' subnet has 'no gateway' to force Open Stack to use static
    routing rules to route 169.254.169.254 to my controller IP for the
    instances metadata

My issue is this - if i select my network as 'floating ip network' during
Host Creation, i get the following error from foreman:
Failed to save: Failed to create a compute controller01 (OpenStack)
instance test5.domain: wrong number of arguments (1 for 2)

and on the controller side:
2014-12-29 15:11:51.975 1311 INFO neutron.api.v2.resource
[req-9d07e668-4dac-4de2-80d2-778bdace9982 None] update failed (client
error): Bad floatingip request: Cannot add floating IP to port on subnet
007c660a-995d-4025-9408-82d91d75e752 which has no gateway_ip

If i set the 'instance' subnet's gateway, it wont get the route i need for
metadata to work… (see #4 above)

does this mean i shouldnt select 'floating ip network' at all?

this is Foreman 1.6.0 and Openstack Icehouse 2014.1.2

answering my own question:

You dont select a 'floating ip network' if you have a Flat Network type.

··· On Monday, December 29, 2014 3:19:20 PM UTC+8, Rowcliffe Browne wrote: > > i've set up my Neutron network as a Flat Network (provider network): > 1) instances are not isolated, and have direct access to the local network > 2) there is no need for floating IP's, as the DHCP supplied IP's are > directly accessible > 3) there is no need for a router, as the DHCP agent provides a 'next-hop' > route to the switch > 4) the 'instance' subnet has 'no gateway' to force Open Stack to use > static routing rules to route 169.254.169.254 to my controller IP for the > instances metadata > > My issue is this - if i select my network as 'floating ip network' during > Host Creation, i get the following error from foreman: > Failed to save: Failed to create a compute controller01 (OpenStack) > instance test5.domain: wrong number of arguments (1 for 2) > > and on the controller side: > 2014-12-29 15:11:51.975 1311 INFO neutron.api.v2.resource > [req-9d07e668-4dac-4de2-80d2-778bdace9982 None] update failed (client > error): Bad floatingip request: Cannot add floating IP to port on subnet > 007c660a-995d-4025-9408-82d91d75e752 which has no gateway_ip > > If i set the 'instance' subnet's gateway, it wont get the route i need for > metadata to work.... (see #4 above) > > does this mean i shouldnt select 'floating ip network' at all? >