termie / nova-migration-demo

Nova is a cloud computing fabric controller (the main part of an IaaS system). It is written in Python.
http://openstack.org/projects/compute/
Apache License 2.0
2 stars 0 forks source link

nova-manage network creation doesn't respect CIDR #289

Open termie opened 13 years ago

termie commented 13 years ago

The CIDR network size is not respected when creating a network... this is going to cause user confusion:

root@openstack# bin/nova-manage network create Possible wrong number of arguments supplied network create: Creates fixed ips for host by range arguments: fixed_range=FLAG, [num_networks=FLAG], [network_size=FLAG], [vlan_start=FLAG], [vpn_start=FLAG], [fixed_range_v6=FLAG] 2011-03-23 08:42:13,991 CRITICAL nova [-] Fixed range in the form of 10.0.0.0/8 is required to create networks. ...

(OK, so I'll specify my CIDR; I'll give openstack 10.3.0.0/16)

root@openstack# bin/nova-manage network create 10.3.0.0/16

(Looks good)

root@openstack# bin/nova-manage network list network netmask start address DNS
10.3.0.0/24 255.255.255.0 10.3.0.3 None

It created a /24, not a /16 as I asked :-(


Imported from Launchpad using lp2gh.

termie commented 13 years ago

(by vishvananda) So maybe we should require num_networks and network_size as well....

Vish

On Mar 23, 2011, at 1:50 AM, justinsb wrote:

Public bug reported:

The CIDR network size is not respected when creating a network... this is going to cause user confusion:

root@openstack# bin/nova-manage network create Possible wrong number of arguments supplied network create: Creates fixed ips for host by range arguments: fixed_range=FLAG, [num_networks=FLAG], [network_size=FLAG], [vlan_start=FLAG], [vpn_start=FLAG], [fixed_range_v6=FLAG] 2011-03-23 08:42:13,991 CRITICAL nova [-] Fixed range in the form of 10.0.0.0/8 is required to create networks. ...

(OK, so I'll specify my CIDR; I'll give openstack 10.3.0.0/16)

root@openstack# bin/nova-manage network create 10.3.0.0/16

(Looks good)

root@openstack# bin/nova-manage network list network netmask start address DNS
10.3.0.0/24 255.255.255.0 10.3.0.3 None

It created a /24, not a /16 as I asked :-(

\ Affects: nova Importance: Undecided Status: New

You received this bug notification because you are a member of Nova Bug Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/740810

Title: nova-manage network creation doesn't respect CIDR

Status in OpenStack Compute (Nova): New

Bug description: The CIDR network size is not respected when creating a network... this is going to cause user confusion:

root@openstack# bin/nova-manage network create Possible wrong number of arguments supplied network create: Creates fixed ips for host by range arguments: fixed_range=FLAG, [num_networks=FLAG], [network_size=FLAG], [vlan_start=FLAG], [vpn_start=FLAG], [fixed_range_v6=FLAG] 2011-03-23 08:42:13,991 CRITICAL nova [-] Fixed range in the form of 10.0.0.0/8 is required to create networks. ...

(OK, so I'll specify my CIDR; I'll give openstack 10.3.0.0/16)

root@openstack# bin/nova-manage network create 10.3.0.0/16

(Looks good)

root@openstack# bin/nova-manage network list network netmask start address DNS
10.3.0.0/24 255.255.255.0 10.3.0.3 None

It created a /24, not a /16 as I asked :-(