[Openstack-operators] [openstack-ansible] networking services of compute nodes on LXC

Achi Hamza h16mara at gmail.com
Tue Dec 6 07:11:01 UTC 2016

Hi Jean-Philippe Evrard and Jesse,

Thank you both for your responses.
Finally i succeeded in deploying DVR setup but i don’t know if my approach
is good or not. I am going to describe it for the sake of sharing.

I used newton tag 14.0.2 and my scenario is VLANs tenant networks+flat
external network+DVR. Inside  neutron agents containers i created 2 OVS
bridges, br-prv for tenant networks and br-floating for the flat network,
then i attached eth11 and eth12 as ports accordingly, like this:

*ovs-vsctl add-br br-floating*
*ovs-vsctl add-br br-prv*
*ovs-vsctl add-port br-prv eth11*
*ovs-vsctl add-port br-floating eth12*

In the compute nodes it was a bit hard for me as the equivalent  of eth11
and eth12 interfaces don’t exist, also OpenvSwitch cannot accept br-vlan to
be a port for both  br-prv and br-floating. So, what i ended up doing is
creating 2 *internal* OVS ports one for br-prv and the other for
br-floating, then i added them to br-vlan bridge in
 /etc/network/interfaces file, like this:

*auto p_prv*
*allow-br-prv p_prv*
*iface p_prv inet manual*
* ovs_type OVSIntPort*
* ovs_bridge br-prv*

*auto p_floating*
*allow-br-floating p_floating*
*iface p_floating inet manual*
* ovs_type OVSIntPort*
* ovs_bridge br-floating*

*auto br-vlan*
*iface br-vlan inet manual*
*        bridge_stp off*
*        bridge_waitport 0*
*        bridge_fd 0*
*        bridge_ports enp4s1 p_prv p_floating*

I hope we could get other solutions that use openstack-ansible with DVR to
select the best one since DVR is new in openstack-ansible.

Best regards,

On 5 December 2016 at 10:51, Jesse Pretorius <
Jesse.Pretorius at rackspace.co.uk> wrote:

> *From: *Achi Hamza <h16mara at gmail.com>
> *Date: *Saturday, December 3, 2016 at 12:19 PM
> *To: *"openstack-operators at lists.openstack.org" <
> openstack-operators at lists.openstack.org>
> *Subject: *[Openstack-operators] [openstack-ansible] networking services
> of compute nodes on LXC
> Hello,
> I need to install the networking services of the compute nodes into LXC,
> just like networking services on the infra nodes (neutron_agents_container)
> so that i can leverage eth11 and eth12 interfaces within the container on
> the compute nodes for my setup (DVR).
> How openstack-ansible should be configured to deploy the the networking
> services of the compute nodes on LXC too ?
> Hi Achi,
> The short answer is that you don’t. For the moment we do not use
> containers for compute services, or neutron agent services on compute, so
> you would need to ensure that those hosts are configured with the
> appropriate bridges/interfaces to make it work.
> Unfortunately I’m unfamiliar with DVR or networking at the best of times,
> and with DVR being a new feature in Newton I haven’t had the chance to give
> it a go. Perhaps someone who has given it a try will be able to advise.
> Best regards,
> Jesse
> IRC: odyssey4me
> ------------------------------
> Rackspace Limited is a company registered in England & Wales (company
> registered number 03897010) whose registered office is at 5 Millington
> Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy
> can be viewed at www.rackspace.co.uk/legal/privacy-policy - This e-mail
> message may contain confidential or privileged information intended for the
> recipient. Any dissemination, distribution or copying of the enclosed
> material is prohibited. If you receive this transmission in error, please
> notify us immediately by e-mail at abuse at rackspace.com and delete the
> original message. Your cooperation is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20161206/d8b2458f/attachment.html>

More information about the OpenStack-operators mailing list