[Openstack-operators] Adding a Physical Network Interface to an Instance

Steven Barnabas sbarnabas at frontporch.com
Fri May 3 17:57:39 UTC 2013


Do i also have to add the same bridge to my compute box?

Im not sure if I created the bridge correctly.

The physical interface I am using on my Compute box is eth4

This is my /etc/network/interfaces 
auto eth0
iface eth0 inet static
	address 172.16.32.12
	netmask 255.255.255.0
	network 172.16.32.0
	broadcast 172.16.32.255
	gateway 172.16.32.1
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 8.8.8.8 8.8.4.4
# management network
auto eth2
iface eth2 inet static
        address 192.168.0.3
        netmask 255.255.255.0

# IN Interface
auto eth4
iface eth4 inet static	


I did this to create the bridge:
ovs-vsctl add-br br-eth4
ovs-vsctl add-port br-eth4 eth4

When I do a ifconfig, I do not see my bridge or my interface.  I do have link on my interface, I just think maybe I configured it wrong in /network/interfaces?

Whenever I try the command to add the network, I get the no bridge error.



Thanks




Steven Barnabas
Network Engineer 
Front Porch, Inc.
209-288-5580
209-652-7733 mobile
www.frontporch.com



On Apr 24, 2013, at 3:12 PM, Steven Barnabas <sbarnabas at frontporch.com> wrote:

> 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.
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130503/770ee6c7/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/20130503/770ee6c7/attachment.bin>


More information about the OpenStack-operators mailing list