OpenStack Havana Docs for enabling networking missing steps for creating br100

Bug #1241331 reported by Geoffrey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Undecided
Tom Fifield

Bug Description

I've been following the Havana docs for installing openstack on RHEL based systems, and I've gotten everything up to enabling networking on the compute node to work.

No where does it tell me anything about creating the bridge on the node or how to manage it, and when I rung ifconfig, br100 is no where on the list of devices. I do get virbr0 and virbr0-nic from installing libvirt though.
-----------------------------------
Built: 2013-10-18T00:33:38 00:00
git SHA: 2051958682b009bcf1b9f9012364962223eb98e5
URL: http://docs.openstack.org/trunk/install-guide/install/yum/content/nova-network.html
source File: file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_nova-network.xml
xml:id: nova-network

Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi Geoffrey,

br100 should be automatically created by nova-network

once you've configured the nova.conf for networking and restarted the nova-network service, it should appear.

Revision history for this message
Anne Gentle (annegentle) wrote : Re: [Bug 1241331] [NEW] OpenStack Havana Docs for enabling networking missing steps for creating br100

When I tested on Ubuntu, I had to manually create br100. It seems like the
nova network-create command isn't creating the bridge? Please reply here if
you know if it's necessary.

On Thu, Oct 17, 2013 at 11:03 PM, Geoffrey <email address hidden> wrote:

> Public bug reported:
>
> I've been following the Havana docs for installing openstack on RHEL
> based systems, and I've gotten everything up to enabling networking on
> the compute node to work.
>
> No where does it tell me anything about creating the bridge on the node or
> how to manage it, and when I rung ifconfig, br100 is no where on the list
> of devices. I do get virbr0 and virbr0-nic from installing libvirt though.
> -----------------------------------
> Built: 2013-10-18T00:33:38 00:00
> git SHA: 2051958682b009bcf1b9f9012364962223eb98e5
> URL:
> http://docs.openstack.org/trunk/install-guide/install/yum/content/nova-network.html
> source File:
> file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_nova-network.xml
> xml:id: nova-network
>
> ** Affects: openstack-manuals
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> openstack-manuals.
> https://bugs.launchpad.net/bugs/1241331
>
> Title:
> OpenStack Havana Docs for enabling networking missing steps for
> creating br100
>
> Status in OpenStack Manuals:
> New
>
> Bug description:
> I've been following the Havana docs for installing openstack on RHEL
> based systems, and I've gotten everything up to enabling networking on
> the compute node to work.
>
> No where does it tell me anything about creating the bridge on the node
> or how to manage it, and when I rung ifconfig, br100 is no where on the
> list of devices. I do get virbr0 and virbr0-nic from installing libvirt
> though.
> -----------------------------------
> Built: 2013-10-18T00:33:38 00:00
> git SHA: 2051958682b009bcf1b9f9012364962223eb98e5
> URL:
> http://docs.openstack.org/trunk/install-guide/install/yum/content/nova-network.html
> source File:
> file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_nova-network.xml
> xml:id: nova-network
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-manuals/+bug/1241331/+subscriptions
>

Revision history for this message
Tom Fifield (fifieldt) wrote :

class FlatDHCPManager(RPCAllocateFixedIP, floating_ips.FloatingIP,
                      NetworkManager):
    """Flat networking with dhcp.

    FlatDHCPManager will start up one dhcp server to give out addresses.
    It never injects network settings into the guest. It also manages bridges.
    Otherwise it behaves like FlatManager.
    """
    SHOULD_CREATE_BRIDGE = True
    DHCP = True
    required_create_args = ['bridge']

Revision history for this message
Tom Fifield (fifieldt) wrote :

it might be that the bridge is created on first vm boot, instead of on service restart, but it is definitely created by nova-network.

Revision history for this message
Geoffrey (yourapanzy91) wrote :

It definately did not create the bridge of first vm boot, as I recieved an error about the network not existing when booting an instance.

