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

Joe Topjian joe.topjian at cybera.ca
Sat May 4 14:42:17 UTC 2013


Hi Steven,

I apologize - I missed your previous message. I just re-read this thread
and I misunderstood your original intention. As with Lorin, I haven't tried
 this myself, but let's see how far we get.

If you're using OVS for bridging, do you have the brcompat module loaded?
This will enable compatibility with the Linux kernel bridge which
nova-network uses. You can verify that OVS has translated its bridge into a
linux kernel bridge by using the standard "brctl" tool.

In your /etc/network/interfaces file, you have eth4 configured as static,
but no further attributes. If you want to enable the interface but not
configure it with an IP, try changing "static" to "manual".

Next, are you using vlanmanager in nova-network? If so, then continue using
the --vlan flag. If the goal is to have the physical interface mapped
directly (or as close to directly as possible) to your instance, make sure
you choose the vlan that the physical interface is connected to.

Hope that helps,
Joe


On Fri, May 3, 2013 at 11:57 AM, Steven Barnabas
<sbarnabas at frontporch.com>wrote:

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


-- 
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/20130504/e14facca/attachment.html>


More information about the OpenStack-operators mailing list