The network range is not big enough to fit 32. Network size is 256

Asked by HP on 2011-07-03

Is this a bug? or something wrong with the installation?
nova-manage throws this error when I tried to create a network with this command:

    $NOVA_DIR/bin/nova-manage network create $FIXED_RANGE 1 32 ($NOVA_DIR has been set and tested).
    where $FIXED_RANGE=10.0.0.0/24
    Error is:
    2011-07-02 16:52:49,568 CRITICAL nova [-] The network range is not big enough to fit 32. Network size is 256
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/root/openstack/code/nova/bin/nova-manage", line 1276, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/root/openstack/code/nova/bin/nova-manage", line 1265, in main
(nova): TRACE: fn(*argv)
(nova): TRACE: File "/root/openstack/code/nova/bin/nova-manage", line 614, in create
(nova): TRACE: raise e
(nova): TRACE: ValueError: The network range is not big enough to fit 32. Network size is 256
(nova): TRACE:
2011-07-02 16:52:50,386 CRITICAL nova [-] create() takes exactly 2 arguments (3 given)
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/root/openstack/code/nova/bin/nova-manage", line 1276, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/root/openstack/code/nova/bin/nova-manage", line 1265, in main
(nova): TRACE: fn(*argv)
(nova): TRACE: TypeError: create() takes exactly 2 arguments (3 given)
(nova): TRACE:

Thanks earlier for help.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
HP
Solved:
2011-07-07
Last query:
2011-07-07
Last reply:
2011-07-04
HP (huy-pham-sc) said : #1

I know that the network size has to be the power of 2. Tried --network_size=8, still the same error.

Vish Ishaya (vishvananda) said : #2

The semantics of that call changed recently in trunk to use a label.
Try nova-manage network create public 10.0.0.0/8 1 32
On Jul 3, 2011, at 10:50 AM, HP wrote:

> Question #163627 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/163627
>
> HP gave more information on the question:
> I know that the network size has to be the power of 2. Tried
> --network_size=8, still the same error.
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

HP (huy-pham-sc) said : #3

Thanks, Vish
    but really, JESUS CHRIST!!!!!!!!!!!!!!!!!!!!!!!!!!! how am I supposed to STALK that change?? It took me a couple of hours to examine the code. Is there any up-to-date documents with updated changes?

Vish Ishaya (vishvananda) said : #4

Trunk occasionally has breaking changes introduced and the docs can lag behind a little bit. This is one reason for sticking with milestone releases if you don't have time to track the changes going in. The multi_nic networking was a major change and we expected a bit of breakage. This one was a little bit painful because the argument parsing for nova-manage is pretty naive. There is a branch under review which allows arguments to be passed in any order which will make changes like this less invasive. Sorry you got bit by this one.

Vish

HP (huy-pham-sc) said : #5

Thanks for your kind answer, Vish. I got it all running now.
Do you have any image of ubuntu-32 bit (not 64bit) that I can use for cactus? I only found x86_64, need i686 or things like that for an 32-bit host.

Vish Ishaya (vishvananda) said : #6

There are plenty of both here:

http://uec-images.ubuntu.com/

Vish

On Jul 3, 2011, at 5:11 PM, HP wrote:

> Question #163627 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/163627
>
> Status: Answered => Open
>
> HP is still having a problem:
> Thanks for your kind answer, Vish. I got it all running now.
> Do you have any image of ubuntu-32 bit (not 64bit) that I can use for cactus? I only found x86_64, need i686 or things like that for an 32-bit host.
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

HP (huy-pham-sc) said : #7

So cool.
What is the default login/password for those images?

Vish Ishaya (vishvananda) said : #8

There isnt one. You need to specify a keypair or pass in a script via user
data to set the password
On Jul 4, 2011 12:31 PM, "HP" <email address hidden> wrote:
> Question #163627 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/163627
>
> Status: Answered => Open
>
> HP is still having a problem:
> So cool.
> What is the default login/password for those images?
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Hugo Kou (tonytkdk) said : #9

HP , default user is ubuntu of UEC public image .

hope it will help

And I'm seeking the latest comment about multi_nic.

I'm confusing about the label "public" & "private"

Cheers
Hugo Kuo

HP (huy-pham-sc) said : #10

Hey Hugo,
   And what is the password? I will try ubuntu without a password though.

HP (huy-pham-sc) said : #11

never mind. A keypair is supposed to be used, I was not familiar with that before.