[Openstack-operators] Adding a Physical Network Interface to an Instance
Steven Barnabas
sbarnabas at frontporch.com
Wed Apr 24 22:12:48 UTC 2013
Hi Joe,
I tried, nova-manage network create --fixed_range_v4=1.1.1.0/24 --num_networks=1 --network_size=256 --vlan=1 --label=IN-Interface --project=admin --bridge=br-2
and I got this error:
Command failed, please check log for more info
2013-04-24 15:09:51 CRITICAL nova [req-4c0db5b4-2b9a-4e42-ac1c-eb0a7a4a8b3c None None] bridge_interface is required to create a network.
2013-04-24 15:09:51 19871 TRACE nova Traceback (most recent call last):
2013-04-24 15:09:51 19871 TRACE nova File "/usr/bin/nova-manage", line 1404, in <module>
2013-04-24 15:09:51 19871 TRACE nova main()
2013-04-24 15:09:51 19871 TRACE nova File "/usr/bin/nova-manage", line 1391, in main
2013-04-24 15:09:51 19871 TRACE nova fn(*fn_args, **fn_kwargs)
2013-04-24 15:09:51 19871 TRACE nova File "/usr/bin/nova-manage", line 480, in create
2013-04-24 15:09:51 19871 TRACE nova net_manager.create_networks(context.get_admin_context(), **kwargs)
2013-04-24 15:09:51 19871 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 2078, in create_networks
2013-04-24 15:09:51 19871 TRACE nova self, context, vpn=True, **kwargs)
2013-04-24 15:09:51 19871 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1434, in create_networks
2013-04-24 15:09:51 19871 TRACE nova raise exception.NetworkNotCreated(req=fld)
2013-04-24 15:09:51 19871 TRACE nova NetworkNotCreated: bridge_interface is required to create a network.
2013-04-24 15:09:51 19871 TRACE nova
so I thought that I had to go into /etc/network/interfaces and do this:
auto br‐2
iface br‐2 inet static
then I rebooted but I still get the error.
Did i do that incorrectly?
Thanks,
Steven Barnabas
Network Engineer
Front Porch, Inc.
209-288-5580
209-652-7733 mobile
www.frontporch.com
On Apr 24, 2013, at 7:15 AM, Joe Topjian <joe.topjian at cybera.ca> wrote:
> Hi Steven,
>
> Try the "--vlan" option in the nova-manage command. The value will be the vlan that the network you are creating will be on.
>
> Thanks,
> Joe
>
>
> On Tue, Apr 23, 2013 at 4:15 PM, Steven Barnabas <sbarnabas at frontporch.com> wrote:
> Hi Lorin,
>
> I added the bridge by doing this on my compute box:
> root at FPCompute:~# ovs-vsctl add-br br-2
> root at FPCompute:~# ovs-vsctl add-port br-2 eth5
>
> Then I put in this command:
> root at FPCompute:~# nova-manage network create --fixed_range_v4=1.1.1.0/24 --num_networks=1 --network_size=256 --label=IN-Interface --project=admin --bridge=br-2
> I used 1.1.1.1 because Im not going to IP this interface, its going be used as a monitoring port so I'm never going to IP it. (for wireshark)
>
> But I get this error:
> Command failed, please check log for more info
> 2013-04-23 14:59:06 CRITICAL nova [req-27fbc802-2f66-4427-a246-6acdd8ed637a None None] 'vlan_start'
> 2013-04-23 14:59:06 11196 TRACE nova Traceback (most recent call last):
> 2013-04-23 14:59:06 11196 TRACE nova File "/usr/bin/nova-manage", line 1404, in <module>
> 2013-04-23 14:59:06 11196 TRACE nova main()
> 2013-04-23 14:59:06 11196 TRACE nova File "/usr/bin/nova-manage", line 1391, in main
> 2013-04-23 14:59:06 11196 TRACE nova fn(*fn_args, **fn_kwargs)
> 2013-04-23 14:59:06 11196 TRACE nova File "/usr/bin/nova-manage", line 480, in create
> 2013-04-23 14:59:06 11196 TRACE nova net_manager.create_networks(context.get_admin_context(), **kwargs)
> 2013-04-23 14:59:06 11196 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 2063, in create_networks
> 2013-04-23 14:59:06 11196 TRACE nova if kwargs['num_networks'] + kwargs['vlan_start'] > 4094:
> 2013-04-23 14:59:06 11196 TRACE nova KeyError: 'vlan_start'
> 2013-04-23 14:59:06 11196 TRACE nova
>
> Any ideas?
>
> Steven Barnabas
> Network Engineer
> Front Porch, Inc.
> 209-288-5580
> 209-652-7733 mobile
> www.frontporch.com
>
>
>
> On Apr 9, 2013, at 7:13 PM, Lorin Hochstein <lorin at nimbisservices.com> wrote:
>
>> http://docs.openstack.org/trunk/openstack-compute/admin/content/using-multi-nics.html
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
>
>
> --
> Joe Topjian
> Systems Administrator
> Cybera Inc.
>
> www.cybera.ca
>
> Cybera is a not-for-profit organization that works to spur and support innovation, for the economic benefit of Alberta, through the use of cyberinfrastructure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130424/0ae84e4e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2919 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130424/0ae84e4e/attachment.bin>
More information about the OpenStack-operators
mailing list