nova flat networking will not accept non-default ips
This bug report was converted into a question: question #129521: nova flat networking will not accept non-default ips.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I updated to HOL this morning, 10/11. Using my previous test config:
rlucio@
--networks_
--logfile=
--sql_connectio
--dhcpbridge=
--s3_host=
--rabbit_
--redis_
--verbose
--cc_host=
--flat_network=true
--flat_
--flat_
--flat_
--flat_
--flat_
--flat_
I was getting instances launching with 10.0.0.X addresses. I took a quick look at the flags in nova/network/
--private_
However I still get my instances being allocated with the default ip range:
rlucio@
RESERVATION r-n6mq4b6o admin
INSTANCE i-powbiy ami-t9yxzfpy 10.0.0.12 10.0.0.12 scheduling None (admin, None) 0 m1.small 2010-10-11 21:49:59
RESERVATION r-9zf556s9 admin
INSTANCE i-h4pzd0 ami-t9yxzfpy 10.0.0.7 10.0.0.7 shutdown None (admin, p2n1) 0 m1.small 2010-10-08 22:05:41
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 size=<number of addrs> # ex 64
--network_
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): nova-manage network create
/usr/bin/python /usr/bin/
** 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.