Ask Your Question
0

Int() Base 10 error on Network Create

asked 2011-11-10 16:22:27 -0500

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

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-11-10 20:15:09 -0500

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

edit flag offensive delete link more
0

answered 2011-11-10 19:53:52 -0500

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

edit flag offensive delete link more
0

answered 2011-11-10 20:08:06 -0500

vishvananda gravatar image

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/+q...

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).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-11-10 16:22:27 -0500

Seen: 118 times

Last updated: Nov 10 '11