network create does not respect the CIDR when placing into sql db

Asked by arturo lorenzo

When I enter: nova-manage network create 192.168.1.64/28 1 14 the networks table shows:
192.168.1.64/29 as the CIDR; 192.168.1.65 as the gateway which is correct; 192.168.1.71 as the broadcast which is incorrect it should be 192.168.1.88; 255.255.255.248 as the netmask which is incorrect it should be 255.255.255.240; and 192.168.1.66 as the dhcp_start which is correct. This value was taken from the /etc/nova/nova.conf which is:
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--verbose
--sql_connection=mysql://root:nova@192.168.1.194/nova
--s3_host=192.168.1.194
--rabbit_host=192.168.1.194
--ec2_host=192.168.1.194
--ec2_url=http://192.168.1.194:8773/services/Cloud
--network_manager=nova.network.manager.FlatDHCPManager
--fixed_range=192.168.1.64/26
--flat_network_dhcp_start=192.168.1.66
--flat_network_dns=209.18.47.61
--fixed_ip_disassociate_timeout=60
--network_size=64
I have also tried without fixed_range and adding the CIDR to the flat_network_dhcp_start unsuccessfully
Thanks for the help!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
Last query:
Last reply:
Revision history for this message
Best Vish Ishaya (vishvananda) said :
#1

Network size (14) must be a power of two. Try 16
On Feb 23, 2011 8:28 PM, "arturo lorenzo" <
<email address hidden>> wrote:
> New question #146658 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/146658
>
> When I enter: nova-manage network create 192.168.1.64/28 1 14 the networks
table shows:
> 192.168.1.64/29 as the CIDR; 192.168.1.65 as the gateway which is correct;
192.168.1.71 as the broadcast which is incorrect it should be 192.168.1.88;
255.255.255.248 as the netmask which is incorrect it should be
255.255.255.240; and 192.168.1.66 as the dhcp_start which is correct. This
value was taken from the /etc/nova/nova.conf which is:
> --dhcpbridge_flagfile=/etc/nova/nova.conf
> --dhcpbridge=/usr/bin/nova-dhcpbridge
> --logdir=/var/log/nova
> --state_path=/var/lib/nova
> --verbose
> --sql_connection=mysql://root:nova@192.168.1.194/nova
> --s3_host=192.168.1.194
> --rabbit_host=192.168.1.194
> --ec2_host=192.168.1.194
> --ec2_url=http://192.168.1.194:8773/services/Cloud
> --network_manager=nova.network.manager.FlatDHCPManager
> --fixed_range=192.168.1.64/26
> --flat_network_dhcp_start=192.168.1.66
> --flat_network_dns=209.18.47.61
> --fixed_ip_disassociate_timeout=60
> --network_size=64
> I have also tried without fixed_range and adding the CIDR to the
flat_network_dhcp_start unsuccessfully
> Thanks for the help!
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
arturo lorenzo (arturo-lorenzo) said :
#2

Thanks so much! that fixed my problem!

Revision history for this message
arturo lorenzo (arturo-lorenzo) said :
#3

Thanks Vish Ishaya, that solved my question.