← Back to team overview

registry team mailing list archive

[Bug 658762] Re: nova flat networking will not accept non-default ips

 

Closing this, as the codebase has already moved forward.

To create a flat network you must do the following (10/14/2010):

1) define the following flag for use by nova-network, nova-manage, and
nova-compute:

--network_manager=nova.network.manager.FlatManager

2) define the following flags for use by nova-network and nova-manage:

--fixed_range=<network/prefix>            # ex 192.168.2.64/26
--network_size=<number of addrs>      # ex 64

3) run nova-manage to create the network (assuming you installed via ppa debs, so that the flag file is in /etc/nova/nova-manage.conf):
/usr/bin/python /usr/bin/nova-manage network create

** Note that the script currently assumes that the first IP address is
your network (like 192.168.0.0), that the 2nd ip is your gateway
(192.168.0.1), and that the broadcast is the very last IP in the range
you defined (192.168.0.255).  If this is not the case you will need to
manually edit the sql db 'networks' table.

** Also note that as an alternative to using flags for nova-manage you can specify the arguments on the command line, like this:
nova-manage network create 10.0.0.0/8 3 16

4) restart nova-network service.

-- 
nova flat networking will not accept non-default ips
https://bugs.launchpad.net/bugs/658762
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



References