FWIW, I'm going to the guide again to make sure I did not forget any step. But in the many times I've been following the docs, I never saw a br100 created even after doing service openstack-nova-network restart.

Revision history for this message
Geoffrey (yourapanzy91) wrote :

So I just ran through the havana docs again (http://docs.openstack.org/trunk/install-guide/install/yum/content/ch_basics.html)

And I've arrived at the point of nova-network. It did not create br100.

[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT \
> network_manager nova.network.manager.FlatDHCPManager
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT \
> firewall_driver nova.virt.libvirt.firewall.IptablesFirewallDriver
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT network_size 254
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT routing_source_ip ADDRESS
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT allow_same_net_traffic False
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT multi_host True
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT send_arp_for_ha True
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT share_dhcp_address True
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT force_dhcp_release True
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT flat_interface eth1
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT flat_interface eth2
[root@compute1 ~]# vim /etc/nova/nova.conf
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT flat_network_bridge br100
[root@compute1 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT public_interface eth2
[root@compute1 ~]# service openstack-nova-network restart
Stopping openstack-nova-network: [FAILED]
Starting openstack-nova-network: [ OK ]
[root@compute1 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet 169.254.169.254/32 scope link lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:48:14:89 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
    inet6 fe80::a00:27ff:fe48:1489/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:3b:a4:da brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.11/24 brd 192.168.0.255 scope global eth1
    inet6 fe80::a00:27ff:fe3b:a4da/64 scope link
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:be:23:c9 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:febe:23c9/64 scope link
       valid_lft forever preferred_lft forever

Revision history for this message
Tom Fifield (fifieldt) wrote :

which distro are you using?

Revision history for this message
Geoffrey (yourapanzy91) wrote : Re: [Bug 1241331] Re: OpenStack Havana Docs for enabling networking missing steps for creating br100

I'm using centos 6.4.
On Oct 18, 2013 4:15 PM, "Tom Fifield" <email address hidden> wrote:

> which distro are you using?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1241331
>
> Title:
> OpenStack Havana Docs for enabling networking missing steps for
> creating br100
>
> Status in OpenStack Manuals:
> New
>
> Bug description:
> I've been following the Havana docs for installing openstack on RHEL
> based systems, and I've gotten everything up to enabling networking on
> the compute node to work.
>
> No where does it tell me anything about creating the bridge on the node
> or how to manage it, and when I rung ifconfig, br100 is no where on the
> list of devices. I do get virbr0 and virbr0-nic from installing libvirt
> though.
> -----------------------------------
> Built: 2013-10-18T00:33:38 00:00
> git SHA: 2051958682b009bcf1b9f9012364962223eb98e5
> URL:
> http://docs.openstack.org/trunk/install-guide/install/yum/content/nova-network.html
> source File:
> file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_nova-network.xml
> xml:id: nova-network
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-manuals/+bug/1241331/+subscriptions
>

Revision history for this message
Tom Fifield (fifieldt) wrote :

Thanks Geoffrey.

These install instructions haven't been tested at all on Centos, so I'm going to have to set up a centos machine to see what I can replicate and fix them.

That could take a few days.

In the meantime, if you create a bridge in your interfaces config, does it look like it'll get configured?

Revision history for this message
Tom Fifield (fifieldt) wrote :

Actually, you might be able to help us with ticking off the earlier sections ... did the Identity Service and Image Service sections appear to work for you?

https://wiki.openstack.org/wiki/HavanaDocTesting

Revision history for this message
Geoffrey (yourapanzy91) wrote :

I found some "hidden" docs that describe how to make the bridge.
Unfortunately I was no successful in getting anything to boot on the node
(an iptables problem).

I did notice that the virtual bridges and iptables rules from libvirt are
fully in place.

Currently away from my workstation where I was testing this so I cannot
provide exact details and/or logs until October 21.
On Oct 18, 2013 7:20 PM, "Tom Fifield" <email address hidden> wrote:

> Thanks Geoffrey.
>
> These install instructions haven't been tested at all on Centos, so I'm
> going to have to set up a centos machine to see what I can replicate and
> fix them.
>
> That could take a few days.
>
> In the meantime, if you create a bridge in your interfaces config, does
> it look like it'll get configured?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1241331
>
> Title:
> OpenStack Havana Docs for enabling networking missing steps for
> creating br100
>
> Status in OpenStack Manuals:
> New
>
> Bug description:
> I've been following the Havana docs for installing openstack on RHEL
> based systems, and I've gotten everything up to enabling networking on
> the compute node to work.
>
> No where does it tell me anything about creating the bridge on the node
> or how to manage it, and when I rung ifconfig, br100 is no where on the
> list of devices. I do get virbr0 and virbr0-nic from installing libvirt
> though.
> -----------------------------------
> Built: 2013-10-18T00:33:38 00:00
> git SHA: 2051958682b009bcf1b9f9012364962223eb98e5
> URL:
> http://docs.openstack.org/trunk/install-guide/install/yum/content/nova-network.html
> source File:
> file:/home/jenkins/workspace/openstack-install-deploy-guide-fedora/doc/install-guide/section_nova-network.xml
> xml:id: nova-network
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-manuals/+bug/1241331/+subscriptions
>

Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi,

I have installed a centos 6.4 compute node and confirm that the br100 is automatically created on installing nova-network.

However, there were some problems with the configuration in the install causing nova-network to not start - I have put in a patch to fix these:

https://review.openstack.org/#/c/52748/

Changed in openstack-manuals:
assignee: nobody → Tom Fifield (fifieldt)
status: New → In Progress
Revision history for this message
Tom Fifield (fifieldt) wrote :

To fix your install, open /etc/nova/nova.conf and comment out routing_source_ip

you probably also want to run the commands in here:

 145 <screen os="centos"><prompt>#</prompt> <userinput>service libvirtd start</userinput>
   146 <prompt>#</prompt> <userinput>service messagebus start</userinput>
   147 <prompt>#</prompt> <userinput>chkconfig libvirtd on</userinput>
   148 <prompt>#</prompt> <userinput>chkconfig messagebus on</userinput>
   149 </screen>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/52748
Committed: http://github.com/openstack/openstack-manuals/commit/0643f7fb25ef2bf4584bd2b35f81074e504ae3ae
Submitter: Jenkins
Branch: master

commit 0643f7fb25ef2bf4584bd2b35f81074e504ae3ae
Author: Tom Fifield <email address hidden>
Date: Sat Oct 19 18:45:51 2013 +1100

    Fixes for Centos install guide

    This patch fixes several areas in the install guide
    by running through and using them for Centos.

    Closes-Bug: 1241331

    Change-Id: I247639f5f6aa82cc619ae7dfb0513f596f08c1a3

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/52750

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (stable/havana)

Reviewed: https://review.openstack.org/52750
Committed: http://github.com/openstack/openstack-manuals/commit/5679ab38aaf881e3ebf27d40ce171addf0ee64d3
Submitter: Jenkins
Branch: stable/havana

commit 5679ab38aaf881e3ebf27d40ce171addf0ee64d3
Author: Tom Fifield <email address hidden>
Date: Sat Oct 19 18:45:51 2013 +1100

    Fixes for Centos install guide

    This patch fixes several areas in the install guide
    by running through and using them for Centos.

    Cherrypicked from https://review.openstack.org/#/c/52748

    Closes-Bug: 1241331

    Change-Id: I247639f5f6aa82cc619ae7dfb0513f596f08c1a3

tags: added: in-stable-havana
Revision history for this message
Georgios Dimitrakakis (giorgis-r) wrote :

Hi all!

I am following the guide for CentOS and no br100 is created??

What should I do in order to proceed with the network create?

Best,

G.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.