In the create network command, num_networks param missing

Bug #1067731 reported by Anne Gentle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Tom Fifield

Bug Description

Reported on the Mailing list:

It seems the following documentation is incorrect: http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-vlan-networking.html

The command is incorrect:
nova-manage network create --label=example-net --fixed_range_v4=172.16.169.0/24 --vlan=169 --bridge=br169 --project_id=127cdfa47e544df080d2ede5c38797d1

Returns:
2012-10-17 13:13:55 CRITICAL nova [req-aa135dcb-1c99-45e1-9bb4-37820958377d None None] 'num_networks'
2012-10-17 13:13:55 TRACE nova Traceback (most recent call last):
2012-10-17 13:13:55 TRACE nova File "/usr/bin/nova-manage", line 1401, in <module>
2012-10-17 13:13:55 TRACE nova main()
2012-10-17 13:13:55 TRACE nova File "/usr/bin/nova-manage", line 1388, in main
2012-10-17 13:13:55 TRACE nova fn(*fn_args, **fn_kwargs)
2012-10-17 13:13:55 TRACE nova File "/usr/bin/nova-manage", line 477, in create
2012-10-17 13:13:55 TRACE nova net_manager.create_networks(context.get_admin_context(), **kwargs)
2012-10-17 13:13:55 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 2040, in create_networks
2012-10-17 13:13:55 TRACE nova if kwargs['num_networks'] + kwargs['vlan_start'] > 4094:
2012-10-17 13:13:55 TRACE nova KeyError: 'num_networks'
2012-10-17 13:13:55 TRACE nova

So should probably be:
nova-manage network create --label=example-net --fixed_range_v4=172.16.169.0/24 --vlan=169 --bridge=br169 --project_id=127cdfa47e544df080d2ede5c38797d1 --num_networks=1

Anne Gentle (annegentle)
Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → High
milestone: none → folsom
Revision history for this message
Tom Fifield (fifieldt) wrote :
Changed in openstack-manuals:
assignee: nobody → Tom Fifield (fifieldt)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/14505
Committed: http://github.com/openstack/openstack-manuals/commit/903a1b97c704c4ce10f81ba5a1df24b583b219b0
Submitter: Jenkins
Branch: master

commit 903a1b97c704c4ce10f81ba5a1df24b583b219b0
Author: Tom Fifield <email address hidden>
Date: Wed Oct 17 09:51:49 2012 -0700

    Adding num_networks to nova net create command

    fixes bug 1067731

    As in the bug report, the nova-manage network create used in this
    example needs the num_networks flag to work properly

    Change-Id: If3d5db4eba280403a7cc7039f355673c7449092d

Changed in openstack-manuals:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.