Ask Your Question

Work around for nova-network vlan ID bug.

asked 2014-08-29 05:46:23 -0500

updated 2014-09-02 09:40:47 -0500

Alright I know this is not really a question, technically speaking, but I don't know where to put this otherwise.

So I stumbled on a nova-network bug mentionned here : Long story short, when you issue the nova-network create command with the --vlan parameter, the following ID value goes straight to the vlan_start parameter, and is then modified according to the number of existing networks in nova.

Therefore, you won't be able to create a network with the ID you want.

edit retag flag offensive close merge delete


Hey Eloi, Thanks for this!. Two suggestions 1) why don't you copy the 'answer' bit into an 'answer' below so this question is appropriately marked up. 2) The docs team love this kind of thing - you can just paste it into a bug report and they will add it to the docs

fifieldt gravatar imagefifieldt ( 2014-08-29 15:16:52 -0500 )edit

Hi. Will do, however the bug has already been reported, which is why I thought further documentation wasn't needed.

Eloi Guillaud gravatar imageEloi Guillaud ( 2014-09-02 09:38:12 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-02 09:38:19 -0500

updated 2014-09-02 09:40:12 -0500

Here is a quick&dirty work-around to get ride of this.

Instead of going through diferents files to add a "vlan" parameters, we will just use the vlan_start value without modifying it by adding the index value. To do so, you will need to modify only one file. Open /usr/lib/python2.7/dist-pacakges/nova/network/, and go to line 1215 (may vary in your case) where it read : vlan=kwargs['vlan_start'] + index_vlan

Here the final value of the vlan ID is assigned to the "vlan" variable. So we are just going to comment that out, and just write the following : vlan=kwargs['vlan_start']

This will allow you to create network with arbitrary defined vlan ID.

Of course, this is very dirty since you loose the vlan_start feature, but it will do just fine for folks like me who just need to manually manage vlans.

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


Asked: 2014-08-29 05:46:23 -0500

Seen: 89 times

Last updated: Sep 02 '14