Int() Base 10 error on Network Create

Asked by Micky Davies

I am runningthe following command - This is a fresh install and the first range being added

sudo nova-manage network create private 10.0.1.0/24 1 255

and it fails with

2011-11-10 16:13:21,248 CRITICAL nova [-] invalid literal for int() with base 10: '10.0.1.0/24'
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/nova-manage", line 1122, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/usr/bin/nova-manage", line 1111, in main
(nova): TRACE: fn(*argv)
(nova): TRACE: File "/usr/bin/nova-manage", line 541, in create
(nova): TRACE: num_networks=int(num_networks),
(nova): TRACE: ValueError: invalid literal for int() with base 10: '10.0.1.0/24'

Nova.conf has
--fixed_range=10.0.1.0/16
--network_size=8

I have tried changing the values in the nova.conf and then done a db sync and restarted services but still I get the error

What have I done wrong?

Micky

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Micky Davies
Solved:
Last query:
Last reply:
Revision history for this message
Micky Davies (bj7u6139zdyf2a6nz2ly74oec10f2lnela24rsgd38-info) said :
#1

OK I think I cracked this, maybe I was reading an old document

I ran sudo nova-manage network create 10.0.1.0/24 1 255 and it worked, I dropped the word private, I did a network list and it appears so looks ok

Anyway moving on to the next part

Revision history for this message
Vish Ishaya (vishvananda) said :
#2

Which version of the code is this? The label parameter was added before diablo, so this should only work in cactus. Also 255 is wrong, should be 256.

On Nov 10, 2011, at 11:55 AM, Micky Davies wrote:

> Question #178297 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/178297
>
> Status: Open => Solved
>
> Micky Davies confirmed that the question is solved:
> OK I think I cracked this, maybe I was reading an old document
>
> I ran sudo nova-manage network create 10.0.1.0/24 1 255 and it worked, I
> dropped the word private, I did a network list and it appears so looks
> ok
>
> Anyway moving on to the next part
>
> --
> 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
Micky Davies (bj7u6139zdyf2a6nz2ly74oec10f2lnela24rsgd38-info) said :
#3

It was a document written by someone else dated 19th October so I figured it would be good and covered a two server build, anyway that is now in the bin and I am ignoring it, following the real doc :)

Yes the 255 was a typo I did do 256.

Thanks